CN111625107A - Method and device for sharing USB input equipment - Google Patents

Method and device for sharing USB input equipment Download PDF

Info

Publication number
CN111625107A
CN111625107A CN202010474426.6A CN202010474426A CN111625107A CN 111625107 A CN111625107 A CN 111625107A CN 202010474426 A CN202010474426 A CN 202010474426A CN 111625107 A CN111625107 A CN 111625107A
Authority
CN
China
Prior art keywords
usb input
operation information
network data
field
equipment
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202010474426.6A
Other languages
Chinese (zh)
Inventor
房金彪
耿士华
高又松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Chaoyue CNC Electronics Co Ltd
Original Assignee
Shandong Chaoyue CNC Electronics Co Ltd
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 Shandong Chaoyue CNC Electronics Co Ltd filed Critical Shandong Chaoyue CNC Electronics Co Ltd
Priority to CN202010474426.6A priority Critical patent/CN111625107A/en
Publication of CN111625107A publication Critical patent/CN111625107A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • G06F3/0383Signal control means within the pointing device

Abstract

The invention provides a method and a device for sharing USB input equipment, wherein the method comprises the following steps: determining a second device that needs to share the USB input device with the first device; acquiring operation information input by the USB input equipment; converting the operation information into network data capable of being transmitted through a network; and sending the network data to the second equipment through a network so that the second equipment can analyze the operation information in the network data and operate according to the operation information. The invention provides a method and a device for sharing USB input equipment, which can enable the USB input equipment to be shared among different equipment.

Description

