WO2023179425A1 - 一种输入设备的连接方法、设备及系统 - Google Patents

一种输入设备的连接方法、设备及系统 Download PDF

Info

Publication number
WO2023179425A1
WO2023179425A1 PCT/CN2023/081647 CN2023081647W WO2023179425A1 WO 2023179425 A1 WO2023179425 A1 WO 2023179425A1 CN 2023081647 W CN2023081647 W CN 2023081647W WO 2023179425 A1 WO2023179425 A1 WO 2023179425A1
Authority
WO
WIPO (PCT)
Prior art keywords
input device
terminal device
input
terminal
connection
Prior art date
Application number
PCT/CN2023/081647
Other languages
English (en)
French (fr)
Inventor
牟洋
林健新
杨文彬
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023179425A1 publication Critical patent/WO2023179425A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/23Manipulation of direct-mode connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections

Definitions

  • the present application relates to the field of terminal technology, and in particular to an input device connection method, device and system.
  • a terminal device can be connected to one or more input devices to implement corresponding functions.
  • the input device may be a wireless peripheral.
  • the user needs to carry and maintain input devices supporting the multiple terminal devices.
  • PC personal computer
  • PC1 and PC2 are configured with a set of mouse and keyboard respectively, then the user needs to use mouse 1 and keyboard 1 for PC1, and a mouse for PC2. Interleaved operation between 2 and keyboard 2.
  • two terminal devices share a set of input devices, the user needs to manually cut off the connection relationship between the set of input devices and one terminal device, and reconfigure the connection relationship between the set of input devices and the other terminal device.
  • This application provides an input device connection method, device and system, which can reduce the complexity of operations when inputting information to multiple devices and improve input efficiency.
  • a method for connecting an input device 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.
  • the method includes: the first input device is in multiple locations.
  • the first terminal device sends migration instruction information to the first input device for instructing the first input device to switch the focus device; in response to the migration Instruction information: the first input device switches the focus device from the first terminal device to the second terminal device.
  • the first input device before the first input device switches the focus device from the first terminal device to the second terminal device, the first input device is used to input information to the first terminal device; before the first input device switches the focus device from the first terminal device After switching to the second terminal device, the first input device is used to input information to the second terminal device.
  • the focus migration of the input device specifically refers to switching the focus device of the input device from one terminal device (ie, the source host) to another terminal device (ie, the target host). It should be noted that after the input device is migrated from one terminal device (ie, the source host) to another terminal device (ie, the target host), the communication connection between the input device and the source host will not be disconnected.
  • the focus device refers to the terminal device that has established a communication connection with the input device and can currently be directly controlled by the input device; the non-focus device refers to the terminal device that has established a communication connection with the input device but cannot currently be directly controlled by the input device.
  • the same input device can perform focus migration between multiple terminal devices (such as the first terminal device and the second terminal device) at will.
  • the input device Before and after the focus migration, the input device can maintain communication connections with multiple terminal devices at the same time, and interact with the non-focus device in the background based on the communication connection with the non-focus device. Based on this, the input device can realize seamless focus migration between multiple terminal devices, ensuring that the interface display does not freeze when switching, and achieving the effect of seamless connection of input devices across devices.
  • this method does not need to rely on a wireless local area network (WLAN) for information synchronization, that is, multiple terminal devices do not need to be connected to the same WLAN.
  • WLAN wireless local area network
  • the first input device is a wireless mouse; the method further includes: the first terminal device sending the position information of the mouse cursor sliding out of the display screen of the first terminal device to the first input device; the first input device The device sends the position information of the mouse cursor sliding out of the display screen of the first terminal device to the second terminal device, so that the second terminal device determines the initial position of the mouse cursor on the display screen of the second terminal device.
  • the method provided by this application can be used for seamless focus device switching of a wireless mouse between multiple terminal devices.
  • the source host (such as the first terminal device) can synchronize the position information of the mouse cursor sliding out of the display screen of the first terminal device to the target host (such as the second terminal device) through the wireless mouse, so that the target host can connect to the source host (such as the first terminal device).
  • Terminal device displays the mouse cursor to achieve the effect of seamless connection of the mouse cursor across devices.
  • the above-mentioned first terminal device sends migration instruction information to the first input device, including: when the first terminal device detects that the mouse cursor has a tendency to slide to other terminal devices, the first terminal device sends a message to the first input device.
  • Send migration instructions As an example, the source host (such as the first terminal device) detects that the mouse cursor has a tendency to slide toward other terminal devices, which can be used as a trigger condition to trigger seamless focus device switching of the wireless mouse between multiple terminal devices.
  • the source host such as the first terminal device
  • the source host detects that the mouse cursor has a tendency to slide toward other terminal devices, which can be used as a trigger condition to trigger seamless focus device switching of the wireless mouse between multiple terminal devices.
  • the above-mentioned first terminal device sends migration instruction information to the first input device, including: the first terminal device detects that the mouse cursor has a tendency to slide to other terminal devices, and determines that the other terminal device is When the second terminal device is the second terminal device, migration instruction information is sent to the first input device; wherein the migration instruction information carries identification information of the second terminal device.
  • the source host such as the first terminal device
  • the target host can notify the wireless mouse.
  • the above method further includes: the first terminal device determines that the other terminal device is the second terminal device based on the position information of the mouse cursor sliding out of the display screen of the first terminal device and the multi-device connection configuration information of the first input device. Terminal device; wherein the multi-device connection configuration information of the first input device is used to characterize the position ordering among multiple terminal devices.
  • the source host such as the first terminal device
  • the source host can sort the positions among multiple terminal devices represented by the mouse cursor sliding out of the display screen of the first terminal device and the obtained multi-device connection configuration information. Determine the target host. This method provides a possible usage scenario.
  • the above method further includes: the first terminal device determining the multi-device connection configuration information of the first input device according to the position ordering among the multiple terminal devices customized by the user on the user interface. .
  • the method provided by this application supports the user to pre-set the multi-device connection configuration information of the first input device through customized settings on the user interface on the source host (such as the first terminal device), so that the source host subsequently detects that the mouse cursor has When trending towards other end devices, the target host can be further identified.
  • the user interface on the source host is an interface used for multi-device connection configuration of a wireless mouse.
  • the user can modify the position order between terminal devices, disable a certain terminal device, delete Customize the position ordering between multiple terminal devices such as removing a certain terminal device, enabling a certain terminal device, adding a certain terminal device, etc.
  • the above method further includes: the first terminal device obtains multi-device connection configuration information of the first input device based on automatic positioning technology.
  • the method provided by this application supports the source host (such as the first terminal device) to obtain the multi-device connection configuration information of the first input device based on automatic positioning technology, so that when the source host detects that the mouse cursor has a tendency to slide to other terminal devices, it can Further determine the target host.
  • the first input device in response to the migration instruction information, switches the focus device from the first terminal device to the second terminal device, including: in response to the migration instruction information, the first input device switches the focus device according to the mouse cursor Slide out the location information of the first terminal device display screen and the multi-device connection configuration information of the first input device, and switch the focus device from the first terminal device to the second terminal device; wherein, the multi-device connection configuration information of the first input device Used to characterize the position ordering between multiple terminal devices.
  • the first input device can determine the target host by itself based on the position information of the mouse cursor sliding out of the display screen of the first terminal device and the position ordering among multiple terminal devices represented by the multi-device connection configuration information. This method provides another possible usage scenario.
  • the above method further includes: the first input device obtains multi-device connection configuration information of the first input device based on automatic positioning technology.
  • the method provided by this application supports the first input device to obtain the multi-device connection configuration information of the first input device based on automatic positioning technology, so that when receiving the migration instruction information of the source host, the target host can be further determined.
  • the above-mentioned automatic positioning technology is ultrasonic positioning technology.
  • the above method further includes: the first input device sending the first input device to the second terminal device.
  • Personalized configuration parameters include one or more of the following: pixels per inch, shortcut key settings, main button definitions, and fingerprint information.
  • the above method further includes: after detecting the user's operation of turning on the multi-device connection function on the user interface, the first terminal device sends a working mode switching instruction to the first input device to instruct the first
  • the input device switches from the normal mode to the multi-connection mode; the first input device switches from the normal mode to the multi-connection mode; the first input device in the normal mode only establishes a wireless communication connection with the first terminal device.
  • the first input device provides a user interface option that supports the multi-device connection function, so that when the user needs to switch the focus device, he can enable the multi-device connection function to switch the focus device.
  • users can be provided with a usage experience that supports a variety of scenarios. For example, the user can turn on the multi-device connection function by turning on the multi-connection switch on the user interface.
  • the above method further includes: after detecting that the user turns on the switch for turning on the multi-device connection function on the first input device, switching the first input device from the normal mode to the multi-connection mode.
  • the first input device provides a multi-device connection function switch, so that when the user needs to switch the focus device, he can turn on the multi-device connection switch to switch the focus device.
  • the multi-device connection function switch may be a physical button on the first input device.
  • the above communication system also includes a second input device.
  • the second device is in a multi-connection working mode and maintains communication connections with both the first terminal device and the second terminal device.
  • the above method also includes: A terminal device sends collaborative migration instruction information to the second input device; in response to the collaborative migration instruction information, the second input device switches the focus device from the first terminal device to the second terminal device; wherein, when the second input device switches the focus device Before switching from the first terminal device to the second terminal device, the second input device is used to input information to the first terminal device; after the second input device switches the focus device from the first terminal device to the second terminal device, the second input device The input device is used to input information to the second terminal device.
  • the solution provided by this application supports collaborative migration of multiple input devices.
  • the second input device when the first input device switches the focus device from the first device to the second device, the second input device also synchronously switches the focus device from the first device to the third device.
  • Equipment This method can greatly simplify the operating steps when users use multiple terminal devices at the same time, realize seamless synchronous migration of multiple input devices between multiple terminal devices, ensure that the interface display does not freeze when switching, and realize multiple input devices Seamless effect across devices.
  • this method does not need to rely on WLAN for information synchronization, that is, multiple terminal devices do not need to be connected to the same WLAN.
  • the above-mentioned second input device is a wireless keyboard; the above-mentioned first terminal device sends collaborative migration instruction information to the second input device, including: the first terminal device detects that the user turns on the keyboard and mouse collaboration function. After the operation, collaborative migration instruction information is sent to the first input device.
  • the first input device provides an option to support the keyboard and mouse collaboration function, so that when the user has a need for keyboard and mouse collaboration, the keyboard and mouse collaboration function can be enabled to achieve keyboard and mouse collaboration. Through this optional function option, users can be provided with a usage experience that supports a variety of scenarios.
  • the above operation for the user to turn on the keyboard and mouse collaboration function is an operation for the user to turn on the keyboard and mouse collaboration function on the user interface, or an operation for the user to turn on a switch on the second input device.
  • the user can enable the keyboard-mouse collaboration function on the user interface, or enable the keyboard-mouse collaboration function through physical buttons on the second input device.
  • the first input device when the above-mentioned first input device is in the multi-connection working mode, it communicates with the first terminal device and the first terminal device through a first multimedia access control (media access control, MAC) address and a second MAC address respectively.
  • the second terminal device maintains the communication connection.
  • a method for connecting an input device is provided.
  • the method is applied to a first input device.
  • the method includes: when the first input device is in a multi-connection mode, it maintains communication with both the first terminal device and the second terminal device. Connect; the first input device receives migration instruction information from the first terminal device for instructing the first input device to switch the focus device; in response to the migration instruction information, the first input device switches the focus device from the first terminal device to the second terminal device; 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 used to input information to the first terminal device; before the first input device switches the focus device After switching from the first terminal device to the second terminal device, the first input device is used to input information to the second terminal device.
  • the same input device (such as the first input device) can perform focus migration between multiple terminal devices (such as the first terminal device and the second terminal device) at will.
  • the input device Before and after the focus migration, the input device can maintain communication connections with multiple terminal devices at the same time, and interact with the non-focus device in the background based on the communication connection with the non-focus device. Based on this, the input device can realize seamless connection between multiple terminal devices. Focus migration ensures that the interface display does not freeze when switching, and achieves the effect of seamless connection of input devices across devices. In addition, this method does not need to rely on WLAN for information synchronization, that is, multiple terminal devices do not need to be connected to the same WLAN.
  • the above-mentioned first input device is a wireless mouse; the above-mentioned method further includes: the first input device obtains the position information of the mouse cursor sliding out of the display screen of the first terminal device from the first terminal device; the first input device The device sends the position information of the mouse cursor sliding out of the display screen of the first terminal device to the second terminal device, so that the second terminal device determines the initial position of the mouse cursor on the display screen of the second terminal device.
  • the method provided by this application can be used for seamless focus device switching of a wireless mouse between multiple terminal devices.
  • the source host (such as the first terminal device) can synchronize the position information of the mouse cursor sliding out of the display screen of the first terminal device to the target host (such as the second terminal device) through the wireless mouse, so that the target host can connect to the source host (such as the first terminal device).
  • Terminal device displays the mouse cursor to achieve the effect of seamless connection of the mouse cursor across devices.
  • the migration instruction information carries identification information of the second terminal device.
  • the source host (such as the first terminal device) can determine the target host and notify the wireless mouse. This method provides a possible usage scenario.
  • the first input device in response to the migration instruction information, switches the focus device from the first terminal device to the second terminal device, including: in response to the migration instruction information, the first input device switches the focus device according to the mouse cursor Slide out the location information of the first terminal device display screen and the multi-device connection configuration information of the first input device, and switch the focus device from the first terminal device to the second terminal device; wherein, the multi-device connection configuration information of the first input device Used to characterize the position ordering between multiple terminal devices.
  • the first input device can determine the target host by itself based on the position information of the mouse cursor sliding out of the display screen of the first terminal device and the position ordering among multiple terminal devices represented by the multi-device connection configuration information. This method provides another possible usage scenario.
  • the above-mentioned automatic positioning technology is ultrasonic positioning technology.
  • the above method further includes: the first input device sending the first input device to the second terminal device.
  • personalized configuration parameters include one or more of the following: pixels per inch, shortcut key settings, main button definitions, and fingerprint information.
  • the above method further includes: the first input device receives a working mode switching instruction from the first terminal device; the first input device switches from the normal mode to the multi-connection mode; wherein the first input device in the normal mode The input device only establishes a wireless communication connection with the first terminal device.
  • the user can turn on the multi-device connection function by turning on the multi-connection switch on the user interface.
  • the above method further includes: after detecting that the user turns on the switch for turning on the multi-device connection function on the first input device, switching the first input device from the normal mode to the multi-connection mode.
  • the first input device provides a multi-device connection function switch, so that when the user needs to switch the focus device, he can turn on the multi-device connection switch to switch the focus device.
  • the multi-device connection function switch may be a physical button on the first input device.
  • the first input device when the first input device is in the multi-connection working mode, it maintains communication connections with the first terminal device and the second terminal device through the first MAC address and the second MAC address respectively.
  • the first input device By using different MAC addresses to maintain communication connections with multiple terminal devices, you can avoid the situation where the input device cannot connect to multiple terminal devices at the same time due to MAC preemption and other reasons.
  • a method for connecting an input device is provided.
  • the method is applied to a second input device.
  • the method includes: when the second input device is in a multi-connection mode, it maintains communication with both the first terminal device and the second terminal device. Connect; the first terminal device sends to the second input device collaborative migration indication information for instructing the second input device to cooperate with other input devices to switch the focus device, where the collaborative migration indication information carries identification information of the second terminal device;
  • the second input device switches the focus device from the first terminal device to the second terminal device; wherein, before the second input device switches the focus device from the first terminal device to the second terminal device, the second input device switches the focus device from the first terminal device to the second terminal device.
  • the second input device is used to input information to the first terminal device; after the second input device switches the focus device from the first terminal device to the second terminal device, the second input device is used to input information to the second terminal device.
  • the collaborative migration instruction information may be sent by the first terminal device to the second input device after the first input device switches the focus device.
  • the second input device is migrated from one terminal device (i.e., the source host) to another terminal device (i.e., the target host), the communication connection between the second input device and the source host will not be interrupted. open.
  • the second input device when the first input device switches the focus device from the first device to the second device, the second input device also switches the focus device from the first device to the second device simultaneously.
  • This method can greatly simplify the operating steps when users use multiple terminal devices at the same time, realize seamless synchronous migration of multiple input devices between multiple terminal devices, ensure that the interface display does not freeze when switching, and realize multiple input devices Seamless effect across devices.
  • this method does not need to rely on WLAN for information synchronization, that is, multiple terminal devices do not need to be connected to the same WLAN.
  • the second input device is a wireless keyboard.
  • the collaborative migration instruction information may be sent by the first terminal device to the second input device after detecting the user's operation of turning on the keyboard and mouse collaboration function.
  • the above operation for the user to turn on the keyboard and mouse collaboration function is an operation for the user to turn on the keyboard and mouse collaboration function on the user interface, or an operation for the user to turn on a switch on the second input device.
  • the user can enable the keyboard-mouse collaboration function on the user interface, or enable the keyboard-mouse collaboration function through physical buttons on the second input device.
  • the above method further includes: the second input device sends a message of the second input device to the second terminal device.
  • Personalized configuration parameters wherein, the above personalized configuration parameters include shortcut key settings.
  • the synchronization of data can ensure that after the input device switches the focus device, the target host can synchronize the shortcut key settings and other related personalized configuration parameters of the input device to facilitate user operations.
  • the above-mentioned second input device when the above-mentioned second input device is in the multi-connection working mode, it maintains communication connections with the first terminal device and the second terminal device through the third MAC address and the fourth MAC address respectively.
  • the third MAC address and the fourth MAC address By using different MAC addresses to maintain communication connections with multiple terminal devices, you can avoid the situation where the input device cannot connect to multiple terminal devices at the same time due to MAC preemption and other reasons.
  • a fourth aspect provides an input device, such as a first input device.
  • the first input device includes: a communication unit configured to communicate with both the first terminal device and the second terminal device when the first input device is in a multi-connection mode. Maintain the communication connection; and, receive migration instruction information from the first terminal device for instructing the first input device to switch the focus device; the processing unit is configured to respond to the migration instruction information, change the focus device of the first input device to The first terminal device is switched to the second terminal device; 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 used to input information to the first terminal device; in the After an input device switches the focus device from a first terminal device to a second terminal device, the first input device is used to input information to the second terminal device.
  • the same input device (such as the first input device) can perform focus migration between multiple terminal devices (such as the first terminal device and the second terminal device) at will.
  • the input device Before and after the focus migration, the input device can maintain communication connections with multiple terminal devices at the same time, and interact with the non-focus device in the background based on the communication connection with the non-focus device. Based on this, the input device can realize seamless focus migration between multiple terminal devices, ensuring that the interface display does not freeze when switching, and achieving the effect of seamless connection of input devices across devices.
  • this method does not need to rely on WLAN for information synchronization, that is, multiple terminal devices do not need to be connected to the same WLAN.
  • the source host (such as the first terminal device) can synchronize the position information of the mouse cursor sliding out of the display screen of the first terminal device to the target host (such as the second terminal device) through the wireless mouse, so that the target host can connect to the source host (such as the first terminal device).
  • Terminal device displays the mouse cursor to achieve the effect of seamless connection of the mouse cursor across devices.
  • the migration instruction information carries identification information of the second terminal device.
  • the source host (such as the first terminal device) can determine the target host and notify the wireless mouse. This method provides a possible usage scenario.
  • the above processing unit switches the focus device of the first input device from the first terminal device to the second terminal device in response to the migration instruction information, including: the processing unit responds to the migration instruction information, according to the mouse The cursor slides out of the position information of the display screen of the first terminal device and the multi-device connection configuration information of the first input device, switching the focus device of the first input device from the first terminal device to the second terminal device; wherein, the first input device The multi-device connection configuration information is used to characterize the position ordering between multiple end devices.
  • the first input device can determine the target host by itself based on the position information of the mouse cursor sliding out of the display screen of the first terminal device and the position ordering among multiple terminal devices represented by the multi-device connection configuration information. This method provides another possible usage scenario.
  • the above-mentioned first input device further includes: a positioning unit, configured to obtain multi-device connection configuration information of the first input device based on automatic positioning technology.
  • the method provided by this application supports the first input device to obtain the multi-device connection configuration information of the first input device based on automatic positioning technology, so that when receiving the migration instruction information of the source host, the target host can be further determined.
  • the above-mentioned automatic positioning technology is ultrasonic positioning technology.
  • the communication unit is further configured to: after the processing unit switches the focus device of the first input device from the first terminal device to the second terminal device, send the first input device to the second terminal device.
  • Personalized configuration parameters include one or more of the following: pixels per inch, shortcut key settings, main button definitions, and fingerprint information.
  • the communication unit is further configured to: receive a working mode switching instruction from the first terminal device; the processing unit is further configured to: switch the working mode of the first input device from normal mode to multi-connection. mode; wherein the first input device in the normal mode only establishes a wireless communication connection with the first terminal device.
  • the above-mentioned first input device further includes: a multi-device connection function switch; the above-mentioned processing unit is further configured to: enable multi-device connection when the first input device detects that the user opens the first input device. After the function switch is operated, the working mode of the first input device is switched from the normal mode to the multi-connection mode.
  • the first input device provides a multi-device connection function switch, so that when the user needs to switch the focus device, he can turn on the multi-device connection switch to switch the focus device.
  • the multi-device connection function switch may be a physical button on the first input device.
  • the above communication unit is specifically configured to: when the first input device is in the multi-connection working mode, communicate with the first terminal device and the second terminal device through the first MAC address and the second MAC address respectively. Communication connection.
  • an input device such as a second input device.
  • the second input device includes: a communication unit configured to communicate with both the first terminal device and the second terminal device when the second input device is in a multi-connection mode. Maintain the communication connection; and, send collaborative migration indication information to the second input device for instructing the second input device to cooperate with other input devices to switch the focus device, where the collaborative migration indication information carries the identification information of the second terminal device;
  • a processing unit configured to, in response to the collaborative migration instruction information, switch the focus device of the second input device from the first terminal device to the second terminal device; wherein, in the second input device, the focus device is switched from the first terminal device to the second terminal device.
  • the second input device Before the second terminal device, the second input device is used to input information to the first terminal device; after the second input device switches the focus device from the first terminal device to the second terminal device, the second input device is used to input information to the second terminal device.
  • Device input information.
  • the second input device when the first input device switches the focus device from the first device to the second device, the second input device also switches the focus device from the first device to the second device simultaneously.
  • This method can greatly simplify the operating steps when users use multiple terminal devices at the same time, and realize the use of multiple input devices among multiple terminal devices. Seamless synchronous migration between devices ensures that the interface display does not freeze when switching, and achieves the effect of seamless connection between multiple input devices across devices. In addition, this method does not need to rely on WLAN for information synchronization, that is, multiple terminal devices do not need to be connected to the same WLAN.
  • the second input device is a wireless keyboard.
  • the collaborative migration instruction information may be sent by the first terminal device to the second input device after detecting the user's operation of turning on the keyboard and mouse collaboration function.
  • the above operation for the user to turn on the keyboard and mouse collaboration function is an operation for the user to turn on the keyboard and mouse collaboration function on the user interface, or an operation for the user to turn on a switch on the second input device.
  • the user can enable the keyboard-mouse collaboration function on the user interface, or enable the keyboard-mouse collaboration function through physical buttons on the second input device.
  • the above communication unit is also configured to: after the processing unit switches the focus device of the second input device from the first terminal device to the second terminal device, send the second input device to the second terminal device.
  • Personalized configuration parameters wherein, the above-mentioned personalized configuration parameters include shortcut key settings.
  • the above communication unit is specifically configured to: when the second input device is in the multi-connection working mode, communicate with the first terminal device and the second terminal device through the third MAC address and the fourth MAC address respectively. Communication connection.
  • an input device such as a first input device, the first input device has the ability to provide multiple MAC addresses, the second input device includes: a communication interface for transmitting and receiving radio signals; a memory , used to store computer program instructions; the processor, used to execute the computer program instructions to support the second input device to implement the method in any possible implementation manner of the third aspect.
  • An eighth aspect provides a communication system, which includes: a first terminal device, a second terminal device, and a first input device as in any possible implementation of the fourth aspect or the sixth aspect, the communication system The system is used to implement the method in any possible implementation manner of the first aspect.
  • the above communication system further includes: a second input device as in any possible implementation manner of the fifth aspect or the seventh aspect.
  • Figure 2 is a schematic diagram of the hardware structure of a terminal device provided by an embodiment of the present application.
  • Figure 4 is a schematic diagram of a wireless mouse button provided by an embodiment of the present application.
  • Figure 9A is a flowchart 1 of the connection method of the input device provided by the embodiment of the present application.
  • Figure 9C is a flowchart three of the input device connection method provided by the embodiment of the present application.
  • Figure 9D is a flowchart 4 of the connection method of the input device provided by the embodiment of the present application.
  • Figure 10 is an example diagram of the process of establishing multiple connections for a wireless mouse provided by an embodiment of the present application.
  • Figure 12 is Figure 1 of an example of modifying the multi-device connection configuration provided by the embodiment of the present application.
  • Figure 13 is Figure 2 of an example of modifying the multi-device connection configuration provided by the embodiment of the present application.
  • Figure 14 is Figure 3 of an example of modifying the multi-device connection configuration provided by the embodiment of the present application.
  • Figure 16 is Figure 5 of an example of modifying the multi-device connection configuration provided by the embodiment of the present application.
  • Figure 20 is a structural block diagram of an input device provided by an embodiment of the present application.
  • the terminal device can usually be connected to one or more input devices (such as input peripherals) to implement corresponding functions.
  • a personal computer PC
  • the PC can also be connected to a keyboard, through which functions such as moving the cursor on the PC display, entering characters, opening/deleting files, etc. can be realized.
  • a tablet computer can be connected to a keyboard, and functions such as inputting characters to the tablet computer and opening applications/videos/audio on the tablet computer can be realized through the keyboard.
  • PC1 can synchronize the position of the mouse cursor sliding out of the PC1 display screen to PC2 based on the connected WLAN, so that PC2 determines the initial cursor position indicated by the mouse 100 on the PC2 display screen.
  • the method shown in Figure 1 uses screen cursor edge detection to notify the mouse 100 (ie, the input device) to disconnect the communication connection with the source host and establish a communication connection with the target host to implement host switching. Furthermore, the method shown in Figure 1 can realize the automatic traversal of the cursor between terminal devices through information interaction between hosts. It can be seen that based on the method shown in Figure 1, the user only needs to carry one set of input devices, and can switch operations between multiple terminal devices at will according to actual needs.
  • the mouse 100 can only establish a communication connection with one host at the same time. For example, in the initial state shown in Figure 1, the mouse 100 only establishes a communication connection with PC1; after the mouse 100 establishes a communication connection with PC2 shown in Figure 1, the mouse 100 only establishes a communication connection with PC2.
  • the input device switching method shown in Figure 1 since PC1 and PC2 need to synchronize information based on the same WLAN, this method is highly dependent on WLAN.
  • PC1 and PC2 perform information synchronization after the mouse 100 establishes a wireless communication connection with PC2, so information synchronization between hosts cannot be performed in real time. Therefore, the switching delay of the input device in this method is high, and the switching delay is high. This will cause lag in the interface display.
  • connection method for input devices This method can be applied in a scenario where multiple devices (i.e., multi-terminal devices) are interconnected and implemented. The same input device can be moved between multiple devices at will.
  • the input methods supported by the input device may include but are not limited to key press methods. (such as mouse, keyboard, etc.), rolling wheel method (such as mouse, etc.), gesture input method, body language input method, voice input method, expression input method, eye movement input method, etc.
  • key press methods such as mouse, keyboard, etc.
  • rolling wheel method such as mouse, etc.
  • gesture input method body language input method
  • voice input method such as voice input method
  • expression input method such as eye movement input method, etc.
  • the embodiments of the present application do not limit the specific communication method between the input device and the terminal device.
  • the Bluetooth peripheral can communicate with the terminal device based on the Bluetooth protocol that supports multi-connection protocol stacks between devices to achieve migration from one terminal device to another.
  • migrating the input device from one terminal device to another specifically means switching the focus device of the input device from one terminal device (i.e., the source host) to another terminal device (i.e., the target host).
  • the communication connection between the input device and the source host will not be disconnected.
  • the focus device refers to the terminal device that has established a communication connection with the input device and can currently be directly controlled by the input device;
  • the non-focus device refers to the terminal device that has established a communication connection with the input device but cannot currently be directly controlled by the input device.
  • the focus device of the input device is PC1; after the migration, the focus device of the input device is PC2.
  • the input device is used to control PC1; after the migration, the input device is used to control PC2.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the terminal device.
  • the terminal device may include more or less components than shown in the figures, or some components may be combined, or some components may be separated, or may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • Processor 210 may include one or more processing units.
  • the processor 210 may include an application processor (application processor, AP), modem processor, graphics processing unit (GPU), image signal processor (image signal processor, ISP), flight controller, Video codec, digital signal processor (DSP), baseband processor, and/or neural network processing unit (NPU), etc.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • flight controller flight controller
  • Video codec digital signal processor
  • DSP digital signal processor
  • NPU neural network processing unit
  • different processing units can be independent devices or integrated in one or more processors.
  • the processor 210 may also be provided with a memory for storing instructions and data.
  • the memory in processor 210 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 210 . If processor 210 needs to use the instructions or data again, it can be retrieved directly from the memory. Accept the call. Repeated access is avoided and the waiting time of the processor 210 is reduced, thus improving the efficiency of the system.
  • the processor 210 may include one or more microcontrollers (micro control units, MCUs), which are responsible for unified scheduling of all other modules/timing/transactions related to input device migration, etc.
  • microcontrollers micro control units, MCUs
  • processor 210 may include one or more interfaces. Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous receiver and transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the charge management module 240 is used to receive charging input from the charger.
  • the power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210.
  • the power management module 241 receives input from the battery 242 and/or the charge management module 240 and supplies power to the processor 210, internal memory 221, display screen 294, camera 293, communication module 250, etc.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in an end device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be reused as a diversity antenna for a wireless LAN.
  • antennas may be used in conjunction with tuning switches.
  • the communication module 250 can also provide applications on the terminal device including WLAN (such as Wi-Fi network), Bluetooth (Bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation ( Frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the communication module 250 may be one or more devices integrating at least one communication processing module.
  • the communication module 250 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210 .
  • the communication module 250 can also receive the signal to be sent from the processor 210, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the communication module 250 may include a Bluetooth module.
  • the Bluetooth module can be used to send Bluetooth messages and realize interaction with multiple input devices based on Bluetooth connections.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs sound signals through audio devices (not limited to speaker 270A, receiver 270B, etc.), or displays images or videos through display screen 294.
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 210 and may be provided in the same device as the communication module 250 or other functional modules.
  • the terminal device can communicate with other terminal devices based on the communication module 250, antenna 1 and/or antenna 2, for example, send control instructions to other terminal devices.
  • the antenna 1 of the terminal device is coupled to the communication module 250, and the antenna 2 is coupled to the communication module 250, so that the terminal device can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), new radio (new radio, NR ), BT, GNSS, WLAN, NFC, FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi) -zenith satellite system, QZSS) and/or satellite based augmentation systems (satellite based augmentation systems, SBAS), etc.
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the display screen 294 is used to display images, videos, etc.
  • Display 294 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
  • the terminal device can perform interface rendering through the GPU, interface display through the display screen 294, etc.
  • the terminal device can realize the shooting function through the ISP, camera 293, video codec, GPU, display screen 294 and application processor.
  • the terminal device can implement audio functions through the audio module 260, the speaker 270A, the receiver 270B, the microphone 270C, and the application processor. Such as music playback, recording, etc.
  • audio module 260, the speaker 270A, the receiver 270B and the microphone 270C please refer to the introduction in the conventional technology.
  • the input device 300 may include: a bus 305 , an input module 310 , a control circuit 320 , a power supply 330 , a memory component 340 , a communication module 350 and a power management module 360 .
  • the power supply 330 is used to power the input device 300 .
  • Power management module 360 may route power directly from power supply 330 to other components of input device 300 .
  • Power management module 360 may also distribute power from power supply 330 to other system components (eg, control circuitry 320, communication module 350, and input module 310, or any combination thereof).
  • control circuit 320 may communicate with each other via bus 305 .
  • Input module 310 may be independently connected to control circuitry 320 and power management module 360.
  • input module 310 may be connected to other modules via bus 305 .
  • input module 310 may be configured to receive input from multiple key input elements or devices. enter. In some embodiments, the input module 310 is operable to receive input in response to a user pressing a component including: a key (e.g., a letter key, a function key (e.g., a volume key, an escape key, a mute key, a shift key)). etc.), numeric keys or numeric keyboard keys, operating system selection keys, right mouse button, left mouse button, etc.), or other appropriate input elements or devices such as media control buttons, voice over internet phone (VOIP) buttons , touch sensors (such as touch pads, touch pins), etc.
  • a key e.g., a letter key, a function key (e.g., a volume key, an escape key, a mute key, a shift key)
  • numeric keys or numeric keyboard keys e.g., a volume key, an escape key, a mute key, a shift key
  • operating system selection keys e.g.
  • control circuit 320 may include one or more micro-processors, and control circuit 320 may be configured to control the operation of input device 300 .
  • the control circuit 320 may be used to coordinate and schedule all other modules/sequences/transactions in a unified manner, manage input device configuration information, manage input device migration, etc.
  • control circuitry 320 may include one or more MCUs, digital signal processors (DSPs) supporting hardware/firmware (e.g., memory, programmable input/output (I/O), etc.) , field-programmable gate array (FPGA), programmable logic device (PLD), etc.
  • DSPs digital signal processors
  • FPGA field-programmable gate array
  • PLD programmable logic device
  • Memory component 340 may be configured to store data.
  • the data may include connection data and pairing data including, for example, the address of the selected terminal device.
  • memory component 340 may be non-volatile memory.
  • Communication module 350 may be configured to provide I/O capabilities to input device 300 .
  • the communication module 350 may route data from the input module 310 to the terminal device and route data from the terminal device to the input module 310 via a wireless connection.
  • the wireless connection may be a Bluetooth connection or a communication connection based on any other wireless standard or dedicated wireless network protocol.
  • the communication module 350 may include a Bluetooth module.
  • the Bluetooth module can be used to send Bluetooth messages and realize Bluetooth connection interaction with multiple terminal devices.
  • the input device has the ability to maintain communication connections with multiple devices at the same time.
  • the input device can work in a normal mode or in a multi-connection mode.
  • the multi-connection mode refers to the working mode that maintains communication connections with multiple terminal devices at the same time; in contrast, the normal mode refers to the working mode that only maintains communication connections with a single terminal device.
  • the input device in the multi-connection mode can support the input device to achieve seamless and synchronous transition of focus between multiple terminal devices by maintaining communication connections with multiple terminal devices at the same time.
  • the input device has the ability to provide multiple multimedia access control (media access control, MAC) addresses.
  • multimedia access control media access control, MAC
  • the input device has the ability to maintain communication connections with multiple devices through multiple MAC addresses at the same time.
  • a MAC address can be used for an input device and an end device Establishing a communication connection and conducting subsequent communications.
  • a multi-device connection shortcut switch can be set on the input device, so that when the user needs to move the focus of the input device across devices, the multi-device connection function can be enabled with one click through the shortcut switch.
  • the input device in the normal mode receives the user's operation to enable the multi-device connection function
  • the input device enters the multi-connection mode from the normal mode.
  • the input device in the multi-connection mode receives a user's operation to close the multi-device connection function
  • the input device enters the normal mode from the multi-connection mode.
  • FIG. 4 takes a wireless mouse as an example and shows a schematic diagram of a wireless mouse button provided by an embodiment of the present application.
  • the wireless mouse 400 is provided with a multi-device connection shortcut switch 401.
  • the wireless mouse 400 After the wireless mouse 400 in the normal mode receives the user's operation of turning on the multi-device connection shortcut switch 401 shown in Figure 4, the wireless mouse 400 enters the normal mode shown in (a) in Figure 5 (b) in Figure 5 ), in the multi-connection mode shown in Figure 5, while maintaining the Bluetooth connection with the focus device, establish wireless connections with one or more other terminal devices (PC, tablet, mobile phone as shown in (b) in Figure 5) at the same time. .
  • the terminal devices that the input device can connect to may include but are not limited to one or more of the following: terminal devices discovered by the input device, the latest multi-connection mode of the input device Terminal devices connected to the input device, terminal devices with a high frequency of connection to the input device within a preset time period, terminal devices manually selected by the user, terminal devices determined by the input device itself (such as terminals that are close to the input device) Equipment), etc., are not limited in the embodiments of this application.
  • FIG. 4 only takes the multi-device connection shortcut switch being set on the input device as an example, showing a way to enable the multi-device connection function with one click.
  • this application does not limit the specific method of enabling the multi-device connection function.
  • the user can also operate on the user interface (UI) (hereinafter referred to as the UI interface) on the focus device connected to the input device.
  • UI user interface
  • the number of terminal devices that the input device can connect to may be determined by the Bluetooth channel configuration of the input device.
  • a Bluetooth channel of the input device can Assigned to a terminal device for communication between the terminal device and the input device.
  • the wireless mouse can enter the multi-connection mode from the normal mode.
  • Phase 2 Input device focus migration phase.
  • the source host instructs the wireless mouse to switch the focus device.
  • the target host receives information input from the input device instead.
  • the first device when the first device detects that the mouse cursor slides to the edge of the screen and still has a tendency to slide out of the edge, it can prompt (such as a pop-up window, voice prompt, etc.) the user to turn on the wireless mouse multi-device connection function.
  • prompt such as a pop-up window, voice prompt, etc.
  • the migration instruction information also includes the display size of the first device.
  • the first device can also separately send the display size of the first device to the wireless mouse.
  • the first device can determine the target host (such as a second device).
  • S904 may specifically include: when it is detected that the mouse cursor slides to other devices.
  • the first device determines that the target host is the second device.
  • the first device sends migration instruction information to the wireless mouse.
  • the migration instruction information carries identification information of the second device.
  • the first device detects that the mouse cursor tends to slide to other devices, it may determine that the target host is the second device based on the multi-device connection configuration information.
  • the migration instruction information shown in FIG. 9B is used to instruct the wireless mouse to switch the focus device to the second device.
  • the wireless mouse deletes the icon of the second device from the UI interface of the multi-device connection configuration.
  • the option bar shown in Figure 13, Figure 14 and Figure 15 can be displayed by the first device after receiving the user's preset operation (such as long press, double click, click, right mouse button, etc.) on the second device icon. of.
  • preset operation such as long press, double click, click, right mouse button, etc.
  • the wireless mouse adds the icon of the second device to the UI interface of the multi-device connection configuration.
  • the option bar shown in FIG. 16 may be displayed by the first device after receiving the user's selection operation (such as long press, double-click, click, etc.) on the add device button on the interface shown in FIG. 16 .
  • the first device or wireless mouse can obtain the multi-device connection configuration information of the wireless mouse based on automatic positioning technology (such as ultrasonic positioning technology), such as the first device and the second device currently connected to the wireless mouse. and the specific location of the third device in the environment, and then determine the location ordering among the first device, the second device and the third device based on its specific location.
  • automatic positioning technology such as ultrasonic positioning technology
  • S904 may specifically include: when detecting that the mouse cursor tends to slide toward other devices, the first device determines that the target host is the second device. And further, the first device sends migration instruction information to the wireless mouse.
  • the migration instruction information carries identification information of the second device. Specifically, when the first device detects that the mouse cursor tends to slide toward other devices, it may determine that the target host is the second device based on the multi-device connection configuration information of the wireless mouse.
  • S905 The wireless mouse switches the focus device to the second device.
  • S905 may specifically include: the wireless mouse responds to the identification information carried in the migration instruction information.
  • the identification information of the second device switches the focus device to the second device.
  • the wireless mouse can obtain the multi-device connection configuration information of the wireless mouse based on automatic positioning technology (such as ultrasonic positioning technology).
  • automatic positioning technology such as ultrasonic positioning technology
  • the multi-device connection configuration information of the wireless mouse may be sent to the wireless mouse by the first device before the wireless mouse switches the focus device from the first device to another terminal device.
  • S906 The wireless mouse sends the position information of the mouse cursor sliding out of the display screen of the first device to the second device.
  • the second device displays the mouse cursor based on the position information of the mouse cursor sliding out of the display screen of the first device and the size of the display screen of the second device.
  • the second device can determine the initial position of the mouse cursor on the second device display screen based on the position information of the mouse cursor sliding out of the first device display screen and the size of the second device display screen and display it at the initial position.
  • Mouse cursor can be determined the initial position of the mouse cursor on the second device display screen based on the position information of the mouse cursor sliding out of the first device display screen and the size of the second device display screen and display it at the initial position. Mouse cursor.
  • the wireless keyboard ie, the second input device
  • the wireless mouse ie, the first input device
  • the wireless keyboard and the wireless mouse are initially in the normal mode, and both have established wireless communication connections with the first device.
  • the wireless mouse can save the identification information of the second device and the identification information of the third device (for example, save them in a pairing information list). Further, after the wireless mouse establishes a wireless communication connection with the second device and the third device, the wireless mouse can share the identification information of the second device and the identification information of the third device with the first device.
  • the wireless keyboard After the wireless keyboard receives the working mode synchronous switching instruction from the first device, the wireless keyboard enters the multi-connection mode and establishes a wireless communication connection with the second device and the third device.
  • the first device is the focus device of the wireless keyboard, and the second device and the third device are non-focus devices of the wireless keyboard. That is to say, the wireless keyboard can currently input information directly into the first device.
  • the wireless keyboard can establish a wireless communication connection with the second device through the third MAC address and conduct subsequent communications, and establish a wireless communication connection with the third device through the fourth MAC address and conduct subsequent communications.
  • the position information of the mouse cursor sliding out of the display screen of the first device can also be sent separately by the first device to the wireless mouse, which is not limited in this application.
  • the above-mentioned migration instruction information is used to instruct the target host (such as a second device), that is, the migration instruction information is used to instruct the wireless mouse to switch the focus device to the second device.
  • the above migration instruction information may carry identification information of the second device.
  • the first operation is an operation of moving a wireless mouse.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Input By Displaying (AREA)

