# US 8,788,730 B2 · Method for sending a keycode of a non-keyboard apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 8,788,730 B2
- Document ID: US8788730B2
- Status: Granted
- Kind: B2
- Application number: 13/181,022
- Filed: 2011-07-12
- Published: 2012-08-02
- Granted: 2014-07-22
- Earliest claimed: 2011-01-31
- Assignees: Tenx Technology Inc.
- Applicants: Cheng-Hung Huang; Wei-Chih Yeh; Bo-Wen Cheng
- Inventors: Cheng-Hung Huang; Wei-Chih Yeh; Bo-Wen Cheng
- Web page: https://patentgrep.com/patent/US8788730B2

## CPC

- H03M 11/00: Coding in connection with keyboards or like devices, i.e. coding of the position of operated keys (keyboard switch arrangements, structural association of coders and keyboards H01H13/70, H03K17/94)
- G06F 3/0238: {Programmable keyboards (key guide holders G06F3/0224)}
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for sending a keycode of a non-keyboard apparatus is provided and includes the following steps. The non-keyboard apparatus determines the connection status between itself and a computer by the time required for device enumeration. Then, according to a value generated from device enumeration, the non-keyboard apparatus identifies the kind of operating system running on the computer. The non-keyboard apparatus sends to the computer a keycode corresponding to the Num Lock key and/or a keycode corresponding to the Caps Lock key such that a sending time and a feedback time are obtained. A parameter related to the efficiency of the computer is then calculated based.

## Claims

### Claim 1

A method for sending a keycode of a non-keyboard apparatus, comprising the steps of:
(a) connecting the non-keyboard apparatus to a computer so as to perform device enumeration and generate enumeration information, wherein the enumeration information is recorded by the non-keyboard apparatus and includes an enumeration value;
(b) identifying, according to the enumeration value, the kind of an operating system used by the computer, and recording the kind of the operating system by the non-keyboard apparatus; and
(c) reading the kind of the operating system so as to determine a preset second keycode that matches the kind of the operating system, wherein the second keycode is an ASCII (American Standard Code for Information Interchange) code.

### Claim 2 (depends on 1)

The method of claim 1, wherein the enumeration information further includes an enumeration time, and the method further comprises, between the steps (a) and (b), the step of: determining whether the enumeration time is greater than an original recorded enumeration time, wherein if the enumeration time is greater than the original recorded enumeration time, it is determined that the non-keyboard apparatus is connected to the computer for a first time, and the steps that follow, starting from the step (b), are executed; and if the enumeration time is not greater than the original recorded enumeration time, it is determined that the non-keyboard apparatus is not connected to the computer for the first time, and the steps that follow, starting from the step (b), are not executed.

### Claim 3 (depends on 1)

The method of claim 1, further comprising, between the steps (b) and (c), the steps of:
(I) sending a first keycode to the computer by the non-keyboard apparatus at a sending time, and recording the sending time by the non-keyboard apparatus, wherein the first keycode is selected from the group consisting of a keycode corresponding to the Num Lock key, a keycode corresponding to the Caps Lock key or a combination of two of these;
(II) feeding back to the non-keyboard apparatus, by the computer at a feedback time, that a first key corresponding to the first keycode is enabled, and recording the feedback time by the non-keyboard apparatus; and
(III) reading the sending time and the feedback time, and calculating a time elapsed therebetween so as to produce a computer efficiency parameter, wherein the computer efficiency parameter is recorded by the non-keyboard apparatus.

### Claim 4 (depends on 2)

The method of claim 2, further comprising, between the steps (b) and (c), the steps of:
(I) sending a first keycode to the computer by the non-keyboard apparatus at a sending time, and recording the sending time by the non-keyboard apparatus, wherein the first keycode is selected from the group consisting of a keycode corresponding to the Num Lock key, a keycode corresponding to the Caps Lock key or a combination of two of these;
(II) feeding back to the non-keyboard apparatus, by the computer at a feedback time, that a first key corresponding to the first keycode is enabled, and recording the feedback time by the non-keyboard apparatus; and
(III) reading the sending time and the feedback time, and calculating a time elapsed therebetween so as to produce a computer efficiency parameter, wherein the computer efficiency parameter is recorded by the non-keyboard apparatus.

### Claim 5 (depends on 3)

The method of claim 3, wherein the step (c) further comprises: reading the computer efficiency parameter so as to determine a time interval at which key characters are to be sent.

### Claim 6 (depends on 4)

The method of claim 4, wherein the step (c) further comprises: reading the computer efficiency parameter so as to determine a time interval at which key characters are to be sent.