Method and device for sharing USB input equipment
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for sharing USB input equipment.
Background
The input devices such as a keyboard and a mouse are generally required to be matched with the devices such as a tablet, a notebook, a desktop and a server, and the input devices such as the keyboard and the mouse which are commonly used at present are USB interfaces.
In the prior art, a USB input device with a USB interface can only be used by connected devices.
Disclosure of Invention
The embodiment of the invention provides a method and a device for sharing USB input equipment, which can enable the USB input equipment to be shared among different equipment.
In a first aspect, an embodiment of the present invention provides a method for sharing a USB input device, where the method is applied to a first device connected with the USB input device, and the method includes:
determining a second device that needs to share the USB input device with the first device;
acquiring operation information input by the USB input equipment;
converting the operation information into network data capable of being transmitted through a network;
and sending the network data to the second equipment through a network so that the second equipment can analyze the operation information in the network data and operate according to the operation information.
Alternatively,
when the USB input equipment is a keyboard with a USB interface;
the acquiring the operation information input by the USB input device comprises:
when receiving USB interruption sent by the keyboard, acquiring a code value of a pressed key on the keyboard;
the converting the operation information into network data capable of being transmitted through a network includes:
and converting the code value of the pressed key on the keyboard into the network data.
Alternatively,
when the USB input device is a mouse with a USB interface,
the acquiring the operation information input by the USB input device comprises:
when USB interruption sent by the mouse is received, acquiring displacement amounts of the mouse in the X direction and the Y direction and a code value of a pressed mouse key of the mouse;
the converting the operation information into network data capable of being transmitted through a network includes:
and converting the displacement amount of the mouse in the X direction and the Y direction and the code value of the pressed mouse key of the mouse into the network data.
Alternatively,
the network data at least comprises: a first field and a second field;
wherein, the first field is used for saving the identification of the USB input device; the second field is used for storing the operation information;
the converting the operation information into network data capable of being transmitted through a network includes:
determining the identification of the USB input equipment, and saving the identification of the USB input equipment into the first field;
saving the operation information to the fourth field.
In a second aspect, an embodiment of the present invention provides a method for sharing a USB input device, where the method is applied to a second device that needs to share the USB input device with a first device, where the first device is connected to the USB input device, and the method includes:
receiving network data sent by the first device;
analyzing the operation information input to the first equipment by the USB input equipment from the network data;
and operating according to the operation information.
Alternatively,
the network data at least comprises: a first field and a second field;
wherein, the first field is used for saving the identification of the USB input device; the second field is used for storing the operation information;
the analyzing the operation information input by the USB input device to the first device from the network data includes:
obtaining the operation information from the fourth field of the network data;
the operation according to the operation information comprises the following steps:
obtaining an identification of the USB input device from the first field of the network data;
determining the type of the USB input equipment according to the identification of the USB input equipment;
determining the operation to be executed according to the type of the USB input equipment and the operation information;
and executing the operation to be executed.
In a third aspect, an embodiment of the present invention provides an apparatus for sharing a USB input device, where the apparatus is applied to a first device connected with the USB input device, and the apparatus includes:
the determining module is used for determining a second device needing to share the USB input device with the first device;
the acquisition module is used for acquiring the operation information input by the USB input equipment;
the conversion module is used for converting the operation information into network data capable of being transmitted through a network;
and the sending module is used for sending the network data to the second equipment through a network so that the second equipment can analyze the operation information in the network data and operate according to the operation information.
Alternatively,
the network data at least comprises: a first field and a second field;
wherein, the first field is used for saving the identification of the USB input device; the second field is used for storing the operation information;
the conversion module is configured to determine an identifier of the USB input device, store the identifier of the USB input device in the first field, and store the operation information in the fourth field.
In a fourth aspect, an embodiment of the present invention provides an apparatus for sharing a USB input device, where the apparatus is applied to a second device that needs to share the USB input device with a first device, where the first device is connected to the USB input device, and the apparatus includes:
a receiving module, configured to receive network data sent by the first device;
the analysis module is used for analyzing the operation information input to the first equipment by the USB input equipment from the network data;
and the execution module is used for running according to the operation information.
Alternatively,
the network data at least comprises: a first field and a second field;
wherein, the first field is used for saving the identification of the USB input device; the second field is used for storing the operation information;
the analysis module is configured to obtain the operation information from the fourth field of the network data;
the execution module is configured to acquire the identifier of the USB input device from the first field of the network data, determine the type of the USB input device according to the identifier of the USB input device, determine an operation to be executed according to the type of the USB input device and the operation information, and execute the operation to be executed.
In the embodiment of the invention, the first device is connected with the USB input device, when the first device acquires the operation information input by the USB input device, the operation information is converted into the network data and is sent to the second device through the network, and the second device can acquire the operation information of the USB input device through the network data even if the second device is not connected with the USB input device, so that the corresponding operation is executed. As can be seen from the above description, the USB input device can be used not only by the connected first device, but also by the second device, so that the USB input device can be shared among different devices.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flowchart of a method for sharing a USB input device according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for sharing a USB input device according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an apparatus for sharing a USB input device according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating an apparatus for sharing a USB input device according to an embodiment of the present invention;
fig. 5 is a flowchart of another method for sharing a USB input device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
The input device with the USB interface is a USB input device that interacts with the device using the USB input device through the USB interface. Specifically, the USB input device transmits the operation information to the connected device through the USB interface. The USB input device may be a keyboard with a USB interface, a mouse with a USB interface, or the like. The existing USB input device cannot be shared among different devices and can only be used by the device connected with the USB input device.
In order to implement sharing of a USB input device among different devices, as shown in fig. 1, an embodiment of the present invention provides a method for sharing a USB input device, which is applied to a first device connected with a USB input device, and the method includes:
step 101: determining a second device that needs to share the USB input device with the first device;
step 102: acquiring operation information input by the USB input equipment;
step 103: converting the operation information into network data capable of being transmitted through a network;
step 104: and sending the network data to the second equipment through a network so that the second equipment can analyze the operation information in the network data and operate according to the operation information.
In the embodiment of the invention, the first device is connected with the USB input device, when the first device acquires the operation information input by the USB input device, the operation information is converted into the network data and is sent to the second device through the network, and the second device can acquire the operation information of the USB input device through the network data even if the second device is not connected with the USB input device, so that the corresponding operation is executed. As can be seen from the above description, the USB input device can be used not only by the connected first device, but also by the second device, so that the USB input device can be shared among different devices.
In the embodiment of the present invention, the USB input device may be connected to the first device through the USB interface, and the USB input device may not be connected to the second device, and the first device and the second device are connected through the network.
In an embodiment of the present invention, when the USB input device is a keyboard with a USB interface;
the acquiring the operation information input by the USB input device comprises:
when receiving USB interruption sent by the keyboard, acquiring a code value of a pressed key on the keyboard;
the converting the operation information into network data capable of being transmitted through a network includes:
and converting the code value of the pressed key on the keyboard into the network data.
In the embodiment of the present invention, the USB input device may be a keyboard, and when a key on the keyboard is pressed, the keyboard sends a USB interrupt to the first device, so that the first device can obtain operation information of the keyboard, that is, a code value of the pressed key on the keyboard. For example: the code value of the ESC key is 27, the code value of the enter key is 13, the code value of the TAB key is 8, and the like. The second equipment can determine the pressed key according to the received code value, and then executes corresponding operation according to the pressed key.
In an embodiment of the present invention, when the USB input device is a mouse with a USB interface, the acquiring operation information input by the USB input device includes:
when USB interruption sent by the mouse is received, acquiring displacement amounts of the mouse in the X direction and the Y direction and a code value of a pressed mouse key of the mouse;
the converting the operation information into network data capable of being transmitted through a network includes:
and converting the displacement amount of the mouse in the X direction and the Y direction and the code value of the pressed mouse key of the mouse into the network data.
In the embodiment of the present invention, the USB input device may be a mouse, and when a mouse key of the mouse is pressed or the mouse is moved, the mouse sends a USB interrupt to the first device, so that the first device acquires operation information of the mouse, where the operation information includes displacement amounts of the mouse in the X direction and the Y direction and a code value of the pressed mouse key of the mouse. For example: the code value of the left key of the mouse is Ox1, the code value of the right key of the mouse is Ox2, and the code value of the middle key of the mouse is Ox 4. The second equipment analyzes the displacement of the mouse in the X direction and the Y direction and the code value of the pressed mouse key of the mouse from the network data, so that the operation of the mouse can be determined, and the corresponding operation can be executed.
In an embodiment of the present invention, the network data at least includes: a first field and a second field;
wherein, the first field is used for saving the identification of the USB input device; the second field is used for storing the operation information;
the converting the operation information into network data capable of being transmitted through a network includes:
determining the identification of the USB input equipment, and saving the identification of the USB input equipment into the first field;
saving the operation information to the fourth field.
In the embodiment of the invention, different identifiers are set for different types of USB input devices, so that when the second device receives network data, the type of the USB input device corresponding to the operation information in the network data can be determined. For example: different marks are respectively set for the mouse and the keyboard.
In addition, the network data may further include a third field, a fourth field and a fifth field, where the third field is used to store the length of the network data, the fourth field is used to store the serial number of the network data, and the fifth field is used as a spare field. The network data may be checked through the third field and the fourth field.
As shown in fig. 2, an embodiment of the present invention provides a method for sharing a USB input device, which is applied to a second device that needs to share the USB input device with a first device, where the first device is connected to the USB input device, and the method includes:
step 201: receiving network data sent by the first device;
step 202: analyzing the operation information input to the first equipment by the USB input equipment from the network data;
step 203: and operating according to the operation information.
In the embodiment of the invention, after receiving the network data sent by the first device through the network, the second device analyzes the operation information from the network data and operates according to the operation information, and the second device can use the USB input device without being connected with the USB input device. The user may also control the second device by operating the USB input device when the second device is not connected to the USB input device.
In an embodiment of the present invention, the network data at least includes: a first field and a second field;
wherein, the first field is used for saving the identification of the USB input device; the second field is used for storing the operation information;
the analyzing the operation information input by the USB input device to the first device from the network data includes:
obtaining the operation information from the fourth field of the network data;
the operation according to the operation information comprises the following steps:
obtaining an identification of the USB input device from the first field of the network data;
determining the type of the USB input equipment according to the identification of the USB input equipment;
determining the operation to be executed according to the type of the USB input equipment and the operation information;
and executing the operation to be executed.
In the embodiment of the invention, the second device analyzes the network data, determines the type of the USB input device according to the content in the first field, and executes corresponding operation by combining the type of the USB input device and the operation information. The types of USB input devices may include: mouse, keyboard, etc.
As shown in fig. 3, an embodiment of the present invention provides an apparatus for sharing a USB input device, which is applied to a first device connected with the USB input device, and the apparatus includes:
a determining module 301, configured to determine a second device that needs to share the USB input device with the first device;
an obtaining module 302, configured to obtain operation information input by the USB input device;
a conversion module 303, configured to convert the operation information into network data that can be transmitted through a network;
a sending module 304, configured to send the network data to the second device through a network, so that the second device parses the operation information in the network data and runs according to the operation information.
In an embodiment of the present invention, the network data at least includes: a first field and a second field;
wherein, the first field is used for saving the identification of the USB input device; the second field is used for storing the operation information;
the conversion module is configured to determine an identifier of the USB input device, store the identifier of the USB input device in the first field, and store the operation information in the fourth field.
In an embodiment of the present invention, when the USB input device is a keyboard with a USB interface;
the acquisition module is used for acquiring the code value of the pressed key on the keyboard when receiving the USB interrupt sent by the keyboard;
the conversion module is used for converting the code value of the pressed key on the keyboard into the network data.
In an embodiment of the present invention, when the USB input device is a mouse with a USB interface,
the acquisition module is used for acquiring displacement of the mouse in the X direction and the Y direction and a code value of a pressed mouse key of the mouse when receiving USB interruption sent by the mouse;
the conversion module is used for converting the displacement of the mouse in the X direction and the Y direction and the code value of the pressed mouse key of the mouse into the network data.
As shown in fig. 4, an embodiment of the present invention provides an apparatus for sharing a USB input device, which is applied to a second device that needs to share the USB input device with a first device, where the first device is connected to the USB input device, and the apparatus includes:
a receiving module 401, configured to receive network data sent by the first device;
an analyzing module 402, configured to analyze, from the network data, operation information input by the USB input device to the first device;
and an execution module 403, configured to execute according to the operation information.
In an embodiment of the present invention, the network data at least includes: a first field and a second field;
wherein, the first field is used for saving the identification of the USB input device; the second field is used for storing the operation information;
the analysis module is configured to obtain the operation information from the fourth field of the network data;
the execution module is configured to acquire the identifier of the USB input device from the first field of the network data, determine the type of the USB input device according to the identifier of the USB input device, determine an operation to be executed according to the type of the USB input device and the operation information, and execute the operation to be executed.
The following describes a method for sharing a USB input device according to an embodiment of the present invention in detail. In this embodiment, the first device is connected to the USB input device through the USB interface, the second device is not connected to the USB input device, and the first device and the second device are connected through the network. As shown in fig. 5, a method for sharing a USB input device according to an embodiment of the present invention may include the following steps:
step 501: the first device determines a second device that needs to share the USB input device with the first device.
Specifically, when the first device is in a state of sharing the USB input device, the first device does not execute after receiving the operation information of the USB input device, but transmits it to the second device in the form of network data. When the first device is not in the state of sharing the USB input device, the first device executes the operation information of the USB input device after receiving the operation information, and does not send the operation information to the second device. Whether the first device is in the state of sharing the USB input device or not can be controlled by a sharing instruction input by a user.
The first device may establish a connection with the second device through the IP address of the second device.
Step 502: the first device acquires operation information input by the USB input device.
Step 503: the first device converts the operation information into network data that can be transmitted through a network.
Step 504: the first device transmits the network data to the second device through the network.
Step 505: the second device receives the network data sent by the first device.
Step 506: the second equipment analyzes the operation information input to the first equipment by the USB input equipment from the network data.
Step 507: and the second equipment determines the operation to be executed according to the operation information and executes the operation to be executed.
In an embodiment of the invention, the first device and the second device may each be a device having a domestic processor.
Through the scheme provided by the embodiment of the invention, the USB input equipment can be shared among different equipment, so that the management is convenient, and the matching cost is saved.
It is to be understood that the illustrated structure of the embodiment of the present invention does not form a specific limitation to the apparatus for sharing the USB input device. In other embodiments of the invention, the means for sharing the USB input device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Because the information interaction, execution process, and other contents between the units in the device are based on the same concept as the method embodiment of the present invention, specific contents may refer to the description in the method embodiment of the present invention, and are not described herein again.
The present invention also provides a computer readable medium storing instructions for causing a computer to perform a method of sharing a USB input device as described herein. Specifically, a system or an apparatus equipped with a storage medium on which software program codes that realize the functions of any of the above-described embodiments are stored may be provided, and a computer (or a CPU or MPU) of the system or the apparatus is caused to read out and execute the program codes stored in the storage medium.
In this case, the program code itself read from the storage medium can realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
Examples of the storage medium for supplying the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer via a communications network.
Further, it should be clear that the functions of any one of the above-described embodiments may be implemented not only by executing the program code read out by the computer, but also by causing an operating system or the like operating on the computer to perform a part or all of the actual operations based on instructions of the program code.
Further, it is to be understood that the program code read out from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion unit connected to the computer, and then causes a CPU or the like mounted on the expansion board or the expansion unit to perform part or all of the actual operations based on instructions of the program code, thereby realizing the functions of any of the above-described embodiments.
It should be noted that not all steps and modules in the above flows and system structure diagrams are necessary, and some steps or modules may be omitted according to actual needs. The execution order of the steps is not fixed and can be adjusted as required. The system structure described in the above embodiments may be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by a plurality of physical entities, or some components in a plurality of independent devices may be implemented together.
In the above embodiments, the hardware unit may be implemented mechanically or electrically. For example, a hardware element may comprise permanently dedicated circuitry or logic (such as a dedicated processor, FPGA or ASIC) to perform the corresponding operations. The hardware elements may also comprise programmable logic or circuitry, such as a general purpose processor or other programmable processor, that may be temporarily configured by software to perform the corresponding operations. The specific implementation (mechanical, or dedicated permanent, or temporarily set) may be determined based on cost and time considerations.
While the invention has been shown and described in detail in the drawings and in the preferred embodiments, it is not intended to limit the invention to the embodiments disclosed, and it will be apparent to those skilled in the art that various combinations of the code auditing means in the various embodiments described above may be used to obtain further embodiments of the invention, which are also within the scope of the invention.

