Search

CN-122027558-A - Switching control method, device and equipment for HID peripheral equipment among different system equipment and storage medium

CN122027558ACN 122027558 ACN122027558 ACN 122027558ACN-122027558-A

Abstract

The application relates to the technical field of HID peripheral connection, in particular to a switching control method, a switching control device and a switching control storage medium of an HID peripheral among different system devices, wherein the method comprises the steps of virtualizing the HID peripheral as a virtual node in main control system devices; and establishing a communication route between the virtual node and other preset system equipment, wherein the main control system equipment is in communication connection with the other system equipment, and a first equipment system carried by the main control system equipment is different from a second equipment system carried by the other system equipment. The application is convenient for realizing the prevention of hardware cost when the HID peripheral is switched among different system devices, and improves the switching efficiency.

Inventors

  • LUO QINGWEN
  • LUO JINYUAN

Assignees

  • 深圳市灰度科技股份有限公司

Dates

Publication Date
20260512
Application Date
20260210

Claims (10)

  1. 1. A method for controlling the switching of HID peripherals between different system devices, comprising: virtualizing an HID peripheral as a virtual node in the main control system equipment; And establishing a communication route between the virtual node and other preset system equipment, wherein the main control system equipment is in communication connection with the other system equipment, and a first equipment system carried by the main control system equipment is different from a second equipment system carried by the other system equipment.
  2. 2. The method of claim 1, wherein virtualizing the HID peripheral as a virtual node within a host system device comprises: acquiring a device descriptor of an HID peripheral; Based on the device descriptor, a virtual node is created in the master control system device.
  3. 3. The method of claim 1, wherein the establishing the communication route between the virtual node and the other preset system device comprises: numbering the virtual nodes to obtain node numbers; Numbering other preset system equipment to obtain the system equipment number; and determining communication routes between the virtual nodes and the other system equipment based on the node numbers and the system equipment numbers.
  4. 4. The method of claim 1, wherein the establishing the communication route between the virtual node and the other preset system device comprises: determining a node number of each virtual node and a system device number of each other system device in response to the existence of at least two different virtual nodes and at least two different other system devices; And determining a communication route between each virtual node and the corresponding other system equipment based on a preset switcher, the node numbers of each virtual node and the system equipment numbers of the other system equipment.
  5. 5. The method of any one of claims 1-4, further comprising: and disabling the last device mounting action of the HID peripheral.
  6. 6. The method of any one of claims 1-4, further comprising: And opening the final equipment mounting action of the HID peripheral.
  7. 7. A switching control apparatus for HID peripherals between different system devices, the apparatus comprising: the node virtual module is used for virtualizing the HID peripheral as a virtual node in the main control system equipment; The route establishment module is used for establishing the communication route between the virtual node and other preset system equipment, wherein the main control system equipment is in communication connection with the other system equipment, and a first equipment system carried by the main control system equipment is different from a second equipment system carried by the other system equipment.
  8. 8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
  9. 9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
  10. 10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.

Description

Switching control method, device and equipment for HID peripheral equipment among different system equipment and storage medium Technical Field The present application relates to the field of HID peripheral connection technologies, and in particular, to a method, an apparatus, a device, and a storage medium for controlling switching of HID peripheral between different system devices. Background HID (human interface device) peripherals are used for communication connection with the system device for facilitating user input of instructions to the system device or for executing control commands of the system device, and exemplary HID peripherals include a mouse, a handle, a keyboard, a printer, etc. When there is only one HID peripheral, and there are multiple system devices that need to use the HID peripheral and have different systems, the HID peripheral needs to be controlled to switch between the different system devices, so as to meet the use requirement. At present, the mode of controlling the HID peripheral to switch between different system devices is that the HID peripheral is firstly connected with a preset switching device, the switching device is also connected with the main control system device and the other system devices, and when the HID peripheral needs to be controlled to switch between the two system devices, the switching device needs to be controlled manually, so that the connection between the HID peripheral and one system device is switched to the connection between the HID peripheral and the other system device. The second, the switching action of the human control switching equipment is essentially a plug action, namely, even if the HID peripheral is disconnected with the former system equipment and then connected with the latter system equipment, the switching mode has a certain delay, so that the switching efficiency is poor. Disclosure of Invention In order to facilitate the realization of the prevention of hardware cost when the HID peripheral is switched between different system devices and improve the switching efficiency, the application provides a switching control method, a device, equipment and a storage medium of the HID peripheral between different system devices. In a first aspect, the present application provides a method for controlling switching between different system devices by using an HID peripheral, including: virtualizing an HID peripheral as a virtual node in the main control system equipment; And establishing a communication route between the virtual node and other preset system equipment, wherein the main control system equipment is in communication connection with the other system equipment, and a first equipment system carried by the main control system equipment is different from a second equipment system carried by the other system equipment. In a second aspect, the present application provides a switching control apparatus for HID peripherals between different system devices, including: the node virtual module is used for virtualizing the HID peripheral as a virtual node in the main control system equipment; The route establishment module is used for establishing the communication route between the virtual node and other preset system equipment, wherein the main control system equipment is in communication connection with the other system equipment, and a first equipment system carried by the main control system equipment is different from a second equipment system carried by the other system equipment. In a third aspect, the application provides a computer device comprising a memory storing a computer program and a processor implementing the steps of the method described above when the processor executes the computer program. In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method described above. In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of any of the method embodiments described above. The switching control method, the switching control device and the switching control storage medium for the HID peripheral among different system devices are realized by virtualizing the HID peripheral as a virtual node in main control system equipment, and communication routes between the virtual node and other preset system devices are established, wherein the main control system equipment is in communication connection with the other system devices, and a first equipment system carried by the main control system equipment is different from a second equipment system carried by the other system devices. According to the implementation, when the control connection between the HID peripheral and the main control system equipment is required to be switched to the control connec