EP-4471565-B1 - INPUT DEVICE CONNECTION METHOD AND SYSTEM
Inventors
- MOU, YANG
- LIN, JIANXIN
- YANG, WENBIN
Dates
- Publication Date
- 20260506
- Application Date
- 20230315
Claims (14)
- An input device connection method, wherein the method is applied to a communication system (100), the communication system comprises a first input device (130), a first terminal device (110), and a second terminal device (120), and the method comprises: when the first input device is in a multi-connection working mode, maintaining (S903), by the first input device, communication connections to both the first terminal device and the second terminal device; sending (S904), by the first terminal device, migration indication information to the first input device, wherein the migration indication information indicates the first input device to perform focus device switching; and switching (S905), by the first input device, a focus device from the first terminal device to the second terminal device in response to the migration indication information, wherein before the first input device switches the focus device from the first terminal device to the second terminal device, the first input device is configured to input information to the first terminal device; and after the first input device switches the focus device from the first terminal device to the second terminal device, the first input device is configured to input information to the second terminal device, wherein the first input device is a wireless mouse, and the method is characterized by the steps of: sending, by the first terminal device to the first input device, information about a position at which a mouse cursor slides out of a display of the first terminal device; and sending, by the first input device to the second terminal device, the information about the position at which the mouse cursor slides out of the display of the first terminal device, so that the second terminal device determines an initial position of the mouse cursor on a display of the second terminal device.
- The method according to claim 1, wherein the sending, by the first terminal device, migration indication information to the first input device comprises: sending, by the first terminal device, the migration indication information to the first input device when detecting that the mouse cursor tends to slide to another terminal device.
- The method according to claim 1, wherein the sending, by the first terminal device, migration indication information to the first input device comprises: sending, by the first terminal device, the migration indication information to the first input device when detecting that the mouse cursor tends to slide to another terminal device and determining that the another terminal device is the second terminal device, wherein the migration indication information carries identification information of the second terminal device.
- The method according to claim 3, wherein the method further comprises: determining, by the first terminal device based on the information about the position at which the mouse cursor slides out of the display of the first terminal device and multi-device connection configuration information of the first input device, that the another terminal device is the second terminal device, wherein the multi-device connection configuration information of the first input device represents position sorting among a plurality of terminal devices.
- The method according to claim 4, wherein the method further comprises: determining, by the first terminal device, the multi-device connection configuration information of the first input device based on position sorting among a plurality of terminal devices that is customized by a user on a user interface.
- The method according to claim 4, wherein the method further comprises: obtaining, by the first terminal device, the multi-device connection configuration information of the first input device based on an automatic positioning technology.
- The method according to claim 1 or 2, wherein the switching, by the first input device, the focus device from the first terminal device to the second terminal device in response to the migration indication information comprises: switching, by the first input device, the focus device from the first terminal device to the second terminal device in response to the migration indication information based on the information about the position at which the mouse cursor slides out of the display of the first terminal device and multi-device connection configuration information of the first input device, wherein the multi-device connection configuration information of the first input device represents position sorting among a plurality of terminal devices.
- The method according to claim 7, wherein the method further comprises: obtaining, by the first input device, the multi-device connection configuration information of the first input device based on an automatic positioning technology.
- The method according to any one of claims 1 to 8, wherein after the switching, by the first input device, the focus device from the first terminal device to the second terminal device, the method further comprises: sending, by the first input device, a personalized configuration parameter of the first input device to the second terminal device, wherein the personalized configuration parameter comprises one or more of the following: dots per inch, shortcut key settings, a main key definition, and fingerprint information.
- The method according to claim 5 or claim 9 when depending on claim 5, wherein the method further comprises: after detecting an operation of enabling a multi-device connection function by the user on the user interface, sending, by the first terminal device, a working mode switching instruction to the first input device, to instruct the first input device to switch from a normal mode to the multi-connection mode; and switching, by the first input device, from the normal mode to the multi-connection mode, wherein the first input device in the normal mode establishes a wireless communication connection to only the first terminal device or after detecting an operation of turning on, by the user, a switch used to enable a multi-device connection function on the first input device, switching, by the first input device, from a normal mode to the multi-connection mode.
- The method according to any one of claims 1 to 10, wherein the communication system further comprises a second input device, the second device is in a multi-connection working mode, and maintains communication connections to both the first terminal device and the second terminal device, and the method further comprises: sending, by the first terminal device, collaborative migration indication information to the second input device; and switching, by the second input device, the focus device from the first terminal device to the second terminal device in response to the collaborative migration indication information, wherein before the second input device switches the focus device from the first terminal device to the second terminal device, the second input device is configured to input information to the first terminal device; and after the second input device switches the focus device from the first terminal device to the second terminal device, the second input device is configured to input information to the second terminal device.
- The method according to claim 11, wherein the second input device is a wireless keyboard, and the sending, by the first terminal device, collaborative migration indication information to the second input device comprises: after detecting an operation of enabling a keyboard and mouse collaboration function by the user, sending, by the first terminal device, the collaborative migration indication information to the first input device.
- The method according to any one of claims 1 to 12, wherein when the first input device is in the multi-connection working mode, the first input device maintains a communication connection to the first terminal device through a first multimedia access control MAC address and a communication connection to the second terminal device through a second MAC address.
- A communication system, wherein the communication system comprises: a first terminal device, a second terminal device, and a first input device, wherein the communication system is configured to implement the method according to any one of claims 1 to 13.
Description
TECHNICAL FIELD This application relates to the field of terminal technologies, and in particular, to an input device connection method, and a system. BACKGROUND With diversified development of terminal technologies, a terminal device usually used by a user in daily life or work gradually changes from a single device to a plurality of devices. Generally, the terminal device may be connected to one or more input devices, to implement a corresponding function. For example, the input device may be a wireless peripheral. However, when the user simultaneously uses a plurality of terminal devices, the user needs to carry and maintain input devices matching the plurality of terminal devices. For example, when the user simultaneously uses a personal computer (personal computer, PC) 1 and a PC 2, if the PC 1 and the PC 2 are separately configured with a set of mouse and keyboard, the user needs to perform operations alternately between a mouse 1 and a keyboard 1 that match the PC 1 and a mouse 2 and a keyboard 2 that match the PC 2. Alternatively, if two terminal devices share a set of input devices, the user needs to manually cut off a connection relationship between the set of input devices and one terminal device, and reconfigure a connection relationship between the set of input devices and the other terminal device. For example, when the user controls the PC 1 through a mouse connected to the PC 1, if the user wants to operate the PC 2 through the same mouse, the user needs to manually cut off a connection relationship between the mouse and the PC 1, and reconfigure a connection relationship between the mouse and the PC 2. The foregoing two methods are very complex and inefficient. US2016110302A1 discloses a method and system of switching a wireless connection between a plurality of input devices and a first host device to at least a second host device. Embodiments of the invention are directed to systems and methods for switching multiple, independently connected data input devices from a first host computing device to a second host computing device together based on a single command or operation. US2014125575A1 discloses a method including analyzing data associated with an image captured by a camera to determine a visual orientation and/or eye gaze movement of a user of a computer. CN114201128A discloses a display method and equipment, and relates to the field of electronic equipment. When multiple terminals are cooperatively used, interfaces can be displayed on corresponding devices according to different input devices used by user input operation. The privacy of the user is protected, the attention of the user is prevented from being distracted, and the use experience of the user is improved. SUMMARY This application provides an input device connection method, a device, and a system, to reduce operation complexity of inputting information to a plurality of devices, and improve input efficiency. To achieve the foregoing objectives, the following technical solutions are used in embodiments of this application. The invention is defined in the appended set of claims. According to a first aspect, an input device connection method is provided. The method is applied to a communication system, the communication system includes a first input device, a first terminal device, and a second terminal device, and the method includes: When the first input device is in a multi-connection working mode, the first input device maintains communication connections to both the first terminal device and the second terminal device. The first terminal device sends, to the first input device, migration indication information indicating the first input device to perform focus device switching. The first input device switches a focus device from the first terminal device to the second terminal device in response to the migration indication information. Before the first input device switches the focus device from the first terminal device to the second terminal device, the first input device is configured to input information to the first terminal device; and after the first input device switches the focus device from the first terminal device to the second terminal device, the first input device is configured to input information to the second terminal device. That an input device performs focus migration specifically means that a focus device of the input device is switched from one terminal device (that is, a source host) to another terminal device (that is, a target host). It should be noted that, after the input device migrates from one terminal device (that is, the source host) to another terminal device (that is, the target host), a communication connection between the input device and the source host is not disconnected. A focus device is a terminal device that establishes a communication connection to an input device and can be directly controlled by the input device currently. Anon-focus device is a terminal device that establ