Claims (10)

1. The method for sharing the USB input device is applied to a first device connected with the USB input device, and comprises the following steps:
determining a second device that needs to share the USB input device with the first device;
acquiring operation information input by the USB input equipment;
converting the operation information into network data capable of being transmitted through a network;
and sending the network data to the second equipment through a network so that the second equipment can analyze the operation information in the network data and operate according to the operation information.
2. The method of claim 1,
when the USB input equipment is a keyboard with a USB interface;
the acquiring the operation information input by the USB input device comprises:
when receiving USB interruption sent by the keyboard, acquiring a code value of a pressed key on the keyboard;
the converting the operation information into network data capable of being transmitted through a network includes:
and converting the code value of the pressed key on the keyboard into the network data.
3. The method of claim 1,
when the USB input device is a mouse with a USB interface,
the acquiring the operation information input by the USB input device comprises:
when USB interruption sent by the mouse is received, acquiring displacement amounts of the mouse in the X direction and the Y direction and a code value of a pressed mouse key of the mouse;
the converting the operation information into network data capable of being transmitted through a network includes:
and converting the displacement amount of the mouse in the X direction and the Y direction and the code value of the pressed mouse key of the mouse into the network data.
4. The method of claim 1,
the network data at least comprises: a first field and a second field;
wherein, the first field is used for saving the identification of the USB input device; the second field is used for storing the operation information;
the converting the operation information into network data capable of being transmitted through a network includes:
determining the identification of the USB input equipment, and saving the identification of the USB input equipment into the first field;
saving the operation information to the fourth field.
5. The method for sharing the USB input equipment is applied to second equipment needing to share the USB input equipment with first equipment, wherein the first equipment is connected with the USB input equipment, and the method comprises the following steps:
receiving network data sent by the first device;
analyzing the operation information input to the first equipment by the USB input equipment from the network data;
and operating according to the operation information.
6. The method of claim 5,
the network data at least comprises: a first field and a second field;
wherein, the first field is used for saving the identification of the USB input device; the second field is used for storing the operation information;
the analyzing the operation information input by the USB input device to the first device from the network data includes:
obtaining the operation information from the fourth field of the network data;
the operation according to the operation information comprises the following steps:
obtaining an identification of the USB input device from the first field of the network data;
determining the type of the USB input equipment according to the identification of the USB input equipment;
determining the operation to be executed according to the type of the USB input equipment and the operation information;
and executing the operation to be executed.
7. An apparatus for sharing a USB input device, applied to a first device to which the USB input device is connected, the apparatus comprising:
the determining module is used for determining a second device needing to share the USB input device with the first device;
the acquisition module is used for acquiring the operation information input by the USB input equipment;
the conversion module is used for converting the operation information into network data capable of being transmitted through a network;
and the sending module is used for sending the network data to the second equipment through a network so that the second equipment can analyze the operation information in the network data and operate according to the operation information.
8. The apparatus of claim 7,
the network data at least comprises: a first field and a second field;
wherein, the first field is used for saving the identification of the USB input device; the second field is used for storing the operation information;
the conversion module is configured to determine an identifier of the USB input device, store the identifier of the USB input device in the first field, and store the operation information in the fourth field.
9. The device for sharing the USB input equipment is applied to second equipment needing to share the USB input equipment with first equipment, wherein the first equipment is connected with the USB input equipment, and the device comprises:
a receiving module, configured to receive network data sent by the first device;
the analysis module is used for analyzing the operation information input to the first equipment by the USB input equipment from the network data;
and the execution module is used for running according to the operation information.
10. The apparatus of claim 9,
the network data at least comprises: a first field and a second field;
wherein, the first field is used for saving the identification of the USB input device; the second field is used for storing the operation information;
the analysis module is configured to obtain the operation information from the fourth field of the network data;
the execution module is configured to acquire the identifier of the USB input device from the first field of the network data, determine the type of the USB input device according to the identifier of the USB input device, determine an operation to be executed according to the type of the USB input device and the operation information, and execute the operation to be executed.
CN202010474426.6A 2020-05-29 2020-05-29 Method and device for sharing USB input equipment Pending CN111625107A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010474426.6A CN111625107A (en) 2020-05-29 2020-05-29 Method and device for sharing USB input equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010474426.6A CN111625107A (en) 2020-05-29 2020-05-29 Method and device for sharing USB input equipment