### Claim 7 (depends on 5)

The method of claim 5, wherein the enumeration information further includes an original key status of the first keycode, and the method further comprises, after the step (c), the step of: determining, by the non-keyboard apparatus, whether a current key status of the first keycode is consistent with the original key status of the first keycode, wherein if no, the non-keyboard apparatus sends a third keycode to the computer, wherein the third keycode is selected from the group consisting of a keycode for disabling the Num Lock key, a keycode for disabling the Caps Lock key or a combination of two of these.

### Claim 8 (depends on 6)

The method of claim 6, wherein the enumeration information further includes an original key status of the first keycode, and the method further comprises, after the step (c), the step of: determining, by the non-keyboard apparatus, whether a current key status of the first keycode is consistent with the original key status of the first keycode, wherein if no, the non-keyboard apparatus sends a third keycode to the computer, wherein the third keycode is selected from the group consisting of a keycode for disabling the Num Lock key, a keycode for disabling the Caps Lock key or a combination of two of these.

### Claim 9 (depends on 3)

The method of claim 3, wherein the computer efficiency parameter satisfies the relationship of: the computer efficiency parameter≧(the feedback time−the sending time)/2.

### Claim 10 (depends on 4)

The method of claim 4, wherein the computer efficiency parameter satisfies the relationship of: the computer efficiency parameter≧(the feedback time−the sending time)/2.

### Claim 11

A method for sending a keycode of a non-keyboard apparatus, comprising the steps of:
(a) connecting the non-keyboard apparatus to a computer so as to perform device enumeration and generate enumeration information, wherein the enumeration information is recorded by the non-keyboard apparatus;
(b) setting information related to the kind of an operating system, and recording the information by the non-keyboard apparatus;
(c) sending a first keycode to the computer by the non-keyboard apparatus at a sending time, and recording the sending time by the non-keyboard apparatus, wherein the first keycode is selected from the group consisting of a keycode corresponding to the Num Lock key, a keycode corresponding to the Caps Lock key or a combination of two of these;
(d) feeding back to the non-keyboard apparatus, by the computer at a feedback time, that a first key corresponding to the first keycode is enabled, and recording the feedback time by the non-keyboard apparatus;
(e) reading the sending time and the feedback time, and calculating a time elapsed therebetween so as to produce a computer efficiency parameter, wherein the computer efficiency parameter is recorded by the non-keyboard apparatus; and
(f) reading the kind of the operating system so as to determine a preset second keycode that matches the kind of the operating system, wherein the second keycode includes a plurality of key characters; and reading the computer efficiency parameter so as to determine a time interval at which the key characters are to be sent, wherein the second keycode is an ASCII (American Standard Code for Information Interchange) code.

### Claim 12 (depends on 11)

The method of claim 11, wherein the enumeration information further includes an enumeration time, and the method further comprises, between the steps (a) and (b), the step of: determining whether the enumeration time is greater than an original recorded enumeration time, wherein if the enumeration time is greater than the original recorded enumeration time, it is determined that the non-keyboard apparatus is connected to the computer for a first time, and the steps that follow, starting from the step (b), are executed; and if the enumeration time is not greater than the original recorded enumeration time, it is determined that the non-keyboard apparatus is not connected to the computer for the first time, and the steps that follow, starting from the step (b), are not executed.

### Claim 13 (depends on 11)

The method of claim 11, wherein the enumeration information further includes an original key status of the first keycode, and the method further comprises, after the step (f), the step of: determining, by the non-keyboard apparatus, whether a current key status of the first keycode is consistent with the original key status of the first keycode, wherein if no, the non-keyboard apparatus sends a third keycode to the computer, wherein the third keycode is selected from the group consisting of a keycode for disabling the Num Lock key, a keycode for disabling the Caps Lock key or a combination of two of these.

### Claim 14 (depends on 12)

The method of claim 12, wherein the enumeration information further includes an original key status of the first keycode, and the method further comprises, after the step (f), the step of: determining, by the non-keyboard apparatus, whether a current key status of the first keycode is consistent with the original key status of the first keycode, wherein if no, the non-keyboard apparatus sends a third keycode to the computer, wherein the third keycode is selected from the group consisting of a keycode for disabling the Num Lock key, a keycode for disabling the Caps Lock key or a combination of two of these.

### Claim 15 (depends on 11)

The method of claim 11, wherein the computer efficiency parameter satisfies the relationship of: the computer efficiency parameter≧(the feedback time−the sending time)/2.
