BACKGROUND
1. Technical Field
The present disclosure relates to an input system for a computer.
2. Description of Related Art
A user may use a keyboard or a mouse to input instructions, to prompt a server to perform functions, such as testing the server. Because servers may be rack mounted and without a keyboard and mouse, a user must provide the keyboard or mouse to communicate with the server. Hence, it is inconvenient if not impossible to communicate with the server when a keyboard and mouse is not found.
Therefore, there is room for improvement in the art.
BRIEF DESCRIPTION OF THE DRAWINGS
Many aspects of the present disclosure can be better understood with reference to the following drawing(s). The components in the drawing(s) are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawing(s), like reference numerals designate corresponding parts throughout the several views.
FIG. 1 is a block diagram of an embodiment of an input system for a computer of the present disclosure, wherein the input system includes a portable device and a conversion device.
FIG. 2 is a block diagram of the portable device of FIG. 1, wherein the portable device includes a controller.
FIG. 3 is a block diagram of the controller of FIG. 2.
FIG. 4 is a block diagram of the conversion device of FIG. 1, wherein the conversion device includes a processor.
FIG. 5 is a block diagram of the processor of FIG. 4.
FIG. 6 is a flow chart of an input method for a computer of the present disclosure.
DETAILED DESCRIPTION
FIG. 1 illustrates an embodiment of an input system 40 for a computer 10. The input system 40 includes a portable device 30, and a conversion device 20 connected between the computer 10 and the portable device 30. The portable device 30 outputs control signals to the conversion device 20 to prompt the computer 10 to perform substantially all the functions that can be invoked by a mouse or keyboard. A user may take a portable device 30 anywhere in place of a keyboard and a mouse.
In the embodiment, the portable device 30 includes a first interface 106. The conversion device 20 includes a second interface 104 and a third interface 102. The computer 10 includes a fourth interface 100. The first interface 106 is connected to the second interface 104, the second interface 104 is connected to the third interface 102, and the third interface 102 is connected to the fourth interface 100. In the embodiment, both of the first and second interfaces 106 and 104 are universal serial bus (USB) interfaces. The third and fourth interfaces 102 and 100 may be USB interfaces, or other types of interfaces, such as personal system/2 (PS/2) interface.
FIG. 2 shows that the portable device 30 further includes a keyboard module 112, a touchpad module 113, and a controller 114. The keyboard module 112 outputs key signals, such as outputting an “a” key signal when a key “A” of the keyboard module 112 is pressed. The touchpad module 113 outputs touching signals. For example, when a finger of a user swipes from right to left, the touchpad module 113 then generates a right-to-left swiping touching signal. The controller 114 is coupled to the keyboard module 112 and the touchpad module 113, to receive both types of the key signals and the touching signals. The controller 114 then generates control signals corresponding to the two types of key signals and the touching signals. In the embodiment, the portable device 30 is a laptop computer, where the keyboard module 112 is a keyboard of the laptop computer, the touchpad module 113 is a touchpad of the laptop computer, and the controller 114 is a central processing unit (CPU) of the laptop computer. In other embodiments, the portable device 30 may be a tablet computer, where a virtual keyboard, a touch screen, and a CPU of the tablet computer are respectively the keyboard module 112, the touchpad module 113, and the controller 114.
FIG. 3 shows that the controller 114 includes a receiving unit 300, a decode unit 301, and a display unit 302. The receiving unit 300 receives the key signals from the keyboard module 112 and the touching signals from the touchpad module 113. In the embodiment, the receiving unit 302 is an application program executed by the portable device 30. The decode unit 301 decodes both types of the key signals and the touching signals to generate the control signals corresponding to a communication type between the portable device 30 and the conversion device 20. The display unit 302 displays the cursor of the portable device 30.
FIG. 4 shows that the conversion device 20 further includes a processor 108 and a conversion chip 110. The processor 108 receives the control signals transmitted by the portable device 20, and delivers the control signals to the computer 10 through the third and fourth interfaces 102 and 100. In another embodiment, if the format or protocol of the communication type between the third and fourth interfaces 102 and 100 is different from the format or protocol of the communication type between the first and second interfaces 106 and 104, the conversion chip 110 converts the control signals to converted signals in compliance with the formats or communication protocols which are recognized by both the third and fourth interfaces 102 and 100.
FIG. 5 shows that the processor 108 includes a delivery unit 201 and a determination unit 202. In other embodiments, the third and fourth interfaces 102 and 100 may be personal system/2 (PS/2) interfaces. The determination unit 202 determines the format and protocol communication type between the computer 10 and the conversion device 20. If the computer 10 communicates with the conversion device 20 through a USB interface, the determination unit 202 prompts the delivery unit 200 to transmit the control signals from the portable device 30 to the computer 10. Alternatively, if the determination unit 202 determines that format or protocol of communication type between the computer 10 and the conversion device 20 is the PS/2 interface, the determination unit 202 prompts the conversion chip 110 to convert the control signals from the portable device 10 to the converted signals, and then prompts the converted signals to be transmitted by the delivery unit 201 to the computer 10. In other embodiments, the conversion chip 110 may be implemented by an application program.
The computer 10 receives the control signals or the converted signals and functions accordingly.
FIG. 6 shows an embodiment of an input method of the present disclosure. The input method includes steps below.
In step S1, the conversion device 20 is connected between the computer 10 and the portable device 30.
In step S2, the conversion device 20 obtains key signals and touching signals outputted by the portable device 30.
In step S3, the conversion device 20 encodes the key signals and the touching signals to generate corresponding control signals.
In step S4, the conversion device 20 determines the communication type between the computer 10 and the conversion device 20.
In step S5, the conversion device 20 determines whether the communication type between the computer 10 and the conversion device 20 is a USB interface. If the communication type between the computer 10 and the conversion device 20 is a USB interface, step S6 is implemented. If the communication type between the computer 10 and the conversion device 20 is a PS/2 interface, step S7 is implemented.
In step S6, the conversion device 20 transmits control signals to the computer 10.
In step S7, the conversion device 20 converts the control signals to converted signals, and transmits the converted signals to the computer 10.
While the disclosure has been described by way of example and in terms of a preferred embodiment, it is to be understood that the disclosure is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements as would be apparent to those skilled in the art. Therefore, the range of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.