Publications (1)

Publication Number Publication Date
CN111625107A true CN111625107A (en) 2020-09-04

Family

ID=72271164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010474426.6A Pending CN111625107A (en) 2020-05-29 2020-05-29 Method and device for sharing USB input equipment

Country Status (1)

Country Link
CN (1) CN111625107A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681950A (en) * 2011-03-09 2012-09-19 札拉姆科技株式会社 Input interface providing usb apparatus and interface providing method
CN102801778A (en) * 2012-06-21 2012-11-28 中兴通讯股份有限公司 Device for realizing resource sharing and resource sharing method
CN104035900A (en) * 2014-06-03 2014-09-10 上海卓悠网络科技有限公司 Method and device for sharing input device of PC (personal computer) with Android device
CN105992037A (en) * 2015-01-27 2016-10-05 青岛海信电器股份有限公司 Intelligent television operation information input method and intelligent television operation information input system
CN109992129A (en) * 2019-04-16 2019-07-09 深圳市国鑫恒宇科技有限公司 A kind of method and system for sharing cell phone keyboard by USB data line

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681950A (en) * 2011-03-09 2012-09-19 札拉姆科技株式会社 Input interface providing usb apparatus and interface providing method
CN102801778A (en) * 2012-06-21 2012-11-28 中兴通讯股份有限公司 Device for realizing resource sharing and resource sharing method
CN104035900A (en) * 2014-06-03 2014-09-10 上海卓悠网络科技有限公司 Method and device for sharing input device of PC (personal computer) with Android device
CN105992037A (en) * 2015-01-27 2016-10-05 青岛海信电器股份有限公司 Intelligent television operation information input method and intelligent television operation information input system
CN109992129A (en) * 2019-04-16 2019-07-09 深圳市国鑫恒宇科技有限公司 A kind of method and system for sharing cell phone keyboard by USB data line