Abstract

本申请公开了一种输入设备的连接方法、设备及系统,涉及终端技术领域,可以降低向多设备输入信息时的操作复杂程度,提高输入效率。本申请中,同一输入设备可以在多个终端设备之间随意进行焦点设备切换。其中,在焦点设备切换前后,输入设备可以同时与多个终端设备保持通信连接,并基于与非焦点设备之间的通信连接后台与非焦点设备交互信息。基于本申请公开的方案,输入设备可以在不依赖于无线局域网(wireless local area network,WLAN)的情况下,基于用户便捷的操作,实现在多个终端设备之间的无缝焦点迁移,保证切换时界面显示不卡顿,实现输入设备跨设备无缝接续的效果。

Description

一种输入设备的连接方法、设备及系统
本申请要求于2022年3月25日提交国家知识产权局、申请号为202210302737.3、申请名称为“一种输入设备的连接方法、设备及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种输入设备的连接方法、设备及系统。
背景技术
随着终端技术的多样化发展,用户日常生活或工作通常所使用的终端设备从单一设备逐渐改变为多个设备。通常,终端设备可以通过与一个或多个输入设备连接,以实现相应功能。例如,输入设备可以是无线外设。
但是,在用户同时使用多个终端设备时,用户需要携带并维护多个终端设备配套的输入设备。例如,在用户同时使用个人计算机(personal computer,PC)1和PC2时,如果PC1和PC2分别配置有一套鼠标和键盘,那么,用户需要在PC1配套的鼠标1和键盘1,以及PC2配套的鼠标2和键盘2之间穿插操作。或者,如果两个终端设备共用一套输入设备,用户需要手动切断该套输入设备与一个终端设备的连接关系,并重新配置该套输入设备与另一个终端设备的连接关系。例如,当用户通过与PC1连接的鼠标操控PC1时,如果用户想通过同一鼠标操作PC2,则必须手动去切断该鼠标与PC1的连接关系,并重新配置该鼠标与PC2的连接关系。上述两种方法都非常繁琐,且效率很低。
发明内容
本申请提供一种输入设备的连接方法、设备及系统,可以降低向多设备输入信息时的操作复杂程度,提高输入效率。
为达到上述目的,本申请实施例采用如下技术方案:
第一方面,提供一种输入设备的连接方法,该方法应用于通信系统,该通信系统包括第一输入设备、第一终端设备和第二终端设备,该方法包括:第一输入设备在处于多连接工作模式时,与第一终端设备和第二终端设备均保持通信连接;第一终端设备向第一输入设备发送用于指示第一输入设备进行焦点设备切换的迁移指示信息;响应于该迁移指示信息,第一输入设备将焦点设备由第一终端设备切换为第二终端设备。其中,在第一输入设备将焦点设备由第一终端设备切换为第二终端设备之前,第一输入设备用于向第一终端设备输入信息;在第一输入设备将焦点设备由第一终端设备切换为第二终端设备之后,第一输入设备用于向第二终端设备输入信息。
其中,输入设备进行焦点迁移具体是指输入设备的焦点设备由一个终端设备(即源主机)切换为另一个终端设备(即目标主机)。需要说明的是,在输入设备由一个终端设备(即源主机)迁移至另一个终端设备(即目标主机)之后,输入设备与源主机之间的通信连接并不会断开。焦点设备是指与输入设备建立通信连接,且输入设备当前所能直接操控的终端设备;非焦点设备是指与输入设备建立通信连接,但是输入设备当前不能直接操控的终端设备。
上述第一方面提供的方案,同一输入设备(如第一输入设备)可以在多个终端设备(如第一终端设备和第二终端设备)之间随意进行焦点迁移。在焦点迁移前后,输入设备可以同时与多个终端设备保持通信连接,并基于与非焦点设备之间的通信连接后台与非焦点设备交互信息。基于此,输入设备可以实现在多个终端设备之间的无缝焦点迁移,保证切换时界面显示不卡顿,实现输入设备跨设备无缝接续的效果。另外,该方法无需依赖于无线局域网(wireless local area network,WLAN)进行信息同步,即多个终端设备无需连接至同一WLAN。
在一种可能的实现方式中,上述第一输入设备是无线鼠标;上述方法还包括:第一终端设备向第一输入设备发送鼠标光标滑出第一终端设备显示屏的位置信息;第一输入设备向第二终端设备发送鼠标光标滑出第一终端设备显示屏的位置信息,用于第二终端设备确定鼠标光标在第二终端设备显示屏上的初始位置。作为一种示例,本申请提供的方法可以用于无线鼠标在多个终端设备之间的无缝焦点设备切换。其中,源主机(如第一终端设备)可以通过无线鼠标向目标主机(如第二终端设备)同步鼠标光标滑出第一终端设备显示屏的位置信息,以便目标主机接续源主机(如第一终端设备)显示鼠标光标,实现鼠标光标跨设备无缝接续的效果。
在一种可能的实现方式中,上述第一终端设备向第一输入设备发送迁移指示信息,包括:第一终端设备在检测到鼠标光标有滑向其它终端设备的趋势时,向第一输入设备发送迁移指示信息。作为一种示例,源主机(如第一终端设备)检测到鼠标光标有滑向其它终端设备的趋势可以作为触发无线鼠标在多个终端设备之间的无缝焦点设备切换的触发条件。通过该人性化的触发方法,可以提高用户向多设备输入信息时的操作体验。
在一种可能的实现方式中,上述第一终端设备向第一输入设备发送迁移指示信息,包括:第一终端设备在检测到鼠标光标有滑向其它终端设备的趋势,且确定其它终端设备是第二终端设备时,向第一输入设备发送迁移指示信息;其中,迁移指示信息中携带有第二终端设备的标识信息。作为一种方式,可以由源主机(如第一终端设备)确定目标主机并通知无线鼠标。该方式提供了一种可能的使用场景。
在一种可能的实现方式中,上述方法还包括:第一终端设备根据鼠标光标滑出第一终端设备显示屏的位置信息和第一输入设备的多设备连接配置信息确定其它终端设备是第二终端设备;其中,第一输入设备的多设备连接配置信息用于表征多个终端设备之间的位置排序。作为一种方式,源主机(如第一终端设备)可以根据鼠标光标滑出第一终端设备显示屏的位置信息,以及获取的多设备连接配置信息所表征的多个终端设备之间的位置排序确定目标主机。该方式提供了一种可能的使用场景。
在一种可能的实现方式中,上述方法还包括:第一终端设备根据用户在用户界面上的自定义设置的多个终端设备之间的位置排序,确定第一输入设备的多设备连接配置信息。本申请提供的方法支持用户通过在源主机(如第一终端设备)上的用户界面上的自定义设置,预先设置第一输入设备的多设备连接配置信息,以便后续源主机检测到鼠标光标有滑向其它终端设备的趋势时,可以进一步确定目标主机。
示例性的,源主机上的用户界面如用于进行无线鼠标的多设备连接配置的界面。
示例性的,用户可以通过修改终端设备之间的位置排序、禁用某一终端设备、删 除某一终端设备、启用某一终端设备、增加某一终端设备等自定义设置多个终端设备之间的位置排序。
在一种可能的实现方式中,上述方法还包括:第一终端设备基于自动定位技术,获取第一输入设备的多设备连接配置信息。本申请提供的方法支持源主机(如第一终端设备)基于自动定位技术获取第一输入设备的多设备连接配置信息,以便后续源主机检测到鼠标光标有滑向其它终端设备的趋势时,可以进一步确定目标主机。
在一种可能的实现方式中,上述响应于迁移指示信息,第一输入设备将焦点设备由第一终端设备切换为第二终端设备,包括:响应于迁移指示信息,第一输入设备根据鼠标光标滑出第一终端设备显示屏的位置信息和第一输入设备的多设备连接配置信息,将焦点设备由第一终端设备切换为第二终端设备;其中,第一输入设备的多设备连接配置信息用于表征多个终端设备之间的位置排序。作为一种方式,第一输入设备可以自行根据鼠标光标滑出第一终端设备显示屏的位置信息,以及多设备连接配置信息所表征的多个终端设备之间的位置排序确定目标主机。该方式提供了另一种可能的使用场景。
在一种可能的实现方式中,上述方法还包括:第一输入设备基于自动定位技术,获取第一输入设备的多设备连接配置信息。本申请提供的方法支持第一输入设备基于自动定位技术获取第一输入设备的多设备连接配置信息,以便在接收到源主机的迁移指示信息时,可以进一步确定目标主机。
在一种可能的实现方式中,上述自动定位技术是超声波定位技术。
在一种可能的实现方式中,在第一输入设备将焦点设备由第一终端设备切换为第二终端设备之后,上述方法还包括:第一输入设备向第二终端设备发送第一输入设备的个性化配置参数;其中,上述个性化配置参数包括以下中的一种或多种:每英寸像素点、快捷键设置、主按键定义、指纹信息。通过个性化配置参数的同步,可以保证输入设备进行焦点设备切换之后,目标主机能够同步源主机的光标显示参数等相关个性化配置参数,实现无缝迁移。
在一种可能的实现方式中,上述方法还包括:第一终端设备在检测到用户在用户界面上开启多设备连接功能的操作后,向第一输入设备发送工作模式切换指令,以指示第一输入设备从普通模式切换为多连接模式;第一输入设备从普通模式切换为多连接模式;其中处于普通模式的第一输入设备仅与第一终端设备建立无线通信连接。第一输入设备通过提供支持多设备连接功能的用户界面选项,以便用户在有焦点设备切换需求时,开启该多设备连接功能以进行焦点设备切换。通过该可选的功能选项,可以为用户提供支持多种场景的使用体验。示例性的,用户可以通过在用户界面上打开多连接开关的操作,开启多设备连接功能。
在一种可能的实现方式中,上述方法还包括:在检测到用户打开第一输入设备上用于开启多设备连接功能开关的操作后,第一输入设备从普通模式切换为多连接模式。第一输入设备通过提供支持多设备连接功能开关,以便用户在有焦点设备切换需求时,开启该多设备连接开关以进行焦点设备切换。通过该可选的功能选项,可以为用户提供支持多种场景的使用体验。示例性的,该多设备连接功能开关可以为第一输入设备上的物理按键。
在一种可能的实现方式中,上述通信系统还包括第二输入设备,第二设备处于多连接工作模式,并且与第一终端设备和第二终端设备均保持通信连接,上述方法还包括:第一终端设备向第二输入设备发送协同迁移指示信息;响应于协同迁移指示信息,第二输入设备将焦点设备由第一终端设备切换为第二终端设备;其中,在第二输入设备将焦点设备由第一终端设备切换为第二终端设备之前,第二输入设备用于向第一终端设备输入信息;在第二输入设备将焦点设备由第一终端设备切换为第二终端设备之后,第二输入设备用于向第二终端设备输入信息。本申请提供的方案支持多个输入设备进行协同迁移,例如在第一输入设备将焦点设备由第一设备切换为第二设备时,第二输入设备也同步将焦点设备由第一设备切换为第二设备。该方法可以极大简化用户同时使用多个终端设备时的操作步骤,实现多个输入设备在多个终端设备之间的无缝同步迁移,保证切换时界面显示不卡顿,实现多个输入设备跨设备无缝接续的效果。另外,该方法无需依赖于WLAN进行信息同步,即多个终端设备无需连接至同一WLAN。
在一种可能的实现方式中,上述第二输入设备是无线键盘;上述第一终端设备向第二输入设备发送协同迁移指示信息,包括:第一终端设备在检测到用户打开键鼠协同功能的操作后,向第一输入设备发送协同迁移指示信息。第一输入设备通过提供支持键鼠协同功能的选项,以便用户在有键鼠协同需求时,开启该键鼠协同功能以实现键鼠协同。通过该可选的功能选项,可以为用户提供支持多种场景的使用体验。
在一种可能的实现方式中,上述用户打开键鼠协同功能的操作是用户在用户界面上开启键鼠协同功能的操作,或者是用户在第二输入设备上打开开关的操作。示例性的,用户可以通过在用户界面上开启键鼠协同功能,或者通过第二输入设备上的物理按键开启键鼠协同功能。
在一种可能的实现方式中,上述第一输入设备在处于多连接工作模式时,分别通过第一多媒体访问控制(media access control,MAC)地址和第二MAC地址与第一终端设备和第二终端设备保持通信连接。通过使用不同的MAC地址与多个终端设备保持通信连接,可以避免由于MAC抢占等原因导致的输入设备无法同时连接多个终端设备的情况。
第二方面,提供一种输入设备的连接方法,该方法应用于第一输入设备,该方法包括:第一输入设备在处于多连接模式时,与第一终端设备和第二终端设备均保持通信连接;第一输入设备接收来自第一终端设备的用于指示第一输入设备进行焦点设备切换的迁移指示信息;响应于该迁移指示信息,第一输入设备将焦点设备由第一终端设备切换为第二终端设备;其中,在第一输入设备将焦点设备由第一终端设备切换为第二终端设备之前,第一输入设备用于向第一终端设备输入信息;在第一输入设备将焦点设备由第一终端设备切换为第二终端设备之后,第一输入设备用于向第二终端设备输入信息。
上述第二方面提供的方案,同一输入设备(如第一输入设备)可以在多个终端设备(如第一终端设备和第二终端设备)之间随意进行焦点迁移。在焦点迁移前后,输入设备可以同时与多个终端设备保持通信连接,并基于与非焦点设备之间的通信连接后台与非焦点设备交互信息。基于此,输入设备可以实现在多个终端设备之间的无缝 焦点迁移,保证切换时界面显示不卡顿,实现输入设备跨设备无缝接续的效果。另外,该方法无需依赖于WLAN进行信息同步,即多个终端设备无需连接至同一WLAN。
在一种可能的实现方式中,上述第一输入设备是无线鼠标;上述方法还包括:第一输入设备从第一终端设备获取鼠标光标滑出第一终端设备显示屏的位置信息;第一输入设备向第二终端设备发送鼠标光标滑出第一终端设备显示屏的位置信息,用于第二终端设备确定鼠标光标在第二终端设备显示屏上的初始位置。作为一种示例,本申请提供的方法可以用于无线鼠标在多个终端设备之间的无缝焦点设备切换。其中,源主机(如第一终端设备)可以通过无线鼠标向目标主机(如第二终端设备)同步鼠标光标滑出第一终端设备显示屏的位置信息,以便目标主机接续源主机(如第一终端设备)显示鼠标光标,实现鼠标光标跨设备无缝接续的效果。
在一种可能的实现方式中,上述迁移指示信息中携带有第二终端设备的标识信息。作为一种方式,可以由源主机(如第一终端设备)确定目标主机并通知无线鼠标。该方式提供了一种可能的使用场景。
在一种可能的实现方式中,上述响应于迁移指示信息,第一输入设备将焦点设备由第一终端设备切换为第二终端设备,包括:响应于迁移指示信息,第一输入设备根据鼠标光标滑出第一终端设备显示屏的位置信息和第一输入设备的多设备连接配置信息,将焦点设备由第一终端设备切换为第二终端设备;其中,第一输入设备的多设备连接配置信息用于表征多个终端设备之间的位置排序。作为一种方式,第一输入设备可以自行根据鼠标光标滑出第一终端设备显示屏的位置信息,以及多设备连接配置信息所表征的多个终端设备之间的位置排序确定目标主机。该方式提供了另一种可能的使用场景。
在一种可能的实现方式中,第一输入设备基于自动定位技术,获取第一输入设备的多设备连接配置信息。本申请提供的方法支持第一输入设备基于自动定位技术获取第一输入设备的多设备连接配置信息,以便在接收到源主机的迁移指示信息时,可以进一步确定目标主机。
在一种可能的实现方式中,上述自动定位技术是超声波定位技术。
在一种可能的实现方式中,在第一输入设备将焦点设备由第一终端设备切换为第二终端设备之后,上述方法还包括:第一输入设备向第二终端设备发送第一输入设备的个性化配置参数;其中,个性化配置参数包括以下中的一种或多种:每英寸像素点、快捷键设置、主按键定义、指纹信息。通过个性化配置参数的同步,可以保证输入设备进行焦点设备切换之后,目标主机能够同步源主机的光标显示参数等相关个性化配置参数,实现无缝迁移。
在一种可能的实现方式中,上述方法还包括:第一输入设备接收来自第一终端设备的工作模式切换指令;第一输入设备从普通模式切换为多连接模式;其中处于普通模式的第一输入设备仅与第一终端设备建立无线通信连接。通过该可选的功能选项,可以为用户提供支持多种场景的使用体验。示例性的,用户可以通过在用户界面上打开多连接开关的操作,开启多设备连接功能。
在一种可能的实现方式中,上述方法还包括:在检测到用户打开第一输入设备上用于开启多设备连接功能开关的操作后,第一输入设备从普通模式切换为多连接模式。 第一输入设备通过提供支持多设备连接功能开关,以便用户在有焦点设备切换需求时,开启该多设备连接开关以进行焦点设备切换。通过该可选的功能选项,可以为用户提供支持多种场景的使用体验。示例性的,该多设备连接功能开关可以为第一输入设备上的物理按键。
在一种可能的实现方式中,上述第一输入设备在处于多连接工作模式时,分别通过第一MAC地址和第二MAC地址与第一终端设备和第二终端设备保持通信连接。通过使用不同的MAC地址与多个终端设备保持通信连接,可以避免由于MAC抢占等原因导致的输入设备无法同时连接多个终端设备的情况。
第三方面,提供一种输入设备的连接方法,该方法应用于第二输入设备,该方法包括:第二输入设备在处于多连接模式时,与第一终端设备和第二终端设备均保持通信连接;第一终端设备向第二输入设备发送用于指示第二输入设备与其他输入设备协同进行焦点设备切换的协同迁移指示信息,其中协同迁移指示信息中携带有第二终端设备的标识信息;响应于协同迁移指示信息,第二输入设备将焦点设备由第一终端设备切换为第二终端设备;其中,在第二输入设备将焦点设备由第一终端设备切换为第二终端设备之前,第二输入设备用于向第一终端设备输入信息;在第二输入设备将焦点设备由第一终端设备切换为第二终端设备之后,第二输入设备用于向第二终端设备输入信息。
作为一种示例,协同迁移指示信息可以由第一终端设备在第一输入设备进行焦点设备切换之后,发送给第二输入设备。
需要说明的是,在第二输输入设备由一个终端设备(即源主机)迁移至另一个终端设备(即目标主机)之后,第二输输入设备与源主机之间的通信连接并不会断开。
上述第三方面提供的方案,在第一输入设备将焦点设备由第一设备切换为第二设备时,第二输入设备也同步将焦点设备由第一设备切换为第二设备。该方法可以极大简化用户同时使用多个终端设备时的操作步骤,实现多个输入设备在多个终端设备之间的无缝同步迁移,保证切换时界面显示不卡顿,实现多个输入设备跨设备无缝接续的效果。另外,该方法无需依赖于WLAN进行信息同步,即多个终端设备无需连接至同一WLAN。
在一种可能的实现方式中,上述第二输入设备是无线键盘。
在一种可能的实现方式中,协同迁移指示信息可以由第一终端设备在检测到用户打开键鼠协同功能的操作后,发送给第二输入设备。通过提供支持键鼠协同功能的选项,以便用户在有键鼠协同需求时,开启该键鼠协同功能以实现键鼠协同。通过该可选的功能选项,可以为用户提供支持多种场景的使用体验。
在一种可能的实现方式中,上述用户打开键鼠协同功能的操作是用户在用户界面上开启键鼠协同功能的操作,或者是用户在第二输入设备上打开开关的操作。示例性的,用户可以通过在用户界面上开启键鼠协同功能,或者通过第二输入设备上的物理按键开启键鼠协同功能。
在一种可能的实现方式中,在第二输入设备将焦点设备由第一终端设备切换为第二终端设备之后,上述方法还包括:第二输入设备向第二终端设备发送第二输入设备的个性化配置参数;其中,上述个性化配置参数包括快捷键设置。通过个性化配置参 数的同步,可以保证输入设备进行焦点设备切换之后,目标主机能够同步输入设备的快捷键设置等相关个性化配置参数,方便用户操作。
在一种可能的实现方式中,上述第二输入设备在处于多连接工作模式时,分别通过第三MAC地址和第四MAC地址与第一终端设备和第二终端设备保持通信连接。通过使用不同的MAC地址与多个终端设备保持通信连接,可以避免由于MAC抢占等原因导致的输入设备无法同时连接多个终端设备的情况。
第四方面,提供一种输入设备,如第一输入设备,该第一输入设备包括:通信单元,用于在第一输入设备处于多连接模式时,与第一终端设备和第二终端设备均保持通信连接;以及,接收来自第一终端设备的用于指示第一输入设备进行焦点设备切换的迁移指示信息;处理单元,用于响应于该迁移指示信息,将第一输入设备的焦点设备由第一终端设备切换为第二终端设备;其中,在第一输入设备将焦点设备由第一终端设备切换为第二终端设备之前,第一输入设备用于向第一终端设备输入信息;在第一输入设备将焦点设备由第一终端设备切换为第二终端设备之后,第一输入设备用于向第二终端设备输入信息。
上述第四方面提供的方案,同一输入设备(如第一输入设备)可以在多个终端设备(如第一终端设备和第二终端设备)之间随意进行焦点迁移。在焦点迁移前后,输入设备可以同时与多个终端设备保持通信连接,并基于与非焦点设备之间的通信连接后台与非焦点设备交互信息。基于此,输入设备可以实现在多个终端设备之间的无缝焦点迁移,保证切换时界面显示不卡顿,实现输入设备跨设备无缝接续的效果。另外,该方法无需依赖于WLAN进行信息同步,即多个终端设备无需连接至同一WLAN。
在一种可能的实现方式中,上述第一输入设备是无线鼠标;上述通信单元还用于:从第一终端设备获取鼠标光标滑出第一终端设备显示屏的位置信息;以及,向第二终端设备发送鼠标光标滑出第一终端设备显示屏的位置信息,用于第二终端设备确定鼠标光标在第二终端设备显示屏上的初始位置。作为一种示例,本申请提供的方法可以用于无线鼠标在多个终端设备之间的无缝焦点设备切换。其中,源主机(如第一终端设备)可以通过无线鼠标向目标主机(如第二终端设备)同步鼠标光标滑出第一终端设备显示屏的位置信息,以便目标主机接续源主机(如第一终端设备)显示鼠标光标,实现鼠标光标跨设备无缝接续的效果。
在一种可能的实现方式中,上述迁移指示信息中携带有第二终端设备的标识信息。作为一种方式,可以由源主机(如第一终端设备)确定目标主机并通知无线鼠标。该方式提供了一种可能的使用场景。
在一种可能的实现方式中,上述处理单元响应于迁移指示信息,将第一输入设备的焦点设备由第一终端设备切换为第二终端设备,包括:处理单元响应于迁移指示信息,根据鼠标光标滑出第一终端设备显示屏的位置信息和第一输入设备的多设备连接配置信息,将第一输入设备的焦点设备由第一终端设备切换为第二终端设备;其中,第一输入设备的多设备连接配置信息用于表征多个终端设备之间的位置排序。作为一种方式,第一输入设备可以自行根据鼠标光标滑出第一终端设备显示屏的位置信息,以及多设备连接配置信息所表征的多个终端设备之间的位置排序确定目标主机。该方式提供了另一种可能的使用场景。
在一种可能的实现方式中,上述第一输入设备还包括:定位单元,用于基于自动定位技术,获取第一输入设备的多设备连接配置信息。本申请提供的方法支持第一输入设备基于自动定位技术获取第一输入设备的多设备连接配置信息,以便在接收到源主机的迁移指示信息时,可以进一步确定目标主机。
在一种可能的实现方式中,上述自动定位技术是超声波定位技术。
在一种可能的实现方式中,上述通信单元还用于:在处理单元将第一输入设备的焦点设备由第一终端设备切换为第二终端设备之后,向第二终端设备发送第一输入设备的个性化配置参数;其中,个性化配置参数包括以下中的一种或多种:每英寸像素点、快捷键设置、主按键定义、指纹信息。通过个性化配置参数的同步,可以保证输入设备进行焦点设备切换之后,目标主机能够同步源主机的光标显示参数等相关个性化配置参数,实现无缝迁移。
在一种可能的实现方式中,上述通信单元还用于:接收来自第一终端设备的工作模式切换指令;上述处理单元还用于:将第一输入设备的工作模式从普通模式切换为多连接模式;其中处于普通模式的第一输入设备仅与第一终端设备建立无线通信连接。通过该可选的功能选项,可以为用户提供支持多种场景的使用体验。示例性的,用户可以通过在用户界面上打开多连接开关的操作,开启多设备连接功能。
在一种可能的实现方式中,上述第一输入设备还包括:多设备连接功能开关;上述处理单元还用于:在第一输入设备检测到用户打开第一输入设备上用于开启多设备连接功能开关的操作后,将第一输入设备的工作模式从普通模式切换为多连接模式。第一输入设备通过提供支持多设备连接功能开关,以便用户在有焦点设备切换需求时,开启该多设备连接开关以进行焦点设备切换。通过该可选的功能选项,可以为用户提供支持多种场景的使用体验。示例性的,该多设备连接功能开关可以为第一输入设备上的物理按键。
在一种可能的实现方式中,上述通信单元具体用于:在第一输入设备处于多连接工作模式时,分别通过第一MAC地址和第二MAC地址与第一终端设备和第二终端设备保持通信连接。通过使用不同的MAC地址与多个终端设备保持通信连接,可以避免由于MAC抢占等原因导致的输入设备无法同时连接多个终端设备的情况。
第五方面,提供一种输入设备,如第二输入设备,该第二输入设备包括:通信单元,用于在第二输入设备处于多连接模式时,与第一终端设备和第二终端设备均保持通信连接;以及,向第二输入设备发送用于指示第二输入设备与其他输入设备协同进行焦点设备切换的协同迁移指示信息,其中协同迁移指示信息中携带有第二终端设备的标识信息;处理单元,用于响应于协同迁移指示信息,将第二输入设备的焦点设备由第一终端设备切换为第二终端设备;其中,在第二输入设备将焦点设备由第一终端设备切换为第二终端设备之前,第二输入设备用于向第一终端设备输入信息;在第二输入设备将焦点设备由第一终端设备切换为第二终端设备之后,第二输入设备用于向第二终端设备输入信息。
上述第五方面提供的方案,在第一输入设备将焦点设备由第一设备切换为第二设备时,第二输入设备也同步将焦点设备由第一设备切换为第二设备。该方法可以极大简化用户同时使用多个终端设备时的操作步骤,实现多个输入设备在多个终端设备之 间的无缝同步迁移,保证切换时界面显示不卡顿,实现多个输入设备跨设备无缝接续的效果。另外,该方法无需依赖于WLAN进行信息同步,即多个终端设备无需连接至同一WLAN。
在一种可能的实现方式中,上述第二输入设备是无线键盘。
在一种可能的实现方式中,协同迁移指示信息可以由第一终端设备在检测到用户打开键鼠协同功能的操作后,发送给第二输入设备。通过提供支持键鼠协同功能的选项,以便用户在有键鼠协同需求时,开启该键鼠协同功能以实现键鼠协同。通过该可选的功能选项,可以为用户提供支持多种场景的使用体验。
在一种可能的实现方式中,上述用户打开键鼠协同功能的操作是用户在用户界面上开启键鼠协同功能的操作,或者是用户在第二输入设备上打开开关的操作。示例性的,用户可以通过在用户界面上开启键鼠协同功能,或者通过第二输入设备上的物理按键开启键鼠协同功能。
在一种可能的实现方式中,上述通信单元还用于:在处理单元将第二输入设备的焦点设备由第一终端设备切换为第二终端设备之后,向第二终端设备发送第二输入设备的个性化配置参数;其中,上述个性化配置参数包括快捷键设置。通过个性化配置参数的同步,可以保证输入设备进行焦点设备切换之后,目标主机能够同步输入设备的快捷键设置等相关个性化配置参数,方便用户操作。
在一种可能的实现方式中,上述通信单元具体用于:在第二输入设备处于多连接工作模式时,分别通过第三MAC地址和第四MAC地址与第一终端设备和第二终端设备保持通信连接。通过使用不同的MAC地址与多个终端设备保持通信连接,可以避免由于MAC抢占等原因导致的输入设备无法同时连接多个终端设备的情况。
第六方面,提供一种输入设备,如第一输入设备,该第一输入设备具备提供多个MAC地址的能力,该第一输入设备包括:通信接口,用于进行无线电信号发送和接收;存储器,用于存储计算机程序指令;处理器,用于执行所述计算机程序指令,以支持所述第一输入设备实现如第二方面任一种可能的实现方式中的方法。
第七方面,提供一种输入设备,如第而输入设备,该第一输入设备具备提供多个MAC地址的能力,该第二输入设备包括:通信接口,用于进行无线电信号发送和接收;存储器,用于存储计算机程序指令;处理器,用于执行所述计算机程序指令,以支持第二输入设备实现如第三方面任一种可能的实现方式中的方法。
第八方面,提供一种通信系统,该通信系统包括:第一终端设备、第二终端设备,以及如第四方面或第六方面任一种可能的实现方式中的第一输入设备,该通信系统用于实现如第一方面任一种可能的实现方式中的方法。
在一种可能的实现方式中,上述通信系统还包括:如第五方面或第七方面任一种可能的实现方式中的第二输入设备。
第九方面,提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序指令,该计算机程序指令被处理器执行时实现如第二方面或第三方面任一种可能的实现方式中的方法。
第十方面,提供一种芯片系统,该芯片系统包括处理器、存储器,存储器中存储有计算机程序指令;所述计算机程序指令被所述处理器执行时,实现如第三方面或第 四方面任一种可能的实现方式中的方法。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。
第十一方面,提供一种计算机程序产品,当其在计算机上运行时,使得实现如第二方面或第三方面任一种可能的实现方式中的方法。
附图说明
图1为本申请实施例提供的一种输入设备的切换过程示意图;
图2为本申请实施例提供的一种终端设备的硬件结构示意图;
图3为本申请实施例提供的一种输入设备的结构框图;
图4为本申请实施例提供的一种无线鼠标按键示意图;
图5为本申请实施例提供的无线鼠标的两种工作模式示意图;
图6为本申请实施例提供的一种用于进行管理多连接模式相关配置或操作的界面示意图;
图7为本申请实施例提供的一种用于管理多连接相关配置或操作的界面示例图;
图8为本申请实施例提供的一种输入设备与终端设备之间的通信连接示例图;
图9A为本申请实施例提供的输入设备的连接方法流程图一;
图9B为本申请实施例提供的输入设备的连接方法流程图二;
图9C为本申请实施例提供的输入设备的连接方法流程图三;
图9D为本申请实施例提供的输入设备的连接方法流程图四;
图10为本申请实施例提供的一种无线鼠标建立多连接的过程示例图;
图11为本申请实施例提供的一种用于无线鼠标的多设备连接配置界面示意图;
图12为本申请实施例提供的修改多设备连接配置示例图一;
图13为本申请实施例提供的修改多设备连接配置示例图二;
图14为本申请实施例提供的修改多设备连接配置示例图三;
图15为本申请实施例提供的修改多设备连接配置示例图四;
图16为本申请实施例提供的修改多设备连接配置示例图五;
图17为本申请实施例提供的输入设备的连接方法流程图五;
图18为本申请实施例提供的另一种输入设备与终端设备之间的通信连接示例图;
图19为本申请实施例提供的输入设备的连接方法流程图六;
图20为本申请实施例提供的一种输入设备的结构框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
可以理解,终端设备通常可以通过与一个或多个输入设备(如输入外设)连接,以实现相应功能。例如,个人计算机(personal computer,PC)可以与鼠标连接,通过鼠标实现PC显示屏上光标的移动,以及进一步的文件的打开/删除等功能。PC也可以与键盘连接,通过键盘实现移动PC显示屏上的光标、输入字符、打开/删除文件等功能。又如,平板电脑可以与键盘连接,通过键盘实现向平板电脑输入字符、打开平板电脑中的应用/视频/音频等功能。
基于常规的方法,在用户同时使用多个终端设备时,由于用户需要携带并维护多个终端设备所配套的输入设备,或者用户需要手动切断/重配输入设备与终端设备之间的连接关系,因此用户操控多设备的过程非常繁琐,且效率很低。
为了提供更加方便的多设备操作体验,作为一种实现方式,可以通过控制输入设备在多个设备之间切换,实现通过一套输入设备对多个终端设备的灵活操作或控制。
示例性的,请参考图1,图1示出了一种输入设备的切换过程示意图。如图1所示,PC1与PC2均连接至同一无线局域网(wireless local area network,WLAN),在初始状态时,鼠标100与PC1建立无线通信连接(如蓝牙连接)以对PC1进行操作或控制。当鼠标100在PC1显示屏上的光标位置移动至PC1显示屏边缘时,PC1通过向鼠标100发送切换连接命令,以指示鼠标100切换与其连接的主机。假设PC1指示鼠标向PC2切换,进一步的,如图1所示,鼠标100与PC2建立无线通信连接(如蓝牙连接)。至此,鼠标100由PC1切换至PC2,鼠标100可以对PC2进行操作或控制。
以及,如图1所示,PC1可以基于所连接的WLAN向PC2同步鼠标光标滑出PC1显示屏的位置,以便PC2确定鼠标100在PC2显示屏上所指示的初始光标位置。
图1所示方法通过屏幕光标边缘检测,通知鼠标100(即输入设备)断开与源主机之间的通信连接,建立与目标主机之间的通信连接,以实现主机切换。进一步的,图1所示方法通过主机间的信息交互,可以实现光标在终端设备之间的自动穿越。可见,基于图1所示方法,用户仅需要携带一套输入设备,便可以根据实际需求,在多个终端设备之间随意切换操作。
但是,对于图1所示输入设备的切换方法,鼠标100在同一时刻仅能与一个主机建立通信连接。例如,在图1所示初始状态,鼠标100仅与PC1建立了通信连接;在图1所示鼠标100与PC2建立通信连接之后,鼠标100仅与PC2建立了通信连接。另外,对于图1所示输入设备的切换方法,由于PC1和PC2需要基于同一WLAN进行信息同步,因此该方法对WLAN依赖较强。并且,PC1和PC2是在鼠标100与PC2建立无线通信连接之后才进行信息同步的,因此无法实时进行主机间的信息同步,因此该方法中输入设备的切换时延高,较高的切换时延会造成界面显示的卡顿。
为了解决上述问题,提供一种更加智能化的多设备操作体验,本申请实施例提供一种输入设备的连接方法,该方法可以应用于多设备(即多终端设备)互联互通的场景中,实现同一输入设备在多个设备之间随意迁移。
作为一种示例,在本申请实施例中,输入设备如无线外设。其中,无线外设是指基于无线传输协议(如蓝牙协议或者2.4G通信协议等)实现向终端设备输入的输入设备。
其中,在本申请实施例中,输入设备所支持的输入方式可以包括但不限于按键方 式(如鼠标、键盘等)、滚动滚轮方式(如鼠标等)、手势输入方式、肢体语言输入方式、语音输入方式、表情输入方式、眼部活动输入方式等。
进一步的,本申请实施例也不限定输入设备与终端设备之间的具体通信方式。以输入设备是蓝牙外设为例,蓝牙外设可以基于支持设备间多连接协议栈的蓝牙协议与终端设备通信,以实现由一个终端设备迁移至另一个终端设备。
其中,在本申请实施例中,输入设备由一个终端设备迁移至另一个终端设备具体是指输入设备的焦点设备由一个终端设备(即源主机)切换为另一个终端设备(即目标主机)。在输入设备由一个终端设备(即源主机)迁移至另一个终端设备(即目标主机)之后,输入设备与源主机之间的通信连接并不会断开。焦点设备是指与输入设备建立通信连接,且输入设备当前所能直接操控的终端设备;非焦点设备是指与输入设备建立通信连接,但是输入设备当前不能直接操控的终端设备。以输入设备由PC1(即源主机)迁移至PC2(即目标主机)这一过程为例,在迁移之前,输入设备的焦点设备是PC1;在迁移之后,输入设备的焦点设备是PC2。在迁移之前,输入设备用于操控PC1;在迁移之后,输入设备用于操控PC2。
本申请实施例所述终端设备可以包括但不限定于个人计算机(personal computer,PC)、智能手机、上网本、平板电脑、智能相机、掌上电脑、智能电视、个人数字助理(personal digital assistant,PDA)、便携式多媒体播放器(portable multimedia player,PMP)、投影设备、智慧屏设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、混合现实(mixed reality,MR)设备、电视机或人机交互场景中的体感游戏机等。本申请对终端设备的具体功能和结构不做限定。
请参考图2,图2示出了本申请实施例提供的一种终端设备的硬件结构示意图。如图2所示,终端设备可以包括处理器210,存储器(包括外部存储器接口220和内部存储器221),通用串行总线(universal serial bus,USB)接口230,充电管理模块240,电源管理模块241,电池242,天线1,天线2,通信模块250,音频模块260,扬声器270A,受话器270B,麦克风270C,耳机接口270D,传感器模块280,按键290,马达291,指示器292,摄像头293,显示屏294等。
可以理解的是,本发明实施例示意的结构并不构成对终端设备的具体限定。在本申请另一些实施例中,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器210可以包括一个或多个处理单元。例如:处理器210可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),飞行控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
处理器210中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器210中的存储器为高速缓冲存储器。该存储器可以保存处理器210刚用过或循环使用的指令或数据。如果处理器210需要再次使用该指令或数据,可从所述存储器中直 接调用。避免了重复存取,减少了处理器210的等待时间,因而提高了系统的效率。
在本申请实施例中,处理器210可以包括一个或多个微控制器(micro control unit,MCU),用于负责统一调度与输入设备迁移相关的其它所有模块/时序/事务的协调调度等。
在一些实施例中,处理器210可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
充电管理模块240用于从充电器接收充电输入。电源管理模块241用于连接电池242,充电管理模块240与处理器210。电源管理模块241接收电池242和/或充电管理模块240的输入,为处理器210,内部存储器221,显示屏294,摄像头293和通信模块250等供电。
终端设备的无线通信功能可以通过天线1,天线2,通信模块250,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。终端设备中的每个天线可用于覆盖单个或多个通信频段。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
通信模块250可以提供应用在终端设备上的包括2G/3G/4G/5G/6G等无线通信的解决方案。通信模块250可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。通信模块250可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。通信模块250还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,通信模块250的至少部分功能模块可以被设置于处理器210中。在一些实施例中,通信模块250的至少部分功能模块可以与处理器210的至少部分模块被设置在同一个器件中。
在一些实施例中,通信模块250还可以提供应用在终端设备上的包括WLAN(如Wi-Fi网络),蓝牙(Bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。通信模块250可以是集成至少一个通信处理模块的一个或多个器件。通信模块250经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器210。通信模块250还可以从处理器210接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在本申请实施例中,通信模块250可以包括蓝牙模块。蓝牙模块可以用于负责发送蓝牙报文,实现与多个输入设备的基于蓝牙连接的交互。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频装置(不限于扬声器270A、受话器270B等)输出声音信号,或通过显示屏294显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器210,与通信模块250或其它功能模块设置在同一个器件中。
在本申请实施例中,终端设备可以基于通信模块250、天线1和/或天线2与其它终端设备通信,例如向其它终端设备发送控制指令。
在一些实施例中,终端设备的天线1和通信模块250耦合,天线2和通信模块250耦合,使得终端设备可以通过无线通信技术与网络以及其它设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),新无线(new radio,NR),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)等。
终端设备通过GPU,显示屏294,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏294和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器210可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏294用于显示图像,视频等。显示屏294包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。
在本申请实施例中,终端设备可以通过GPU进行界面渲染,通过显示屏294进行界面显示等。
示例性的,在本申请实施例中,显示屏294所显示的界面上可以包括光标以及输入设备所输入的字符等。
终端设备可以通过ISP,摄像头293,视频编解码器,GPU,显示屏294以及应用处理器等实现拍摄功能。
外部存储器接口220可以用于连接外部存储卡,例如微型(micro)存储(storage card,SD)卡,实现扩展终端设备的存储能力。外部存储卡通过外部存储器接口220 与处理器210通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器221可以用于存储计算机程序的可执行程序代码。示例性的,计算机程序可以包括操作系统程序和应用程序。操作系统可包括但不限于 OS等操作系统。其中,可执行程序代码包括指令。内部存储器221可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序等。存储数据区可存储终端设备使用过程中所创建的数据(比如应用数据,用户数据等)等。此外,内部存储器221可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器210通过运行存储在内部存储器221的指令,和/或存储在设置于处理器中的存储器的指令,执行终端设备的各种功能应用以及数据处理。
传感器模块280可以感知用户的操作,如触摸操作、点击操作、滑动操作、用户靠近屏幕等。
终端设备可以通过音频模块260,扬声器270A,受话器270B,麦克风270C以及应用处理器等实现音频功能。例如音乐播放,录音等。关于音频模块260,扬声器270A,受话器270B和麦克风270C的具体工作原理和作用,可以参考常规技术中的介绍。
按键290包括开机键,音量键等。按键290可以是机械按键。也可以是触摸式按键。终端设备可以接收按键输入,产生与终端设备的用户设置以及功能控制有关的键信号输入。
需要说明的是,图2所示终端设备包括的硬件模块只是示例性地描述,并不对终端设备的具体结构做出限定。
在本申请实施例中,输入设备可以包括但不限于无线鼠标、无线键盘、无线轨迹球、无线触摸板、无线触针、无线笔、智能穿戴设备(如智能手表、智能手环、智能眼镜、电话手表等)、无线耳机、游戏外设等,或者可以向终端设备提供输入的任何其它设备,本申请不限定。
请参考图3,图3示出了本申请实施例提供的输入设备的结构框图。如图3所示,输入设备300可以包括:总线305、输入模块310、控制电路320、电源330、存储器部件340、通信模块350和电源管理模块360。
其中,电源330用于为输入设备300供电。电源管理模块360可以将电力直接从电源330路由至输入设备300的其它部件。电源管理模块360还可以将来自电源330的电力分配至其它系统部件(例如控制电路320、通信模块350以及输入模块310或其任意组合)。
在一些实施例中,控制电路320、电源330、存储器部件340、通信模块350、电源管理模块360可以经由总线305彼此进行通信。输入模块310可以独立地连接至控制电路320和电源管理模块360。
在一些实施例中,输入模块310可以经由总线305连接至其它模块。
在一些实施例中,输入模块310可以被配置成从多个按键输入元件或设备接收输 入。在一些实施例中,输入模块310可操作为响应于用户按压下述部件来接收输入,所述部件包括:按键(例如字母键、功能键(如音量键、退出键、静音键、换档键等)、数字键或数字键盘键、操作系统选择键、鼠标右键、鼠标左键等)、或其它适当的输入元件或设备例如媒体控制按钮、网络语音电话业务(voice over internet phone,VOIP)按钮、触摸传感器(例如触摸板、触摸针)等。输入模块310能够生成与按压的按键输入元件关联的字符数据并且将该字符数据发送至控制电路320。示例性的,若输入设备是无线键盘,输入模块310可以包括键盘按键;若输入设备是无线鼠标,输入模块310可以包括鼠标传感器和光标模块,其中光标模块用于负责鼠标光标移动和输入。
在本申请实施方式中,由输入设备300发送至终端设备的键码取决于终端设备上运行的操作系统。输入设备300的行为取决于操作系统。与多个按键输入元件对应的不同键码可以是操作系统特定的。例如,在不同的操作系统上选择“Home”键导致不同的功能(例如在中是主屏幕,但是在中是浏览器的主页)。
在一些实施例中,控制电路320可以包括一个或更多个微处理器(micro-processor),以及控制电路320可以被配置成控制输入设备300的操作。控制电路320可以用于负责统一调度其它所有模块/时序/事务的协调调度,管理输入设备配置信息,管理输入设备迁移等。在一些实施例中,控制电路320可以包括支持硬件/固件(例如,存储器、可编程输入/输出(input/output,I/O)等)的一个或多个MCU、数字信号处理器(DSP)、现场可编程门阵列(field-programmable gate array,FPGA)、可编程逻辑器件(programable logic device,PLD)等。
存储器部件340可以被配置成存储数据。在一些实施例中,数据可以包括连接数据和配对数据,连接数据和配对数据包括例如所选择的终端设备的地址。在一些实施例中,存储器部件340可以是非易失性存储器。
通信模块350可以被配置成向输入设备300提供I/O能力。例如,通信模块350可以经由无线连接将数据从输入模块310路由至终端设备,以及将数据从终端设备路由至输入模块310。其中,无线连接可以是蓝牙连接或基于任何其它无线标准或专用的无线网络协议的通信连接。示例性的,通信模块350可以包括蓝牙模块。蓝牙模块可以用于负责发送蓝牙报文,实现与多个终端设备的蓝牙连接交互。
需要说明的是,图3所示输入设备300包括的结构只是示例性地描述,并不对输入设备300的具体结构做出限定。
在本申请实施例中,输入设备具备同时与多个设备保持通信连接的能力。作为一种示例,在本申请实施例中,输入设备可以工作在普通模式,也可以工作在多连接模式。其中,多连接模式是指与多个终端设备同时保持通信连接的工作模式;相对的,普通模式是指仅与单一终端设备保持通信连接的工作模式。在本申请实施例中,处于多连接模式的输入设备通过与多个终端设备同时保持通信连接,可以支持输入设备实现焦点在多个终端设备之间的无缝同步迁移。
进一步的,在本申请实施例中,输入设备具备提供多个多媒体访问控制(media access control,MAC)地址的能力。
进一步的,在本申请实施例中,输入设备具备通过多个MAC地址,同时与多个设备保持通信连接的能力。其中,一个MAC地址可以用于输入设备与一个终端设备 建立通信连接以及进行后续通信。
作为一种示例,输入设备上可以设置有多设备连接快捷开关,以便在用户有输入设备跨设备焦点迁移需求时,可以通过该快捷开关一键开启多设备连接功能。其中,在处于普通模式的输入设备接收到用户开启多设备连接功能的操作之后,输入设备从普通模式进入多连接模式。在处于多连接模式的输入设备接收到用户关闭多设备连接功能的操作之后,输入设备从多连接模式进入普通模式。
请参考图4,图4以无线鼠标为例,示出本申请实施例提供的一种无线鼠标按键示意图。如图4所示,无线鼠标400上设置有多设备连接快捷开关401。其中,在处于普通模式的无线鼠标400接收到用户打开图4所示多设备连接快捷开关401的操作之后,无线鼠标400从图5中的(a)所示普通模式进入图5中的(b)所示多连接模式,在保持与焦点设备蓝牙连接不断开的情况下,与其它一个或多个终端设备(如图5中的(b)所示PC、平板电脑、手机)同时建立无线连接。
在一些实施例中,在处于多连接模式的无线鼠标400接收到用户关闭图4所示多设备连接快捷开关401的操作之后,无线鼠标400从图5中的(b)所示多连接模式恢复至图5中的(a)所示普通模式,仅与单一终端(如图5中(a)所示PC)设备建立连接。
在一些实施例中,在输入设备进入多连接模式之后,输入设备所能连接的终端设备可以包括但不限于以下中的一个或多个:输入设备发现的终端设备、输入设备最近一次多连接模式下所连接的终端设备、输入设备在预设时间段内连接频率较高的终端设备、用户手动选择的终端设备、输入设备自行确定的终端设备(例如与输入设备之间的距离较近的终端设备)等,本申请实施例不做限定。
以输入设备是蓝牙外设为例,作为一种可能的实现方式,在输入设备进入多连接模式之后,输入设备与除焦点设备以外的其它一个或多个终端设备建立无线连接可以包括:输入设备基于设备发现(如近场发现、发现登录同一账号的设备等)发现周围可连接的其它一个或多个终端设备,并进行鉴权配对以与其建立无线连接。
例如,输入设备可以切换蓝牙频道,发送蓝牙靠近发现配对广播,已发现周围可连接的终端设备。进一步的,若某一终端设备接收到用户点击确认蓝牙连接的操作,该终端设备与输入设备完成蓝牙配对,建立蓝牙连接。
作为另一种可能的实现方式,在输入设备进入多连接模式之后,输入设备与除焦点设备以外的其它一个或多个终端设备建立无线连接可以包括:输入设备与之前连接过的一个或多个终端设备回连。可以理解,在输入设备进入多连接模式之后,对于之前与输入设备连接过的一个或多个终端设备,输入设备无需再次进行设备发现、鉴权以及配对,而是可以根据已保存的配对信息直接回连。
其中,在输入设备进入多连接模式之后,输入设备所连接的终端设备包括焦点设备和非焦点设备。如图8中的(a)所示,无线鼠标与PC1和PC2均保持通信连接,其中PC1是无线鼠标的焦点设备,PC2是无线鼠标的非焦点设备;无线鼠标与PC2(即非焦点设备)通过发送心跳报文的方式保持通信连接。以及,如图8中的(b)所示,在无线鼠标的焦点由PC1迁移至PC2之后,无线鼠标仍然与PC1和PC2均保持通信连接,其中PC2是无线鼠标的焦点设备,PC1是无线鼠标的非焦点设备;无线鼠标与 PC1(即非焦点设备)通过发送心跳报文的方式保持通信连接。
需要说明的是,图4仅以多设备连接快捷开关设置在输入设备上作为示例,示出了一种一键开启多设备连接功能的方式。但是,本申请不限定开启多设备连接功能的具体方式,示例性的,用户还可以通过在输入设备所连接的焦点设备上的用户界面(user interface,UI)(以下简称UI界面)上操作,以完成对输入设备相关配置的设置,包括开启输入设备的多设备连接功能。
在一些实施例中,在输入设备所连接的焦点设备中可以安装有用于进行管理多连接模式相关配置或操作的应用(如智慧家庭应用、设备管家应用等),或者输入设备所连接的焦点设备中安装的应用中集成有用于进行管理多连接相关配置或操作的小程序,或者输入设备所连接的焦点设备的操作系统中集成有用于进行管理多连接相关配置或操作的原生功能模块。基于此,示例性的,上述UI界面可以是焦点设备中安装的用于进行管理多连接模式相关配置或操作的应用的界面,也可以是焦点设备中运行的用于进行管理多连接模式相关配置或操作的小程序的界面,还可以是焦点设备中的原生功能界面等,本申请实施例不限定。
请参考图6,图6以设备管家应用为例,示出了本申请实施例提供的一种用于管理多连接模式相关配置或操作的UI界面示意图。在本申请实施例中,用于管理无线鼠标多连接模式相关配置或操作的UI界面可以是图6所示“无线鼠标”控件的下一级界面(如图7所示UI界面)。其中,图7所示UI界面中,“多设备连接”开关用于控制开启或者关闭无线鼠标的多设备连接功能。
作为一种示例,在输入设备进入多连接模式之后,输入设备与非焦点设备之间可以后台保持通信连接。例如,如图5中的(b)所示,在输入设备(如图5中的(b)所示无线鼠标)进入多连接模式之后,输入设备与非焦点设备之间可以以发送心跳报文的方式保持通信连接。其中,在本申请实施例中,设备发送心跳报文可以是根据系统心跳时钟指示的心跳时刻,周期性发送心跳报文;也可以是由某一输入事件(如接收到修改多设备连接相关配置的事件)触发的发送心跳报文,本申请不限定。其中,系统心跳时钟是在设备(如非焦点设备)开机时,操作系统设置并启动的,以固定时长作为周期的心跳时钟。
需要说明的是,在本申请实施例中,输入设备与终端设备之间的通信连接所依据的通信协议支持多连接协议栈。示例性的,通信协议如蓝牙协议或者2.4G通信协议。以输入设备与终端设备之间基于蓝牙协议进行通信为例,支持多连接协议栈的蓝牙协议如蓝牙5.0协议或者蓝牙5.0协议的下一代协议版本等。关于通信协议中支持多连接协议栈的具体细节,可以参考协议(如蓝牙5.0协议)中的具体改进细节。
作为一种可能的结构,输入设备上还可以设置有蓝牙连接开关(如图4中所示402)。其中,蓝牙连接开关用于用户触发输入设备与终端设备的蓝牙连接。示例性的,在本申请实施例中,响应于接收到用户打开蓝牙连接开关(如图4中所示402)的操作,输入设备可以进行设备发现以连接其它一个或多个终端设备,或者输入设备可以与之前连接过的一个或多个终端设备回连。
在一些实施例中,在输入设备进入多连接模式之后,输入设备所能连接的终端设备数量可以由输入设备的蓝牙频道配置所决定。其中,输入设备的一个蓝牙频道可以 分配给一个终端设备,用于该终端设备与输入设备之间进行通信。
进一步的,在本申请实施例中,输入设备的多个蓝牙频道可以分别通过输入设备的多个MAC地址与对应终端设备之间进行通信。
作为一种可能的结构,输入设备上还可以设置有蓝牙频道指示灯(如图4中所示403)。其中,蓝牙频道指示灯用于显示连接成功的蓝牙频道和未连接成功的蓝牙频道。示例性的,某一蓝牙频道指示灯点亮表示该蓝牙频道对应的终端设备已连接成功,某一蓝牙频道指示灯灭掉表示该蓝牙频道对应的终端设备未连接成功。或者,某一蓝牙频道指示灯显示颜色一表示该蓝牙频道对应的终端设备已连接成功,某一蓝牙频道指示灯显示颜色二表示该蓝牙频道对应的终端设备未连接成功。
以下将以输入设备是无线鼠标为例,结合附图,对本申请实施例提供的输入设备的连接方法做具体介绍。其中,无线鼠标起初处于普通模式,且无线鼠标与第一终端设备(以下简称第一设备)建立了无线通信连接。
请参考图9A,图9A示出了本申请实施例提供的一种输入设备的连接方法流程图。起初,无线鼠标处于普通模式,如图9A中的S901所示:无线鼠标接收用户的第一操作,向第一设备发送鼠标光标的移动信息。其中,第一操作如移动无线鼠标的操作。
作为一种示例,无线鼠标可以包括鼠标传感器、光标模块和蓝牙模块。无线鼠标可以通过鼠标传感器检测用户移动无线鼠标的操作,进一步的,无线鼠标可以通过光标模块获取鼠标光标的移动位置等移动信息,进一步的,无线鼠标可以通过蓝牙模块,基于无线鼠标与第一设备之间的蓝牙连接向第一设备发送鼠标光标的移动信息。
如图9A所示,本申请实施例提供的一种输入设备的连接方法可以包括以下三个阶段:
阶段1:进入多连接模式阶段。
示例性的,在用户打开无线鼠标多设备连接功能的操作后,无线鼠标可以从普通模式进入多连接模式。
阶段2:输入设备焦点迁移阶段。
示例性的,在检测到鼠标光标有滑向其它设备的趋势时,源主机指示无线鼠标进行焦点设备切换。
阶段3:焦点迁移后接续输入阶段。
示例性的,在无线鼠标完成焦点设备切换之后,改为由目标主机接收输入设备输入的信息。
以下将结合多种情况,对本申请实施例提供的一种输入设备的连接方法进行具体介绍。
其中,以用户自发打开无线鼠标多设备连接功能为例,存在以下情况1和情况2:
情况1:以用户自发通过在用于管理多连接模式相关配置或操作的UI界面上打开无线鼠标多设备连接功能为例,上述阶段1可以包括图9A所示S902A-S903,阶段2可以包括图9A所示S904-S905,阶段3可以包括图9A所示S906-S908。
情况2:以用户自发通过无线鼠标上设置的多设备连接快捷开关打开无线鼠标多设备连接功能为例,无线鼠标可以在接收到用户过无线鼠标上设置的多设备连接快捷开关打开无线鼠标多设备连接功能的操作后,直接进入多连接模式,与第二终端设备 (以下简称第二设备)和第三终端设备(以下简称第三设备)建立无线通信连接。即,上述阶段1可以包括图9A所示S902B-S903,阶段2可以包括图9A所示S904-S905,阶段3可以包括图9A所示S906-S908。
以用户根据第一设备的提示打开无线鼠标多设备连接功能为例,存在以下情况3和情况4:
情况3:以用户根据第一设备的提示,通过在用于管理多连接模式相关配置或操作的UI界面上打开无线鼠标多设备连接功能为例,上述阶段1可以包括图9A所示S902A-S903,阶段2可以包括图9A所示S904-S905,阶段3可以包括图9A所示S906-S908。
情况4:以用户根据第一设备的提示,通过无线鼠标上设置的多设备连接快捷开关打开无线鼠标多设备连接功能为例,无线鼠标可以在接收到用户过无线鼠标上设置的多设备连接快捷开关打开无线鼠标多设备连接功能的操作后,直接进入多连接模式,与第二设备和第三设备建立无线通信连接。即,上述阶段1可以包括图9A所示S902B-S903,阶段2可以包括图9A所示S904-S905,阶段3可以包括图9A所示S906-S908。
其中,第一设备可以在检测到鼠标光标滑动到屏幕边缘,且仍有滑出边缘的趋势时,提示(如弹窗、语音提示等)用户打开无线鼠标多设备连接功能。
以无线鼠标根据第一设备的指示,直接进入多设备连接模式为例,存在以下情况5:
情况5:第一设备可以在检测到鼠标光标滑动到屏幕边缘,且仍有滑出边缘的趋势时,指示无线鼠标进入多连接模式。即上述阶段1可以包括图9A所示S903,阶段2可以包括图9A所示S904-S905,阶段3可以包括图9A所示S906-S908。其中,S903具体包括:在接收到第一设备指示进入多连接模式的指示信息之后,无线鼠标进入多连接模式,与第二设备和第三设备建立无线通信连接。
其中,S902A,S902B,S903-S908具体如下:
S902A:在接收到用户在UI界面上的第二操作时,第一设备向无线鼠标发送工作模式切换指令。
其中,UI界面如用于管理多连接模式相关配置或操作的UI界面。第二操作如打开无线鼠标多设备连接功能的操作。工作模式切换指令用于指示无线鼠标切换为多连接模式。例如,由普通模式切换为多连接模式。
作为一种示例,第一设备可以提供用于用户选择进行无线鼠标多设备连接功能的选项,以便用户根据实际需求进行设置。
S902B:无线鼠标接收用户的第三操作。
其中,第三操作如打开无线鼠标上设置的多设备连接快捷开关的操作。
S903:无线鼠标与第二设备和第三设备建立无线通信连接。
其中,在无线鼠标接收到用户的第三操作,或者接收到来自第一设备的工作模式切换指示之后,无线鼠标进入多连接模式,与第二设备和第三设备建立无线通信连接。在无线鼠标进入多连接模式,与第二设备和第三设备建立无线通信连接之后,第一设备是无线鼠标的焦点设备,第二设备和第三设备是无线鼠标的非焦点设备。也就是说, 无线鼠标当前可以直接操控第一设备。
作为一种可能的实现方式,无线鼠标可以通过第一MAC地址与第二设备建立无线通信连接并进行后续通信,通过第二MAC地址与第三设备建立无线通信连接并进行后续通信。
以无线鼠标是蓝牙鼠标为例,作为一种可能的实现方式,若无线鼠标之前与第二设备和第三设备均未进行过蓝牙配对,无线鼠标与第二设备和第三设备建立无线通信连接可以包括:首先,无线鼠标发现周围可连接的第二设备和第三设备;然后,无线鼠标对第二设备和第三设备均进行鉴权;最后,在鉴权通过之后,无线鼠标分别与第二设备和第三设备进行配对,以建立与第二设备和第三设备之间蓝牙连接。
作为另一种可能的实现方式,若无线鼠标之前与第二设备或第三设备蓝牙配对成功过,例如无线鼠标之前与第二设备或第三设备建立过蓝牙连接,无线鼠标与第二设备建立无线通信连接可以包括:无线鼠标与第二设备基于之前已保存的配对信息直接回连;以及,无线鼠标与第三设备建立无线通信连接可以包括:无线鼠标与第三设备基于之前已保存的配对信息直接回连。
作为一种示例,无线鼠标与第二设备和第三设备之间可以后台保持通信连接。例如,无线鼠标与第二设备和第三设备之间可以以发送心跳报文的方式保持通信连接。
作为一种可能的实现方式,在无线鼠标进入多连接模式,与第二设备和第三设备建立无线通信连接之后,第一设备可以实时检测鼠标光标在第一设备显示屏上的位置,以便在检测到鼠标光标有滑向其它终端设备的趋势时,向无线鼠标发送迁移指示信息(即执行以下S904)。
在一些实施例中,若无线鼠标之前与第二设备和第三设备蓝牙配对成功过,处于设备和信息安全考虑,在无线鼠标基于之前已保存的配对信息与第二设备和第三设备回连之后,无线鼠标可以通知第二设备和第三设备其当前处于多连接模式。进一步的,在一些实施例中,在接收到无线鼠标关于当前处于多连接模式的通知之后,第二设备和第三设备均可以通知(如弹窗通知)用户已授权无线鼠标多连接模式下的相关权限,以支持无线鼠标的多连接功能。
在另一些实施例中,在接收到无线鼠标关于当前处于多连接模式的通知之后,第二设备和第三设备均可以弹窗供用户选择是否授权无线鼠标多连接模式下的相关权限,以支持无线鼠标的多连接功能。
作为一种可能的示例,如图10所示,无线鼠标可以基于图10所示系统架构图中的S1001-S1007,与第二设备和第三设备建立无线通信连接。其中,图10所示无线鼠标、第一设备、第二设备和第三设备的具体结构仅作为一种简化的结构示例,本申请实施例不作具体限定。
S904:第一设备在检测到鼠标光标有滑向其它设备的趋势时,向无线鼠标发送迁移指示信息。
其中,上述迁移指示信息用于指示进行无线鼠标焦点迁移。
在一些实施例中,迁移指示信息中包括鼠标光标滑出第一设备显示屏的位置信息。
可选的,迁移指示信息中还包括第一设备的显示屏尺寸。
作为另一种可能,鼠标光标滑出第一设备显示屏的位置信息还可以由第一设备单 独发送给无线鼠标,本申请不做限定。
可选的,第一设备还可以单独向无线鼠标发送第一设备的显示屏尺寸。
在一些实施例中,第一设备检测到鼠标光标有滑向其它设备的趋势是指第一设备检测到鼠标光标滑出第一设备显示屏的边缘,且向其它设备移动的矢量超出预设阈值。例如,第一设备可以实时监测鼠标光标位置,在第一设备检测到鼠标光标滑出第一设备显示屏的边缘后,第一设备仍然能够持续收到无线鼠标发送的鼠标光标向其它设备移动的移动坐标超出预设阈值。其中,其它设备即目标主机。
在一些实施例中,上述迁移指示信息中不包括目标主机的相关信息。对于这种情况,由无线鼠标确定目标主机,关于无线鼠标确定目标主机的具体方法,将在下文对S905的介绍中具体说明。
在一些实施例中,上述迁移指示信息用于指示目标主机(如第二设备),即迁移指示信息用于指示无线鼠标将焦点迁移至第二设备。示例性的,上述迁移指示信息中可以携带有第二设备的标识信息。
在一些实施例中,第一设备可以根据鼠标光标滑出第一设备显示屏的位置信息和无线鼠标的多设备连接配置信息,确定目标主机(如第二设备)。
可选的,在一些实施例中,第一设备可以根据鼠标光标滑出第一设备显示屏的位置信息、第一设备的显示屏尺寸,结合无线鼠标的多设备连接配置信息,确定目标主机(如第二设备)。
在本申请实施例中,无线鼠标的多设备连接配置信息可以包括:无线鼠标的工作模式,无线鼠标当前所连接的第一设备、第二设备和第三设备之间的位置排序。其中,第一设备、第二设备和第三设备之间的位置排序用于无线鼠标确定焦点迁移时的目标主机。示例性的,假设第一设备在第二设备的左侧,那么当鼠标光标滑出第一设备显示屏的右侧边缘,且移动的矢量超出预设阈值时,无线鼠标可以确定第二设备是目标主机。
示例性的,第一设备可以基于方式1或者方式2,确定多设备连接配置信息(具体见图9B和图9C,其中图9B和图9C的区别在于第一设备确定多设备连接配置信息的方式不同):
方式1:第一设备根据用户对多设备连接配置的修改,确定多设备连接配置信息。
作为一种可能的实现方式,第一设备可以在无线鼠标与第二设备和第三设备建立无线通信连接之后,显示图11所示用于无线鼠标的多设备连接配置界面,以向用户展示第一设备、第二设备和第三设备之间的当前位置排序。在一些实施例中,图11所示界面可以支持用户对多设备连接配置的修改。
如图9B所示,第一设备可以接收用户对多个终端设备(包括第一设备、第二设备和第三设备)之间位置排序的修改,获取无线鼠标的多设备连接配置信息(简称多设备连接配置信息)。其中,该多设备连接配置信息中包括修改后的第一设备、第二设备和第三设备之间的位置排序。其中,图9B仅作为一种第一设备接收用户设置多连接相关配置的时机示例,本申请不限定第一设备接收用户设置多连接相关配置的具体时机。
进一步的,如图9B所示,S904具体可以包括:在检测到鼠标光标有滑向其它设 备的趋势时,第一设备确定目标主机是第二设备。以及进一步的,第一设备向无线鼠标发送迁移指示信息。其中,迁移指示信息中携带有第二设备的标识信息。具体的,第一设备在检测到鼠标光标有滑向其它设备的趋势时,可以根据多设备连接配置信息确定目标主机是第二设备。
其中,图9B所示迁移指示信息用于指示无线鼠标将焦点设备切换为第二设备。
其中,在本申请实施例中,用户对多设备连接配置的修改可以包括但不限于:修改终端设备之间的位置排序、禁用某一终端设备、删除某一终端设备、启用某一终端设备、增加某一终端设备等,本申请不限定。其中,禁用某一终端设备是指不支持输入设备向该终端设备进行焦点迁移。但是,禁用某一终端设备并不会断开输入设备与该终端设备之间的无线连接。删除某一终端设备是指断开输入设备与某一终端设备之间的无线连接。在一些实施例中,若删除某一终端设备,还可以从UI界面中删除该终端设备的图标。启用某一终端设备是指恢复支持向该终端设备进行焦点迁移,例如启用的终端设备可以是之前已禁用的终端设备。增加某一终端设备是指与某一终端设备建立无线连接。在一些实施例中,若增加某一终端设备,还可以将某一终端设备的图标添加至UI界面,例如增加的终端设备可以是之前已删除的终端设备。
示例性的,如图12所示,假设无线鼠标的多设备连接配置的UI界面显示有第一设备的图标以及位于第一设备右侧的第二设备的图标,当第一设备接收到用户向左拖拽第二设备的图标的操作时,第一设备调换第一设备和第二设备图标的位置排序,即第一设备将第一设备与第二设备的位置排序由之前的第二设备位于第一设备右侧,修改为第二设备位于第一设备左侧。
又如,如图13所示,当第一设备接收到用户在图13所示选项栏中选择禁用第二设备的操作时,第一设备断开输入设备与第二设备之间的无线连接。
又如,如图14所示,当第一设备接收到用户在图14所示选项栏中选择启用第二设备的操作时,无线鼠标重新建立与第二设备之间的无线连接。
又如,如图15所示,当第一设备接收到用户在图15所示选项栏中选择删除第二设备的操作时,无线鼠标从多设备连接配置的UI界面中删除第二设备的图标。
示例性的,图13、图14和图15所示选项栏可以是第一设备在接收到用户对第二设备图标的预设操作(如长按、双击、单击、鼠标右键等)之后显示的。
又如,如图16所示,当第一设备接收到用户在图16所示选项栏中选择第二设备的操作时,无线鼠标将第二设备的图标添加至多设备连接配置的UI界面。示例性的,图16所示选项栏可以是第一设备在接收到用户对图16所示界面上的添加设备按钮的选择操作(如长按、双击、单击等)之后显示的。
方式2:第一设备基于预设原则、依据或者方法等,自行确定无线鼠标的多设备连接配置信息。
作为一种可能的实现方式,第一设备或无线鼠标可以基于自动定位技术(如超声波定位技术),获取无线鼠标的多设备连接配置信息,如无线鼠标当前所连接的第一设备、第二设备和第三设备在环境中的具体位置,进而根据其具体位置确定第一设备、第二设备和第三设备之间的位置排序。
如图9C所示,第一设备可以基于自动定位技术(如超声波定位技术),获取无 线鼠标的多设备连接配置信息(简称多设备连接配置信息)。
例如,第一设备可以通过设置在其中的扬声器发射超声波信号,通过设置在其中的麦克风接收来自终端设备(如第二终端和第三终端)的超声波信号的回波信号。进一步的,第一设备基于三角定位技术,根据发出信号的传输路径、接收信号的传输路径,结合扬声器和麦克风的相对位置关系,确定多个终端设备(如第一设备、第二设备和第三设备)在环境中的具体位置,进而确定多个终端设备(如第一设备、第二设备和第三设备)之间的位置排序。
关于自动定位技术(如超声波定位技术)的具体介绍,可以参考常规技术中的说明,本申请实施例不作赘述。
进一步的,如图9C所示,S904具体可以包括:在检测到鼠标光标有滑向其它设备的趋势时,第一设备确定目标主机是第二设备。以及进一步的,第一设备向无线鼠标发送迁移指示信息。其中,迁移指示信息中携带有第二设备的标识信息。具体的,第一设备可以在检测到鼠标光标有滑向其它设备的趋势时,根据无线鼠标的多设备连接配置信息确定目标主机是第二设备。
其中,图9C所示迁移指示信息用于指示无线鼠标将焦点设备切换为第二设备。
S905:无线鼠标将焦点设备切换为第二设备。
在一些实施例中,若迁移指示信息用于指示无线鼠标迁移至第二设备,例如若迁移指示信息中携带有第二设备的标识信息,S905具体可以包括:无线鼠标根据迁移指示信息中携带的第二设备的标识信息,将焦点设备切换为第二设备。
在另一些实施例中,若迁移指示信息未指示无线鼠标的目标主机,S905具体可以包括:无线鼠标根据鼠标光标滑出第一设备显示屏的位置信息和无线鼠标的多设备连接配置信息,确定目标主机(如第二设备)。其中,上述鼠标光标滑出第一设备显示屏的位置信息来自于迁移指示信息。
示例性的,无线鼠标可以基于方式A或者方式B,获取无线鼠标的多设备连接配置信息:
方式A:无线鼠标基于预设原则、依据或者方法等,自行确定无线鼠标的多设备连接配置信息(具体见图9D)。
作为一种可能的实现方式,如图9D所示,无线鼠标可以基于自动定位技术(如超声波定位技术),获取无线鼠标的多设备连接配置信息。
例如,无线鼠标可以通过设置在其中的第一器件发射超声波信号,通过设置在其中的第二器件接收来自终端设备(如第一终端、第二终端和第三终端)的超声波信号的回波信号,基于发出信号的传输路径、接收信号的传输路径,结合第一器件和第二器件的相对位置关系,基于三角定位技术,确定多个终端设备(如第一设备、第二设备和第三设备)在环境中的具体位置,进而确定无线鼠标的多设备连接配置信息,如包括多个终端设备(如第一设备、第二设备和第三设备)之间的位置排序。
如图9D所示,在接收到来自第一设备的迁移指示信息之后,无线鼠标可以自行确定目标主机(如第二设备)。例如,无线鼠标可以在接收到来自第一设备的迁移指示信息之后,根据鼠标光标滑出第一设备显示屏的位置信息和结合无线鼠标的多设备连接配置信息,确定目标主机是第二设备。
进一步的,图9D所示,无线鼠标可以根据确定的目标主机,执行S905,将焦点设备切换为第二设备。
方式B:无线鼠标从第一设备获取无线鼠标的多设备连接配置信息。
其中,无线鼠标从第一设备获取无线鼠标的多设备连接配置信息可以是第一设备基于上述方式1、根据用户对多设备连接配置的修改确定的,也可以是第一设备基于上述方式2、基于预设原则、依据或者方法(如超声波定位技术)等自行确定的,本申请不做限定。
示例性的,无线鼠标的多设备连接配置信息可以由第一设备在无线鼠标将焦点设备由第一设备切换为其它终端设备之前,发送给无线鼠标。
进一步的,在一些实施例中,为了实现鼠标光标跨设备无缝接续的效果,第一设备还可以通过无线鼠标,向第二设备同步鼠标光标滑出第一设备显示屏的位置信息,如以下S906所示。作为一种示例,无线鼠标可以从来自第一设备的迁移指示信息中获取鼠标光标滑出第一设备显示屏的位置信息。
可选的,第一设备还可以通过无线鼠标,向第二设备同步第一设备的显示屏尺寸。例如,第一设备可以通过迁移指示信息携带第一设备的显示屏尺寸或者单独向无线鼠标发送第一设备的显示屏尺寸。
S906:无线鼠标向第二设备发送鼠标光标滑出第一设备显示屏的位置信息。
其中,无线鼠标向第二设备发送鼠标光标滑出第一设备显示屏的位置信息用于第二设备能够基于此确定鼠标光标在第二设备显示屏上的初始位置,以接续第一设备显示鼠标光标,实现鼠标光标跨设备无缝接续的效果。
S907:第二设备根据鼠标光标滑出第一设备显示屏的位置信息和第二设备显示屏的尺寸,显示鼠标光标。
作为一种示例,第二设备可以根据鼠标光标滑出第一设备显示屏的位置信息和第二设备显示屏的尺寸,确定鼠标光标在第二设备显示屏上的初始位置并在该初始位置显示鼠标光标。
作为一种示例,第二设备可以在确定鼠标光标在第二设备显示屏上的初始位置时,考虑设备之间通信所花费的时间(如预设时间或者实际测量时间),以补偿显示的滞后。
S908:无线鼠标接收用户的第一操作,向第二设备发送鼠标光标的移动信息。
其中,第一操作如移动无线鼠标的操作。
可以理解,基于本申请实施例提供的输入设备的连接方法,同一输入设备可以在多个终端设备之间随意进行焦点迁移,该方法可以简化同时使用多个终端设备时的操作步骤。以及,本申请实施例提供的方法中,同一输入设备可以同时与多个终端设备保持通信连接,并基于与非焦点设备之间的通信连接后台与非焦点设备交互信息,实现在多个终端设备之间的无缝焦点迁移,保证切换时界面显示不卡顿,实现输入设备跨设备无缝接续的效果。另外,该方法无需依赖于WLAN进行信息同步,即多个终端设备无需连接至同一WLAN。
在一些实施例中,本申请实施例中的无线设备(如第一输入设备)还具备与其他无线设备(如第二输入设备)协同迁移的功能。例如,第一输入设备可以在第二输入 设备将焦点设备由第一设备切换为第二设备时,也同步将焦点设备由第一设备切换为第二设备。又如,第二输入设备可以在第一输入设备将焦点设备由第一设备切换为第二设备后,也将焦点设备由第一设备切换为第二设备。通过该方法,可以实现第一输入设备与第二输入设备同步跨设备无缝焦点迁移。
在一种可能的实现方式中,在第一输入设备将焦点设备切换为第二设备时,第一设备可以向与源主机建立无线连接的第二输入设备发送焦点设备同步切换指令,其中,焦点设备同步切换指令中携带有目标主机(如第二设备)的信息,以指示第二输入设备同步将焦点设备切换为第二设备。
以下将以图17所示示例,示出一种键鼠协同迁移的具体过程。其中,在图17所示流程图中,无线键盘(即第二输入设备)可以与无线鼠标(即第一输入设备)协同将焦点设备由第一设备切换为第二设备。其中,无线键盘(即第二输入设备)和无线鼠标(即第一输入设备)起初均处于普通模式,且均与第一设备建立了无线通信连接。
请参考图17,图17示出了本申请实施例提供的一种输入设备的连接方法流程图。起初,无线鼠标和无线键盘处于普通模式,如图17中的S1701所示:无线鼠标接收用户的第一操作,向第一设备发送鼠标光标的移动信息。其中,第一操作如移动无线鼠标的操作。如图17中的S1702所示:无线键盘接收用户的第四操作,向鼠标光标所在输入框输入信息。其中,第四操作如向鼠标光标所在输入框输入信息的操作。
之后,在用户打开无线鼠标多设备连接功能的操作后,无线鼠标从普通模式进入多连接模式。如图17所示,上述阶段1可以包括S1703-S1707,上述阶段2可以包括S1708-S1710,上述阶段3可以包括S1711-S1714。其中,S1703-S1714具体如下:
S1703:在接收到用户在UI界面上的第二操作时,第一设备向无线鼠标发送工作模式切换指令。
其中,UI界面如用于管理多连接模式相关配置或操作的UI界面。第二操作如打开无线鼠标多设备连接功能的操作。工作模式切换指令用于指示无线鼠标切换为多连接模式。例如,由普通模式切换为多连接模式。
S1704:无线鼠标与第二设备和第三设备建立无线通信连接。
其中,在无线鼠标接收到来自第一设备的工作模式切换指示之后,无线鼠标进入多连接模式,与第二设备和第三设备建立无线通信连接。在无线鼠标进入多连接模式,与第二设备和第三设备建立无线通信连接之后,第一设备是无线鼠标的焦点设备,第二设备和第三设备是无线鼠标的非焦点设备。也就是说,无线鼠标当前可以直接操控第一设备。
S1705:第一设备从无线鼠标获取第二设备的标识信息和第三设备的标识信息。
例如,无线鼠标在与第二设备和第三设备建立无线通信连接之后,可以保存第二设备的标识信息和第三设备的标识信息(例如保存在配对信息列表中)。进一步的,在无线鼠标与第二设备和第三设备建立无线通信连接之后,无线鼠标可以向第一设备共享第二设备的标识信息和第三设备的标识信息。
示例性的,第二设备的标识信息如第二设备的MAC地址的后四位,第三设备的标识信息如第三设备的MAC地址的后四位。
S1706:在接收到用户的第五操作时,第一设备向无线键盘发送工作模式同步切换 指令。
其中,第五操作如打开键鼠协同功能的操作。工作模式同步切换指令用于指示无线键盘切换为多连接模式。例如,由普通模式切换为多连接模式。
作为一种示例,工作模式同步切换指令中可以携带有第二设备的标识信息和第三设备的标识信息,以便无线键盘根据该标识信息与第二设备和第三设备建立无线通信连接。
作为一种示例,第一设备可以提供用于用户选择键鼠协同功能的选项,以便用户根据实际需求进行设置。示例性的,用户打开键鼠协同功能的操作如用户开启无线鼠标上的键鼠协同开关(如图4所示402)的操作。
S1707:无线键盘与第二设备和第三设备建立无线通信连接。
其中,在无线键盘接收到来自第一设备的工作模式同步切换指令之后,无线键盘进入多连接模式,与第二设备和第三设备建立无线通信连接。在无线键盘进入多连接模式,与第二设备和第三设备建立无线通信连接之后,第一设备是无线键盘的焦点设备,第二设备和第三设备是无线键盘的非焦点设备。也就是说,无线键盘当前可以直接向第一设备中输入信息。
作为一种可能的实现方式,无线键盘可以通过第三MAC地址与第二设备建立无线通信连接并进行后续通信,通过第四MAC地址与第三设备建立无线通信连接并进行后续通信。
作为一种示例,无线键盘可以通过对比蓝牙频道中已配对终端设备的信息与工作模式同步切换指令中携带的标识信息,判断是否与第二设备和第三设备有过配对。示例性的,若无线键盘与第二设备或第三设备未配对过,无线键盘可以根据工作模式同步切换指令中携带的标识信息发起配对请求。
作为一种示例,无线键盘与第二设备和第三设备建立无线通信连接的过程可以参考图10所示无线鼠标与第二设备和第三设备建立无线通信连接的过程。
作为一种示例,如图18所示,初始状态,即在无线鼠标进入多连接模式之后,无线鼠标与非焦点设备(如第二设备和第三设备)之间可以后台保持通信连接。以及,在无线键盘进入多连接模式之后,无线键盘与非焦点设备(如第二设备和第三设备)之间可以后台保持通信连接。其中,后台保持通信连接的方式如图18所示发送心跳报文的方式。
S1708:第一设备在检测到鼠标光标有滑向其它设备的趋势时,向无线鼠标发送迁移指示信息,向无线键盘发送协同迁移指示信息。
其中,上述迁移指示信息用于指示进行无线鼠标的焦点迁移。
在一些实施例中,迁移指示信息中包括鼠标光标滑出第一设备显示屏的位置信息。
作为另一种可能,鼠标光标滑出第一设备显示屏的位置信息还可以由第一设备单独发送给无线鼠标,本申请不做限定。在一些实施例中,上述迁移指示信息用于指示目标主机(如第二设备),即迁移指示信息用于指示无线鼠标将焦点设备切换为第二设备。示例性的,上述迁移指示信息中可以携带有第二设备的标识信息。
在一些实施例中,第一设备可以根据鼠标光标滑出第一设备显示屏的位置信息和无线鼠标的多设备连接配置信息,确定目标主机(如第二设备)。示例性的,第一设 备可以基于上述上文中的方式1或者方式2,确定多设备连接配置信息。
S1709:无线鼠标将焦点设备切换为第二设备。
在一些实施例中,若迁移指示信息用于指示无线鼠标将焦点设备切换为第二设备,例如若迁移指示信息中携带有第二设备的标识信息,S1709具体可以包括:无线鼠标根据迁移指示信息中携带的第二设备的标识信息,将焦点设备切换为第二设备。
在另一些实施例中,若迁移指示信息未指示无线鼠标的目标主机,S1709具体可以包括:无线鼠标根据鼠标光标滑出第一设备显示屏的位置信息和无线鼠标的多设备连接配置信息,确定目标主机(如第二设备)。作为一种示例,上述鼠标光标滑出第一设备显示屏的位置信息来自于迁移指示信息。示例性的,无线鼠标可以基于上文中的方式A或者方式B,获取无线鼠标的多设备连接配置信息。
S1710:无线键盘将焦点设备切换为第二设备。
其中,如图18所示,在无线鼠标和无线键盘将焦点设备切换为第二设备之后,无线鼠标和无线键盘与非焦点设备(如第一设备和第三设备)之间可以后台保持通信连接。其中,后台保持通信连接的方式如图18所示发送心跳报文的方式。
进一步的,在一些实施例中,为了保持目标主机与源主机对于无线鼠标的多设备连接配置信息的同步,第一设备还可以通过无线鼠标,向第二设备同步无线鼠标的多设备连接配置信息,以便输入设备向第二设备接续输入,如以下S1711-S1714所示。
S1711:无线鼠标向第二设备发送鼠标光标滑出第一设备显示屏的位置信息。
S1712:第二设备根据鼠标光标滑出第一设备显示屏的位置信息和第二设备显示屏的尺寸,显示鼠标光标。
S1713:无线鼠标接收用户的第一操作,向第二设备发送鼠标光标的移动信息。
其中,第一操作如移动无线鼠标的操作。
S1714:无线键盘接收用户的第四操作,向鼠标光标所在输入框输入信息。
其中,第四操作如向鼠标光标所在输入框输入信息的操作。
关于图17所示S1701,S1704,S1707,S1708,S1709,S1711,S1712和S1713等步骤的具体过程,可以分别参考上述实施例中对S901,S903,S904,S905,S906,S907和S908的介绍,这里不做赘述。
可以理解,基于本申请实施例提供的输入设备的连接方法,多个输入设备可以进行协同迁移,例如在第一输入设备将焦点设备由第一设备切换为第二设备时,第二输入设备也同步将焦点设备由第一设备切换为第二设备。该方法可以极大简化用户同时使用多个终端设备时的操作步骤,实现多个输入设备在多个终端设备之间的无缝同步迁移,保证切换时界面显示不卡顿,实现多个输入设备跨设备无缝接续的效果。另外,该方法无需依赖于WLAN进行信息同步,即多个终端设备无需连接至同一WLAN。
进一步的,为了保证输入设备在将焦点设备由第一设备切换为第二设备之后,第二设备能够同步第一设备的光标显示参数等相关个性化配置参数,实现无缝迁移,在一些实施例中,输入设备(如无线鼠标和/或无线键盘)还可以向第二设备发送输入设备的个性化配置参数。其中,输入设备的个性化配置参数可以包括但不限于以下中的一种或多种:每英寸像素点(dot per inch,DPI)、按键定义(如快捷键设置、主按键定义等)、指纹信息等。
在一些实施例中,输入设备的个性化配置参数可以由第一设备在输入设备将焦点设备由第一设备切换为其它终端设备之前,发送给输入设备。作为一种示例,第一设备可以根据用户在输入设备的设置界面(如图7所示界面)上的设置,向输入设备发送输入设备的个性化配置参数。示例性的,输入设备可以将用户在不同终端设备上设置的个性化配置参数保存在对应蓝牙频道。
以键鼠协同场景为例,作为一种示例,如图19中S1709′和S1710′所示,无线鼠标和无线键盘可以在将焦点设备切换为目标主机(如第二设备)时,向目标主机(如第二设备)同步各自的个性化配置参数。其中,图19所示输入设备的连接方法与图18所示输入设备的连接方法在区别在于无线鼠标和无线键盘在将焦点设备切换为第二设备时,是否同步各自的个性化配置参数。
可以理解,终端设备之间通过同步输入设备的个性化配置参数,可以实现在焦点设备切换前后,输入设备个性化显示效果(如光标大小、光标形状、光标颜色、DPI、按键所对应的显示效果等)一致的效果,为用户提供更加平滑的输入设备迁移体验。
应理解,本申请实施例的各个方案可以进行合理的组合使用,并且实施例中出现的各个术语的解释或说明可以在各个实施例中互相参考或解释,对此不作限定。
还应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
可以理解的是,输入设备(包括第一输入设备和第二输入设备)为了实现上述任一个实施例的功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以对输入设备(包括第一输入设备和第二输入设备)进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
比如,以采用集成的方式划分各个功能模块的情况下,如图20所示,为本申请实施例提供的一种输入设备的结构框图。如图20所示,该输入设备可以包括通信单元2010、处理单元2020和存储单元2030。
其中,通信单元2010用于支持输入设备与终端设备(如第一终端设备或第二终端设备)之间进行通信,和/或与本申请实施例相关的其它过程。处理单元2020用于支持输入设备进行工作模式切换、焦点设备迁移,和/或与本申请实施例相关的其它过程。存储单元2030用于存储与本申请实施例相关的计算机程序指令和相关数据。
作为一种示例,上述通信单元2010可以包括射频电路。具体的,输入设备可以通过射频电路进行无线信号的接收和发送。通常,射频电路包括但不限于天线、至少一 个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频电路还可以通过无线通信和其它设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统、通用分组无线服务、码分多址、宽带码分多址、长期演进、电子邮件、短消息服务等。
应理解,输入设备中的各个模块可以通过软件和/或硬件形式实现,对此不作具体限定。换言之,输入设备是以功能模块的形式来呈现。这里的“模块”可以指特定应用集成电路ASIC、电路、执行一个或多个软件或固件程序的处理器和存储器、集成逻辑电路,和/或其它可以提供上述功能的器件。
在一种可选的方式中,当使用软件实现数据传输时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地实现本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其它可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线((digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如软盘、硬盘、磁带)、光介质(例如数字化视频光盘(digital video disk,DVD))、或者半导体介质(例如固态硬盘solid state disk(SSD))等。
结合本申请实施例所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于电子设备中。当然,处理器和存储介质也可以作为分立组件存在于输入设备中。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。

Claims (30)

  1. 一种输入设备的连接方法,其特征在于,所述方法应用于通信系统,所述通信系统包括第一输入设备、第一终端设备和第二终端设备,所述方法包括:
    所述第一输入设备在处于多连接工作模式时,与所述第一终端设备和所述第二终端设备均保持通信连接;
    所述第一终端设备向所述第一输入设备发送迁移指示信息,所述迁移指示信息用于指示所述第一输入设备进行焦点设备切换;
    响应于所述迁移指示信息,所述第一输入设备将焦点设备由所述第一终端设备切换为所述第二终端设备;
    其中,在所述第一输入设备将焦点设备由所述第一终端设备切换为所述第二终端设备之前,所述第一输入设备用于向所述第一终端设备输入信息;在所述第一输入设备将焦点设备由所述第一终端设备切换为所述第二终端设备之后,所述第一输入设备用于向所述第二终端设备输入信息。
  2. 根据权利要求1所述的方法,其特征在于,所述第一输入设备是无线鼠标;所述方法还包括:
    所述第一终端设备向所述第一输入设备发送鼠标光标滑出所述第一终端设备显示屏的位置信息;
    所述第一输入设备向所述第二终端设备发送所述鼠标光标滑出所述第一终端设备显示屏的位置信息,用于所述第二终端设备确定所述鼠标光标在所述第二终端设备显示屏上的初始位置。
  3. 根据权利要求2所述的方法,其特征在于,所述第一终端设备向所述第一输入设备发送迁移指示信息,包括:
    所述第一终端设备在检测到鼠标光标有滑向其它终端设备的趋势时,向所述第一输入设备发送所述迁移指示信息。
  4. 根据权利要求3所述的方法,其特征在于,所述第一终端设备向所述第一输入设备发送迁移指示信息,包括:
    所述第一终端设备在检测到鼠标光标有滑向其它终端设备的趋势,且确定所述其它终端设备是所述第二终端设备时,向所述第一输入设备发送所述迁移指示信息;
    其中,所述迁移指示信息中携带有所述第二终端设备的标识信息。
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:
    所述第一终端设备根据所述鼠标光标滑出所述第一终端设备显示屏的位置信息和所述第一输入设备的多设备连接配置信息确定所述其它终端设备是所述第二终端设备;
    其中,所述第一输入设备的多设备连接配置信息用于表征多个终端设备之间的位置排序。
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:
    所述第一终端设备根据用户在用户界面上的自定义设置的多个终端设备之间的位置排序,确定所述第一输入设备的多设备连接配置信息。
  7. 根据权利要求5所述的方法,其特征在于,所述方法还包括:
    所述第一终端设备基于自动定位技术,获取所述第一输入设备的多设备连接配置 信息。
  8. 根据权利要求1-3中任一所述的方法,其特征在于,
    所述响应于所述迁移指示信息,所述第一输入设备将焦点设备由所述第一终端设备切换为所述第二终端设备,包括:
    响应于所述迁移指示信息,所述第一输入设备根据所述鼠标光标滑出所述第一终端设备显示屏的位置信息和所述第一输入设备的多设备连接配置信息,将焦点设备由所述第一终端设备切换为所述第二终端设备;
    其中,所述第一输入设备的多设备连接配置信息用于表征多个终端设备之间的位置排序。
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:
    所述第一输入设备基于自动定位技术,获取所述第一输入设备的多设备连接配置信息。
  10. 根据权利要求9所述的方法,其特征在于,所述自动定位技术是超声波定位技术。
  11. 根据权利要求1-10中任一项所述的方法,其特征在于,在所述第一输入设备将焦点设备由所述第一终端设备切换为所述第二终端设备之后,所述方法还包括:
    所述第一输入设备向所述第二终端设备发送所述第一输入设备的个性化配置参数;
    其中,所述个性化配置参数包括以下中的一种或多种:每英寸像素点、快捷键设置、主按键定义、指纹信息。
  12. 根据权利要求1-11中任一项所述的方法,其特征在于,所述方法还包括:
    所述第一终端设备在检测到用户在用户界面上开启多设备连接功能的操作后,向所述第一输入设备发送工作模式切换指令,以指示所述第一输入设备从普通模式切换为所述多连接模式;
    所述第一输入设备从普通模式切换为所述多连接模式;其中处于所述普通模式的所述第一输入设备仅与所述第一终端设备建立无线通信连接。
  13. 根据权利要求1-11中任一项所述的方法,其特征在于,所述方法还包括:
    在检测到用户打开所述第一输入设备上用于开启多设备连接功能的开关的操作后,所述第一输入设备从普通模式切换为所述多连接模式。
  14. 根据权利要求1-13中任一项所述的方法,其特征在于,所述通信系统还包括第二输入设备,所述第二设备处于多连接工作模式,并且与所述第一终端设备和所述第二终端设备均保持通信连接,所述方法还包括:
    所述第一终端设备向所述第二输入设备发送协同迁移指示信息;
    响应于所述协同迁移指示信息,所述第二输入设备将焦点设备由所述第一终端设备切换为所述第二终端设备;
    其中,在所述第二输入设备将焦点设备由所述第一终端设备切换为所述第二终端设备之前,所述第二输入设备用于向所述第一终端设备输入信息;在所述第二输入设备将焦点设备由所述第一终端设备切换为所述第二终端设备之后,所述第二输入设备用于向所述第二终端设备输入信息。
  15. 根据权利要求14所述的方法,其特征在于,所述第二输入设备是无线键盘; 所述第一终端设备向所述第二输入设备发送协同迁移指示信息,包括:
    所述第一终端设备在检测到用户打开键鼠协同功能的操作后,向所述第一输入设备发送所述协同迁移指示信息。
  16. 根据权利要求15所述的方法,其特征在于,所述用户打开键鼠协同功能的操作是用户在用户界面上开启键鼠协同功能的操作,或者是用户在所述第二输入设备上打开开关的操作。
  17. 根据权利要求1-16中任一项所述的方法,其特征在于,
    所述第一输入设备在处于所述多连接工作模式时,分别通过第一多媒体访问控制MAC地址和第二MAC地址与所述第一终端设备和所述第二终端设备保持通信连接。
  18. 一种输入设备的连接方法,其特征在于,所述方法包括:
    所述第一输入设备在处于多连接模式时,与第一终端设备和第二终端设备均保持通信连接;
    所述第一输入设备接收来自所述第一终端设备的迁移指示信息,所述迁移指示信息用于指示所述第一输入设备进行焦点设备切换;
    响应于所述迁移指示信息,所述第一输入设备将焦点设备由所述第一终端设备切换为所述第二终端设备;
    其中,在所述第一输入设备将焦点设备由所述第一终端设备切换为所述第二终端设备之前,所述第一输入设备用于向所述第一终端设备输入信息;在所述第一输入设备将焦点设备由所述第一终端设备切换为所述第二终端设备之后,所述第一输入设备用于向所述第二终端设备输入信息。
  19. 根据权利要求18所述的方法,其特征在于,所述第一输入设备是无线鼠标;所述方法还包括:
    所述第一输入设备从所述第一终端设备获取鼠标光标滑出所述第一终端设备显示屏的位置信息;
    所述第一输入设备向所述第二终端设备发送所述鼠标光标滑出所述第一终端设备显示屏的位置信息,用于所述第二终端设备确定所述鼠标光标在所述第二终端设备显示屏上的初始位置。
  20. 根据权利要求19所述的方法,其特征在于,所述迁移指示信息中携带有所述第二终端设备的标识信息。
  21. 根据权利要求20所述的方法,其特征在于,所述响应于所述迁移指示信息,所述第一输入设备将焦点设备由所述第一终端设备切换为所述第二终端设备,包括:
    响应于所述迁移指示信息,所述第一输入设备根据所述鼠标光标滑出所述第一终端设备显示屏的位置信息和所述第一输入设备的多设备连接配置信息,将焦点设备由所述第一终端设备切换为所述第二终端设备;
    其中,所述第一输入设备的多设备连接配置信息用于表征多个终端设备之间的位置排序。
  22. 根据权利要求21所述的方法,其特征在于,所述方法还包括:
    所述第一输入设备基于自动定位技术,获取所述第一输入设备的多设备连接配置信息。
  23. 根据权利要求18-22中任一项所述的方法,其特征在于,在所述第一输入设备将焦点设备由所述第一终端设备切换为所述第二终端设备之后,所述方法还包括:
    所述第一输入设备向所述第二终端设备发送所述第一输入设备的个性化配置参数;
    其中,所述个性化配置参数包括以下中的一种或多种:每英寸像素点、快捷键设置、主按键定义、指纹信息。
  24. 根据权利要求18-23中任一项所述的方法,其特征在于,所述方法还包括:
    所述第一输入设备接收来自所述第一终端设备的工作模式切换指令;
    所述第一输入设备从普通模式切换为所述多连接模式;其中处于所述普通模式的所述第一输入设备仅与所述第一终端设备建立无线通信连接。
  25. 根据权利要求18-23中任一项所述的方法,其特征在于,所述方法还包括:
    在检测到用户打开所述第一输入设备上用于开启多设备连接功能的开关的操作后,所述第一输入设备从普通模式切换为所述多连接模式。
  26. 根据权利要求18-25中任一项所述的方法,其特征在于,
    所述第一输入设备在处于所述多连接工作模式时,分别通过第一MAC地址和第二MAC地址与所述第一终端设备和所述第二终端设备均保持通信连接。
  27. 一种输入设备,其特征在于,所述输入设备具备提供多个MAC地址的能力,所述输入设备包括:
    通信接口,用于进行无线电信号发送和接收;
    存储器,用于存储计算机程序指令;
    处理器,用于执行所述计算机程序指令,以支持所述输入设备实现如权利要求18-26中任一项所述的方法。
  28. 一种通信系统,其特征在于,所述通信系统包括:
    第一终端设备、第二终端设备和第一输入设备;所述通信系统用于实现如权利要求1-17中任一项所述的方法。
  29. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序指令,所述计算机程序指令被处理电路执行时实现如权利要求18-26中任一项所述的方法。
  30. 一种芯片系统,其特征在于,所述芯片系统具备提供多个MAC地址的能力,所述芯片系统包括处理电路、存储介质,所述存储介质中存储有计算机程序指令;所述计算机程序指令被所述处理电路执行时实现如权利要求18-26中任一项所述的方法。
PCT/CN2023/081647 2022-03-25 2023-03-15 一种输入设备的连接方法、设备及系统 WO2023179425A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210302737.3A CN114885442A (zh) 2022-03-25 2022-03-25 一种输入设备的连接方法、设备及系统
CN202210302737.3 2022-03-25

Publications (1)

Publication Number Publication Date
WO2023179425A1 true WO2023179425A1 (zh) 2023-09-28

Family

ID=82668230

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/081647 WO2023179425A1 (zh) 2022-03-25 2023-03-15 一种输入设备的连接方法、设备及系统

Country Status (2)

Country Link
CN (1) CN114885442A (zh)
WO (1) WO2023179425A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114885442A (zh) * 2022-03-25 2022-08-09 华为技术有限公司 一种输入设备的连接方法、设备及系统
CN117369682A (zh) * 2022-06-30 2024-01-09 华为技术有限公司 输入控制方法、电子设备及系统
CN117692551A (zh) * 2022-09-02 2024-03-12 荣耀终端有限公司 数据传输方法和终端设备
CN118102487A (zh) * 2022-11-18 2024-05-28 华为技术有限公司 一种数据显示方法、系统和电子设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040201628A1 (en) * 2003-04-08 2004-10-14 Johanson Bradley E. Pointright: a system to redirect mouse and keyboard control among multiple machines
CN107463518A (zh) * 2016-06-03 2017-12-12 罗技欧洲公司 用于输入装置的自动多主机切换
CN109885232A (zh) * 2019-03-11 2019-06-14 珠海格力电器股份有限公司 数据输入设备的控制方法、装置及系统
US20200213438A1 (en) * 2017-06-16 2020-07-02 Huawei Technologies Co., Ltd. Display method and device
CN113377272A (zh) * 2021-06-02 2021-09-10 Tcl通讯(宁波)有限公司 一种多设备间共享鼠标方法、装置、终端设备及存储介质
US20220015178A1 (en) * 2020-07-10 2022-01-13 Primax Electronics Ltd. Intellectual host switching system and method
CN114885442A (zh) * 2022-03-25 2022-08-09 华为技术有限公司 一种输入设备的连接方法、设备及系统

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040201628A1 (en) * 2003-04-08 2004-10-14 Johanson Bradley E. Pointright: a system to redirect mouse and keyboard control among multiple machines
CN107463518A (zh) * 2016-06-03 2017-12-12 罗技欧洲公司 用于输入装置的自动多主机切换
US20200213438A1 (en) * 2017-06-16 2020-07-02 Huawei Technologies Co., Ltd. Display method and device
CN109885232A (zh) * 2019-03-11 2019-06-14 珠海格力电器股份有限公司 数据输入设备的控制方法、装置及系统
US20220015178A1 (en) * 2020-07-10 2022-01-13 Primax Electronics Ltd. Intellectual host switching system and method
CN113377272A (zh) * 2021-06-02 2021-09-10 Tcl通讯(宁波)有限公司 一种多设备间共享鼠标方法、装置、终端设备及存储介质
CN114885442A (zh) * 2022-03-25 2022-08-09 华为技术有限公司 一种输入设备的连接方法、设备及系统

Also Published As

Publication number Publication date
CN114885442A (zh) 2022-08-09

Similar Documents

Publication Publication Date Title
WO2023179425A1 (zh) 一种输入设备的连接方法、设备及系统
US11861161B2 (en) Display method and apparatus
US12019864B2 (en) Multimedia data playing method and electronic device
WO2022022495A1 (zh) 一种跨设备的对象拖拽方法及设备
WO2021078284A1 (zh) 一种内容接续方法及电子设备
WO2020224449A1 (zh) 一种分屏显示的操作方法及电子设备
KR101901720B1 (ko) 더미 장치와의 연동 방법 및 그 전자 장치
WO2022042656A1 (zh) 一种界面显示方法及设备
CN114089901B (zh) 一种跨设备的对象拖拽方法及设备
WO2024016559A1 (zh) 一种多设备协同方法、电子设备及相关产品
EP4209891A1 (en) Display method and electronic device
WO2022048500A1 (zh) 一种显示方法及设备
WO2021057699A1 (zh) 具有柔性屏幕的电子设备的控制方法及电子设备
WO2023207761A1 (zh) 外设控制方法、电子设备及系统
KR20210017030A (ko) 전력 소모를 줄이기 위한 전자 장치 및 그의 동작 방법
WO2021082911A1 (zh) 一种内容传输方法和终端设备
WO2022206848A1 (zh) 一种应用小部件的显示方法及设备
TW201335760A (zh) 雙作業系統共用周邊裝置之方法以及使用該方法之電子裝置
WO2023011418A1 (zh) 一种跨设备输入方法、设备及系统
WO2024046315A1 (zh) 一种输入设备的事件处理方法和装置
WO2023071590A1 (zh) 输入控制方法及电子设备
WO2022052907A1 (zh) 一种显示方法及电子设备
EP4280042A1 (en) Distributed audio playing method, and electronic device
WO2022247638A1 (zh) 一种手写笔的连接控制方法和电子设备
WO2023116472A1 (zh) 一种收发红包的方法和电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23773673

Country of ref document: EP

Kind code of ref document: A1