This application is a continuation of International Application No. PCT/CN2013/070903, filed on Jan. 23, 2013, which claims priority to Chinese Patent Application No. 201210265897.1, filed on Jul. 30, 2012, both of which are hereby incorporated by reference in their entireties.
Not applicable.
Not applicable.
The present invention pertains to the computer field, and in particular, relates to a method and a system for configuring sharing of an input apparatus among devices.
At present, when a plurality of devices such as a desktop computer, a laptop computer, a tablet computer, and a mobile communications terminal are placed together, a user often hopes to use only one keyboard and one mouse for input, without requiring constant switching between a plurality of keyboards and mouses. Therefore, the prior art provides the Synergy® software. The Synergy® software is a type of software that enables a user to simultaneously operate and control a plurality of devices by using only one keyboard and one mouse. The user can install the Synergy® software on different systems including Windows®, Linux®, Mac OS®, and the like. After a master-slave relationship is set, a plurality of devices can be operated and controlled by using one keyboard and one mouse. To switch an operation and control from a device A to a device B, the user only needs to move a mouse pointer out of a screen border of the device A to a screen of the device B.
However, the user must manually configure an inter-device shared input apparatus in a display configuration file of each device first when using the Synergy® software, which causes inconvenience to operations.
A purpose of embodiments of the present invention is to provide a method and a system for configuring sharing of an input apparatus among devices, so as to resolve a problem in the prior art that sharing of an input apparatus among devices must first be manually configured in a display configuration file of each device, which causes inconvenience to operations.
The embodiments of the present invention are implemented as follows. A method for configuring sharing of an input apparatus among devices is provided, where the method includes: receiving an instruction for configuring sharing of an input apparatus among devices, where the devices include this device and at least one adjacent device; sending an adjacent device search request message by using a communications module of this device; receiving device information fed back by the adjacent device according to the adjacent device search request message; analyzing a device name and a network address of the adjacent device according to the device information; and transferring a configuration file of configuring sharing of the input apparatus among devices to the adjacent device, so that the adjacent device configures sharing of the input apparatus among devices according to the configuration file.
Another purpose of the embodiments of the present invention is to provide a system for configuring sharing of an input apparatus among devices, where the system includes: a first instruction receiving module configured to receive an instruction for configuring sharing of an input apparatus among devices, where the devices include this device and at least one adjacent device; a first message sending module configured to send an adjacent device search request message by using a communications module of this device; a first information receiving module configured to receive device information fed back by the adjacent device according to the adjacent device search request message; a first analyzing module configured to analyze a device name and a network address of the adjacent device according to the device information; and a first transferring module configured to transfer a configuration file of configuring sharing of the input apparatus among devices to the adjacent device, so that the adjacent device configures sharing of the input apparatus among devices according to the configuration file.
Another purpose of the embodiments of the present invention is to provide a method for configuring sharing of an input apparatus among devices, where the method includes: sending an adjacent device search request message by using a communications module of this device according to a predetermined period, where the devices include this device and at least one adjacent device; receiving device information fed back by the adjacent device according to the adjacent device search request message; and if this device has completed configuration of sharing the input apparatus among devices, sending a query instruction to the adjacent device to query whether the adjacent device has completed the configuration of sharing the input apparatus among devices; if feedback of no configuration is received, sending a configuration file of configuring sharing of the input apparatus among devices to the adjacent device, so that the adjacent device configures sharing of the input apparatus among devices according to the configuration file.
Another purpose of the embodiments of the present invention is to provide a system for configuring sharing of an input apparatus among devices, where the system includes: a third message sending module configured to send an adjacent device search request message by using a communications module of this device according to a predetermined period, where the devices include this device and at least one adjacent device; a third information receiving module configured to receive device information fed back by the adjacent device according to the adjacent device search request message; and a first querying module configured to: if this device has completed configuration of sharing the input apparatus among devices, send a query instruction to the adjacent device to query whether the adjacent device has completed the configuration of sharing the input apparatus among devices; if feedback of no configuration is received, send a configuration file of configuring sharing of the input apparatus among devices to the adjacent device, so that the adjacent device configures sharing of the input apparatus among devices according to the configuration file.
Another purpose of the embodiments of the present invention is to provide a method for operating an adjacent device sharing an input apparatus, where the method includes: receiving an instruction for operating the adjacent device; determining whether the adjacent device is operated by a person; if yes, sending, by using a communications module of this device, an adjacent device operation request applied for by this device, so as to query a user who uses the adjacent device about whether management permission can be transferred; and receiving a response message fed back by the adjacent device; if the response message indicates that the adjacent device can be operated, sending keyboard, mouse, or touch action data of this device to the adjacent device so as to operate the adjacent device; and eliminating an impact on this device caused by a keyboard, mouse, or touch action of this device.
Another purpose of the embodiments of the present invention is to provide a system for operating an adjacent device sharing an input apparatus, where the system includes: a third instruction receiving module configured to receive an instruction for operating the adjacent device; a determining module configured to determine whether the adjacent device is operated by a person; a request sending module configured to: when the determining module determines that the adjacent device is operated by a person, send, by using a communications module of this device, an adjacent device operation request applied for by this device, so as to query a user who uses the adjacent device about whether management permission can be transferred; a response message receiving module configured to receive a response message fed back by the adjacent device; and a data sending module configured to: when the response message received by the response message receiving module indicates that the adjacent device can be operated, send keyboard, mouse, or touch action data of this device to the adjacent device so as to operate the adjacent device; and eliminating an impact on this device caused by a keyboard, mouse, or touch action of this device.
Another purpose of the embodiments of the present invention is to provide a method for managing an adjacent device sharing an input apparatus, where the method includes: configuring this device as a management device for managing the adjacent device sharing the input apparatus after the adjacent device completes configuration of sharing the input apparatus among devices; displaying, by this device, information about all adjacent devices that complete the configuration of sharing the input apparatus among devices, so that a user selects which adjacent device is to be managed; acquiring, by using a communications module of this device, screen display content of the adjacent device selected by a user or a default adjacent device, and displaying the screen display content on a monitor of this device; if the user performs an input operation by using an input apparatus of this device, transferring input operation information to the adjacent device selected by the user or the default adjacent device, so that the adjacent device selected by the user or the default adjacent device performs the corresponding input operation; and acquiring, by using the communications module of this device, a result after the adjacent device selected by the user or the default adjacent device performs the corresponding input operation, and displaying the result on the monitor of this device.
Another purpose of the embodiments of the present invention is to provide a system for managing an adjacent device sharing an input apparatus, where the system includes: a management device configuring module, adapted to: after the adjacent device completes configuration of sharing an input apparatus, configure this device as a management device for managing the adjacent device sharing the input apparatus; a display module configured to display, by this device, information about all adjacent devices that complete the configuration of sharing the input apparatus among devices, so that a user selects which adjacent device is to be managed; a display content acquiring module configured to acquire, by using a communications module of this device, screen display content of the adjacent device selected by the user or a default adjacent device, and display the screen display content on a monitor of this device; an information transferring module configured to: if the user performs an input operation by using an input apparatus of this device, transfer input operation information to the adjacent device selected by the user or the default adjacent device, so that the adjacent device selected by the user or the default adjacent device performs the corresponding input operation; and a result acquiring module configured to acquire, by using the communications module of this device, a result after the adjacent device selected by the user or the default adjacent device performs the corresponding input operation, and display the result on the monitor of this device.
In the embodiments of the present invention, by using the communications module of this device, the adjacent device search request message is sent, and the configuration file of configuring sharing of the input apparatus among devices is transferred to the adjacent device, so that the adjacent device configures sharing of the input apparatus among devices according to the configuration file, thereby resolving the problem in the prior art that sharing of an input apparatus among devices must first be manually configured in a display configuration file of each device, which causes inconvenience to operations. Embodiment 1 of the present invention enables a user to configure all adjacent devices on only one device when configuring the inter-device shared input apparatus, and the operations are convenient.
To make the objectives, technical solutions, and beneficial effects of the present invention more comprehensible, the following further describes the present invention in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely used for describing the present invention, but are not intended to limit the present invention.
The following describes specific implementation of the present invention in detail with reference to specific embodiments.
Referring to
S101: Receive an instruction for configuring sharing of an input apparatus among devices.
In Embodiment 1 of the present invention, the devices include this device and at least one adjacent device, and the instruction for configuring sharing of an input apparatus among devices may be a display border of this device is touched, a mouse cursor of this device collides with the display border according to the predetermined number of times, a preset file icon of this device collides with the display border according to the predetermined number of times and/or this device is shaken at a predetermined speed.
The file icon may be an icon of a media file and a data file such as a picture, a photograph, music, a video, and an electronic book (e-book). That this device is shaken at the predetermined speed is sensed by a motion sensing module of this device. The adjacent device and this device may both be a desktop computer, a laptop computer, a tablet computer, a mobile communications terminal, and the like.
S102. Send an adjacent device search request message by using a communications module of this device.
In Embodiment 1 of the present invention, the communications module may be a Wireless-Fidelity (Wi-Fi) communications module, an Ethernet interface communications module, a Bluetooth® communications module, and the like.
S103: Receive device information fed back by the adjacent device according to the adjacent device search request message.
In Embodiment 1 of the present invention, the device information includes a device name, a network address, and the like.
S104. Analyze the device name and the network address of the adjacent device according to the device information.
S105. Transfer a configuration file of configuring sharing of the input apparatus among devices to the adjacent device, so that the adjacent device configures sharing of the input apparatus among devices according to the configuration file.
In Embodiment 1 of the present invention, between step S104 and step S105, the method may further include the following steps:
S106: Prompt the device name of the adjacent device and a display position of the configurable adjacent device relative to this device.
A configuration interface shown in
When there are a large number of adjacent devices, that is, exceeding three rows and three columns, a function of adding a row or a column may be provided, so that the user can configure the display position (as shown in
In addition,
S107. Receive configuration of the display position of the adjacent device selected by a user relative to this device.
As shown in
In Embodiment 1 of the present invention, after step S105, the method may further include the following steps: receiving confirmed configuration completion information fed back by the adjacent device; and after the configuration is completed, this device and the configured adjacent device may be simultaneously used by one user, that is, the mouse and the keyboard are shared.
In Embodiment 1 of the present invention, between step S105 and step S107, the method may further include the following steps: sending an application message indicating whether to intend to accept the configuration to the adjacent device selected by the user; and receiving an intention message fed back by the adjacent device selected by the user; performing step S105 if the intention message indicates an intention to accept the configuration, or terminating a process if the intention message indicates an intention not to accept the configuration.
In Embodiment 1 of the present invention, this device and the adjacent device communicate in a wireless manner, and the wireless manner includes Bluetooth®, infrared, or Wi-Fi.
In Embodiment 1 of the present invention, by using the communications module of this device, the adjacent device search request message is sent, and the configuration file of configuring sharing of the input apparatus among devices is transferred to the adjacent device, so that the adjacent device configures sharing of the input apparatus among devices according to the configuration file, thereby resolving the problem in the prior art that the inter-device shared input apparatus must be manually configured in a display configuration file of each device first, which causes inconvenience to operations. Embodiment 1 of the present invention enables a user to configure all adjacent devices on only one device when configuring the inter-device shared input apparatus, and the operations are convenient.
Referring to
In Embodiment 2 of the present invention, the system further includes: a first prompting module configured to prompt the device name of the adjacent device and a display position of the configurable adjacent device relative to this device; and a first configuration module configured to receive configuration of the display position of the adjacent device selected by a user relative to this device.
In Embodiment 2 of the present invention, the system further includes a second information receiving module configured to receive confirmed configuration completion information fed back by the adjacent device.
In Embodiment 2 of the present invention, the system further includes: a second message sending module configured to send an application message indicating whether to intend to accept the configuration to the adjacent device selected by the user; and a first message receiving module configured to receive an intention message fed back by the adjacent device selected by the user, and the first transferring module transfers a configuration file of configuring sharing of the input apparatus among devices to the adjacent device if the intention message indicates an intention to accept the configuration, or a process is terminated if the intention message indicates an intention not to accept the configuration.
In Embodiment 2 of the present invention, the first message sending module sends the adjacent device search request message by using the communications module of this device, and the first transferring module transfers the configuration file of configuring sharing of the input apparatus among devices to the adjacent device, so that the adjacent device configures sharing of the input apparatus among devices according to the configuration file, thereby resolving the problem in the prior that the inter-device shared input apparatus must be manually configured in a display configuration file of each device first, which causes inconvenience to operations. Embodiment 2 of the present invention enables a user to configure all adjacent devices on only one device when configuring the inter-device shared input apparatus, and the operations are convenient.
Referring to
S201: Send an adjacent device search request message by using a communications module of this device according to a predetermined period.
In Embodiment 3 of the present invention, the devices include this device and at least one adjacent device, and the communications module may be a Wi-Fi communications module, an Ethernet interface communications module, a Bluetooth® communications module, or the like.
S202: Receive device information fed back by the adjacent device according to the adjacent device search request message.
In Embodiment 3 of the present invention, the device information includes a device name, a network address, a corresponding position (for example, a geographical position), and the like.
S203. If this device has completed configuration of sharing the input apparatus among devices, send a query instruction to the adjacent device to query whether the adjacent device has completed the configuration of sharing the input apparatus among devices; if feedback of no configuration is received, send a configuration file of configuring sharing of the input apparatus among devices to the adjacent device, so that the adjacent device configures sharing of the input apparatus among devices according to the configuration file; if feedback of configuration completion is received, a process is terminated; or if this device does not complete the configuration of sharing the input apparatus among devices, receive an instruction, which is sent by the adjacent device that has completed the configuration of sharing the input apparatus among devices, for querying whether this device has completed the configuration of sharing the input apparatus among devices, so as to enable this device to send feedback of no configuration to the adjacent device that has completed the configuration of sharing the input apparatus among devices, then receive the configuration file of configuring sharing of the input apparatus among devices sent by the adjacent device that has completed the configuration of sharing the input apparatus among devices, and then configure sharing of the input apparatus for this device according to the configuration file.
In Embodiment 3 of the present invention, this device and the adjacent device communicate in a wireless manner, and the wireless manner includes Bluetooth®, infrared, or Wi-Fi.
In Embodiment 3 of the present invention, the adjacent device search request message is sent by using the communications module of this device according to the predetermined period, so as to implement the configuration of sharing the input apparatus among devices for this device and the adjacent device, thereby facilitating a user's operations.
Referring to
In Embodiment 4 of the present invention, the system further includes: a second instruction receiving module configured to: if this device does not complete the configuration of sharing the input apparatus among devices, receive a query instruction, which is sent by the adjacent device that has completed the configuration of sharing the input apparatus among devices, for querying whether this device has completed the configuration of sharing the input apparatus among devices; a first feedback sending module configured to send, by this device, the feedback of no configuration to the adjacent device that has completed the configuration of sharing the input apparatus among devices; and a configuration file receiving module configured to receive the configuration file of configuring sharing of the input apparatus among devices sent by the adjacent device that has completed the configuration of sharing the input apparatus among devices, and then configure sharing of the input apparatus for this device according to the configuration file.
In Embodiment 4 of the present invention, the third message sending module sends the adjacent device search request message by using the communications module of this device according to the predetermined period, so as to implement the configuration of sharing the input apparatus among devices for this device and the adjacent device, thereby facilitating a user's operations.
Referring to
S301. Receive an instruction for operating the adjacent device.
In Embodiment 5 of the present invention, the instruction for operating the adjacent device may be: a mouse cursor of this device naturally moves to a device border and collides with the border according to the predetermined number of times.
S302. Determine whether the adjacent device is operated by a person. If yes, perform step S303; if no, directly perform step S305.
In Embodiment 5 of the present invention, the determining whether the adjacent device is operated by a person specifically includes: sending query information to the adjacent device by using a communications module of this device to query whether an input interface of the adjacent device is in an idle state; and receiving a response message fed back by the adjacent device; if the response message indicates being in the idle state, indicating that the adjacent device is not operated by any person; if the response message indicates not being in the idle state, indicating that the adjacent device is operated by a person.
S303. Send, by using the communications module of this device, an adjacent device operation request applied for by this device, and query a user who uses the adjacent device about whether management permission can be transferred.
S304. Receive a response message fed back by the adjacent device; if the response message indicates that the adjacent device can be operated, perform S305; if the response message indicates that the adjacent device cannot be operated, terminate a process.
S305. Send keyboard, mouse, or touch action data of this device to the adjacent device so as to operate the adjacent device; and eliminating an impact on this device caused by a keyboard, mouse, or touch action of this device.
In Embodiment 5 of the present invention, this device and the adjacent device communicate in a wireless manner, and the wireless manner includes Bluetooth®, infrared, or Wi-Fi.
In Embodiment 5 of the present invention, the user can operate the adjacent device sharing the input apparatus in a convenient manner.
Referring to
The determining module specifically includes: a query information sending module configured to send query information to the adjacent device by using the communications module of this device to query whether an input interface of the adjacent device is in an idle state; and a response message receiving module configured to receive the response message fed back by the adjacent device; if the response message indicates being in the idle state, it indicates that the adjacent device is not operated by any person; if the response message indicates not being in the idle state, it indicates that the adjacent device is operated by a person.
When the determining module determines that the adjacent device is not operated by any person, the data sending module sends the keyboard, mouse, or touch action data of this device to the adjacent device so as to operate the adjacent device; and eliminating an impact on this device caused by a keyboard, mouse, or touch action of this device.
In Embodiment 6 of the present invention, the user can operate the adjacent device sharing the input apparatus in a convenient manner.
Referring to
S401. After the adjacent device completes configuration of sharing an input apparatus configure this device as a management device for managing the adjacent device sharing the input apparatus.
In Embodiment 7 of the present invention, the adjacent device may be configured by using the method for configuring sharing of an input apparatus among devices provided by Embodiment 1 of the present invention, and the adjacent device may also be configured by using the method in the prior art. After the adjacent device completes the configuration of sharing the input apparatus among devices, a position relationship of each device is displayed in an arrangement area of a configuration interface, and a “forward device” button (refer to
S402. This device displays information about all adjacent devices that complete the configuration of sharing the input apparatus among devices, so that the user selects which adjacent device is to be managed.
S403. Acquire, by using a communications module of this device, screen display content of the adjacent device selected by the user or a default adjacent device, and display the screen display content on a monitor of this device.
S404. If the user performs an input operation by using an input apparatus of this device, transfer input operation information to the adjacent device selected by the user or the default adjacent device, so that the adjacent device selected by the user or the default adjacent device performs the corresponding input operation.
S405. Acquire, by using the communications module of this device, a result after the adjacent device selected by the user or the default adjacent device performs the corresponding input operation, and display the result on the monitor of this device.
In Embodiment 7 of the present invention, the result after the corresponding input operation is performed on the adjacent device selected by the user or the default adjacent device may also be displayed on a monitor of the adjacent device selected by the user or a monitor of the default adjacent device, that is, the same content is displayed on the monitors of this device and the adjacent device selected by the user or the default adjacent device.
In Embodiment 7 of the present invention, this device and the adjacent device communicate in a wireless manner, and the wireless manner includes Bluetooth®, infrared, or Wi-Fi.
In Embodiment 7 of the present invention, the user can manage the adjacent device sharing the input apparatus in a convenient manner.
Referring to
The system further includes: a first instruction receiving module configured to receive an instruction for configuring sharing of an input apparatus among devices, where the devices include this device and at least one adjacent device; a first message sending module configured to send an adjacent device search request message by using the communications module of this device; a first information receiving module configured to receive device information fed back by the adjacent device according to the adjacent device search request message; a first analyzing module configured to analyze a device name and a network address of the adjacent device according to the device information; and a first transferring module configured to transfer a configuration file of configuring sharing of the input apparatus among devices to the adjacent device, so that the adjacent device configures sharing of the input apparatus among devices according to the configuration file.
In Embodiment 8 of the present invention, the user can manage the adjacent device sharing the input apparatus in a convenient manner.
A person of ordinary skill in the art may understand that all or a part of the steps of the methods in the embodiments may be implemented by a program instructing relevant hardware. The program may be stored in a computer readable storage medium, such as a read-only memory (ROM), a random-access memory (RAM), a magnetic disk, or an optical disc.
The foregoing descriptions are merely exemplary embodiments of the present invention, but are not intended to limit the present invention. Any modification, equivalent replacement, or improvement made without departing from the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
201210265897.1 | Jul 2012 | CN | national |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2013/070903 | Jan 2013 | US |
Child | 14530981 | US |