Similar Documents

Publication Publication Date Title
CN109213611B (en) Cross-process communication method, device, terminal and storage medium
EP3029912A1 (en) Remote accessing method for device, thin client, and virtual machine
WO2007100422A1 (en) Edi instance based transaction set definition
CN109672722B (en) Data deployment method and device, computer storage medium and electronic equipment
CN110990411B (en) Data structure generation method and device, and calling method and device
CN108874441B (en) Board card configuration method, device, server and storage medium
CN112615758A (en) Application identification method, device, equipment and storage medium
US7925788B2 (en) Systems and methods for universal protocol for case management systems
CN114780519A (en) DBC file generation method, device, equipment and medium based on CAN communication
CN111324645B (en) Block chain data processing method and device
CN111625107A (en) Method and device for sharing USB input equipment
CN112579452A (en) Software automation test method, device, equipment and storage medium
CN107766070A (en) A kind of service card upgrade method, device, equipment and computer-readable recording medium
JP2009015363A (en) Test execution system, test execution device, information processor, test execution method, program, and storage medium
CN116185393A (en) Method, device, equipment, medium and product for generating interface document
CN111092765B (en) Intelligent driving method, system, electronic device and readable storage medium
CN109241164A (en) A kind of data processing method, device, server and storage medium
CN114171107A (en) Detection method, device, equipment and storage medium for VPD information of solid state disk
CN110365763B (en) Data synchronization method, device, equipment and storage medium
CN113779121A (en) Data conversion method and device, storage medium and electronic equipment
CN112416843A (en) Backboard communication equipment, control method thereof and storage medium
CN112559478B (en) Log generation method and device, terminal equipment and storage medium
CN114138509B (en) Data interaction method and device and computer readable storage medium
CN114564413B (en) Synchronous equipment testing method and device
CN113806416B (en) Method and device for realizing real-time data service and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200904

RJ01 Rejection of invention patent application after publication