TWI578191B - Keyboard and control method thereof - Google Patents

Keyboard and control method thereof Download PDF

Info

Publication number
TWI578191B
TWI578191B TW104113877A TW104113877A TWI578191B TW I578191 B TWI578191 B TW I578191B TW 104113877 A TW104113877 A TW 104113877A TW 104113877 A TW104113877 A TW 104113877A TW I578191 B TWI578191 B TW I578191B
Authority
TW
Taiwan
Prior art keywords
host
keyboard
operating system
candidate
code
Prior art date
Application number
TW104113877A
Other languages
Chinese (zh)
Other versions
TW201638731A (en
Inventor
徐德平
江滋邦
Original Assignee
達方電子股份有限公司
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 達方電子股份有限公司 filed Critical 達方電子股份有限公司
Priority to TW104113877A priority Critical patent/TWI578191B/en
Priority to US15/140,612 priority patent/US20160321448A1/en
Publication of TW201638731A publication Critical patent/TW201638731A/en
Application granted granted Critical
Publication of TWI578191B publication Critical patent/TWI578191B/en

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Description

鍵盤及其控制方法 Keyboard and its control method

本發明是有關於一種鍵盤,且特別是有關於一種可控制多個主機的鍵盤。 The present invention relates to a keyboard, and more particularly to a keyboard that can control a plurality of hosts.

隨著科技快速發展,現今生活中許多科技產品被廣泛使用,包括桌上型電腦、筆記型電腦、平板電腦、智慧型手機等等。而由於手機的尺寸大小限制,對於使用者而言並不容易輸入文字,因此可藉助於具有無線通訊能力的電腦鍵盤,以無線連線方式控制手機,使得使用者可以在習慣的電腦鍵盤配置輸入文字至手機。此外,更由於一個使用者可能同時擁有不只一台平板電腦及智慧型手機,因此,如何設計一個便於使用者使用,且可與多個主機進行連線以控制多個主機的鍵盤,乃目前業界所致力的課題之一。 With the rapid development of technology, many technology products are widely used in today's life, including desktop computers, notebook computers, tablet computers, smart phones and so on. Due to the size limitation of the mobile phone, it is not easy for the user to input text, so the mobile phone can be controlled by wireless connection by means of a computer keyboard with wireless communication capability, so that the user can configure the input on the custom computer keyboard. Text to phone. In addition, since a user may have more than one tablet computer and a smart phone at the same time, how to design a keyboard that is convenient for the user to use and can be connected to multiple hosts to control multiple hosts is currently in the industry. One of the topics of strength.

本發明係有關於一種鍵盤及其控制方法。 The invention relates to a keyboard and a control method thereof.

根據本發明之第一方面,提出一種鍵盤,可與多個主機進行無線連線,各主機各別具有裝置識別碼與裝置授權碼。鍵盤包括主機選擇裝置、儲存裝置、連接裝置及通訊裝置。主機選擇裝置可接受第一操作而自多個主機編碼中擇一作為候選主機編碼,依據候選主機編碼選擇多個主機其中之一作為候選主機。儲存裝置可儲存一對照表,且對照表使各主機編碼對應到多個裝置識別碼其中之一和多個裝置授權碼其中之一。連接裝置可接受第二操作而被觸發,第一操作與第二操作相異。通訊裝置可使鍵盤與候選主機進行無線連線。當連接裝置被觸發時間小於等於臨界時段時,鍵盤依據候選主機編碼讀取對應的裝置識別碼與裝置授權碼,使鍵盤與候選主機進行無線連線。當連接裝置被觸發時間超過臨界時段時,鍵盤更新候選主機編碼所對應的裝置識別碼與裝置授權碼。 According to a first aspect of the present invention, a keyboard is provided that can be wirelessly connected to a plurality of hosts, each host having a device identification code and a device authorization code. The keyboard includes a host selection device, a storage device, a connection device, and a communication device. The host selection device may accept the first operation and select one of the plurality of host codes as the candidate host code, and select one of the plurality of hosts as the candidate host according to the candidate host code. The storage device may store a look-up table, and the look-up table causes each host code to correspond to one of the plurality of device identification codes and one of the plurality of device authorization codes. The connecting device can be triggered by a second operation, the first operation being different from the second operation. The communication device enables the keyboard to be wirelessly connected to the candidate host. When the triggering time of the connecting device is less than or equal to the critical period, the keyboard reads the corresponding device identification code and the device authorization code according to the candidate host code, so that the keyboard and the candidate host are wirelessly connected. When the connection device is triggered for more than a critical period, the keyboard updates the device identification code corresponding to the candidate host code and the device authorization code.

根據本發明之另一方面,提出一種鍵盤,可與多個主機進行無線連線,各主機各別具有作業系統、裝置識別碼與裝置授權碼。鍵盤包括多個主機選擇按鍵、多個作業系統選擇按鍵、儲存裝置、連接裝置以及通訊裝置。多個主機選擇按鍵可自多個主機編碼中擇一作為候選主機編碼,鍵盤可依據候選主機編碼,自多個主機選擇其中之一作為候選主機。多個作業系統選擇按鍵可自多個作業系統識別碼中擇一作為候選作業系統識別碼,鍵盤可依據候選作業系統識別碼,自多個作業系統選擇其中 之一作為候選作業系統。儲存裝置可儲存對照表,對照表使各主機編碼對應到多個作業系統識別碼其中之一、多個裝置識別碼其中之一和多個裝置授權碼其中之一。通訊裝置可使鍵盤與候選主機進行無線連線。當多個主機選擇按鍵其中之一先被觸發,緊接著連接裝置再被觸發時,鍵盤依據候選主機編碼,讀取對應的裝置識別碼與裝置授權碼,使鍵盤與候選主機進行無線連線。當多個作業系統選擇按鍵其中之一先被觸發,緊接著連接裝置再被觸發時,鍵盤將候選主機編碼更新為候選作業系統識別碼在對照表中所對應的主機編碼,鍵盤依據更新後的候選主機編碼,讀取對應的裝置識別碼與裝置授權碼,使鍵盤與候選主機進行無線連線。 According to another aspect of the present invention, a keyboard is provided that can be wirelessly connected to a plurality of hosts, each having an operating system, a device identification code, and a device authorization code. The keyboard includes a plurality of host selection buttons, a plurality of operating system selection buttons, a storage device, a connection device, and a communication device. A plurality of host selection buttons may be selected as candidate host codes from a plurality of host codes, and the keyboard may select one of the plurality of hosts as a candidate host according to the candidate host code. A plurality of operating system selection buttons may be selected from the plurality of operating system identification codes as candidate operating system identification codes, and the keyboard may select one of the plurality of operating systems according to the candidate operating system identification code. One is used as a candidate operating system. The storage device may store a comparison table, and the comparison table causes each host to encode one of the plurality of operating system identification codes, one of the plurality of device identification codes, and one of the plurality of device authorization codes. The communication device enables the keyboard to be wirelessly connected to the candidate host. When one of the plurality of host selection buttons is triggered first, and then the connection device is triggered again, the keyboard reads the corresponding device identification code and the device authorization code according to the candidate host code, so that the keyboard and the candidate host are wirelessly connected. When one of the plurality of operating system selection buttons is triggered first, and then the connecting device is triggered again, the keyboard updates the candidate host encoding to the host encoding corresponding to the candidate operating system identifier in the comparison table, and the keyboard is updated according to the The candidate host code reads the corresponding device identification code and the device authorization code, so that the keyboard and the candidate host are wirelessly connected.

根據本發明之另一方面,提出一種鍵盤的控制方法,包括下列步驟:提供一鍵盤,包括主機選擇裝置、儲存裝置、連接裝置及通訊裝置,鍵盤可與多個主機進行無線連線,各主機各別具有裝置識別碼與裝置授權碼。藉由主機選擇裝置接受第一操作,自多個主機編碼中擇一作為候選主機編碼,依據候選主機編碼選擇多個主機其中之一作為一候選主機。藉由儲存裝置儲存對照表,且對照表使各主機編碼對應到多個裝置識別碼其中之一和多個裝置授權碼其中之一。藉由連接裝置接收第二操作而被觸發,第一操作與第二操作相異。當連接裝置被觸發時間小於等於臨界時段時,依據候選主機編碼讀取對應的裝置識別碼與裝置授權碼,使鍵盤與候選主機進行無線連線。當連接裝置被觸發時間 超過臨界時段時,更新候選主機編碼所對應的裝置識別碼與裝置授權碼。 According to another aspect of the present invention, a method for controlling a keyboard includes the following steps: providing a keyboard, including a host selection device, a storage device, a connection device, and a communication device, wherein the keyboard can be wirelessly connected to a plurality of hosts, and each host Each has a device identification code and a device authorization code. The first operation is accepted by the host selection device, and one of the plurality of host codes is selected as the candidate host code, and one of the plurality of hosts is selected as a candidate host according to the candidate host code. The comparison table is stored by the storage device, and the comparison table causes each host code to correspond to one of the plurality of device identification codes and one of the plurality of device authorization codes. The second operation is triggered by the connection device, the first operation being different from the second operation. When the triggering time of the connecting device is less than or equal to the critical period, the corresponding device identifier and the device authorization code are read according to the candidate host code, so that the keyboard and the candidate host are wirelessly connected. When the connected device is triggered When the critical period is exceeded, the device identifier and the device authorization code corresponding to the candidate host code are updated.

根據本發明之另一方面,提出一種鍵盤的控制方法,包括下列步驟:提供一鍵盤,包括多個主機選擇按鍵、多個作業系統選擇按鍵、儲存裝置、連接裝置、以及通訊裝置,鍵盤可與複數個主機進行無線連線,各主機各別具有作業系統、裝置識別碼與裝置授權碼。藉由多個主機選擇按鍵自多個主機編碼中擇一作為候選主機編碼,依據候選主機編碼自多個主機選擇其中之一作為候選主機。藉由多個作業系統選擇按鍵自多個作業系統識別碼中擇一作為候選作業系統識別碼,依據候選作業系統識別碼,自多個作業系統選擇其中之一作為候選作業系統。藉由儲存裝置儲存對照表,對照表使各主機編碼對應到多個作業系統識別碼其中之一、多個裝置識別碼其中之一和多個裝置授權碼其中之一。藉由通訊裝置使鍵盤與候選主機進行無線連線。當多個主機選擇按鍵其中之一先被觸發,緊接著連接裝置再被觸發時,鍵盤依據候選主機編碼,讀取對應的裝置識別碼與裝置授權碼,使鍵盤與候選主機進行無線連線。當多個作業系統選擇按鍵其中之一先被觸發,緊接著連接裝置再被觸發時,鍵盤將候選主機編碼更新為候選作業系統識別碼在對照表中所對應的主機編碼,鍵盤依據更新後的候選主機編碼,讀取對應的裝置識別碼與裝置授權碼,使鍵盤與候選主機進行無線連線。 According to another aspect of the present invention, a keyboard control method is provided, comprising the steps of: providing a keyboard, comprising a plurality of host selection buttons, a plurality of operating system selection buttons, a storage device, a connecting device, and a communication device, wherein the keyboard is A plurality of hosts are wirelessly connected, and each host has an operating system, a device identification code, and a device authorization code. One of the plurality of host codes is selected as a candidate host code by a plurality of host selection buttons, and one of the plurality of hosts is selected as a candidate host according to the candidate host code. One of the plurality of operating system identification codes is selected as a candidate operating system identification code by a plurality of operating system selection buttons, and one of the plurality of operating systems is selected as a candidate operating system according to the candidate operating system identification code. The storage table is stored by the storage device, and the comparison table causes each host to encode one of the plurality of operating system identification codes, one of the plurality of device identification codes, and one of the plurality of device authorization codes. The keyboard is wirelessly connected to the candidate host by the communication device. When one of the plurality of host selection buttons is triggered first, and then the connection device is triggered again, the keyboard reads the corresponding device identification code and the device authorization code according to the candidate host code, so that the keyboard and the candidate host are wirelessly connected. When one of the plurality of operating system selection buttons is triggered first, and then the connecting device is triggered again, the keyboard updates the candidate host encoding to the host encoding corresponding to the candidate operating system identifier in the comparison table, and the keyboard is updated according to the The candidate host code reads the corresponding device identification code and the device authorization code, so that the keyboard and the candidate host are wirelessly connected.

為了對本發明之上述及其他方面有更佳的瞭解,下 文特舉較佳實施例,並配合所附圖式,作詳細說明如下: In order to better understand the above and other aspects of the present invention, The preferred embodiment is described in detail with reference to the accompanying drawings.

10、20、30、50‧‧‧鍵盤 10, 20, 30, 50‧‧‧ keyboard

121、122、123、124、221、222、224‧‧‧主機 121, 122, 123, 124, 221, 222, 224‧‧‧ host

202、302‧‧‧主機選擇裝置 202, 302‧‧‧ host selection device

204、304、504‧‧‧儲存裝置 204, 304, 504‧‧‧ storage devices

206、306、506‧‧‧連接裝置 206, 306, 506‧‧‧ Connection devices

208、308、508‧‧‧通訊裝置 208, 308, 508‧‧‧ communication devices

223‧‧‧候選主機 223‧‧‧Recommended host

303‧‧‧作業系統選擇裝置 303‧‧‧Operating system selection device

305‧‧‧顯示裝置 305‧‧‧Display device

401‧‧‧旋鈕 401‧‧‧ knob

402‧‧‧滑動開關 402‧‧‧Sliding switch

411~414‧‧‧按鍵 411~414‧‧‧ button

421~424‧‧‧功能鍵F1~F4 421~424‧‧‧Function keys F1~F4

430‧‧‧輔助功能鍵Fn 430‧‧‧Auxiliary function key Fn

502、521、522、523、524‧‧‧主機選擇按鍵 502, 521, 522, 523, 524‧‧‧ host selection buttons

503、531、532、533‧‧‧作業系統選擇按鍵 503, 531, 532, 533‧‧‧ operating system selection buttons

551~554‧‧‧主機指示燈 551~554‧‧‧Host indicator

571~573‧‧‧作業系統指示燈 571~573‧‧‧Working system indicator

S102、S104、S106、S108、S110、S112、S120、S122、S124、S126、S128、S130、S132、S134、S136、S140、S142、S144、S146、S148、S150、S152、S154、S156、S158、S160、S162、S164、S166、S168、S170、S172、S174、S176、S202、S204、S206、S208、S210、S212、S214‧‧‧步驟 S102, S104, S106, S108, S110, S112, S120, S122, S124, S126, S128, S130, S132, S134, S136, S140, S142, S144, S146, S148, S150, S152, S154, S156, S158, Steps S160, S162, S164, S166, S168, S170, S172, S174, S176, S202, S204, S206, S208, S210, S212, S214‧‧

第1圖繪示一種可控制多個主機的鍵盤的示意圖。 FIG. 1 is a schematic diagram of a keyboard that can control multiple hosts.

第2圖繪示依照本發明一實施例的鍵盤的示意圖。 FIG. 2 is a schematic diagram of a keyboard according to an embodiment of the invention.

第3圖繪示依照本發明一實施例的鍵盤的示意圖。 FIG. 3 is a schematic diagram of a keyboard according to an embodiment of the invention.

第4A圖繪示以旋鈕作為主機選擇裝置的示意圖。 FIG. 4A is a schematic diagram showing a knob as a host selection device.

第4B圖繪示以滑動開關作為主機選擇裝置的示意圖。 FIG. 4B is a schematic diagram showing a slide switch as a host selection device.

第4C圖繪示以多顆按鍵作為主機選擇裝置的示意圖。 FIG. 4C is a schematic diagram showing a plurality of buttons as a host selection device.

第4D圖繪示以組合鍵作為主機選擇裝置的示意圖。 FIG. 4D is a schematic diagram showing a combination key as a host selection device.

第5圖繪示依照本發明一實施例的鍵盤的示意圖。 FIG. 5 is a schematic diagram of a keyboard according to an embodiment of the invention.

第6圖繪示依照本發明一實施例的具有指示燈的鍵盤配置示意圖。 FIG. 6 is a schematic diagram of a keyboard configuration with an indicator light according to an embodiment of the invention.

第7圖繪示依照本發明一實施例的鍵盤控制方法流程圖。 FIG. 7 is a flow chart of a keyboard control method according to an embodiment of the invention.

第8圖繪示依照本發明一實施例的鍵盤控制方法流程圖。 FIG. 8 is a flow chart of a keyboard control method according to an embodiment of the invention.

第9圖繪示依照本發明一實施例的鍵盤控制方法流程圖。 FIG. 9 is a flow chart of a keyboard control method according to an embodiment of the invention.

第10A圖及第10B圖繪示依照本發明一實施例的鍵盤控制方法流程圖。 10A and 10B are flowcharts of a keyboard control method according to an embodiment of the invention.

第1圖繪示一種可控制多個主機121~124的鍵盤10的示意圖。如第1圖所示,鍵盤10可與多個主機121~124分別 進行無線連線,使得使用者可以藉由一個鍵盤10而控制多個主機121~124,這些主機例如包括有桌上型電腦121、平板電腦122、智慧型手機123以及智慧型手機124,使用者可以控制鍵盤10於多個主機121~124之間切換,以選擇欲控制的主機。而鍵盤10與多個主機121~124之間的無線連線例如可以通過紅外線傳輸、藍牙(Bluetooth)協定、ZigBee協定、或是無線通用序列匯流排(Wireless USB)等等無線傳輸通訊技術,使得鍵盤10可以通過無線信號傳輸的方式而切換控制多個主機121~124。本揭露以下說明多種可控制多個主機的鍵盤的相關實施例以及其控制方法。 FIG. 1 is a schematic diagram of a keyboard 10 that can control a plurality of hosts 121-124. As shown in FIG. 1 , the keyboard 10 can be separated from the plurality of hosts 121 to 124 respectively. The wireless connection is performed, so that the user can control the plurality of hosts 121-124 by using a keyboard 10. The host includes, for example, a desktop computer 121, a tablet computer 122, a smart phone 123, and a smart phone 124. The keyboard 10 can be controlled to switch between the plurality of hosts 121-124 to select the host to be controlled. The wireless connection between the keyboard 10 and the plurality of hosts 121-124 can be wirelessly transmitted, for example, by infrared transmission, Bluetooth protocol, ZigBee protocol, or wireless universal serial bus (Wireless USB). The keyboard 10 can switch and control the plurality of hosts 121 to 124 by means of wireless signal transmission. The present disclosure describes various related embodiments of a keyboard that can control a plurality of hosts and a control method thereof.

第2圖繪示依照本發明一實施例的鍵盤20的示意圖。鍵盤20可與多個主機221~224進行無線連線,主機221~224各別具有一裝置識別碼與一裝置授權碼。鍵盤20包括主機選擇裝置202、儲存裝置204、連接裝置206及通訊裝置208。主機選擇裝置202可接受第一操作而自多個主機編碼中擇一作為候選主機編碼,依據候選主機編碼選擇多個主機221~224其中之一作為候選主機223。儲存裝置204可儲存一對照表LUT2,且對照表LUT2使各主機編碼對應到多個裝置識別碼其中之一和多個裝置授權碼其中之一。連接裝置206可接受第二操作而被觸發,第一操作與第二操作相異。通訊裝置208可使鍵盤20與候選主機223進行無線連線。當連接裝置206被觸發時間小於等於臨界時段Tp時,鍵盤20依據候選主機編碼讀取對應的裝置識別碼與裝置授權碼,使鍵盤20與候選主機223進行無線連線。當連接裝置206 被觸發時間超過臨界時段Tp時,鍵盤20更新候選主機編碼所對應的裝置識別碼與裝置授權碼。詳細說明各元件如下。 FIG. 2 is a schematic diagram of a keyboard 20 in accordance with an embodiment of the present invention. The keyboard 20 can be wirelessly connected to the plurality of hosts 221~224, and the hosts 221~224 each have a device identification code and a device authorization code. The keyboard 20 includes a host selection device 202, a storage device 204, a connection device 206, and a communication device 208. The host selection device 202 can accept the first operation and select one of the plurality of host codes as the candidate host code, and select one of the plurality of hosts 221 to 224 as the candidate host 223 according to the candidate host code. The storage device 204 can store a lookup table LUT2, and the lookup table LUT2 causes each host code to correspond to one of the plurality of device identification codes and one of the plurality of device authorization codes. The connection device 206 can be triggered by a second operation, the first operation being different from the second operation. The communication device 208 can wirelessly connect the keyboard 20 to the candidate host 223. When the connection device 206 is triggered for less than or equal to the critical period Tp, the keyboard 20 reads the corresponding device identification code and the device authorization code according to the candidate host code, so that the keyboard 20 and the candidate host 223 are wirelessly connected. When connecting device 206 When the triggered time exceeds the critical period Tp, the keyboard 20 updates the device identification code and the device authorization code corresponding to the candidate host code. The details of each component are as follows.

主機221~224例如為平板電腦或智慧型手機等等,而鍵盤20例如可通過藍牙信號與主機221~224進行配對與無線連線,以切換控制主機221~224,由通訊裝置208負責傳送與接收相關的藍牙控制信號。 The host 221~224 is, for example, a tablet computer or a smart phone, etc., and the keyboard 20 can be paired and wirelessly connected to the host 221~224 via a Bluetooth signal, for example, to switch the control hosts 221~224, and the communication device 208 is responsible for transmitting and Receive relevant Bluetooth control signals.

鍵盤20在初始狀態時尚未儲存任何主機相關的資訊,而在與各主機221~224分別進行配對操作後,可將主機221~224的相關資訊儲存於鍵盤20的儲存裝置204內,儲存裝置204例如可由非揮發性記憶體實現,儲存裝置204所儲存的內容可包括主機的裝置識別碼以及裝置授權碼,儲存的方式例如是以對照表LUT2記錄主機編碼以及其對應的裝置識別碼與裝置授權碼。因此當配對操作完成後,鍵盤20便能夠根據對照表LUT2的內容,於多個主機221~224之間切換操作。一種範例的對照表LUT2如以下表一所示: The keyboard 20 has not stored any host-related information in the initial state, and after the pairing operation is performed with each of the hosts 221 to 224, the related information of the hosts 221 to 224 can be stored in the storage device 204 of the keyboard 20, and the storage device 204 For example, it can be implemented by non-volatile memory, and the content stored by the storage device 204 can include the device identification code of the host and the device authorization code, and the storage method is, for example, recording the host code and its corresponding device identification code and device authorization by the comparison table LUT2. code. Therefore, when the pairing operation is completed, the keyboard 20 can switch operations between the plurality of hosts 221 to 224 according to the contents of the comparison table LUT2. An example comparison table LUT2 is shown in Table 1 below:

使用者可以藉由主機選擇裝置202以選擇要將主機配對到哪一個主機編碼,或是藉由主機選擇裝置202選擇要控制哪一個主機。主機選擇裝置202可如同一般的按鍵設置於鍵盤20上,其具體實現方式在此並不限制,只要能提供使用者選擇功能即可。第4A圖~第4D圖列舉一些主機選擇裝置202的可能實現方式,第4A圖所示為旋鈕401,可藉由使用者的旋轉操作,使得旋鈕401的刻度對應到不同的主機編碼#1~#5;第4B圖所示為滑動開關402,可藉由使用者的撥動操作,使得滑動開關402的位置對應到不同的主機編碼#1~#5;第4C圖所示為以多顆按鍵411~414的實現方式,當按下不同的按鍵411~414時,選擇到不同的主機編碼#1~#4;第4D圖所示為以組合鍵的實現方式,可利用鍵盤原本既有的按鍵,例如透過組合按壓輔助功能鍵Fn 430以及功能鍵F1~F4 421~424,可以切換不同的主機編碼#1~#4。 The user can select which host code to pair the host with by the host selection device 202, or select which host to control by the host selection device 202. The host selection device 202 can be disposed on the keyboard 20 as a general button. The specific implementation manner is not limited herein, as long as the user selection function can be provided. 4A to 4D illustrate some possible implementations of the host selection device 202, and FIG. 4A shows the knob 401, which can be rotated by the user so that the scale of the knob 401 corresponds to a different host code #1~ #5; FIG. 4B shows a slide switch 402, which can be operated by a user to make the position of the slide switch 402 correspond to different host codes #1~#5; FIG. 4C shows multiple When the buttons 411~414 are implemented, when different buttons 411~414 are pressed, different host codes #1~#4 are selected; the 4D picture shows the implementation of the combination keys, which can be used by the keyboard. The keys can be switched between different host codes #1~#4 by, for example, pressing the auxiliary function key Fn 430 and the function keys F1~F4 421~424.

連接裝置206例如是一個按鍵,依據連接裝置206被觸發的時間長短,決定啟動配對操作或是切換連線操作。例如當按壓時間大於臨界時段Tp(例如是3秒)時,進行配對操作;當按壓時間小於等於臨界時段Tp時,進行切換連線操作。詳細說明兩種操作如下。 The connecting device 206 is, for example, a button, depending on the length of time the connecting device 206 is triggered, to determine whether to initiate a pairing operation or to switch a connection operation. For example, when the pressing time is longer than the critical period Tp (for example, 3 seconds), the pairing operation is performed; when the pressing time is less than or equal to the critical period Tp, the switching connection operation is performed. Detailed description of the two operations is as follows.

配對操作:此操作可使得鍵盤20能夠認得欲配對的主機,並將主機的相關資訊儲存於鍵盤20內。以實際例子說明,當使用者欲將一個手機P1(此手機的裝置識別碼是HHH,裝置授權碼是5678)配對到鍵盤20的主機編碼#3時,首先,將主機 選擇裝置202切換到主機編碼#3,例如第4A圖~第4D圖所示,可以透過旋轉、撥動或是按鍵方式以選擇到主機編碼#3。接著,長按(按壓時間超過臨界時段Tp)連接裝置206,使得鍵盤20開始進行配對操作。通訊裝置208會傳送與接收藍牙的配對信號,以與手機P1完成藍牙配對。儲存裝置204更新對照表LUT2中主機編碼#3所對應的裝置識別碼以及裝置授權碼分別為HHH及5678,以將手機P1的相關資訊記錄在主機編碼#3的欄位中。 Pairing operation: This operation enables the keyboard 20 to recognize the host to be paired and store related information of the host in the keyboard 20. As a practical example, when the user wants to pair a mobile phone P1 (the device identification code of the mobile phone is HHH, the device authorization code is 5678) to the host code #3 of the keyboard 20, first, the host is The selection device 202 switches to the host code #3. For example, as shown in FIGS. 4A to 4D, the host code #3 can be selected by rotation, toggle, or key press. Next, the long press (the pressing time exceeds the critical period Tp) connects the device 206 so that the keyboard 20 starts the pairing operation. The communication device 208 transmits and receives a pairing signal of Bluetooth to complete Bluetooth pairing with the handset P1. The storage device 204 updates the device identification code corresponding to the host code #3 in the comparison table LUT2 and the device authorization code are HHH and 5678, respectively, to record the related information of the mobile phone P1 in the field of the host code #3.

切換連線操作:當鍵盤20內已經儲存有多個主機的相關資訊時,使用者可以切換控制不同的主機。以實際例子說明,使用者想要進行切換以控制平板電腦P2,在對照表LUT2當中,平板電腦P2的相關資訊是記錄在主機編碼#2。首先,將主機選擇裝置202切換到主機編碼#2,例如第4A圖~第4D圖所示,可以透過旋轉、撥動或是按鍵方式以選擇到主機編碼#2。接著,短按(按壓時間小於等於臨界時段Tp)連接裝置206,使得鍵盤20開始進行切換連線操作。鍵盤20讀取在對照表LUT2中主機編碼#2所對應的裝置識別碼以及裝置授權碼,得知要切換連線的目標主機相關資訊,藉由通訊裝置208傳輸藍牙控制信號,以使得鍵盤20與平板電腦P2進行無線連線,以控制平板電腦P2。 Switching connection operation: When the related information of multiple hosts is already stored in the keyboard 20, the user can switch to control different hosts. As a practical example, the user wants to switch to control the tablet P2. In the comparison table LUT2, the related information of the tablet P2 is recorded in the host code #2. First, the host selection device 202 is switched to the host code #2. For example, as shown in FIGS. 4A to 4D, the host code #2 can be selected by rotation, toggle, or key press. Next, the connection device 206 is short pressed (the pressing time is less than or equal to the critical period Tp), so that the keyboard 20 starts the switching connection operation. The keyboard 20 reads the device identification code corresponding to the host code #2 in the comparison table LUT2 and the device authorization code, and knows that the target host related information to be switched is switched, and the Bluetooth control signal is transmitted by the communication device 208 to make the keyboard 20 Wirelessly connect to the tablet P2 to control the tablet P2.

值得注意的是,在上述的例子中,不論是配對操作或是切換連線操作,皆包括有觸發主機選擇裝置202的第一步驟以及觸發連接裝置206的第二步驟。在觸發主機選擇裝置202的第一步驟之後,通訊裝置208並不會發送任何藍牙控制信號,亦 即,當僅執行第一步驟時,並沒有改變鍵盤20的連線狀態或內部儲存的配對狀態,並沒有傳送相關的藍牙控制信號。必須要在觸發連接裝置206的第二步驟之後,通訊裝置208才會發送相關的藍牙控制信號,以執行配對操作或是切換連線操作,如此可以有效避免使用者可能的誤動作以及有效降低消耗功率。 It should be noted that in the above example, whether it is a pairing operation or a switching connection operation, a first step of triggering the host selection device 202 and a second step of triggering the connection device 206 are included. After the first step of triggering the host selection device 202, the communication device 208 does not send any Bluetooth control signals. That is, when only the first step is performed, the connection state of the keyboard 20 or the paired state of the internal storage is not changed, and the associated Bluetooth control signal is not transmitted. After the second step of triggering the connection device 206, the communication device 208 must send the relevant Bluetooth control signal to perform the pairing operation or switch the connection operation, so as to effectively avoid the user's possible malfunction and effectively reduce the power consumption. .

舉例而言,當使用者想要切換到主機編碼#3時,卻不小心切換到主機編碼#4,此時並不會傳送藍牙控制信號到主機編碼#4對應的主機,會在使用者正確切換到主機編碼#3並觸發連接裝置206後,才會發送藍牙控制信號到主機編碼#3對應的主機。又例如以第4A圖的旋鈕401為例,當從主機編碼#1切換到主機編碼#5的過程中,旋鈕401的刻度途中會經過主機編碼#2~#4,此時亦不會發送多餘的藍牙控制信號到主機編碼#2~#4對應的多個主機,僅在連接裝置206被觸發後,才會發送藍牙控制信號到主機編碼#5對應的主機。因此,透過本揭露中的兩階段操作方式,包括觸發主機選擇裝置202的第一步驟以及觸發連接裝置206的第二步驟,可以有效避免發送多餘的藍牙控制信號而降低消耗功率,並且能夠有效避免因使用者的誤動作或是使用者操作過程中的短暫切換狀態,而可能導致的錯誤連線結果。 For example, when the user wants to switch to the host code #3, but accidentally switches to the host code #4, the Bluetooth control signal is not transmitted to the host corresponding to the host code #4, and the user is correct. After switching to host code #3 and triggering the connection device 206, the Bluetooth control signal is sent to the host corresponding to the host code #3. For example, taking the knob 401 of FIG. 4A as an example, in the process of switching from the host code #1 to the host code #5, the scale of the knob 401 will pass through the host code #2~#4, and no extra will be sent at this time. The Bluetooth control signal is sent to the host corresponding to the host code #2~#4, and the Bluetooth control signal is sent to the host corresponding to the host code #5 only after the connection device 206 is triggered. Therefore, through the two-stage operation mode in the disclosure, including the first step of triggering the host selection device 202 and the second step of triggering the connection device 206, it is possible to effectively avoid transmitting redundant Bluetooth control signals and reduce power consumption, and can effectively avoid The wrong connection result may be caused by the user's malfunction or a short switching state during the user's operation.

連接裝置206可以有多種實現方式,例如可以是一顆獨立的按鍵,設置於鍵盤20上;或者可以是與主機選擇裝置202結合在一起,例如可以實現於第4A圖所示的旋鈕401中,旋鈕401可以同時被水平轉動和垂直按壓,藉由將刻度水平旋轉至 不同位置以觸發主機選擇裝置202而選擇不同的主機編號,並藉由垂直按壓旋鈕401以觸發連接裝置206;類似於此,如第4B圖所示的水平滑動開關402,亦可以同時是垂直按壓按鈕,可以在被垂直按壓時觸發連接裝置206;又或者鍵盤20包括鍵盤本體,鍵盤本體包括鍵盤機體以及多個按鍵(例如一般的英文字母按鍵),連接裝置206藉由這些按鍵其中之一來實現,即當主機選擇裝置202被觸發之後,使用者按壓鍵盤20的任何一個鍵,則會觸發連接裝置206,使得通訊裝置208發送藍牙控制信號。 The connection device 206 can have multiple implementations, such as a separate button, disposed on the keyboard 20, or can be combined with the host selection device 202, for example, in the knob 401 shown in FIG. 4A. The knob 401 can be horizontally and vertically pressed simultaneously by rotating the scale horizontally to Different positions are used to trigger the host selection device 202 to select different host numbers, and the connection device 206 is triggered by vertically pressing the knob 401; similarly, the horizontal slide switch 402 as shown in FIG. 4B can also be vertically pressed at the same time. The button can trigger the connecting device 206 when pressed vertically; or the keyboard 20 includes a keyboard body, the keyboard body includes a keyboard body and a plurality of buttons (such as a general English alphabet button), and the connecting device 206 uses one of the buttons Implementation, that is, after the host selection device 202 is triggered, the user presses any of the keys of the keyboard 20, and the connection device 206 is triggered to cause the communication device 208 to transmit a Bluetooth control signal.

在上述的這些例子中,觸發主機選擇裝置202的第一操作,必須與觸發連接裝置206的第二操作相異,例如是不同的操作手勢、不同的操作時間或是不同的操作位置。根據上述說明的例子,當主機選擇裝置202與連接裝置206分別是不同的按鍵時,第一操作與第二操作係對應到按壓不同位置的按鍵。當主機選擇裝置202與連接裝置206結合在一起時,例如第4A圖的旋鈕401亦可以被按壓,則第一操作是水平旋轉旋鈕401,第二操作是垂直按壓旋鈕402。藉由相異的第一操作與第二操作,可以明確區分出選擇主機的第一步驟與開始連線(或配對)的第二步驟,能夠避免使用者可能的誤動作以及有效降低消耗功率。 In the above examples, the first operation of triggering the host selection device 202 must be different from the second operation of the trigger connection device 206, such as a different operational gesture, a different operational time, or a different operational location. According to the above-described example, when the host selection device 202 and the connection device 206 are different keys, respectively, the first operation and the second operation system correspond to pressing the buttons of different positions. When the host selection device 202 is coupled to the connection device 206, for example, the knob 401 of FIG. 4A can also be pressed, the first operation is to horizontally rotate the knob 401, and the second operation is to vertically press the knob 402. By the different first operation and the second operation, the first step of selecting the host and the second step of starting the connection (or pairing) can be clearly distinguished, which can avoid the user's possible malfunction and effectively reduce the power consumption.

此實施例的控制方法流程圖可參考第7圖,包括下列步驟。步驟S102:藉由主機選擇裝置接受第一操作,選擇一候選主機編碼,依據候選主機編碼選擇一候選主機,即前述關於選擇主機的第一步驟。步驟S104:藉由儲存裝置儲存一對照表,使 主機編碼對應到裝置識別碼和裝置授權碼。步驟S106:藉由連接裝置接受第二操作而被觸發,即前述關於開始連線或開始配對的第二步驟,第二操作與第一操作相異。步驟S108:判斷觸發時間是否超過臨界時段,若是,執行步驟S112的配對操作,更新候選主機編碼對應的裝置識別碼與裝置授權碼;若否,執行步驟S110的切換連線操作,依據候選主機編碼讀取對應的裝置識別碼與裝置授權碼,使鍵盤與候選主機進行無線連線。 The flowchart of the control method of this embodiment can be referred to FIG. 7, and includes the following steps. Step S102: The host selection device accepts the first operation, selects a candidate host code, and selects a candidate host according to the candidate host code, that is, the foregoing first step of selecting the host. Step S104: storing a comparison table by using the storage device, so that The host code corresponds to the device identification code and the device authorization code. Step S106: being triggered by the connection device accepting the second operation, that is, the foregoing second step of starting the connection or starting the pairing, the second operation being different from the first operation. Step S108: determining whether the trigger time exceeds the critical period, and if yes, performing the pairing operation of step S112, updating the device identification code and the device authorization code corresponding to the candidate host code; if not, performing the switching connection operation of step S110, according to the candidate host code The corresponding device identification code and the device authorization code are read, so that the keyboard and the candidate host are wirelessly connected.

而關於切換連線操作,依照本發明一實施例的控制方法流程圖更可參考第8圖。鍵盤20的內部控制狀態設有一個旗標Flag,在步驟S120初始狀態設為0,Flag為0代表沒有要進行切換,Flag為1則代表準備要進行切換。步驟S122為主迴圈,即鍵盤20在一般操作情況下(沒有進行切換連線)的正常控制流程迴圈。步驟S124判斷是否使用者選擇切換到主機#m,例如是透過觸發主機選擇裝置202而切換,若否,則執行步驟S126判斷Flag值;若是,則執行步驟S128將Flag設為1。步驟S130記憶這個新選擇的主機資訊,以準備進行切換動作。步驟S132判斷是否使用者觸發連接裝置206,若否,則跳回主迴圈S122(Flag仍維持是1);若是,則執行步驟S134,將鍵盤20連接至主機#m,例如透過讀取對照表LUT2中主機編碼#m所對應的裝置識別碼以及裝置授權碼以進行連線。步驟S136將Flag還原設為0,再回到步驟S122的主迴圈。 For the switching connection operation, the flowchart of the control method according to an embodiment of the present invention can refer to FIG. 8. The internal control state of the keyboard 20 is provided with a flag Flag, the initial state is set to 0 in step S120, Flag is 0 to indicate that no switching is to be performed, and Flag is 1 to indicate that switching is to be performed. Step S122 is the main loop, that is, the normal control flow loop of the keyboard 20 under normal operation conditions (without switching connection). In step S124, it is determined whether the user chooses to switch to the host #m, for example, by triggering the host selection device 202 to switch. If not, the step S126 is executed to determine the Flag value; if so, the step S128 is executed to set the Flag to 1. Step S130 memorizes the newly selected host information to prepare for the switching action. In step S132, it is determined whether the user triggers the connection device 206. If not, the user jumps back to the main loop S122 (Flag remains at 1); if yes, step S134 is executed to connect the keyboard 20 to the host #m, for example, by reading the control. The device identification code corresponding to the host code #m in the table LUT2 and the device authorization code are connected. Step S136 sets Flag to 0, and returns to the main loop of step S122.

第3圖繪示依照本發明一實施例的鍵盤30的示意 圖。鍵盤30與第2圖的鍵盤20的差異在於,鍵盤30更包括有作業系統選擇裝置303以及顯示裝置305,這兩個裝置皆為可選擇性的配置,亦可以僅配置其中一個裝置。作業系統選擇裝置303使得使用者可以透過選擇作業系統的方式,選擇切換鍵盤30欲控制的主機。因此儲存裝置304內部的對照表LUT3亦需對應調整,以記錄作業系統資訊。顯示裝置305則用以顯示鍵盤30與多個主機221~224之間的連接狀態,讓使用者能夠清楚知道目前的連接狀態。關於這兩個裝置的詳細說明如下。 FIG. 3 is a schematic diagram of a keyboard 30 according to an embodiment of the invention. Figure. The difference between the keyboard 30 and the keyboard 20 of FIG. 2 is that the keyboard 30 further includes a working system selecting device 303 and a display device 305, both of which are selectively configurable, or only one of them can be configured. The operating system selection means 303 allows the user to select the host to be controlled by the switching keyboard 30 by selecting the operating system. Therefore, the comparison table LUT3 inside the storage device 304 also needs to be adjusted to record the operating system information. The display device 305 is configured to display the connection state between the keyboard 30 and the plurality of hosts 221 to 224, so that the user can clearly know the current connection state. A detailed description of these two devices is as follows.

作業系統選擇裝置303用以選擇多個作業系統之一作為候選作業系統,儲存裝置304更儲存多個作業系統識別碼,其中對照表LUT3使各個主機編碼對應到多個作業系統識別碼其中之一、多個裝置識別碼其中之一和多個裝置授權碼其中之一。鍵盤30依據候選作業系統及候選主機編碼決定候選主機223,通訊裝置308依據候選作業系統發送對應的鍵碼(key code)以使鍵盤30控制候選主機223。可選擇的多個作業系統例如可包括iOS,Android,Windows等等作業系統,不同作業系統則會有部分不同的鍵碼,一種範例的對照表LUT3如以下表二所示: The operating system selection device 303 is configured to select one of the plurality of operating systems as the candidate operating system, and the storage device 304 further stores the plurality of operating system identification codes, wherein the comparison table LUT3 causes each of the host encodings to correspond to one of the plurality of operating system identification codes. One of a plurality of device identification codes and one of a plurality of device authorization codes. The keyboard 30 determines the candidate host 223 according to the candidate operating system and the candidate host encoding. The communication device 308 transmits a corresponding key code according to the candidate operating system to cause the keyboard 30 to control the candidate host 223. The optional multiple operating systems may include, for example, iOS, Android, Windows, etc., and different operating systems may have different key codes. An example comparison table LUT3 is shown in Table 2 below:

關於鍵盤30的控制方法類似於鍵盤20的控制方法,同樣必須在連接裝置306被觸發後,才會開始進行切換連線或配對操作。而與鍵盤20的控制方法不同之處在於,使用者亦可以透過觸發作業系統選擇裝置303,選擇要切換控制的目標主機,鍵盤30可以根據候選作業系統,從對照表LUT3中找到欲連線主機的裝置識別碼以及裝置授權碼,以進行無線連線。 The control method for the keyboard 30 is similar to the control method of the keyboard 20, and it is also necessary to start the switching connection or pairing operation after the connection device 306 is triggered. The difference from the control method of the keyboard 20 is that the user can also select the target host to be switched by triggering the operating system selection device 303. The keyboard 30 can find the host to be connected from the comparison table LUT3 according to the candidate operating system. Device identification code and device authorization code for wireless connection.

作業系統選擇裝置303的實現方式亦可以例如是第4A圖~第4D圖的方式,在此不再重複贅述。由於鍵盤30是在連接裝置306被觸發後,通訊裝置308才會發送相關的藍牙控制信號,因此有可能因為使用者的誤觸或是錯誤操作,導致主機選擇裝置302以及作業系統選擇裝置303的切換目標可能不相同。舉例而言,主機選擇裝置302選擇了主機編碼#1,而作業系統選擇裝置303選擇了Android系統,在對照表LUT3中兩者並無法對應到同一個主機,產生衝突情況。此時若觸發連接裝置306,則本實施例可以依照最後被觸發的選擇裝置,決定連線至哪一個主機,意即根據主機選擇裝置302以及作業系統選擇裝置303被觸發的先後順序決定。根據最後被觸發的選擇裝置,作為從對照表LUT3讀取資料的依據。當然此方法僅是作為例示性說明,本揭露並不限於此,亦可以依據其他的控制方法解決此衝突情況,例 如依據最先被觸發的選擇裝置、優先依據主機選擇裝置302、或優先依據作業系統選擇裝置303等等。 The implementation of the operating system selection device 303 can also be, for example, the manner of FIG. 4A to FIG. 4D, and the detailed description thereof will not be repeated here. Since the keyboard 30 is triggered after the connection device 306 is triggered, the communication device 308 transmits the relevant Bluetooth control signal, so that the host selection device 302 and the operating system selection device 303 may be caused by a user's accidental touch or incorrect operation. The switching goals may not be the same. For example, the host selection device 302 selects the host code #1, and the work system selection device 303 selects the Android system. In the comparison table LUT3, the two cannot match the same host, and a conflict situation occurs. At this time, if the connection device 306 is triggered, the present embodiment can determine which host to connect to according to the last triggered selection device, that is, according to the order in which the host selection device 302 and the operation system selection device 303 are triggered. According to the selection device that is triggered last, it is used as the basis for reading data from the comparison table LUT3. Of course, this method is only for illustrative purposes. The disclosure is not limited thereto, and the conflict may be solved according to other control methods. For example, according to the first triggered selection device, the priority based on the host selection device 302, or the priority based on the operating system selection device 303, and the like.

顯示裝置305可用以顯示鍵盤30與多個主機221~224之間的連接狀態,使得使用者即使忘記了目前的連接狀態,或是一段時間離開鍵盤30,亦可以從顯示裝置305立即得知目前的連接狀態。顯示裝置305可以包括多個指示燈,這些指示燈分別對應主機221~224,於鍵盤30與候選主機223進行連線之後,對應至候選主機223的指示燈被點亮。因此,使用者能夠從這些指示燈知道目前鍵盤30連線到哪一個主機。此外,顯示裝置305亦可以是一個閃爍式指示燈,閃爍式指示燈的閃爍次數係對應至鍵盤30目前所連接的候選主機223之代碼,例如候選主機223對應到主機編號#3,則閃爍式指示燈閃爍3次,使得使用者可以知道目前鍵盤是連接到候選主機223。使用者可以透過觸發連接裝置306,使得顯示裝置305顯示出連接狀態,或者顯示裝置305亦可以持續性地顯示連接狀態。 The display device 305 can be used to display the connection state between the keyboard 30 and the plurality of hosts 221 to 224, so that the user can immediately know from the display device 305 even if the user forgets the current connection state or leaves the keyboard 30 for a period of time. Connection status. The display device 305 may include a plurality of indicator lights respectively corresponding to the hosts 221 to 224. After the keyboard 30 is connected to the candidate host 223, the indicator light corresponding to the candidate host 223 is illuminated. Therefore, the user can know from which the current keyboard 30 is connected to which host. In addition, the display device 305 can also be a flashing indicator light. The number of flashing of the flashing indicator light corresponds to the code of the candidate host 223 to which the keyboard 30 is currently connected. For example, the candidate host 223 corresponds to the host number #3, and then flashes. The indicator light flashes 3 times so that the user can know that the current keyboard is connected to the candidate host 223. The user can cause the display device 305 to display the connection state by triggering the connection device 306, or the display device 305 can continuously display the connection state.

此外,如前所述,主機選擇裝置302與作業系統選擇裝置303的切換目標有可能會存在衝突情況,此時顯示裝置305亦可用以顯示多個主機221~224之中可作為合法連線目標的至少一待選主機。延續前述的例子說明,當主機選擇裝置302選擇主機編碼#1,而作業系統選擇裝置303選擇Android系統,兩者存在衝突,此時顯示裝置305可以顯示Android系統可作為合法連線目標的待選主機,請參考表二,即是將對應到主機編碼#2以及 主機編號#4的指示燈亮起,以提醒使用者目前的衝突情況,並提示使用者進行進一步的選擇。 In addition, as described above, there may be a conflict between the host selection device 302 and the switching target of the operating system selection device 303. In this case, the display device 305 can also be used to display a plurality of hosts 221 to 224 as legitimate connection targets. At least one candidate host. Continuing the foregoing example, when the host selection device 302 selects the host code #1 and the work system selection device 303 selects the Android system, there is a conflict between the two. At this time, the display device 305 can display that the Android system can be selected as a legitimate connection target. Host, please refer to Table 2, which will correspond to host code #2 and The indicator of host number #4 lights up to alert the user to the current conflict and prompt the user for further selection.

以下說明本發明的另一實施例,第5圖繪示依照本發明一實施例的鍵盤50的示意圖。鍵盤50可與多個主機221~224進行無線連線,主機221~224各別具有一作業系統、一裝置識別碼與一裝置授權碼。鍵盤50包括多個主機選擇按鍵502、多個作業系統選擇按鍵503、儲存裝置504、連接裝置506以及通訊裝置508。多個主機選擇按鍵502可自多個主機編碼中擇一作為候選主機編碼,鍵盤50可依據候選主機編碼,自多個主機221~224選擇其中之一作為候選主機223。多個作業系統選擇按鍵503可自多個作業系統識別碼中擇一作為候選作業系統識別碼,鍵盤50可依據候選作業系統識別碼,自多個作業系統選擇其中之一作為候選作業系統。儲存裝置504可儲存對照表LUT3,對照表LUT3的範例可參考表二,對照表LUT3使各主機編碼對應到多個作業系統識別碼其中之一、多個裝置識別碼其中之一和多個裝置授權碼其中之一。通訊裝置508可使鍵盤50與候選主機223進行無線連線。當多個主機選擇按鍵502其中之一先被觸發,緊接著連接裝置506再被觸發時,鍵盤50依據候選主機編碼,讀取對應的裝置識別碼與裝置授權碼,使鍵盤50與候選主機223進行無線連線。當多個作業系統選擇按鍵503其中之一先被觸發,緊接著連接裝置506再被觸發時,鍵盤50將候選主機編碼更新為候選作業系統識別碼在對照表LUT3中所對應的主機編碼,鍵盤50 依據更新後的候選主機編碼,讀取對應的裝置識別碼與裝置授權碼,使鍵盤50與候選主機223進行無線連線。 Another embodiment of the present invention is described below. FIG. 5 is a schematic diagram of a keyboard 50 in accordance with an embodiment of the present invention. The keyboard 50 can be wirelessly connected to the plurality of hosts 221~224, and the hosts 221~224 each have an operating system, a device identification code and a device authorization code. The keyboard 50 includes a plurality of host selection buttons 502, a plurality of operating system selection buttons 503, a storage device 504, a connection device 506, and a communication device 508. The plurality of host selection buttons 502 can select one of the plurality of host codes as the candidate host code, and the keyboard 50 can select one of the plurality of hosts 221 to 224 as the candidate host 223 according to the candidate host code. The plurality of operating system selection buttons 503 can select one of the plurality of operating system identification codes as the candidate operating system identification code, and the keyboard 50 can select one of the plurality of operating systems as the candidate operating system according to the candidate operating system identification code. The storage device 504 can store the comparison table LUT3, and the example of the comparison table LUT3 can refer to Table 2. The comparison table LUT3 causes each host code to correspond to one of the plurality of operating system identification codes, one of the plurality of device identification codes, and the plurality of devices. One of the authorization codes. The communication device 508 can wirelessly connect the keyboard 50 to the candidate host 223. When one of the plurality of host selection buttons 502 is triggered first, and then the connection device 506 is triggered again, the keyboard 50 reads the corresponding device identification code and the device authorization code according to the candidate host code, so that the keyboard 50 and the candidate host 223 are enabled. Make a wireless connection. When one of the plurality of operating system selection buttons 503 is triggered first, and then the connecting device 506 is triggered again, the keyboard 50 updates the candidate host encoding to the host encoding corresponding to the candidate operating system identifier in the lookup table LUT3, the keyboard 50 According to the updated candidate host code, the corresponding device identification code and the device authorization code are read, so that the keyboard 50 and the candidate host 223 are wirelessly connected.

關於儲存裝置504、連接裝置506、以及通訊裝置508的操作,與前述實施例的鍵盤20以及鍵盤30類似,例如連接裝置506被長時間觸發時可以啟動配對操作,於此不再重複贅述。鍵盤50的控制方法與前述實施例的主要區別在於,依據連接裝置506被觸發前最後被觸發的選擇按鍵而決定如何連線。若是主機選擇按鍵502被觸發後緊接著連接裝置506被觸發,則依據主機選擇按鍵502所對應的主機進行連線。而若是作業系統選擇按鍵503被觸發後緊接著連接裝置506被觸發,則會依據作業系統選擇按鍵503所選擇的候選作業系統識別碼,讀取對照表LUT3中候選作業系統識別碼所對應的候選主機編碼,再根據這個更新後的候選主機編碼進行連線。例如以作業系統選擇按鍵503選擇iOS作業系統後,再觸發連接裝置506時,即使主機選擇按鍵502選擇的主機編碼是#2,仍會根據對照表LUT3以及選擇的iOS作業系統,將主機編碼更新為#1,而連線到主機221。 The operations of the storage device 504, the connection device 506, and the communication device 508 are similar to those of the keyboard 20 and the keyboard 30 of the foregoing embodiment. For example, when the connection device 506 is triggered for a long time, the pairing operation can be started, and the details are not repeated herein. The main difference between the control method of the keyboard 50 and the foregoing embodiment is that how to connect is determined according to the selection button that is finally triggered before the connection device 506 is triggered. If the host selection button 502 is triggered and then the connection device 506 is triggered, the host corresponding to the host selection button 502 is connected. If the operating system selection button 503 is triggered and then the connection device 506 is triggered, the candidate corresponding to the candidate operating system identification code in the comparison table LUT3 is read according to the candidate operating system identification code selected by the operating system selection button 503. The host code is then wired according to the updated candidate host code. For example, when the iOS operating system is selected by the operating system selection button 503, when the connection device 506 is triggered, even if the host code selected by the host selection button 502 is #2, the host code is updated according to the comparison table LUT3 and the selected iOS operating system. Connect to host 221 for #1.

如第6圖所示,鍵盤50更可包括多個主機指示燈551~554以及多個作業系統指示燈571~573,主機指示燈551~554分別對應到主機選擇按鍵521~524,而作業系統指示燈571~573分別對應到作業系統選擇按鍵531~533,第6圖中鍵盤50右上方的Connect按鍵則是連接裝置506。 As shown in FIG. 6, the keyboard 50 may further include a plurality of host indicators 551~554 and a plurality of operating system indicators 571~573, and the host indicators 551~554 respectively correspond to the host selection buttons 521~524, and the operating system The indicator lights 571 to 573 correspond to the operation system selection buttons 531 to 533, respectively, and the Connect button at the upper right of the keyboard 50 in the sixth diagram is the connection device 506.

當多個主機選擇按鍵502其中之一的主機選擇按鍵 523先被觸發,緊接著連接裝置506再被觸發時,鍵盤50使被觸發的主機選擇按鍵523對應的主機指示燈553點亮。如此使用者可以從主機指示燈551~554的狀態,清楚知道目前鍵盤50與多個主機221~224之間的連接狀態。此外,鍵盤50更可以將候選作業系統識別碼更新為候選主機編碼在對照表LUT3中所對應的作業系統識別碼,並使更新後的候選作業系統識別碼所對應的作業系統指示燈點亮。在上例中,候選主機223在對照表LUT3中所對應的作業系統識別碼是Windows,則會將候選作業系統識別碼更新為Windows,並使Windows對應的作業系統指示燈點亮,例如鍵盤50上的作業系統選擇按鍵531的OS#1是對應Windows,則會點亮作業系統指示燈571。如此使用者更可以清楚知道,目前鍵盤50所連線的主機所使用的作業系統。 When a plurality of host selects one of the buttons 502, the host select button 523 is triggered first, and when the connection device 506 is triggered again, the keyboard 50 lights up the host indicator 553 corresponding to the triggered host selection button 523. Thus, the user can clearly know the connection state between the keyboard 50 and the plurality of hosts 221 to 224 from the state of the host indicators 551 to 554. In addition, the keyboard 50 may further update the candidate operating system identification code to the operating system identification code corresponding to the candidate host code in the comparison table LUT3, and light the operating system indicator corresponding to the updated candidate operating system identification code. In the above example, if the candidate operating system 223 corresponds to the operating system identifier in the lookup table LUT3, the candidate operating system identifier is updated to Windows, and the operating system indicator corresponding to Windows is lit, for example, the keyboard 50. When OS#1 of the upper operating system selection button 531 corresponds to Windows, the operating system indicator 571 is turned on. Therefore, the user can clearly know the operating system used by the host connected to the keyboard 50.

在另一實施方式中,當多個作業系統選擇按鍵503其中之一的作業系統選擇按鍵532先被觸發,緊接著連接裝置506再被觸發時,鍵盤50使被觸發的作業系統選擇按鍵532對應的作業系統指示燈572點亮。使用者可以從作業系統指示燈571~573的狀態,清楚知道目前鍵盤50所控制的作業系統。此外,鍵盤50更可以將候選主機編碼更新為候選作業系統識別碼在對照表LUT3中所對應的主機編碼,並使更新後的候選主機編碼所對應的主機指示燈點亮。在上例中,候選作業系統識別碼例如是iOS,在對照表LUT3中所對應的主機編碼是#1,則會將主機編碼更新為#1,並使主機編碼#1對應的主機指示燈551點亮。如此使用者 更可以清楚知道,目前鍵盤50所連線的主機是哪一個。 In another embodiment, when the operating system selection button 532 of one of the plurality of operating system selection buttons 503 is triggered first, and then the connecting device 506 is triggered again, the keyboard 50 causes the triggered operating system selection button 532 to correspond. The operating system indicator 572 lights up. The user can clearly know the operating system controlled by the keyboard 50 from the state of the operating system indicators 571 to 573. In addition, the keyboard 50 may further update the candidate host code to the host code corresponding to the candidate operating system identifier in the comparison table LUT3, and light the host indicator corresponding to the updated candidate host code. In the above example, the candidate operating system identifier is, for example, iOS. If the host code corresponding to the lookup table LUT3 is #1, the host code is updated to #1, and the host indicator 551 corresponding to the host code #1 is enabled. Light up. Such user It is even more clear to know which host is currently connected to the keyboard 50.

承接上述例子,若候選作業系統識別碼是Android,則在對照表LUT3中會對應到多個主機編碼,包括主機編碼#2以及主機編碼#4,此時則會使候選作業系統識別碼(Android)在對照表LUT3中所對應的多個主機編碼對應的多個主機指示燈552及554皆點亮。如此,使用者即可以知道目前選擇的作業系統會對應到多於一台主機,能夠提示使用者再進一步選擇其中的一個主機,即再從主機選擇按鍵522及524之中選擇按下其中一個,之後再觸發連接裝置506以進行連線。 According to the above example, if the candidate operating system identifier is Android, there will be multiple host codes corresponding to the host table LUT3, including host code #2 and host code #4, and the candidate operating system identifier (Android) will be The plurality of host indicators 552 and 554 corresponding to the plurality of host codes corresponding to the comparison table LUT3 are illuminated. In this way, the user can know that the currently selected operating system corresponds to more than one host, and can prompt the user to further select one of the hosts, that is, select one of the host selection buttons 522 and 524, and then press one of them. The connection device 506 is then triggered to connect.

關於鍵盤50的控制方法流程圖可以參考第9圖,包括下列步驟。步驟SS202:藉由多個主機選擇按鍵自多個主機編碼中擇一作為候選主機編碼,依據候選主機編碼自多個主機選擇其中之一作為候選主機,及/或藉由多個作業系統選擇按鍵自多個作業系統識別碼中擇一作為候選作業系統識別碼,依據候選作業系統識別碼,自多個作業系統選擇其中之一作為一候選作業系統。步驟S202可能的情形包括:先選擇主機再選擇作業系統、先選擇作業系統再選擇主機、僅選擇主機、以及僅選擇作業系統。 A flowchart of the control method of the keyboard 50 can refer to FIG. 9, and includes the following steps. Step SS202: selecting one of the plurality of host codes as the candidate host code by using a plurality of host selection buttons, selecting one of the plurality of host as the candidate host according to the candidate host code, and/or selecting the button by using multiple operating systems. One of the plurality of operating system identification codes is selected as the candidate operating system identification code, and one of the plurality of operating system identification codes is selected as a candidate operating system from the plurality of operating systems. Possible scenarios of step S202 include: first selecting a host and then selecting a job system, first selecting a job system, then selecting a host, selecting only a host, and selecting only the operating system.

步驟S206:藉由儲存裝置儲存對照表,對照表使各主機編碼對應到多個作業系統識別碼其中之一、多個裝置識別碼其中之一和多個裝置授權碼其中之一。步驟S208:判斷連接裝置被觸發前,最後觸發的是否為主機選擇按鍵。即判斷是多個主機選擇按鍵502其中之一先被觸發緊接著連接裝置506被觸發,或 是多個作業系統選擇按鍵503其中之一先被觸發緊接著連接裝置506被觸發。 Step S206: The storage table is stored by the storage device, and the comparison table causes each host to encode one of the plurality of operating system identification codes, one of the plurality of device identification codes, and one of the plurality of device authorization codes. Step S208: Determine whether the last trigger is a host selection button before the connection device is triggered. That is, it is determined that one of the plurality of host selection buttons 502 is triggered first, and then the connection device 506 is triggered, or It is the one of the plurality of operating system selection buttons 503 that is triggered first and then the connecting device 506 is triggered.

若步驟S208的判斷結果為是,則執行步驟S210:依據候選主機編碼,讀取對應的裝置識別碼與裝置授權碼。若步驟S208的判斷結果為否(最後觸發的為作業系統選擇按鍵503),則執行步驟S212:將候選主機編碼更新為候選作業系統識別碼在對照表中所對應的主機編碼,依據更新後的候選主機編碼,讀取對應的裝置識別碼與裝置授權碼。步驟S214:藉由通訊裝置使鍵盤與候選主機進行無線連線。 If the result of the determination in step S208 is YES, step S210 is performed: reading the corresponding device identification code and the device authorization code according to the candidate host code. If the result of the determination in step S208 is no (the last trigger is the operating system selection button 503), step S212 is performed: updating the candidate host code to the host code corresponding to the candidate operating system identifier in the comparison table, according to the updated The candidate host code reads the corresponding device identification code and the device authorization code. Step S214: The keyboard is wirelessly connected to the candidate host by the communication device.

關於多個主機選擇按鍵502與多個作業系統選擇按鍵503,依照本發明一實施例的鍵盤50內部詳細的控制方法流程圖更可參考第10A圖以及第10B圖。鍵盤50的內部控制狀態設有一個旗標Flag,在步驟S140初始狀態設為0,步驟S142為一般操作情況下的主迴圈。步驟S144判斷是否按壓任何主機選擇按鍵或作業系統選擇按鍵,若否,則執行步驟S146檢查Flag值;若是,則執行步驟S148將Flag設為1。接著,步驟S150是參考第9圖原則判斷最後被按壓的是主機選擇按鍵或是作業系統選擇按鍵,使用者若最後按壓的是主機選擇按鍵,則執行步驟S152記憶新主機資訊,並且執行步驟S154找出所選擇的這個主機所對應的作業系統#m。然後在步驟S156判斷是否所對應的作業系統是否超過1個,例如有一些電子裝置可以安裝有兩個作業系統,因此選擇了主機後,仍可能會對應到兩個作業系統,需進一 步選擇。若步驟S156判斷結果為否,代表僅一個作業系統,則如同前述實施例所敘述,在觸發連接裝置(步驟S158)後,連接至所選擇的這個主機(步驟S160),並將Flag設為0(步驟S162)。 Regarding the plurality of host selection buttons 502 and the plurality of operating system selection buttons 503, the flow chart of the internal detailed control method of the keyboard 50 according to an embodiment of the present invention can refer to FIG. 10A and FIG. 10B. The internal control state of the keyboard 50 is provided with a flag Flag, the initial state is set to 0 in step S140, and the step S142 is the main loop in the normal operation. Step S144 determines whether to press any of the host selection buttons or the operating system selection button. If not, step S146 is performed to check the Flag value; if so, step S148 is executed to set Flag to 1. Next, in step S150, it is determined by reference to the principle of FIG. 9 that the last selected button is the host selection button or the operating system selection button. If the user finally presses the host selection button, step S152 is performed to memorize the new host information, and step S154 is performed. Find the operating system #m corresponding to the selected host. Then, it is determined in step S156 whether there is more than one corresponding operating system. For example, some electronic devices can be installed with two operating systems. Therefore, after selecting the host, it may still correspond to two operating systems, and it is necessary to enter one. Step selection. If the result of the determination in step S156 is NO, representing only one operating system, as described in the foregoing embodiment, after the triggering device is connected (step S158), it is connected to the selected host (step S160), and Flag is set to 0. (Step S162).

倘若步驟S156判斷的結果為是,表示對應到多個作業系統,則需進一步處理,請參考第10B圖的B節點,此時會執行步驟S174,將符合的多個作業系統所對應的指示燈閃爍,以提示使用者從這些作業系統中選擇其中一個,接著執行步驟S176,根據使用者進一步的選擇結果,或者根據預設的規則(例如選擇對照表中第一個符合的作業系統)執行步驟S158到步驟S162的連線。此部分的控制方法可以使得當一個主機對應到多個作業系統,且使用者未清楚選定作業系統時,能夠提醒使用者哪些是適合的作業系統選項,並提示使用者進行進一步選擇。 If the result of the determination in step S156 is YES, indicating that it corresponds to a plurality of operating systems, further processing is required. Please refer to node B in FIG. 10B. At this time, step S174 is executed to match the corresponding indicator of multiple operating systems. Flashing to prompt the user to select one of the operating systems, and then performing step S176 to perform the steps according to the user's further selection result or according to a preset rule (for example, selecting the first matching operating system in the comparison table) S158 to the connection of step S162. The control method of this part can make when a host corresponds to multiple operating systems, and the user does not clearly select the operating system, the user can be reminded which suitable operating system options, and prompt the user to make further selections.

若步驟S150中使用者最後被按壓的是作業系統選擇按鍵,請參考第10B圖的A節點,執行步驟S164記憶新作業系統資訊,以及執行步驟S166找出這個作業系統對應的主機#n。然後在步驟S166判斷所對應的主機數目是否超過1個,例如表二所示的例子中,作業系統Android會對應到兩個主機,需進一步進行選擇。若步驟S168的判斷結果為否,則回到C節點,執行步驟S158到步驟S162的連線操作。若步驟S166的判斷結果為是,執行步驟S170,將符合的多個主機所對應的指示燈閃爍,以提示使用者從這些主機中選擇其中一個,接著執行步驟S172,根據使用者進一步的選擇結果,或者根據預設的規則(例如選擇對 照表中第一個符合的主機)回到C節點,執行步驟S158到步驟S162的連線操作。 If the user finally presses the operating system selection button in step S150, please refer to the node A of FIG. 10B, execute step S164 to memorize the new operating system information, and execute step S166 to find the host #n corresponding to the operating system. Then, it is determined in step S166 whether the number of corresponding hosts exceeds one. For example, in the example shown in Table 2, the operating system Android corresponds to two hosts, and further selection is needed. If the result of the determination in step S168 is NO, the process returns to the C node, and the connection operation of steps S158 to S162 is performed. If the answer of step S166 is yes, step S170 is executed to blink the indicator lights corresponding to the plurality of hosts to prompt the user to select one of the hosts, and then step S172 is performed according to the user's further selection result. Or according to preset rules (such as choosing pair The first matching host in the table is returned to the C node, and the connection operation from step S158 to step S162 is performed.

上述的實施例中,提供使用者能夠選擇主機以及選擇作業系統的操作自由度,便於使用者的操作,例如使用者可能不易記憶主機編碼與實際的電子裝置如何對應,但若以作業系統進行切換則可以顯得更加直觀。此外,能夠在有多個候選的狀態時,提供使用者明確的選擇,例如在使用者選擇作業系統後,若可對應到多個主機,則能夠提示使用者哪些是可供選擇的主機,能夠讓使用者在確定的選項中進行進一步選擇,以選擇到符合這個作業系統的適當主機。 In the above embodiments, the user can select the host and select the operation degree of the operating system to facilitate the operation of the user. For example, the user may not easily remember how the host code corresponds to the actual electronic device, but if the operating system is switched. It can be more intuitive. In addition, when there are multiple candidate states, the user can be explicitly selected. For example, after the user selects the operating system, if the user can correspond to multiple hosts, the user can be prompted which ones are available for selection. Allow the user to make further selections in the determined options to select the appropriate host for this operating system.

綜上所述,雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明。本發明所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾。因此,本發明之保護範圍當視後附之申請專利範圍所界定者為準。 In conclusion, the present invention has been disclosed in the above preferred embodiments, and is not intended to limit the present invention. A person skilled in the art can make various changes and modifications without departing from the spirit and scope of the invention. Therefore, the scope of the invention is defined by the scope of the appended claims.

20‧‧‧鍵盤 20‧‧‧ keyboard

202‧‧‧主機選擇裝置 202‧‧‧Host selection device

204‧‧‧儲存裝置 204‧‧‧Storage device

206‧‧‧連接裝置 206‧‧‧Connecting device

208‧‧‧通訊裝置 208‧‧‧Communication device

221、222、224‧‧‧主機 221, 222, 224‧‧‧ host

223‧‧‧候選主機 223‧‧‧Recommended host

Claims (20)

一種鍵盤,可與複數個主機進行無線連線,該複數個主機各別具有一裝置識別碼與一裝置授權碼,包括:一主機選擇裝置,該主機選擇裝置可接受一第一操作而自複數個主機編碼中擇一作為一候選主機編碼,依據該候選主機編碼選擇該複數個主機其中之一作為一候選主機;一儲存裝置,該儲存裝置可儲存一對照表,且該對照表使各該複數個主機編碼對應到該複數個裝置識別碼其中之一和該複數個裝置授權碼其中之一;一連接裝置,可接受一第二操作而被觸發,該第一操作與該第二操作相異;以及一通訊裝置,該通訊裝置可使該鍵盤與該候選主機進行無線連線;其中當該連接裝置被觸發時間小於等於一臨界時段時,該鍵盤依據該候選主機編碼,讀取對應的該裝置識別碼與該裝置授權碼,使該鍵盤與該候選主機進行無線連線;其中當該連接裝置被觸發時間超過該臨界時段時,該鍵盤更新該候選主機編碼所對應的該裝置識別碼與該裝置授權碼。 A keyboard can be wirelessly connected to a plurality of hosts, each of the plurality of hosts having a device identification code and a device authorization code, including: a host selection device, the host selection device accepting a first operation and recovering from a plurality of One of the host codes is selected as a candidate host code, and one of the plurality of hosts is selected as a candidate host according to the candidate host code; and a storage device stores the lookup table, and the comparison table makes each a plurality of host codes corresponding to one of the plurality of device identification codes and one of the plurality of device authorization codes; a connection device capable of being triggered by a second operation, the first operation and the second operation And a communication device, the communication device can wirelessly connect the keyboard with the candidate host; wherein when the connection device is triggered for less than or equal to a critical period, the keyboard reads the corresponding one according to the candidate host code The device identification code and the device authorization code enable the keyboard to wirelessly connect with the candidate host; wherein when the connection device is triggered When the time exceeds the threshold time period, it updates the candidate host the keyboard coding apparatus corresponding to the apparatus identifier with the authorization code. 如申請專利範圍第1項所述之鍵盤,其中該鍵盤更包含一作業系統選擇裝置,用以選擇複數個作業系統之一作為一候選作業系統,該儲存裝置更儲存複數個作業系統識別碼,其中該對照表使各該複數個主機編碼對應到該複數個作業系統識別碼其中 之一、該複數個裝置識別碼其中之一和該複數個裝置授權碼其中之一;該鍵盤依據該候選作業系統及該候選主機編碼決定該候選主機,該通訊裝置依據該候選作業系統發送對應的鍵碼以使該鍵盤控制該候選主機。 The keyboard of claim 1, wherein the keyboard further comprises an operating system selecting device for selecting one of the plurality of operating systems as a candidate operating system, the storage device further storing a plurality of operating system identification codes, The comparison table causes each of the plurality of host codes to correspond to the plurality of operating system identification codes. One of the plurality of device identification codes and one of the plurality of device authorization codes; the keyboard determines the candidate host according to the candidate operating system and the candidate host code, and the communication device sends a corresponding according to the candidate operating system The key code is such that the keyboard controls the candidate host. 如申請專利範圍第1項所述之鍵盤,其中該鍵盤更包括複數個指示燈,該些指示燈分別對應於該些主機,於該鍵盤與該候選主機進行連線之後,對應至該候選主機之該指示燈係被點亮。 The keyboard of claim 1, wherein the keyboard further comprises a plurality of indicator lights respectively corresponding to the hosts, and after the keyboard is connected to the candidate host, corresponding to the candidate host This indicator light is illuminated. 如申請專利範圍第1項所述之鍵盤,其中該鍵盤更包括一閃爍式指示燈,於該鍵盤與該候選主機進行連線之後,該閃爍式指示燈的一閃爍次數係對應至該鍵盤目前所連接的該候選主機之一代碼。 The keyboard of claim 1, wherein the keyboard further comprises a flashing indicator light, after the keyboard is connected to the candidate host, the number of flashes of the flashing indicator light corresponds to the current keyboard. One of the candidate hosts connected to the code. 如申請專利範圍第1項所述之鍵盤,其中該主機選擇裝置及該連接裝置係由一旋鈕按鍵來實現,該旋鈕按鍵可於複數個水平旋轉位置之間切換,該些旋轉位置分別係對應至該些主機編碼,當該旋鈕按鍵被垂直按壓時,該連接裝置係被觸發。 The keyboard of claim 1, wherein the host selection device and the connection device are implemented by a knob button, and the knob button is switchable between a plurality of horizontal rotation positions, wherein the rotation positions respectively correspond to To the host code, the connection device is triggered when the knob button is pressed vertically. 一種鍵盤,可與複數個主機進行無線連線,該複數個主機各別具有一作業系統、一裝置識別碼與一裝置授權碼,包括:複數個主機選擇按鍵,該複數個主機選擇按鍵可自複數個主機編碼中擇一作為一候選主機編碼,該鍵盤可依據該候選主機編碼,自該複數個主機選擇其中之一作為一候選主機,複數個作業系統選擇按鍵,該複數個作業系統選擇按鍵可自複數個作業系統識別碼中擇一作為一候選作業系統識別碼,該鍵 盤可依據該候選作業系統識別碼,自該複數個作業系統選擇其中之一作為一候選作業系統;一儲存裝置,該儲存裝置可儲存一對照表,該對照表使各該複數個主機編碼對應到該複數個作業系統識別碼其中之一、該複數個裝置識別碼其中之一和該複數個裝置授權碼其中之一;一連接裝置;以及一通訊裝置,該通訊裝置可使該鍵盤與該候選主機進行無線連線;其中當該複數個主機選擇按鍵其中之一先被觸發,緊接著該連接裝置再被觸發時,該鍵盤依據該候選主機編碼,讀取對應的該裝置識別碼與該裝置授權碼,使該鍵盤與該候選主機進行無線連線;其中當該複數個作業系統選擇按鍵其中之一先被觸發,緊接著該連接裝置再被觸發時,該鍵盤將該候選主機編碼更新為該候選作業系統識別碼在該對照表中所對應的主機編碼,該鍵盤依據該更新後的候選主機編碼,讀取對應的該裝置識別碼與該裝置授權碼,使該鍵盤與該候選主機進行無線連線。 A keyboard can be wirelessly connected to a plurality of hosts, each of the plurality of hosts having an operating system, a device identification code and a device authorization code, including: a plurality of host selection buttons, the plurality of host selection buttons being self-selectable Selecting one of a plurality of host codes as a candidate host code, the keyboard may select one of the plurality of host as a candidate host according to the candidate host code, the plurality of operating system selection buttons, and the plurality of operating system selection buttons One of the plurality of operating system identification codes may be selected as a candidate operating system identification code, the key The disk may select one of the plurality of operating systems as a candidate operating system according to the candidate operating system identification code; and the storage device may store a comparison table, the matching table corresponding to each of the plurality of host codes One of the plurality of operating system identification codes, one of the plurality of device identification codes and one of the plurality of device authorization codes; a connection device; and a communication device that enables the keyboard and the The candidate host performs wireless connection; wherein when one of the plurality of host selection buttons is triggered first, and then the connection device is triggered again, the keyboard reads the corresponding device identification code according to the candidate host code and the a device authorization code for wirelessly connecting the keyboard to the candidate host; wherein when one of the plurality of operating system selection buttons is triggered first, and then the connecting device is triggered again, the keyboard updates the candidate host code For the candidate operating system identification code corresponding to the host code in the comparison table, the keyboard is based on the updated candidate host Code reading means corresponding to the identification code and the authorization code means, to make a connection with the wireless keyboard to the candidate host. 如申請專利範圍第6項所述之鍵盤,其中當該連接裝置被觸發時間超過一臨界時段,該鍵盤更新該候選主機編碼所對應的該作業系統識別碼、該裝置識別碼與該裝置授權碼。 The keyboard of claim 6, wherein when the connecting device is triggered for more than a critical period, the keyboard updates the operating system identification code, the device identification code, and the device authorization code corresponding to the candidate host code. . 如申請專利範圍第6項所述之鍵盤,其中該鍵盤更包含複數個主機指示燈與複數個作業系統指示燈,該複數個主機指示燈 分別對應於該複數個主機選擇按鍵,該複數個作業系統指示燈分別對應於該複數個作業系統選擇按鍵;其中當該複數個主機選擇按鍵其中之一先被觸發,緊接著該連接裝置再被觸發時,該鍵盤使被觸發的該主機選擇按鍵對應的主機指示燈點亮。 The keyboard of claim 6, wherein the keyboard further comprises a plurality of host indicators and a plurality of operating system indicators, the plurality of host indicators Corresponding to the plurality of host selection buttons respectively, the plurality of operating system indicator lights respectively corresponding to the plurality of operating system selection buttons; wherein when one of the plurality of host selection buttons is triggered first, the connecting device is When triggered, the keyboard lights up the host indicator corresponding to the host selection button that is triggered. 如申請專利範圍第8項所述之鍵盤,其中該鍵盤更將該候選作業系統識別碼更新為該候選主機編碼在該對照表中所對應的作業系統識別碼,並使該更新後的候選作業系統識別碼所對應的作業系統指示燈點亮。 The keyboard of claim 8, wherein the keyboard further updates the candidate operating system identifier to the operating system identifier corresponding to the candidate host code in the lookup table, and causes the updated candidate job The operating system indicator corresponding to the system ID is lit. 如申請專利範圍第6項所述之鍵盤,其中該鍵盤更包含複數個主機指示燈與複數個作業系統指示燈,該複數個主機指示燈分別對應於該複數個主機選擇按鍵,該複數個作業系統指示燈分別對應於該複數個作業系統選擇按鍵;其中當該複數個作業系統選擇按鍵其中之一先被觸發,緊接著該連接裝置再被觸發時,該鍵盤使被觸發的該作業系統選擇按鍵對應的作業系統指示燈點亮。 The keyboard of claim 6, wherein the keyboard further comprises a plurality of host indicators and a plurality of operating system indicators, wherein the plurality of host indicators respectively correspond to the plurality of host selection buttons, the plurality of jobs The system indicator lights respectively correspond to the plurality of operating system selection buttons; wherein when one of the plurality of operating system selection buttons is triggered first, and then the connecting device is triggered again, the keyboard selects the triggered operating system The operating system indicator corresponding to the button lights up. 如申請專利範圍第10項所述之鍵盤,其中該鍵盤更將該候選主機編碼更新為該候選作業系統識別碼在該對照表中所對應的主機編碼,並使該更新後的候選主機編碼所對應的主機指示燈點亮。 The keyboard of claim 10, wherein the keyboard further updates the candidate host code to a host code corresponding to the candidate operating system identifier in the lookup table, and causes the updated candidate host code base The corresponding host indicator lights up. 如申請專利範圍第11項所述之鍵盤,其中當該候選作業系統識別碼在該對照表中所對應的主機編碼數目為複數個時,則 使該候選作業系統識別碼在該對照表中所對應的複數個主機編碼對應的複數個主機指示燈皆點亮。 The keyboard of claim 11, wherein when the number of host codes corresponding to the candidate operating system identifier in the lookup table is plural, The plurality of host indicators corresponding to the plurality of host codes corresponding to the candidate operating system identifier in the comparison table are illuminated. 一種鍵盤的控制方法,包括:提供一鍵盤,該鍵盤包括一主機選擇裝置、一儲存裝置、一連接裝置及一通訊裝置,該鍵盤可與複數個主機進行無線連線,該複數個主機各別具有一裝置識別碼與一裝置授權碼;藉由該主機選擇裝置接受一第一操作,自複數個主機編碼中擇一作為一候選主機編碼,依據該候選主機編碼選擇該複數個主機其中之一作為一候選主機;藉由該儲存裝置儲存一對照表,且該對照表使各該複數個主機編碼對應到該複數個裝置識別碼其中之一和該複數個裝置授權碼其中之一;藉由該連接裝置接收一第二操作而被觸發,該第一操作與該第二操作相異;當該連接裝置被觸發時間小於等於一臨界時段時,依據該候選主機編碼讀取對應的該裝置識別碼與該裝置授權碼,使該鍵盤與該候選主機進行無線連線;以及當該連接裝置被觸發時間超過該臨界時段時,更新該候選主機編碼所對應的該裝置識別碼與該裝置授權碼。 A keyboard control method includes: providing a keyboard, the keyboard includes a host selection device, a storage device, a connection device, and a communication device, wherein the keyboard can be wirelessly connected to a plurality of hosts, the plurality of hosts respectively Having a device identification code and a device authorization code; wherein the host selection device accepts a first operation, selecting one of the plurality of host codes as a candidate host code, and selecting one of the plurality of hosts according to the candidate host code As a candidate host; storing, by the storage device, a lookup table, wherein the comparison table causes each of the plurality of host codes to correspond to one of the plurality of device identification codes and one of the plurality of device authorization codes; The connecting device is triggered by receiving a second operation, the first operation being different from the second operation; when the triggering device is triggered for less than or equal to a critical period, the corresponding device identification is read according to the candidate host code And the device authorization code, the keyboard is wirelessly connected to the candidate host; and when the connection device is triggered for more than The critical period, updating the device identification code of the corresponding candidate host encoded authorization code with the device. 如申請專利範圍第13項所述之控制方法,其中該鍵盤更包含一作業系統選擇裝置,該控制方法更包括:藉由該作業系統選擇裝置選擇複數個作業系統之一作為一 候選作業系統,該儲存裝置更儲存複數個作業系統識別碼,其中該對照表使各該複數個主機編碼對應到該複數個作業系統識別碼其中之一、該複數個裝置識別碼其中之一及該複數個裝置授權碼其中之一;以及依據該候選作業系統及該候選主機編碼決定該候選主機,該通訊裝置依據該候選作業系統發送對應的鍵碼以使該鍵盤控制該候選主機。 The control method of claim 13, wherein the keyboard further comprises an operating system selecting device, the controlling method further comprising: selecting one of the plurality of operating systems as one by the operating system selecting device a candidate operating system, wherein the storage device further stores a plurality of operating system identification codes, wherein the matching table causes each of the plurality of host codes to correspond to one of the plurality of operating system identification codes, one of the plurality of device identification codes, and One of the plurality of device authorization codes; and determining the candidate host according to the candidate operating system and the candidate host code, the communication device transmitting a corresponding key code according to the candidate operating system to cause the keyboard to control the candidate host. 一種鍵盤的控制方法,包括:提供一鍵盤,該鍵盤包括複數個主機選擇按鍵、複數個作業系統選擇按鍵、一儲存裝置、一連接裝置、以及一通訊裝置,該鍵盤可與複數個主機進行無線連線,該複數個主機各別具有一作業系統、一裝置識別碼與一裝置授權碼;藉由複數個主機選擇按鍵自複數個主機編碼中擇一作為一候選主機編碼,依據該候選主機編碼自該複數個主機選擇其中之一作為一候選主機;藉由複數個作業系統選擇按鍵自複數個作業系統識別碼中擇一作為一候選作業系統識別碼,依據該候選作業系統識別碼,自該複數個作業系統選擇其中之一作為一候選作業系統;藉由該儲存裝置儲存一對照表,該對照表使各複數個主機編碼對應到該複數個作業系統識別碼其中之一、該複數個裝置識別碼其中之一和該複數個裝置授權碼其中之一;藉由該通訊裝置使該鍵盤與該候選主機進行無線連線; 當該複數個主機選擇按鍵其中之一先被觸發,緊接著該連接裝置再被觸發時,該鍵盤依據該候選主機編碼,讀取對應的該裝置識別碼與該裝置授權碼,使該鍵盤與該候選主機進行無線連線;以及當該複數個作業系統選擇按鍵其中之一先被觸發,緊接著該連接裝置再被觸發時,該鍵盤將該候選主機編碼更新為該候選作業系統識別碼在該對照表中所對應的主機編碼,該鍵盤依據該更新後的候選主機編碼,讀取對應的該裝置識別碼與該裝置授權碼,使該鍵盤與該候選主機進行無線連線。 A keyboard control method includes: providing a keyboard, the keyboard includes a plurality of host selection buttons, a plurality of operating system selection buttons, a storage device, a connecting device, and a communication device, the keyboard can be wireless with a plurality of hosts The plurality of hosts respectively have an operating system, a device identification code and a device authorization code; and the plurality of host encoding buttons are selected as a candidate host encoding by the plurality of host selection buttons, according to the candidate host encoding Selecting one of the plurality of host systems as a candidate host; selecting, by a plurality of operating system selection buttons, one of the plurality of operating system identification codes as a candidate operating system identification code, according to the candidate operating system identification code, The plurality of operating systems select one of them as a candidate operating system; and the storage device stores a comparison table, wherein the matching table causes each of the plurality of host codes to correspond to one of the plurality of operating system identification codes, the plurality of devices One of the identification codes and one of the plurality of device authorization codes; The keyboard wireless connection with the candidate host; When one of the plurality of host selection buttons is triggered first, and then the connection device is triggered again, the keyboard reads the corresponding device identification code and the device authorization code according to the candidate host code, so that the keyboard and the keyboard are The candidate host performs wireless connection; and when one of the plurality of operating system selection buttons is triggered first, and then the connection device is triggered again, the keyboard updates the candidate host code to the candidate operating system identifier. The host code corresponding to the comparison table, the keyboard reads the corresponding device identification code and the device authorization code according to the updated candidate host code, so that the keyboard and the candidate host are wirelessly connected. 如申請專利範圍第15項所述之控制方法,其中當該連接裝置被觸發時間超過一臨界時段,更新該候選主機編碼所對應的該作業系統識別碼、該裝置識別碼與該裝置授權碼。 The control method of claim 15, wherein when the connection device is triggered for more than a critical period, the operating system identification code corresponding to the candidate host code, the device identification code, and the device authorization code are updated. 如申請專利範圍第15項所述之控制方法,其中該鍵盤更包含複數個主機指示燈與複數個作業系統指示燈,該複數個主機指示燈分別對應於該複數個主機選擇按鍵,該複數個作業系統指示燈分別對應於該複數個作業系統選擇按鍵;其中當該複數個主機選擇按鍵其中之一先被觸發,緊接著該連接裝置再被觸發時,使被觸發的該主機選擇按鍵對應的主機指示燈點亮;其中當該複數個作業系統選擇按鍵其中之一先被觸發,緊接著該連接裝置再被觸發時,使被觸發的該作業系統選擇按鍵對應的作業系統指示燈點亮。 The control method of claim 15, wherein the keyboard further comprises a plurality of host indicators and a plurality of operating system indicators, wherein the plurality of host indicators respectively correspond to the plurality of host selection buttons, the plurality of The operating system indicator lights respectively correspond to the plurality of operating system selection buttons; wherein when one of the plurality of host selection buttons is triggered first, and then the connecting device is triggered again, the triggered host selection button is correspondingly The host indicator is lit; wherein when one of the plurality of operating system selection buttons is triggered first, and then the connecting device is triggered again, the operating system indicator corresponding to the triggered operating system selection button is illuminated. 如申請專利範圍第17項所述之控制方法,更包括:將該候選作業系統識別碼更新為該候選主機編碼在該對照表中所對應的作業系統識別碼,並使該更新後的候選作業系統識別碼所對應的作業系統指示燈點亮。 The control method of claim 17, further comprising: updating the candidate operating system identifier to the operating system identifier corresponding to the candidate host code in the lookup table, and causing the updated candidate job The operating system indicator corresponding to the system ID is lit. 如申請專利範圍第17項所述之控制方法,更包括:將該候選主機編碼更新為該候選作業系統識別碼在該對照表中所對應的主機編碼,並使該更新後的候選主機編碼所對應的主機指示燈點亮。 The control method of claim 17, further comprising: updating the candidate host code to a host code corresponding to the candidate operating system identifier in the lookup table, and causing the updated candidate host code station The corresponding host indicator lights up. 如申請專利範圍第19項所述之控制方法,其中當該候選作業系統識別碼在該對照表中所對應的主機編碼數目為複數個時,則使該候選作業系統識別碼在該對照表中所對應的複數個主機編碼對應的複數個主機指示燈皆點亮。 The control method of claim 19, wherein when the number of host codes corresponding to the candidate operating system identifier in the lookup table is plural, the candidate operating system identifier is in the lookup table. A plurality of host indicators corresponding to the plurality of host codes are illuminated.
TW104113877A 2015-04-30 2015-04-30 Keyboard and control method thereof TWI578191B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW104113877A TWI578191B (en) 2015-04-30 2015-04-30 Keyboard and control method thereof
US15/140,612 US20160321448A1 (en) 2015-04-30 2016-04-28 Keyboard and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW104113877A TWI578191B (en) 2015-04-30 2015-04-30 Keyboard and control method thereof

Publications (2)

Publication Number Publication Date
TW201638731A TW201638731A (en) 2016-11-01
TWI578191B true TWI578191B (en) 2017-04-11

Family

ID=57850321

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104113877A TWI578191B (en) 2015-04-30 2015-04-30 Keyboard and control method thereof

Country Status (1)

Country Link
TW (1) TWI578191B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM406325U (en) * 2011-01-18 2011-06-21 Abbahome Inc Bluetooth device with real time switching feature
TWI443550B (en) * 2011-01-27 2014-07-01 Zippy Tech Corp Multi-standard switch to transfer the computer keyboard

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM406325U (en) * 2011-01-18 2011-06-21 Abbahome Inc Bluetooth device with real time switching feature
TWI443550B (en) * 2011-01-27 2014-07-01 Zippy Tech Corp Multi-standard switch to transfer the computer keyboard

Also Published As

Publication number Publication date
TW201638731A (en) 2016-11-01

Similar Documents

Publication Publication Date Title
US9892064B2 (en) Universal input device
US9357396B2 (en) Terminal device
TWI454929B (en) Wireless communications system, method of transferring pairing between wireless devices and non-transitory computer readable medium for storing computer code executable by processor at host device for transferring pairing between wireless devices
US8798543B2 (en) Easily operated wireless data transmission/reception system and easily operated wireless data transmission/reception program
CN104881133B (en) The combination of keyboard and its control method, computer system and keyboard and application program
US20160321448A1 (en) Keyboard and control method thereof
JP2018148286A (en) Electronic apparatus and control method
CN104160717A (en) Operation setting system for home electrical appliance
WO2018053711A1 (en) Smart door lock, and control method
TWI578191B (en) Keyboard and control method thereof
CN106559410B (en) Portable terminal device and control method thereof
US20190391670A1 (en) Terminal control method, system and setting adaptation apparatus
JP2010191993A (en) Information processor
KR101451678B1 (en) Qwerty Type Little Keyboard Which Can Do Quick Input
TW201640283A (en) Keyboard, control method of keyboard, computer system, and combination of keyboard and application program
CN104881148A (en) Keyboard and control method thereof
CN106020673B (en) Control method and electronic equipment
JP2008072262A (en) Communication system, communication method thereof, and mobile terminal
CN105788231A (en) Remote-control learning method and device and terminal electronic equipment
JP7043770B2 (en) Control program
JP7016737B2 (en) Electronic devices, control methods and programs
CN105550544A (en) Electric appliance unlocking method and system, electric appliance and electronic equipment
CN105549735A (en) Control method, control device and electronic device
CN106708512B (en) Method for starting OTG function of mobile terminal and mobile terminal
US20140198050A1 (en) Multifunction touch keyboard module