TWI654540B - Virtual input management device and management method thereof - Google Patents
Virtual input management device and management method thereofInfo
- Publication number
- TWI654540B TWI654540B TW107110366A TW107110366A TWI654540B TW I654540 B TWI654540 B TW I654540B TW 107110366 A TW107110366 A TW 107110366A TW 107110366 A TW107110366 A TW 107110366A TW I654540 B TWI654540 B TW I654540B
- Authority
- TW
- Taiwan
- Prior art keywords
- switching module
- arbiter
- module
- virtual input
- input device
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
- G06F9/4413—Plug-and-play [PnP]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Systems (AREA)
- Programmable Controllers (AREA)
Abstract
一種虛擬輸入管理裝置及其管理方法。虛擬輸入管理裝置包括切換模組、虛擬輸入模組以及仲裁器。切換模組接收主機的第一指令,並依據仲裁器的指示而切換至第一模式或第二模式。當實體輸入裝置未耦接至切換模組時,切換模組切換至第一模式,並將第一指令傳送至虛擬輸入模組。虛擬輸入模組輸出第一回應訊號,並經由切換模組回傳給主機。當實體輸入裝置耦接至切換模組時,切換模組切換至第二模式,並將第一指令傳送至實體輸入裝置。實體輸入裝置輸出第二回應訊號,並經由切換模組回傳給主機。A virtual input management device and a management method thereof. The virtual input management device includes a switching module, a virtual input module, and an arbiter. The switching module receives the first command from the host and switches to the first mode or the second mode according to the instruction of the arbiter. When the physical input device is not coupled to the switching module, the switching module switches to the first mode and sends a first instruction to the virtual input module. The virtual input module outputs a first response signal and returns it to the host via the switching module. When the physical input device is coupled to the switching module, the switching module switches to the second mode and transmits the first instruction to the physical input device. The physical input device outputs a second response signal and sends it back to the host through the switching module.
Description
本發明是有關於一種電子裝置,特別是關於一種虛擬輸入管理裝置及其管理方法。The invention relates to an electronic device, in particular to a virtual input management device and a management method thereof.
一般而言,電腦在開機過程中,作業系統(Operating System,OS)可透過自我檢測程序來判斷是否有外接裝置與電腦連接,以便安裝與外接裝置相對應的驅動程式。然而,對於採用PS/2介面與電腦連接的PS/2輸入裝置而言,若於自我檢測程序之後才連接PS/2輸入裝置,電腦將不會安裝PS/2輸入裝置的驅動程式,故使用者將無法使用PS/2輸入裝置。Generally speaking, during the startup process of a computer, an operating system (OS) can determine whether an external device is connected to the computer through a self-test procedure in order to install a driver corresponding to the external device. However, for a PS / 2 input device connected to a computer using a PS / 2 interface, if the PS / 2 input device is connected after the self-test procedure, the computer will not install the driver for the PS / 2 input device, so use Users will not be able to use PS / 2 input devices.
因此,有必要提供一種虛擬輸入管理裝置,以解決PS/2輸入裝置無法隨插即用的問題。Therefore, it is necessary to provide a virtual input management device to solve the problem that the PS / 2 input device cannot be plugged and used.
本發明提供一種虛擬輸入管理裝置及其管理方法,可於電腦開機時預先安裝實體輸入裝置的驅動程式,以使實體輸入裝置支援隨插即用的功能。The invention provides a virtual input management device and a management method thereof. A driver of a physical input device can be installed in advance when a computer is turned on, so that the physical input device supports a plug and play function.
本發明的實施例提供一種虛擬輸入管理裝置。所述虛擬輸入管理裝置包括切換模組、虛擬輸入模組以及仲裁器。切換模組耦接主機,以便接收主機傳送的第一指令。切換模組可切換至第一模式或第二模式。虛擬輸入模組耦接切換模組。仲裁器耦接切換模組,以便持續偵測實體輸入裝置是否耦接至切換模組。當仲裁器偵測到實體輸入裝置未耦接至切換模組時,仲裁器指示切換模組切換至第一模式,以便將切換模組所接收的第一指令傳送至虛擬輸入模組。虛擬輸入模組依據所接收的第一指令來輸出第一回應訊號,並經由切換至第一模式的切換模組傳送第一回應訊號給主機。當仲裁器偵測到實體輸入裝置耦接至切換模組時,仲裁器指示切換模組切換至第二模式,以便將切換模組所接收的第一指令傳送至實體輸入裝置。實體輸入裝置依據所接收的第一指令來輸出第二回應訊號,並經由切換至第二模式的切換模組傳送第二回應訊號給主機。An embodiment of the present invention provides a virtual input management apparatus. The virtual input management device includes a switching module, a virtual input module, and an arbiter. The switching module is coupled to the host so as to receive a first command sent by the host. The switching module can switch to the first mode or the second mode. The virtual input module is coupled to the switching module. The arbiter is coupled to the switching module in order to continuously detect whether the physical input device is coupled to the switching module. When the arbiter detects that the physical input device is not coupled to the switching module, the arbiter instructs the switching module to switch to the first mode in order to transmit the first instruction received by the switching module to the virtual input module. The virtual input module outputs a first response signal according to the received first command, and transmits the first response signal to the host via the switching module switched to the first mode. When the arbiter detects that the physical input device is coupled to the switching module, the arbiter instructs the switching module to switch to the second mode in order to transmit the first instruction received by the switching module to the physical input device. The physical input device outputs a second response signal according to the received first command, and sends the second response signal to the host via the switching module switched to the second mode.
本發明的實施例提供一種虛擬輸入管理方法。所述虛擬輸入管理方法包括:由仲裁器持續偵測實體輸入裝置是否耦接至切換模組;當仲裁器偵測到實體輸入裝置未耦接至切換模組時,仲裁器指示切換模組切換至第一模式,以便將主機所傳送的第一指令傳送至虛擬輸入模組,虛擬輸入模組依據所接收的第一指令來輸出第一回應訊號,並經由切換至第一模式的切換模組傳送第一回應訊號給主機;當仲裁器偵測到實體輸入裝置耦接至切換模組時,仲裁器指示切換模組切換至第二模式,以便將主機所傳送的第一指令傳送至實體輸入裝置,實體輸入裝置依據所接收的第一指令來輸出第二回應訊號,並經由切換至第二模式的切換模組傳送第二回應訊號給主機。An embodiment of the present invention provides a virtual input management method. The virtual input management method includes: the arbiter continuously detects whether the physical input device is coupled to the switching module; when the arbiter detects that the physical input device is not coupled to the switching module, the arbiter instructs the switching module to switch To the first mode, so as to transmit the first command sent by the host to the virtual input module, the virtual input module outputs a first response signal according to the received first command, and switches to the first mode switching module Send a first response signal to the host; when the arbiter detects that the physical input device is coupled to the switching module, the arbiter instructs the switching module to switch to the second mode in order to send the first command sent by the host to the physical input Device, the physical input device outputs a second response signal according to the received first command, and sends the second response signal to the host via a switching module that switches to the second mode.
基於上述,本發明諸實施例所述的虛擬輸入管理裝置及其管理方法,可藉由虛擬輸入模組來模擬實體輸入裝置的行為。當實體輸入裝置尚未耦接至切換模組時,可經由虛擬輸入模組與主機進行通訊,以便預先安裝對應於實體輸入裝置的驅動程式。當實體輸入裝置耦接於切換模組時,則自動關閉虛擬輸入模組的功能,以便啟用實體輸入裝置。因此,所述虛擬輸入管理裝置及其管理方法,可提供PS/2輸入裝置原先不支援的熱插拔(隨插即用)功能。Based on the above, the virtual input management device and the management method thereof according to the embodiments of the present invention can simulate the behavior of a physical input device through a virtual input module. When the physical input device is not yet coupled to the switching module, the virtual input module can communicate with the host to pre-install a driver corresponding to the physical input device. When the physical input device is coupled to the switching module, the function of the virtual input module is automatically turned off to enable the physical input device. Therefore, the virtual input management device and the management method thereof can provide a hot plugging (plug and play) function that was not originally supported by the PS / 2 input device.
為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above features and advantages of the present invention more comprehensible, embodiments are hereinafter described in detail with reference to the accompanying drawings.
圖1是依照本發明一實施例的虛擬輸入管理裝置的電路方塊圖。如圖1所示,虛擬輸入管理裝置10包括切換模組101、虛擬輸入模組102以及仲裁器(arbitrator)102。切換模組101耦接主機11,以便接收主機11傳送的第一指令CM1。主機11可以是電腦、伺服器或其他行動裝置。主機11也可以是電腦、伺服器或其他行動裝置的處理器。虛擬輸入模組102耦接切換模組101。仲裁器103耦接切換模組101,以便監控實體輸入裝置12是否耦接至切換模組101。FIG. 1 is a circuit block diagram of a virtual input management apparatus according to an embodiment of the present invention. As shown in FIG. 1, the virtual input management device 10 includes a switching module 101, a virtual input module 102, and an arbitrator 102. The switching module 101 is coupled to the host 11 so as to receive a first command CM1 transmitted by the host 11. The host 11 may be a computer, a server, or other mobile devices. The host 11 may also be a processor of a computer, server, or other mobile device. The virtual input module 102 is coupled to the switching module 101. The arbiter 103 is coupled to the switching module 101 so as to monitor whether the physical input device 12 is coupled to the switching module 101.
切換模組101可依據仲裁器103的指示而在第一模式(EN=1)與第二模式(EN=0)之間進行切換。當仲裁器103偵測到實體輸入裝置12未耦接至切換模組101時,仲裁器103可指示切換模組切換至第一模式(EN=1),以便將切換模組101所接收的第一指令CM1傳送至虛擬輸入模組102。虛擬輸入模組102可依據接收到的第一指令CM1來輸出第一回應訊號RS1,並經由切換至第一模式(EN=1)的切換模組101將第一回應訊號RS1傳送給主機11。當主機11接收到第一回應訊號RS1時,主機11將安裝對應於實體輸入裝置12的驅動程式。The switching module 101 can switch between the first mode (EN = 1) and the second mode (EN = 0) according to an instruction of the arbiter 103. When the arbiter 103 detects that the physical input device 12 is not coupled to the switching module 101, the arbiter 103 may instruct the switching module to switch to the first mode (EN = 1) so as to switch the first received by the switching module 101. A command CM1 is transmitted to the virtual input module 102. The virtual input module 102 can output a first response signal RS1 according to the received first command CM1, and transmit the first response signal RS1 to the host 11 via the switching module 101 switched to the first mode (EN = 1). When the host 11 receives the first response signal RS1, the host 11 will install a driver corresponding to the physical input device 12.
當仲裁器103偵測到實體輸入裝置12耦接至切換模組101時,仲裁器103可指示切換模組101切換至第二模式(EN=0),以便將切換模組101所接收的第一指令CM1傳送至實體輸入裝置12。實體輸入裝置12可依據接收到的第一指令CM1來輸出第二回應訊號RS2,並經由切換至第二模式(EN=0)的切換模組101將第二回應訊號RS2傳送給主機11。When the arbiter 103 detects that the physical input device 12 is coupled to the switching module 101, the arbiter 103 may instruct the switching module 101 to switch to the second mode (EN = 0), so that the first A command CM1 is transmitted to the physical input device 12. The physical input device 12 may output a second response signal RS2 according to the received first command CM1, and transmit the second response signal RS2 to the host 11 via the switching module 101 switched to the second mode (EN = 0).
於圖1的實施例中,虛擬輸入模組102可以是虛擬鍵盤或虛擬滑鼠,實體輸入裝置12可以是採用PS/2或 RS-485連接介面的實體鍵盤或實體滑鼠。切換模組101包括控制器1011與開關1012。控制器1011耦接開關1012。控制器1011例如是Intel 8042晶片。Intel 8042內部有一個狀態暫存器,供外界檢測虛擬輸入模組102或實體輸入裝置12的狀態;一個輸出埠和一個輸入埠,用來做為與外界的控制訊號使用;一個輸入緩衝器和一個輸出緩衝器,用來存放與外界的界面資料,包括命令和資料等。第一模式(EN=1)表示實體輸入裝置12未耦接至切換模組101,而第二模式(EN=0)則表示實體輸入裝置12耦接至切換模組101。切換模組101可藉由開關1012來切換第一模式(EN=1)與第二模式(EN=0),並藉由控制器1011將開關1012的切換狀態回傳給主機11。在一實施例中,虛擬輸入管理裝置10具有一暫存器,以儲存用以表示開關1012的切換狀態為第一模式(EN=1)或第二模式(EN=0)的資訊。當開關1012為第一模式時,主機11所傳送的第一指令CM1可經由控制器1011與開關1012傳送至虛擬輸入模組102,並且第一回應訊號RS1可經由控制器1011與開關1012傳送至主機11;當開關1012為第二模式時,主機11所傳送的第一指令CM1可經由控制器1011與開關1012傳送至實體輸入裝置12,並且第二回應訊號RS2可經由控制器1011與開關1012傳送至主機11。In the embodiment of FIG. 1, the virtual input module 102 may be a virtual keyboard or a virtual mouse, and the physical input device 12 may be a physical keyboard or a mouse using a PS / 2 or RS-485 connection interface. The switching module 101 includes a controller 1011 and a switch 1012. The controller 1011 is coupled to the switch 1012. The controller 1011 is, for example, an Intel 8042 chip. The Intel 8042 has a status register for the outside world to detect the status of the virtual input module 102 or the physical input device 12. An output port and an input port are used as control signals with the outside world. An input buffer and An output buffer is used to store interface information with the outside world, including commands and information. The first mode (EN = 1) indicates that the physical input device 12 is not coupled to the switching module 101, and the second mode (EN = 0) indicates that the physical input device 12 is coupled to the switching module 101. The switching module 101 can switch the first mode (EN = 1) and the second mode (EN = 0) by the switch 1012, and the controller 1011 returns the switching state of the switch 1012 to the host 11. In one embodiment, the virtual input management device 10 has a register to store information used to indicate that the switching state of the switch 1012 is the first mode (EN = 1) or the second mode (EN = 0). When the switch 1012 is in the first mode, the first command CM1 transmitted by the host 11 can be transmitted to the virtual input module 102 through the controller 1011 and the switch 1012, and the first response signal RS1 can be transmitted to the controller 1011 and the switch 1012 to Host 11; when the switch 1012 is in the second mode, the first command CM1 transmitted by the host 11 can be transmitted to the physical input device 12 through the controller 1011 and the switch 1012, and the second response signal RS2 can be transmitted through the controller 1011 and the switch 1012 Transfer to host 11.
舉例來說,圖2是依照本發明一實施例的虛擬輸入管理方法的流程示意圖。請參照圖1與圖2所示,於步驟S300中,仲裁器103會監控實體輸入裝置12是否耦接至切換模組101。當仲裁器103偵測到實體輸入裝置12未耦接至切換模組101時,則執行步驟S311,仲裁器103會指示切換模組101切換至第一模式(EN=1),切換模組101則藉由開關1012切換至第一模式(EN=1),並將主機11所傳送的第一指令CM1傳送至虛擬輸入模組102。接著,虛擬輸入模組102執行步驟S312,依據所接收的第一指令CM1來輸出第一回應訊號RS1,並經由切換模組101的控制器1011傳送第一回應訊號RS1給主機11。當步驟S312執行完畢後,主機11便會安裝對應於實體輸入裝置12的驅動程式。For example, FIG. 2 is a schematic flowchart of a virtual input management method according to an embodiment of the present invention. Please refer to FIG. 1 and FIG. 2. In step S300, the arbiter 103 monitors whether the physical input device 12 is coupled to the switching module 101. When the arbiter 103 detects that the physical input device 12 is not coupled to the switching module 101, it executes step S311, and the arbiter 103 instructs the switching module 101 to switch to the first mode (EN = 1), and the switching module 101 Then, the switch 1012 is switched to the first mode (EN = 1), and the first command CM1 transmitted by the host 11 is transmitted to the virtual input module 102. Next, the virtual input module 102 executes step S312 to output a first response signal RS1 according to the received first command CM1, and transmits the first response signal RS1 to the host 11 via the controller 1011 of the switching module 101. When step S312 is completed, the host 11 will install a driver corresponding to the physical input device 12.
於實際應用時,切換模組101的預設值為第一模式(EN=1),即主機11開機時,切換模組101是耦接於虛擬輸入模組102。仲裁器103會持續監控實體輸入裝置12與切換模組101的耦接狀態。當仲裁器103偵測到實體輸入裝置12耦接至切換模組101時,則執行步驟S321,仲裁器103會指示切換模組101切換至第二模式(EN=0),切換模組101則藉由開關1012切換至第二模式(EN=0),並將主機11所傳送的第一指令CM1傳送至實體輸入裝置12。接著,實體輸入裝置12執行步驟S322,依據所接收的第一指令CM1來輸出第二回應訊號RS2,並經由切換模組101的控制器1011傳送第二回應訊號RS2給主機11。In practical applications, the default value of the switching module 101 is the first mode (EN = 1), that is, when the host 11 is turned on, the switching module 101 is coupled to the virtual input module 102. The arbiter 103 continuously monitors the coupling state of the physical input device 12 and the switching module 101. When the arbiter 103 detects that the physical input device 12 is coupled to the switching module 101, it executes step S321, the arbiter 103 instructs the switching module 101 to switch to the second mode (EN = 0), and the switching module 101 then The switch 1012 is switched to the second mode (EN = 0), and the first command CM1 transmitted by the host 11 is transmitted to the physical input device 12. Next, the physical input device 12 executes step S322, outputs a second response signal RS2 according to the received first command CM1, and transmits the second response signal RS2 to the host 11 via the controller 1011 of the switching module 101.
圖3是依照本發明一實施例說明圖1的虛擬輸入模組102的電路方塊圖。於圖3的實施例中,虛擬輸入模組102包括解碼器1021、索引表1022與輸出訊號產生器1023。解碼器1021耦接至索引表1022。輸出訊號產生器1023耦接至解碼器1021與索引表1022。解碼器1021可對主機11傳送的第一指令CM1進行解碼,以產生解碼資訊10211。索引表1022建置有對應於第一指令CM1的索引資訊10221。在本實施例中,因為來自主機的一個指令可能需要多個回應訊號,需要經由解碼器1021提供第一指令CM1的資訊以及輸出訊號產生器1023提供此次為第幾個回應的資訊,來共同決定索引表1022所輸出的值,以使之作為所述第幾個回應的回應訊號。輸出訊號產生器1023可依實際需求而產生不同的輸出訊號,例如:當虛擬輸入模組102欲回應第一指令CM1時,輸出訊號產生器1023可輸出第一回應訊號RS1。當虛擬輸入模組102欲阻斷仲裁器103偵測實體輸入裝置12與切換模組101的耦接狀態時,輸出訊號產生器1023可輸出中斷訊號IS。當虛擬輸入模組102欲通知仲裁器102暫停偵測實體輸入裝置12與切換模組101的耦接狀態時,輸出訊號產生器1023可輸出通知訊號NS。在一實施例中,解碼器1021或/及索引表1022可整合至輸出訊號產生器1023中。FIG. 3 is a circuit block diagram illustrating the virtual input module 102 of FIG. 1 according to an embodiment of the present invention. In the embodiment of FIG. 3, the virtual input module 102 includes a decoder 1021, an index table 1022, and an output signal generator 1023. The decoder 1021 is coupled to the index table 1022. The output signal generator 1023 is coupled to the decoder 1021 and the index table 1022. The decoder 1021 may decode the first command CM1 transmitted by the host 11 to generate decoded information 10211. The index table 1022 is constructed with index information 10221 corresponding to the first command CM1. In this embodiment, since a command from the host may require multiple response signals, it is necessary to provide the information of the first command CM1 through the decoder 1021 and the output signal generator 1023 to provide the information of the several responses this time to jointly The value output by the index table 1022 is determined to be the response signal of the several responses. The output signal generator 1023 can generate different output signals according to actual needs. For example, when the virtual input module 102 wants to respond to the first command CM1, the output signal generator 1023 can output the first response signal RS1. When the virtual input module 102 wants to block the arbiter 103 from detecting the coupling state of the physical input device 12 and the switching module 101, the output signal generator 1023 can output an interrupt signal IS. When the virtual input module 102 wants to notify the arbiter 102 to suspend detecting the coupling state of the physical input device 12 and the switching module 101, the output signal generator 1023 can output a notification signal NS. In an embodiment, the decoder 1021 or / and the index table 1022 may be integrated into the output signal generator 1023.
舉例來說,請參照圖1與圖3所示,當輸出訊號產生器1023傳送第一回應訊號RS1至切換模組101的期間,例如第一回應訊號RS1尚未完全傳送完畢時,仲裁器103偵測到實體輸入裝置12耦接至切換模組101,此時輸出訊號產生器1023可輸出中斷訊號IS至仲裁器103,以阻斷仲裁器103的偵測功能,使仲裁器103無法偵測到實體輸入裝置12耦接至切換模組101。於另一實施例中,虛擬輸入模組102亦可藉由通知訊號NS來通知仲裁器102暫停偵測實體輸入裝置12與切換模組101的耦接狀態。For example, please refer to FIG. 1 and FIG. 3, when the output signal generator 1023 transmits the first response signal RS1 to the switching module 101, for example, when the first response signal RS1 is not completely transmitted, the arbiter 103 detects It is detected that the physical input device 12 is coupled to the switching module 101. At this time, the output signal generator 1023 can output the interrupt signal IS to the arbiter 103 to block the detection function of the arbiter 103 and prevent the arbiter 103 from detecting. The physical input device 12 is coupled to the switching module 101. In another embodiment, the virtual input module 102 can also notify the arbiter 102 to suspend detecting the coupling state of the physical input device 12 and the switching module 101 by a notification signal NS.
舉例來說,請參照圖1與圖3所示,當輸出訊號產生器1023開始傳送第一回應訊號RS1至切換模組101時,輸出訊號產生器1023可發出通知訊號NS至仲裁器103,以通知仲裁器103暫停偵測實體輸入裝置12與切換模組101的耦接狀態。當輸出訊號產生器1023已將第一回應訊號RS1傳輸完畢後,輸出訊號產生器1023可再次發出通知訊號NS至仲裁器103,以通知仲裁器103可以繼續偵測實體輸入裝置12是否耦接至切換模組101。For example, please refer to FIG. 1 and FIG. 3, when the output signal generator 1023 starts to transmit the first response signal RS1 to the switching module 101, the output signal generator 1023 may send a notification signal NS to the arbiter 103 to The arbiter 103 is notified to suspend detecting the coupling state of the physical input device 12 and the switching module 101. After the output signal generator 1023 has transmitted the first response signal RS1, the output signal generator 1023 can send a notification signal NS to the arbiter 103 again to inform the arbiter 103 that it can continue to detect whether the physical input device 12 is coupled to Switch module 101.
圖4是依照本發明一實施例說明虛擬輸入模組產生第一回應訊號的示意圖。請參照圖3與圖4所示,輸出訊號產生器1013所產生的第一回應訊號RS1包括時脈訊號Clock與資料訊號Data。於圖4的實施例中,時脈訊號Clock的頻率為12MHz,在單次傳輸中會包括11次震盪。資料訊號Data包括開始、資料位元DATA0-DATA7、檢查位元PARITY、結束等四部分,其中資料位元DATA0-DATA7由查詢索引表1022來決定。切換模組101接收第一回應訊號RS1時,可在時脈下降邊緣(clock falling edge)(如圖4箭號處)對資料訊號Data做取樣(如圖4虛線處),如此可確保不會取樣錯誤。當取樣完成後,切換模組101便會將第一回應訊號RS1傳送給主機11,以便讓主機11安裝對應於實體輸入裝置12的驅動程式。FIG. 4 is a schematic diagram illustrating that the virtual input module generates a first response signal according to an embodiment of the present invention. Please refer to FIG. 3 and FIG. 4. The first response signal RS1 generated by the output signal generator 1013 includes a clock signal Clock and a data signal Data. In the embodiment of FIG. 4, the frequency of the clock signal Clock is 12 MHz, and 11 oscillations are included in a single transmission. The data signal Data includes four parts: start, data bits DATA0-DATA7, check bits PARITY, and end. The data bits DATA0-DATA7 are determined by querying the index table 1022. When the switching module 101 receives the first response signal RS1, it can sample the data signal Data at the clock falling edge (as shown by the arrow in Fig. 4) (as shown by the dotted line in Fig. 4). Sampling error. When the sampling is completed, the switching module 101 sends the first response signal RS1 to the host 11 so that the host 11 can install a driver corresponding to the physical input device 12.
綜上所述,本發明諸實施例所述的虛擬輸入管理裝置及其管理方法,可藉由虛擬輸入模組來模擬實體輸入裝置的行為。當實體輸入裝置尚未耦接至切換模組時,可經由虛擬輸入模組與主機進行通訊,以便預先安裝對應於實體輸入裝置的驅動程式。當實體輸入裝置耦接於切換模組時,則自動關閉虛擬輸入模組的功能,以便啟用實體輸入裝置。因此,所述虛擬輸入管理裝置及其管理方法,可提供PS/2連接裝置或 RS-485連接裝置原先不支援的熱插拔(隨插即用)功能。In summary, the virtual input management device and its management method according to the embodiments of the present invention can simulate the behavior of a physical input device through a virtual input module. When the physical input device is not yet coupled to the switching module, the virtual input module can communicate with the host to pre-install a driver corresponding to the physical input device. When the physical input device is coupled to the switching module, the function of the virtual input module is automatically turned off to enable the physical input device. Therefore, the virtual input management device and the management method thereof can provide a hot plug (plug and play) function that was not originally supported by a PS / 2 connection device or an RS-485 connection device.
雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed as above with the examples, it is not intended to limit the present invention. Any person with ordinary knowledge in the technical field can make some modifications and retouching without departing from the spirit and scope of the present invention. The protection scope of the present invention shall be determined by the scope of the attached patent application.
10‧‧‧虛擬輸入管理裝置10‧‧‧Virtual Input Management Device
11‧‧‧主機 11‧‧‧Host
12‧‧‧實體輸入裝置 12‧‧‧ physical input device
101‧‧‧切換模組 101‧‧‧Switch Module
102‧‧‧虛擬輸入模組 102‧‧‧Virtual Input Module
103‧‧‧仲裁器 103‧‧‧Arbiter
1011‧‧‧控制器 1011‧‧‧ Controller
1012‧‧‧開關 1012‧‧‧Switch
1021‧‧‧解碼器 1021‧‧‧ Decoder
1022‧‧‧索引表 1022‧‧‧ Index Table
1023‧‧‧輸出訊號產生器 1023‧‧‧ Output Signal Generator
10211‧‧‧解碼資訊 10211‧‧‧ Decoding Information
10221‧‧‧索引資訊 10221‧‧‧ Index Information
Clock‧‧‧時脈訊號 Clock‧‧‧
CM1‧‧‧第一指令 CM1‧‧‧First instruction
Data‧‧‧資料訊號 Data‧‧‧ Data Signal
DATA0~DATA7‧‧‧資料位元 DATA0 ~ DATA7‧‧‧Data bits
EN=0‧‧‧第二模式 EN = 0‧‧‧Second mode
EN=1‧‧‧第一模式 EN = 1‧‧‧First mode
IS‧‧‧中斷訊號 IS‧‧‧ interrupt signal
NS‧‧‧通知訊號 NS‧‧‧Notification signal
PARITY‧‧‧檢查位元 PARITY‧‧‧Check bits
RS1‧‧‧第一回應訊號 RS1‧‧‧First response signal
RS2‧‧‧第二回應訊號 RS2‧‧‧Second response signal
S300、S311~S312、S321~S322‧‧‧方法步驟 S300, S311 ~ S312, S321 ~ S322‧‧‧Method steps
圖1是依照本發明一實施例的虛擬輸入管理裝置的電路方塊圖。 圖2是依照本發明一實施例的虛擬輸入管理方法的流程示意圖。 圖3是依照本發明一實施例說明圖1的虛擬輸入模組的電路方塊圖。 圖4是依照本發明一實施例說明虛擬輸入模組產生第一回應訊號的示意圖。FIG. 1 is a circuit block diagram of a virtual input management apparatus according to an embodiment of the present invention. FIG. 2 is a schematic flowchart of a virtual input management method according to an embodiment of the present invention. FIG. 3 is a circuit block diagram illustrating the virtual input module of FIG. 1 according to an embodiment of the present invention. FIG. 4 is a schematic diagram illustrating that the virtual input module generates a first response signal according to an embodiment of the present invention.
Claims (10)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107110366A TWI654540B (en) | 2018-03-26 | 2018-03-26 | Virtual input management device and management method thereof |
CN201811626041.6A CN110362349B (en) | 2018-03-26 | 2018-12-28 | Virtual input management device and management method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107110366A TWI654540B (en) | 2018-03-26 | 2018-03-26 | Virtual input management device and management method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI654540B true TWI654540B (en) | 2019-03-21 |
TW201941020A TW201941020A (en) | 2019-10-16 |
Family
ID=66590848
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW107110366A TWI654540B (en) | 2018-03-26 | 2018-03-26 | Virtual input management device and management method thereof |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110362349B (en) |
TW (1) | TWI654540B (en) |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6658507B1 (en) * | 1998-08-31 | 2003-12-02 | Wistron Corporation | System and method for hot insertion of computer-related add-on cards |
CN1265265C (en) * | 2003-07-10 | 2006-07-19 | 英业达股份有限公司 | Hot Plug Peripheral Input Device Coupling System |
US7028125B2 (en) * | 2003-08-04 | 2006-04-11 | Inventec Corporation | Hot-pluggable peripheral input device coupling system |
CN100346271C (en) * | 2004-03-31 | 2007-10-31 | 联想(北京)有限公司 | Method and device for two-way communication between virtual PS/2 apparatus and host machine |
CN201111025Y (en) * | 2007-06-20 | 2008-09-03 | 张岳松 | Apparatus for realizing PS / 2 interface plug and play function |
TWM525481U (en) * | 2015-10-21 | 2016-07-11 | 宏正自動科技股份有限公司 | System and apparatus for communication between different interfaces |
CN105740192A (en) * | 2016-01-28 | 2016-07-06 | 山东超越数控电子有限公司 | PS2 interface keyboard/mouse hot plug system and realization method thereof |
-
2018
- 2018-03-26 TW TW107110366A patent/TWI654540B/en active
- 2018-12-28 CN CN201811626041.6A patent/CN110362349B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN110362349A (en) | 2019-10-22 |
TW201941020A (en) | 2019-10-16 |
CN110362349B (en) | 2022-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102749985B (en) | Method and device for dynamically adjusting bus clock | |
JP2008090375A (en) | Interrupt control system and storage control system using the same | |
JP2010086524A (en) | Bridge device with function to save power | |
TWI742422B (en) | Aggregated in-band interrupt | |
CN102736884B (en) | Link connection method and link connection establishment device | |
US20180210783A1 (en) | Information processing apparatus, control method of the same, and storage medium | |
US7124235B2 (en) | USB apparatus with switchable host/hub functions and control method thereof | |
US7782783B2 (en) | Methods and systems for centralized link power management control (CLMC) | |
US6526525B1 (en) | PCI debugging device, method and system | |
TWI707236B (en) | Mode switching system and mode switching method using the same | |
US9317085B2 (en) | Electronic device and clock rates controlling method of overclocking operation | |
JP2010099907A (en) | Display control device, display control system, program, and image printer | |
JP2014523584A (en) | Power management module for USB devices | |
US7549009B2 (en) | High-speed PCI interface system and a reset method thereof | |
CN102253690B (en) | Computer integration device, system and method | |
WO2018000193A1 (en) | Pin control method and device | |
TWI654540B (en) | Virtual input management device and management method thereof | |
CN114185720B (en) | Method, device, equipment and storage medium for dynamic hot backup of server | |
US10571992B2 (en) | Electronic device having a controller to enter a low power mode | |
CN116048233A (en) | Power architecture, power monitoring method and device | |
US8041846B2 (en) | Apparatus with reduced latency for master and slave storage devices | |
US8941693B2 (en) | Method and apparatus for providing reduced power usage of a display interface | |
CN114610663B (en) | A device and server supporting multiple boards | |
KR100238763B1 (en) | Automatic identification of floppy disk drives for expansion of notebook PCs | |
US20140207961A1 (en) | Chip and computer system |