WO2023241257A1 - 设备建立连接的方法和终端设备 - Google Patents

设备建立连接的方法和终端设备 Download PDF

Info

Publication number
WO2023241257A1
WO2023241257A1 PCT/CN2023/092421 CN2023092421W WO2023241257A1 WO 2023241257 A1 WO2023241257 A1 WO 2023241257A1 CN 2023092421 W CN2023092421 W CN 2023092421W WO 2023241257 A1 WO2023241257 A1 WO 2023241257A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
area
identification
sub
devices
Prior art date
Application number
PCT/CN2023/092421
Other languages
English (en)
French (fr)
Other versions
WO2023241257A9 (zh
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 WO2023241257A1 publication Critical patent/WO2023241257A1/zh
Publication of WO2023241257A9 publication Critical patent/WO2023241257A9/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • 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
    • 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/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • 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/04815Interaction with a metaphor-based environment or interaction object displayed as three-dimensional, e.g. changing the user viewpoint with respect to the environment or object
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display

Definitions

  • the first terminal When the first terminal is connected to an input device such as a mouse or keyboard, a communication connection is established with the second terminal by setting the mouse or keyboard connected to the first terminal. That is, the first terminal and the second terminal share input such as the mouse or keyboard.
  • the device can facilitate the input of operation instructions on the second terminal.
  • the setting process and connection interaction method in the related technology are relatively complicated and the operation efficiency is low.
  • This application provides a method and terminal device for establishing a device connection.
  • the operation steps for the user to trigger the first terminal to enter the preset mode are convenient, simple and efficient.
  • this application provides a method for establishing a connection between devices, which is applied to a first terminal and a second terminal.
  • the first terminal is connected to an input device for inputting control instructions.
  • the method provided by this application includes: the first terminal displays a first window, the first window is a first interface of the first application, and the first interface includes a first control.
  • the first terminal performs device discovery and displays a second interface in the first window.
  • the second interface includes a first identification of the first terminal.
  • the first identification of the first terminal is surrounded by In a first area, a second identification of the discovered device is displayed in a second area around the first identification of the first terminal.
  • the first terminal In response to the first operation on the identification of the second terminal in the second identification, the first terminal establishes a short-distance communication connection with the second terminal and moves the identification of the second terminal from the second area to the first area.
  • the first terminal and the second terminal enter the preset mode.
  • the preset mode in response to the user's second operation, the first terminal moves the cursor corresponding to the input device to the interface of the second terminal.
  • the second terminal performs a function corresponding to the third operation.
  • connection relationship between the first terminal and other devices can be intuitively displayed to the user.
  • connection process can be realized by operating the identification of the discovered device. Compared with related technologies, two devices need to be configured separately. configuration, operation is more convenient and faster, and the experience is high.
  • moving the identification of the second terminal from the second area to the first sub-area or the second sub-area includes: when the first terminal recognizes that the second terminal is located in the second area of the first terminal. When side, move the identification of the second terminal from the second area to the second sub-area.
  • the second operation is the user's operation of moving the cursor corresponding to the input device to the second side edge of the interface of the first terminal.
  • moving the identification of the second terminal from the second area to the first sub-area or the second sub-area includes: when the first terminal recognizes that the second terminal is located in the first area of the first terminal, When side, move the identification of the second terminal from the second area to the first sub-area.
  • the second operation is the user's movement operation of the cursor corresponding to the input device to the first side edge of the interface of the first terminal.
  • the first terminal can respond to the user's operation and change the identification of the second terminal from the first sub-area. Move to the second sub-area.
  • the display content in the second interface can be made closer to the real world, improving the user experience. It also facilitates the user to move the cursor corresponding to the input device to the interface of the second terminal.
  • the method provided by this application further includes: the first terminal responds In response to the movement operation of the identification of the third terminal in the second identification toward the first side, the identification of the third terminal is moved.
  • the first terminal detects that the identifier of the third terminal moves to the first side, it establishes a short-distance communication connection with the third terminal.
  • the first terminal displays the logo of the third terminal in the first sub-area, and the logo of the second terminal is moved to the second sub-area for display.
  • the first terminal moves the cursor to the interface of the third terminal in response to the user's movement operation of the cursor corresponding to the input device to the first side edge of the interface of the first terminal.
  • the first terminal can also share the functions of the input device with the third terminal.
  • the method provided by this application also includes: the first terminal responds to the movement operation of the identification of the third terminal in the direction of the second side, The identifier of the mobile third terminal.
  • the first terminal detects that the logo of the third terminal moves to the second side, it displays the logo of the third terminal on the second sub-area and moves the logo of the second terminal from the second sub-area to the first sub-area.
  • the first terminal moves the cursor to the interface of the third terminal in response to the user's movement operation of the cursor corresponding to the input device to the second side edge of the interface of the first terminal.
  • the first terminal may move the identification of the third terminal from the first side of the first identification of the first terminal to the second side in response to the user's operation on the identification of the third terminal.
  • the display content in the second interface can be made closer to the real world, improve the user experience, and also facilitate the user to move the cursor corresponding to the input device to the interface of the third terminal.
  • the The method provided by the application also includes: the first terminal responds to the first operation on the identification of the fourth terminal in the second identification, and if the first terminal recognizes that the fourth terminal is located on the first side of the first terminal, the first terminal The short-distance communication connection is disconnected from the second terminal, and the short-distance communication connection is established with the fourth terminal.
  • the first terminal moves the identification of the second terminal from the first sub-area to the second area, and moves the identification of the fourth terminal from the second area to the first sub-area.
  • the first terminal moves the cursor to the interface of the fourth terminal in response to the user's movement operation of the cursor corresponding to the input device on the first interface to the second side of the fourth terminal.
  • the first area only includes the first sub-area and the second sub-area, it means that the upper limit of the devices that the first terminal is allowed to establish a short-distance communication connection is two.
  • the first terminal responds to the first operation on the identification of the fourth terminal in the second identification, indicating that the user needs to establish the fourth terminal with the first terminal. Short distance communication connection.
  • the first terminal recognizes that the fourth terminal is located on the first side of the first terminal (that is, the side where the second terminal is located).
  • the first terminal disconnects the short-distance communication connection with the second terminal, and establishes a short-distance communication connection with the fourth terminal.
  • the first terminal moves the identification of the second terminal from the first sub-area to the second area, and moves the identification of the fourth terminal from the second area to the first sub-area to indicate to the user that the first terminal is disconnected from the second terminal.
  • a short-distance communication connection is opened, and a short-distance communication connection is established with the fourth terminal.
  • the first terminal specifically shares the function of the input device with the fourth terminal.
  • the display state in which the logo of the second terminal is located in the second area is different from the display state in which the logo of the second terminal is located in the first sub-area or the second sub-area. In this way, the user can further distinguish whether the second terminal has established a short-distance communication connection with the first terminal through the display status of the second terminal's logo more clearly.
  • the direction of the identification of the discovered device relative to the first identification of the first terminal can be the same as the direction of the discovered device relative to the first terminal in reality.
  • the display content in the second interface can be made closer to the real world and improve the user experience.
  • the method provided by this application further includes: detecting on the first terminal to one of the devices When the direction relative to the first terminal changes, the first terminal adjusts the position of the second identification of one of the devices on the first interface, wherein the adjusted second identification of one of the devices is relative to the first identification of the first terminal.
  • the direction is the same as the direction of one of the devices relative to the first terminal.
  • the second area includes a plurality of third sub-areas
  • the second area around the first identification of the first terminal displays the second identification of the discovered device, including: the first terminal identifies the discovered The orientation of each device relative to the first terminal.
  • the first terminal determines the direction of each discovered device relative to the first terminal, the first identification direction of each third sub-area relative to the first terminal, the set priority of each device, and the set third sub-area.
  • the priority determines the arrangement of the second identifiers of each discovered device.
  • the first terminal displays the second identifiers of the discovered devices in multiple third sub-areas according to the determined arrangement of the second identifiers.
  • the arrangement of the second identifiers of the discovered devices in the second area is: random arrangement. Alternatively, prioritize each discovered device.
  • the second area includes a plurality of third sub-areas, arranged according to priorities of the plurality of third sub-areas.
  • the number of discovered devices is greater than the first number
  • the second identification of the discovered devices is displayed in the second area around the first identification of the first terminal, including: in the number of discovered devices
  • the first terminal selects the first number of devices from the discovered devices.
  • the second logos of the selected first plurality of devices are displayed.
  • the strategy for selecting the first few devices may be: arbitrarily selecting the first few devices from the discovered devices. Or, select the first devices ranked first in the time they were discovered from the discovered devices. Or, when the previously connected devices among the discovered devices are greater than or equal to the first number, select the first number of devices from the previously connected devices.
  • the second terminal that last connected to the first terminal earlier, or the second terminal that has been connected to the first terminal more times is the device that the user pays more attention to.
  • the position of the second terminal is sorted according to the determined priority, which is more convenient for the user's operation.
  • the first interface further includes a second control
  • the second control is used to instruct to display the second identification of the next group of devices, and in the second area around the first identification of the first terminal, display
  • the method provided by this application also includes: the first terminal determines the second identification of the unselected device among the discovered devices in response to the triggering operation of the second control. Whether the number is less than the first number. When the number of unselected devices is greater than the first number, the first terminal selects the first number of devices again from the unselected devices; and selects the second number of devices around the first logo of the first terminal. area, the second identifier of the first number of devices that is selected again. When the number of unselected devices is less than or equal to the first number, the first terminal displays the second identification of the unselected devices in the second area around the first identification of the first terminal.
  • the second logo that has not been displayed before can be displayed on the second interface to facilitate user browsing and operation.
  • the method provided by this application further includes: the first terminal responds to the second terminal located in the first area.
  • the fourth operation of the logo is to move the logo of the second terminal from the first area to the second area for display.
  • the first terminal disconnects the short-distance communication connection from the second terminal.
  • the fourth operation is an operation of moving the identification of the second terminal out of the first area.
  • the fourth operation bit is a click operation on the logo of the second terminal located on the first area.
  • the logo of the second terminal carries a third control, and the fourth operation is a click operation on the third control.
  • the input device is a keyboard, mouse or touch pad.
  • this application also provides a computer-readable storage medium.
  • the computer-readable storage medium stores instructions. When the instructions are executed, the computer executes the first aspect or any implementation of the first aspect. A method executed by one terminal or a second terminal.
  • the present application also provides a computer program product, including a computer program.
  • the computer program When the computer program is run, the computer executes the first terminal or the first terminal as described in the first aspect or any implementation of the first aspect. 2. Terminal execution method.
  • Figure 1 is a schematic diagram of the interface for editing text data on the word editing interface on a mobile phone
  • FIG. 2 is a schematic diagram of the hardware system architecture of the terminal device provided by the embodiment of the present application.
  • Figure 3 is an interface schematic diagram of the notebook computer 200 provided by the embodiment of the present application displaying a second interface in response to a click operation on setting item 3;
  • FIG. 4 is a schematic diagram of the principle of device discovery by the notebook computer 200 provided by the embodiment of the present application.
  • Figure 5 is a schematic interface diagram of the notebook computer 200 provided by the embodiment of the present application establishing a short-distance communication connection with the tablet computer 300 in response to a click operation on the icon of the tablet computer 300;
  • Figure 6 is a schematic interface diagram of the notebook computer 200 provided by the embodiment of the present application, in response to the user's movement operation of the cursor, moving the cursor to the interface of the tablet computer 300;
  • Figure 7 is a schematic interface diagram of the notebook computer 200 provided by the embodiment of the present application, on the basis of establishing a short-distance communication connection with the tablet computer 300, and then establishing a short-distance communication connection with the mobile phone 100;
  • Figure 9 is a schematic diagram of the principle of recognizing the direction of the device provided by the notebook computer 200 according to the embodiment of the present application.
  • Figure 10 is a schematic interface diagram of the notebook computer 200 provided by the embodiment of the present application, in response to a click operation on the icon 203 of the mobile phone, establishing a short-distance communication connection with the mobile phone 100;
  • Figure 12 shows the disconnection of the notebook computer 200 provided by the embodiment of the present application from the tablet computer 400 in response to a click operation on the icon 202 of the tablet computer 300 on the basis of establishing a short-distance communication connection with the tablet computer 400 and the mobile phone 100.
  • Short-distance communication connection and a schematic diagram of the interface for establishing a short-distance communication connection with the tablet computer 300;
  • Figure 16 is a schematic interface diagram of the notebook computer 200 provided by the embodiment of the present application, in response to the user's operation, exchanging the positions of the icon 204 of the tablet computer 400 and the icon 203 of the mobile phone;
  • Figure 17 is a schematic interface diagram of the notebook computer 200 provided by the embodiment of the present application, in response to the operation of the icon 203 of the mobile phone, moving the icon 203 of the mobile phone out of the second sub-area 208;
  • Figure 18 is a schematic interface diagram of the notebook computer 200 provided by the embodiment of the present application, in response to a click operation on the delete control 210 on the icon 203 of the mobile phone, moving the icon 203 of the mobile phone out of the second sub-area 208;
  • Figure 19 is one of the interface schematic diagrams of the notebook computer 200 provided by the embodiment of the present application for displaying icons of discovered devices;
  • Figure 20 is the second schematic interface diagram of the notebook computer 200 displaying the icons of the discovered devices provided by the embodiment of the present application;
  • Figure 21 is the third schematic interface diagram of the notebook computer 200 displaying the icons of the discovered devices provided by the embodiment of the present application;
  • Figure 22 is a schematic diagram of the hardware structure of a terminal device provided by an embodiment of the present application.
  • Figure 23 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • words such as “first” and “second” are used to distinguish the same or similar items with basically the same functions and effects.
  • the first value and the second value are only used to distinguish different values, and their order is not limited.
  • words such as “first” and “second” do not limit the number and execution order, and words such as “first” and “second” do not limit the number and execution order.
  • the present application provides an interactive method for a device to establish a connection.
  • the first terminal responds to the triggering operation of the first control in the first interface of the first window, performs device discovery, and displays the first terminal in the first window.
  • the second interface includes a first identification of the first terminal, a first area is included around the first identification of the first terminal, and the discovered device is displayed in the second area around the first identification of the first terminal.
  • Second identification In response to the first operation on the identification of the second terminal in the second identification, the first terminal establishes a short-distance communication connection with the second terminal and moves the identification of the second terminal from the second area to the first area.
  • first terminal may be a laptop computer, a desktop computer, or other devices connected to input devices such as a mouse, a keyboard, and/or a touch pad.
  • input devices such as a mouse, a keyboard, and/or a touch pad.
  • the embodiments of this application do not limit the specific technology and specific equipment form used by the first terminal.
  • FIG. 2 is a schematic structural diagram of a first terminal provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of the hardware structure of the first terminal provided by an embodiment of the present application.
  • a first terminal may include multiple subsystems that cooperate to perform, coordinate, or monitor one or more operations or functions of the first terminal.
  • the first terminal includes a display 220, a processor 230, a mouse 240, a keyboard 250, a touch pad 260, a speaker 270, a wireless communication module 280 and a memory 290.
  • the wireless communication function of the first terminal can be implemented through the antenna, wireless communication module 280, modem processor, baseband processor, etc. Antennas are used to transmit and receive electromagnetic wave signals.
  • the antenna in the first terminal can be used to cover a single or Multiple communication bands. Different antennas can also be reused to improve antenna utilization.
  • Processor 230 may be implemented as any electronic device capable of processing, receiving, or sending data or instructions.
  • a processor may be a microprocessor, a central processing unit, an application specific integrated circuit, a field programmable gate array, a digital signal processor, an analog circuit, a digital circuit, or a combination of these devices.
  • a processor can be a single-threaded or multi-threaded processor.
  • the processor can be a single-core or multi-core processor.
  • processor 230 may be configured to access memory in which instructions are stored.
  • the instructions may be configured to cause the processor to perform, coordinate, or monitor one or more operations or functions of the first terminal.
  • the mouse 240 is connected to the first terminal through the USB interface of the first terminal, and can also be connected to the first terminal through the wireless communication module 280 .
  • the first terminal may move the position of the cursor on the display 220 in response to the user's operation of moving the mouse 240 .
  • the mouse 240 may move the position of the cursor on the display 220 in response to the user's movement operation.
  • the keyboard 250 can be integrated into the first terminal, can also be connected to the first terminal through the USB interface of the first terminal, and can also be connected to the first terminal through the wireless communication module 280 .
  • the first terminal can respond to the user's triggering operation on the keyboard 250, input an operation instruction (such as a carriage return instruction, a space instruction) on the display 220, or input text data on the display.
  • an operation instruction such as a carriage return instruction, a space instruction
  • the first terminal can move the cursor displayed on the display 220 in response to the user's sliding operation on the touch panel.
  • Speaker 270 also known as “speaker” is used to convert audio electrical signals into sound signals.
  • the first terminal can listen to music through the speaker 270, or emit ultrasonic waves.
  • a speaker 270 may be provided on both sides of the first terminal, so that the first terminal can determine the direction of the discovered device relative to the first terminal.
  • the first terminal is the notebook computer 200 and the second terminal is the mobile phone 100
  • the technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail with reference to specific embodiments.
  • the following specific embodiments can be implemented independently or combined with each other.
  • the same or similar concepts or processes may not be described again in some embodiments.
  • the first terminal and the second terminal may be terminal devices such as laptop computers, tablet computers, and mobile phones.
  • the first terminal and the second terminal may be the same type of equipment, for example, the first terminal and the second terminal are both laptop computers; or the first terminal and the second terminal may be different types of equipment, for example, the first terminal is laptop computer, and the second terminal is a mobile phone or tablet computer.
  • the embodiment of the present application provides a method for a device to establish a connection, which is applied to a notebook computer (ie, the first terminal).
  • the laptop computer can display a first window (not shown in the drawing) in response to an operation on the icon or option of the "Computer Manager” displayed on the laptop computer, and the first window is the "Computer Manager” (i.e.
  • the first interface of the first application includes an option list, and the option list includes setting item 1, setting item 2, setting item 3, setting item 4, and setting item 5.
  • the specific name of "Setting Item 3" ie, the first control
  • the first interface 201 may also include an icon 209 of the laptop computer (i.e., the first logo of the first terminal) and a first sub-area located on the left side (i.e., the first side) of the icon 209 of the laptop computer. 207, and a second sub-area 208 located on the right side (ie, the second side) of the laptop icon 209.
  • an icon 209 of the laptop computer i.e., the first logo of the first terminal
  • a second sub-area 208 located on the right side (ie, the second side) of the laptop icon 209.
  • the notebook computer 200 when the notebook computer responds to the click operation on the option of “Setting Item 3”, the second interface 201 is displayed in the first window.
  • the notebook computer 200 performs device discovery.
  • the notebook computer 200 discovers the mobile phone 100 , the tablet computer 300 , and the tablet computer 400 .
  • the distances between the mobile phone 100, the tablet computer 300, and the tablet computer 400 and the notebook computer 400 are within the distance threshold.
  • the notebook computer 200 can display the discovered icon 203 of the mobile phone 100 , the icon 202 of the tablet computer 300 , and the icon 204 of the tablet computer 400 (ie, the discovered device) on the second interface 201 . 2 logo).
  • the icon 203 of the mobile phone 100, the icon 202 of the tablet computer 300, and the icon 204 of the tablet computer 400 may be located below the icon 209 of the notebook computer 200 (ie, the second area).
  • the icon 203 of the mobile phone 100, the icon 202 of the tablet computer 300, and the icon 204 of the tablet computer 400 can also be located above, to the left, or to the right of the icon 209 of the notebook computer 200, which is not limited here.
  • the icon 203 of the mobile phone 100, the icon 202 of the tablet computer 300, and the icon 204 of the tablet computer 400 can all be called first icons.
  • the icon 203 of the mobile phone 100 is associated with the identity information "YOYO's mobile phone” of the mobile phone 100
  • the icon 202 of the tablet computer 300 is associated with the identity information "YOYO's tablet” of the tablet computer 300.
  • the icon 204 of the tablet computer 400 is associated with the identity information of the tablet computer 400 "Zhang San's tablet”.
  • "YOYO” is the user name for logging into the operating systems of the mobile phone 100 and tablet computer 300
  • "Zhang San” is the user name for logging into the operating system of the tablet computer 400. In this way, the user can accurately perceive the device corresponding to each first icon based on each of the above identity information.
  • neither the first sub-area 207 nor the second sub-area 208 displays an icon of any device, indicating that the notebook computer 200 has not yet established a short-distance communication connection with any device.
  • the laptop computer 200 can guide the user to realize the connection between devices through visual animation effects.
  • the laptop computer can control the first sub-area 207 and the second sub-area 208 to flash, or switch colors every preset time period (such as 0.5s). , to guide the user to click or drag the first icon of one or more devices to establish a short-distance communication connection with the device.
  • the notebook computer 200 can establish a short distance with the tablet computer 300 in response to a click operation (ie, the first operation) on the icon 202 of the tablet computer 300 (ie, the logo of the second terminal). Communication connection.
  • the process of establishing a short-distance communication connection between the notebook computer 200 and the tablet computer 300 may be: the notebook computer 200 responds to a click operation on the icon 202 of the tablet computer 300, and sends a message to the tablet computer 300.
  • a first request is sent.
  • the first request is used to request the establishment of a short-distance communication connection, and the first request carries the identity information (such as the physical address) of the notebook computer 200 .
  • the tablet computer 300 confirms whether the identity information of the laptop computer 200 is recorded. When the identity information of the laptop computer 200 is recorded, it means that the tablet computer 300 has been connected to the laptop computer 200 before the tablet computer 300 feeds back a response message to the laptop computer 200.
  • the tablet computer 300 may display the first prompt information (not shown in the drawing), and the first prompt information is used to instruct to establish a short-distance communication connection with the laptop computer 200. Only when the tablet computer 300 responds to the confirmation operation of the first prompt information, the response message is fed back to the notebook computer 200 . In this way, the security of data on the notebook computer 200 can be improved.
  • the notebook computer 200 receives the response message fed back by the tablet computer 300, it establishes a short-distance communication connection with the tablet computer 300.
  • the process of establishing a short-distance communication connection between the notebook computer 200 and the tablet computer 300 may be: the notebook computer 200 sends a first request to the tablet computer 300, the first request is used to request the establishment of a short-distance communication connection, and the second request is used to request the establishment of a short-distance communication connection.
  • One request carries the user account logged into the laptop 200.
  • the tablet computer 300 confirms whether the user account logged in to the tablet computer 300 is consistent with the user account logged in to the notebook computer 200 .
  • the tablet computer 300 feeds back the response message to the notebook computer 200 . In this way, the security of data on the notebook computer 200 can be improved.
  • the tablet computer 300 may display the first prompt information, and the first prompt information is used to instruct to establish a short-distance communication connection with the laptop computer 200.
  • the tablet computer 300 When the tablet computer 300 responds to the confirmation operation of the first prompt information, a response message is fed back to the notebook computer 200 . In this way, the security of data on the notebook computer 200 can be improved.
  • the notebook computer 200 receives the response message fed back by the tablet computer 300, it establishes a short-distance communication connection with the tablet computer 300.
  • the above-mentioned short-distance communication connection can be a WiFi connection, a Bluetooth connection, or an ultra-wideband (UWB) connection, etc., which is not limited here.
  • the laptop computer 200 can be in the first sub-area 207 located on the left side of the icon 209 of the laptop computer 200, An icon 202 of the tablet 300 is displayed.
  • the icon of the tablet computer 300 is on the first sub-area 207, that is, the laptop computer 200 can more intuitively show the user that the laptop computer 200 and the tablet computer 300 are connected.
  • the laptop computer 200 no longer displays the icon of the tablet computer 300 located below the icon 209 of the laptop computer 200.
  • a solution corresponding to (c) in Figure 5 can also be implemented.
  • the notebook computer 200 can also display the tablet in the second sub-area 208 located on the right side of the icon 209 of the notebook computer 200 .
  • Computer 300 icon When the icon of the tablet computer 300 is on the second sub-area 208, the laptop computer 200 can also more intuitively show the user that the laptop computer 200 and the tablet computer 300 are connected.
  • the area displayed by the icon 202 of the tablet computer 300 can be determined based on the following method:
  • the first type if the laptop computer 300 has established a short-distance communication connection with the tablet computer 300 based on the first interface 101, the icon of the tablet computer 300 is displayed in the area where it was last displayed.
  • Second type If the laptop computer 300 has not established a short-distance communication connection with the tablet computer 300 based on the first interface 101, the icon of the tablet computer 300 is displayed in the first sub-area 207 to the left of the icon 209 of the laptop computer 200.
  • the default mode may also be called the input device sharing mode, which is not limited here.
  • the notebook computer 200 has the function of sharing an input device with the tablet computer 300 .
  • the notebook computer 200 responds to the user's movement operation of the cursor toward the right edge of the display screen of the notebook computer 200 (ie, the interface displayed by the notebook computer 200 ) (for example, the notebook computer 200 responds to The user drags the mouse toward the right edge of the display screen (ie, the second operation) to control the cursor (ie, the focus position for inputting instructions) to move to the edge of the display screen of the notebook computer 200 .
  • the notebook computer 200 may continue to respond to the user's operation of moving the cursor in the direction of the tablet computer 300 (ie, the second operation) by controlling the cursor to move to the interface 301 displayed on the tablet computer 300 .
  • the notebook computer 200 sends a control instruction to the tablet computer in response to the user's operation, and the tablet computer 300 responds to the operation of moving the mouse,
  • the cursor is controlled to move following the operation of moving the mouse on the text input interface (i.e., the function corresponding to the third operation); or, when the user performs the operation of the left or right mouse button on the touch panel or mouse of the notebook computer 200 (i.e., the function corresponding to the third operation) (third operation), in response to the user's operation, the tablet computer 300 performs the function corresponding to the operation of clicking the left or right mouse button on the text input interface (ie, the function corresponding to the third operation).
  • the laptop 200 can The identity information of the discovered device is displayed around the icon of the notebook computer 200, and the first icon associated with the identity information of each device, and after the connection is established, the discovered device is moved from the second area to the first area, which can be intuitively Show the user the connection relationship between the laptop 200 and other devices. Furthermore, the user can establish a short-distance communication connection with the tablet computer 300 by clicking on the icon of the tablet computer 300 . The laptop computer 200 and the tablet computer 300 enter the preset mode. The laptop computer 200 can then have the function of sharing the input device on the laptop computer 200 with the tablet computer 300. The operation steps are convenient, simple and efficient. In addition, the connection process can be realized by operating the icon of the discovered device. Compared with related technologies that require setting up two devices separately, the operation is more convenient and faster, and the experience is high).
  • the notebook computer 200 responds to the click operation (that is, the first operation) on the icon 203 of the mobile phone 100 (that is, the logo of the third terminal).
  • the notebook computer 200 and the mobile phone 100 (that is, the third terminal) Three terminals) establish short-distance communication connections.
  • the principle of establishing a short-distance communication connection between the notebook computer 200 and the mobile phone 100 is the same as the above-mentioned principle between the notebook computer 200 and the tablet computer 300, and will not be described again here.
  • the notebook computer 200 After the notebook computer 200 establishes a short-distance communication connection with the mobile phone 100, the notebook computer 200 also has the function of sharing an input device with the mobile phone 100.
  • the process of the notebook computer 200 sharing the input device with the mobile phone 100 is the same as the above-mentioned process of the notebook computer 200 sharing the input device with the tablet computer 300.
  • the difference may be that the notebook computer determines which device the notebook computer 200 uses based on the direction in which the mouse moves, the position where it stays, etc. Shared input devices. For example, as shown in (b) of FIG.
  • the mouse is displayed on the interface of the tablet computer 300 corresponding to the icon 202
  • the cursor realizes sharing the input device to the tablet computer; when the user moves the mouse cursor to the left to the edge of the display screen of the laptop 200, in response to the user's operation of moving the mouse cursor to the left, the corresponding icon 203
  • the mouse cursor is displayed on the interface of the mobile phone 100 to realize sharing the input device to the mobile phone.
  • sharing an input device when two devices are connected.
  • the application is not limited to this.
  • the input device can also be shared with different devices by moving the mouse to different positions on the same side edge of the laptop.
  • the laptop computer 200 When the laptop computer 200 and the tablet computer 300 are disconnected, and the laptop computer 200 and the tablet computer 400 establish a short-distance communication connection, the laptop computer 200 still has the function of sharing input devices to the tablet computer 400, and no longer has the function of sharing input devices with the tablet computer 300.
  • the process of sharing the input device from the notebook computer 200 to the tablet computer 400 is the same as the process of sharing the input device from the notebook computer 200 to the tablet computer 300, and will not be described again here. In this way, the notebook computer 200 can move the cursor to the interface of the tablet computer 400 in response to the user's movement of the cursor to the right edge of the interface of the notebook computer 200.
  • the notebook computer 200 when the notebook computer 200 discovers the mobile phone 100 , the tablet computer 300 , and the tablet computer 400 , it can identify the directions of the mobile phone 100 , the tablet computer 300 , and the tablet computer 400 relative to the notebook computer 200 .
  • the notebook computer 200 can sequentially display the discovered icon 203 of the mobile phone 100 , the icon 204 of the tablet computer 400 , and the tablet computer 300 from left to right on the second interface 201 .
  • the icon 203 of the mobile phone 100 is associated with the identity information "YOYO's mobile phone" of the mobile phone 100.
  • the icon 202 of the tablet computer 300 is associated with the identity information "YOYO's tablet” of the tablet computer 300.
  • the tablet computer 300 is associated with the identity information "YOYO's tablet”.
  • the icon 204 of the brain 400 is associated with the identity information of the tablet 400 "Zhang San's tablet”.
  • the arrangement of the icons 203 of the mobile phone 100, the icons 202 of the tablet computer 300, and the icons 204 of the tablet computer 400 allows the user to more intuitively perceive the mobile phone 100, the tablet computer 300, the laptop computer 200, and the tablet computer 400. position in the X-axis direction. In this way, the display content in the second interface 201 can be made closer to the real world and the user experience can be improved.
  • the notebook computer 200 recognizes that the position order of the mobile phone 100, the tablet computer 300 and the tablet computer 400 has changed, and the changed position order is: the tablet computer 400, the mobile phone 100 and the tablet computer 300 are in the X-axis direction, from They are arranged from left to right, and the tablet computer 400 and the mobile phone 100 are located on the left side of the laptop computer 200, and the tablet computer 300 is located on the right side of the laptop computer 200.
  • the notebook computer 200 can update the order of the icons of each device in Figure 10(a) to: the icon 204 of the tablet computer 400, the icon 203 of the mobile phone 100, and the icon 202 of the tablet computer 300 arranged from left to right ( (not shown in the attached figure).
  • the notebook computer 200 moves the cursor to an edge of the display screen of the notebook computer 200 adjacent to the side of the mobile phone 100 . Furthermore, based on the direction of the icon 203 of the mobile phone 100 relative to the icon 209 of the laptop computer 200, the user continues to move the cursor toward the side of the display screen of the laptop computer 200 adjacent to the mobile phone 100. At this time, the notebook computer 200 can respond to the user's mobile operation and control the cursor to move to the interface displayed on the mobile phone 100, which is convenient and fast, and is more in line with the user's operating habits.
  • the mobile phone 100, the tablet computer 300 and the tablet computer 400 are arranged in sequence from left to right in the X-axis direction, and the mobile phone 100 and the tablet computer 400 are located on the left side of the notebook computer 200, and the tablet computer 300 Located on the right side of laptop 200. Furthermore, as shown in (a)-(b) in Figure 11, after the notebook computer 200 has been connected to the mobile phone 100, the notebook computer 200 responds to the tablet computer 400. Clicking on the icon 204 establishes a short-distance communication connection with the tablet computer 400 . The laptop 200 determines that the tablet 400 is located on the left side of the laptop 200 .
  • the notebook computer 200 detects that there is already an icon 203 of the mobile phone 100 in the first sub-area 207 located on the left side of the icon 209 of the notebook computer 200, it will display the icon 203 on the right side of the icon 209 of the notebook computer in the second interface 201.
  • the second sub-area 208 displays the icon 204 of the tablet computer 400 . In this way, the icon 204 of the tablet computer 400 will not occupy the position of the icon 203 of the mobile phone 100 located in the same direction of the notebook computer 200 .
  • the mobile phone 100, the tablet computer 300 and the tablet computer 400 are arranged in sequence from left to right in the X-axis direction, and the mobile phone 100 and the tablet computer 400 are located on the left side of the notebook computer 200, and the tablet computer 300 Located on the right side of laptop 200.
  • the notebook computer 200 also has the function of sharing an input device with the tablet computer 400. That is to say, in addition to sharing the function of the input device with the mobile phone 100 , the notebook computer 200 can also share the function of the input device with the tablet computer 400 .
  • the laptop 200 after the laptop 200 has been connected to the mobile phone 100 (ie, the second terminal), the laptop 200 responds to a click on the icon 204 of the tablet computer 400 (ie, the logo of the third terminal). Operation to establish a short-distance communication connection with the tablet computer 400 (third terminal).
  • the notebook computer 200 determines that the tablet computer 400 is located on the left side of the notebook computer 200, and the icon 203 and the icon 204 can be displayed simultaneously on the first sub-region 207 on the left side.
  • the notebook computer 200 can respond to the user's operation of moving the mouse cursor to the left edge and control the cursor to move to the interface displayed on the mobile phone 100 or the interface of the tablet computer 400 , which is convenient and fast, and is more in line with the user's operating habits.
  • the left side of the laptop 200 can be divided into two areas, the upper and lower areas, and different areas implement the function of sharing input devices with different devices.
  • the notebook computer 200 can share the input device with the mobile phone 100 in response to the user's operation of moving the mouse cursor toward the upper left edge, and the notebook computer 200 can share the input device with the tablet in response to the user's operation of moving the mouse cursor toward the lower left edge.
  • Computer 400 shares input devices.
  • the notebook computer 200 responds to the corresponding By clicking on the icon 202 of the tablet computer 300 (the logo of the fourth terminal), the notebook computer 200 determines that the tablet computer 300 (the fourth terminal) is located on the right side of the notebook computer 200 . Alternatively, the notebook computer 200 responds to the movement operation of the icon 202 (the logo of the fourth terminal) of the tablet computer 300 toward the right side of the notebook computer 200.
  • the notebook computer 200 moves the icon 202 of the tablet computer 300 and the identity information of the tablet computer 300 located below the icon 209 of the notebook computer to the second sub-area 208 located on the right side of the icon 209 of the notebook computer for display.
  • the notebook computer 200 and the tablet computer 300 establish a short-distance communication connection.
  • the orientation of the icon 202 of the tablet computer 300 relative to the icon 209 of the notebook computer 200 is the same as that in reality.
  • the tablet computer 300 is oriented in the same direction relative to the notebook computer 200 . In this way, the display content in the second interface 201 can be made closer to the real world and the user experience can be improved.
  • the notebook computer 200 may move the cursor to the interface of the tablet computer 300 in response to the user moving toward the right edge of the interface of the tablet computer 300 .
  • the laptop computer 200 determines that the tablet computer 300 (i.e., the fourth terminal) is located on the left side of the laptop computer 200 side, or the notebook computer 200 responds to the movement operation of the icon 202 (identity of the fourth terminal) of the tablet computer 300 toward the left side of the notebook computer 200.
  • the principle is the same as that of the embodiment corresponding to FIG. 12 and will not be repeated here. To elaborate.
  • the notebook computer 200 and the tablet computer 300 when the notebook computer 200 and the tablet computer 300 establish a short-distance communication connection, the notebook computer 200 and the tablet computer 300 enter the default mode. In the default mode, the notebook computer 200 has the function of sharing an input device with the tablet computer 300 .
  • the direction of the icon 202 of the tablet computer 300 relative to the icon 209 of the laptop computer 200 is the same as the direction of the tablet computer 300 relative to the laptop computer 200 in reality, when the user needs to share an input device to the tablet computer 300, he or she can Based on the direction of the tablet computer 300 relative to the notebook computer 200, the cursor in the second interface 201 of the notebook computer 200 is moved in the direction of the tablet computer 300, and the cursor is controlled to move to the interface displayed by the tablet computer 300, which is convenient and fast, and More in line with users' operating habits.
  • the notebook computer 200 establishes a short-distance communication connection with the device in response to a click operation on the icon of the device.
  • the notebook computer 200 can also establish a short-distance communication connection with the device in response to a moving operation on the icon of the device.
  • the laptop computer 200 can respond to the user's movement operation of the icon 203 of the mobile phone 100 to the left side of the icon 209 of the laptop computer 200 ( That is, the first operation), move the icon 203 of the mobile phone 100 toward the left side of the icon 209 of the notebook computer 200 .
  • the user moves the icon 203 of the mobile phone 100 to the left side of the icon 209 of the notebook computer 200, the user raises his hand to stop touching the touch pad, or releases the left button of the mouse (ie, stops the moving operation).
  • the user raises his hand to stop touching the touch pad, or releases the left button of the mouse (ie, stops the moving operation).
  • the laptop 200 detects that the user has stopped moving the icon 203 of the mobile phone 100 , and the laptop 200 is positioned first to the left of the icon 209 of the laptop 200 .
  • Sub-area 207 displays the icon 203 of the mobile phone 100 . That is, the direction of the icon 103 of the mobile phone 100 relative to the icon of the notebook computer 200 is the same as the direction of the area where the icon 103 of the mobile phone 100 is located relative to the notebook computer 200 .
  • the notebook computer 200 establishes a short-distance communication connection with the mobile phone 100 .
  • the notebook computer 200 can move the cursor to the interface of the mobile phone 100 in response to the user moving toward the left edge of the interface of the mobile phone 100 .
  • the notebook computer 200 can respond to the user's icon 203 of the mobile phone 100.
  • the movement operation to the right side of the icon 209 of the notebook computer 200 moves the icon 203 of the mobile phone 100 to the right side of the icon 209 of the notebook computer 200 .
  • the user raises his hand to stop touching the touch pad, or releases the left button of the mouse (ie, stops the moving operation).
  • the laptop computer 200 detects that the user stops moving the icon 203 of the mobile phone 100, and the laptop computer 200 displays the icon 203 of the mobile phone 100 in the second sub-area 208 on the right side of the icon 209 of the laptop computer 200. Furthermore, the notebook computer 200 can move the cursor to the interface of the mobile phone 100 in response to the user moving to the right edge of the interface of the mobile phone 100 . In other words, it can make the display content in the second interface closer to the real world and improve The user experience is great, and it is also convenient for the user to move the cursor corresponding to the input device to the interface of the mobile phone 100 .
  • the direction of the icon 103 of the mobile phone 100 relative to the icon of the notebook computer 200 is the same as the direction of the area where the icon 103 of the mobile phone 100 is located relative to the notebook computer 200.
  • the user moves toward the right edge of the display screen of the notebook computer.
  • the cursor can be moved to the display interface of the mobile phone 100, and the input device can be used to input the mobile phone 100.
  • the user can switch the position of the icon 203 of the mobile phone 100 according to needs. It can be understood that during the implementation of the embodiment corresponding to FIG. 14 , the notebook computer 200 and the mobile phone 100 maintain a short-distance communication connection.
  • the notebook computer 200 displays the icon 203 of the mobile phone 100 in the first sub-area 207, as shown in (a) of Figure 15, the notebook computer 200 responds to the user's response to the icon 204 of the tablet computer 400 to the notebook computer 200.
  • the icon 204 of the tablet computer 400 is moved to the left side of the icon 209 of the notebook computer 200.
  • the user raises his hand to stop touching the touch pad, or releases the mouse left button (to stop the movement operation).
  • the notebook computer 200 detects that the movement operation of the icon 204 of the tablet computer 400 has stopped, and the notebook computer 200 and the tablet computer 400 establish a short-distance communication connection. Furthermore, the notebook computer 200 displays the icon 204 of the tablet computer 400 in the first sub-area 207 to the left of the icon 209 of the notebook computer 200, and the notebook computer 200 displays the mobile phone in the second sub-area 208 to the right of the icon 209 of the notebook computer 200. 100 icon 203. In this way, the first sub-area 207 on the left side of the icon 209 of the notebook computer 200 can display the most recently connected device located on the left side of the notebook computer 200 . In this way, it is more convenient for the user to operate the laptop 200 to share the input device with the most recently connected device.
  • the icon 203 of the mobile phone 100 is located on the right side of the icon 209 of the notebook computer 200
  • the icon 209 of the tablet computer 400 is located on the right side of the icon 209 of the notebook computer 200 left side.
  • the laptop computer 200 can accurately control the cursor to move to the interface displayed on the mobile phone 100 in response to the user's movement operation of the cursor to the left.
  • the notebook computer 200 can accurately control the cursor to move to the interface displayed on the tablet computer 400 in response to the user's movement operation of the cursor to the right. That is to say, the user moves the cursor on the laptop interface according to the actual position of the mobile phone or tablet computer relative to the laptop computer, and then moves the cursor to the mobile phone or laptop computer interface, thereby realizing the input device of the laptop computer to the mobile phone or laptop computer.
  • Computer input control
  • the first way to disconnect a short-distance connection the notebook computer 200 can respond to the movement operation of the device icon to move out of the first sub-area 207 or the second sub-area 208 (ie, the fourth operation), and move the device icon out of the first sub-area 207 or the second sub-area 208 (ie, the fourth operation).
  • the device associated with the icon of the moved device disconnects the short-range communication connection.
  • the icon and identity information of the disconnected device are displayed below the laptop 200, and the icon and identity information of the disconnected device are located before establishing a connection with the laptop 200. Location.
  • the icon and identity information of the mobile phone 100 when the icon and identity information of the mobile phone 100 are displayed below the icon 209 of the laptop 200, the icon of the mobile phone 100 is on the X-axis.
  • the position of the icon 209 relative to the laptop 200 may be the same as the position of the mobile phone 100 relative to the laptop 200 on the X-axis.
  • the position of the icon 203 of the mobile phone 100 may also be located at the position before the mobile phone 100 establishes a short-distance connection with the notebook computer 200, which is not limited here.
  • the bottom of the icon 209 of the notebook computer 200 is divided into a third sub-area A, a third sub-area B, a third sub-area C, a third sub-area D, and a third sub-area A.
  • Sub-area E each third sub-area is used to display the icon and identity information of a device.
  • the order of the third sub-region A, the third sub-region B, the third sub-region C, the third sub-region D and the third sub-region E from left to right is: the third sub-region D, the third sub-region E.
  • the notebook computer 200 determines that the number of devices for which icons and identity information are not displayed is less than 5. Furthermore, based on the embodiment corresponding to (a) in FIG. 21 , as shown in (b) in FIG. 21 , the display content of the notebook computer 200 below the icon 209 of the notebook computer 200 in the second interface 201 , updated to device 6, device 7, and device 8 whose icons and identity information are not displayed, so that the user can browse the next group of discovered devices. In addition, in other optional implementations, when the notebook computer 200 displays device 6, device 7, and device 8, the control 206 in the second interface 201 may not be displayed.
  • the icons and identity information of device 6, device 7, and device 8 are arranged in a manner in which the positions of each device recognized by the notebook computer 200 are distributed in the X-axis direction.
  • the icons and identity information of the three devices of device 6 , device 7 , and device 8 are arranged as follows: device 7 , device 6 , and device 8 .
  • the icon 209 of the laptop 200 can also be The first sub-area 207 on the side, or the second sub-area 208 on the right side of the icon 200 of the notebook computer 200 displays the desktop of the connected device (that is, the display state in which the logo of the second terminal is located on the second area, It is different from the display state in which the logo of the second terminal is located in the first sub-area 207 or the second sub-area 208 (not shown in the drawings), which is not limited here. In this way, the user can further distinguish whether the device has established a short-distance communication connection with the first terminal through the display status of the device's logo more clearly.
  • the processor 2201 can be a general central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more processors used to control the execution of the program of the present application. integrated circuit.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • Communication lines 2204 may include circuitry that communicates information between the components described above.
  • the communication interface 2203 uses any device such as a transceiver to communicate with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN), etc.
  • a transceiver to communicate with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN), etc.
  • WLAN wireless local area networks
  • the memory 2202 is used to store computer execution instructions for executing the solution of the present application, and is controlled by the processor 2201 for execution.
  • the processor 2201 is configured to execute computer execution instructions stored in the memory 2202, thereby implementing the method executed by the first terminal or the second terminal provided in the embodiment of the present application.
  • the processor 2201 may include one or more CPUs, such as CPU0 and CPU1 in Figure 22.
  • the terminal device may include multiple processors, such as processor 2201 and processor 2205 in Figure 22.
  • processors may be a single-CPU processor or a multi-CPU processor.
  • a processor here may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • memory 2340 stores the following elements: executable modules or data structures, Or a subset of them, or an extended set of them.
  • the steps of the method disclosed in conjunction with the embodiments of the present application can be directly implemented by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a storage medium mature in this field such as random access memory, read-only memory, programmable read-only memory or electrically erasable programmable read only memory (EEPROM).
  • the storage medium is located in the memory 2340.
  • the processor 2310 reads the information in the memory 2340 and completes the steps of the above method in combination with its hardware.
  • the instructions stored in the memory for execution by the processor may be implemented in the form of a computer program product.
  • the computer program product may be written in the memory in advance, or may be downloaded and installed in the memory in the form of software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请提供一种设备建立连接的方法和终端设备,涉及终端技术领域。设备建立连接的方法,第一终端可以在第二区域显示发现的设备的第二标识。进而,第一终端可以响应于对第二标识中的第二终端的标识的第一操作,与第二终端建立短距离通信连接,并将第二终端的标识从第二区域移动到第一终端的第一标识的第一区域。这时,第一终端和第二终端进入预设模式。在预设模式下,响应于用户的第二操作,第一终端将输入设备对应的光标,移动到第二终端的界面上。接收用户对输入设备的第三操作。第二终端响应于第三操作,执行第三操作对应的功能,用户的操作方便快捷,体验感高。

Description

设备建立连接的方法和终端设备
本申请要求于2022年06月13日提交中国国家知识产权局、申请号为202210663211.8、申请名称为“设备建立连接的方法和终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种设备建立连接的方法和终端设备。
背景技术
随着终端技术的发展,终端设备已经成为人们工作生活的一部分。目前的一些终端设备,可以与鼠标、键盘等输入设备连接,以更方便用户输入操作指令。
当第一终端与鼠标、键盘等输入设备连接时,通过设置与第一终端连接的鼠标或者键盘,同时与第二终端建立通信连接,也就是第一终端和第二终端共享鼠标或者键盘等输入设备,可以实现方便在第二终端输入操作指令,但是,相关技术中设置的过程和连接的交互方式比较复杂,操作效率低。
发明内容
本申请提供一种设备建立连接的方法和终端设备,用户触发第一终端进入预设模式的操作步骤便捷简单,效率高。
第一方面,本申请提供了一种设备建立连接的方法,应用于第一终端和第二终端,第一终端连接有用于输入控制指令的输入设备。本申请提供的方法包括:第一终端显示第一窗口,第一窗口为第一应用的第一界面,第一界面包括第一控件。第一终端响应于对第一控件的触发操作,进行设备发现,并在第一窗口显示第二界面,第二界面中包括第一终端的第一标识,第一终端的第一标识的周围包括第一区域,在第一终端的第一标识周围的第二区域内显示有发现的设备的第二标识。第一终端响应于对第二标识中的第二终端的标识的第一操作,与第二终端建立短距离通信连接,并将第二终端的标识从第二区域移动到第一区域。第一终端和第二终端进入预设模式,在预设模式下,响应于用户的第二操作,第一终端将输入设备对应的光标,移动到第二终端的界面上。接收用户对输入设备的第三操作。第二终端响应于第三操作,执行第三操作对应的功能。
本申请提供的设备建立连接的方法,第一终端可以在第二区域显示发现的设备的第二标识。进而,第一终端可以响应于对第二标识中的第二终端的标识的第一操作,与第二终端建立短距离通信连接,并将第二终端的标识从第二区域移动到第一终端的第一标识的第一区域。当第二终端的标识从第二区域移动到第一终端的第一标识的第一区域,可以指示用户第一终端与第二终端建立短距离通信连接。通过在第一终端的标识周围显示发现的设备,以及在建立连接后,将发现的设备从第二区域移动到第一区域,可以直观的向用户展示第一终端和其他设备的连接关系。另外,对发现的设备的标识进行操作,即可实现连接的过程,相比于相关技术中需要对两个设备分别进行设 置,操作也更方便快捷,体验感高。
在一种可能的实施方式中,第一区域包括第一子区域和第二子区域,第一子区域位于第一标识的第一侧,第二子区域位于第一标识的第二侧,将第二终端的标识从第二区域移动到第一区域,包括:将第二终端的标识从第二区域,移动到第一子区域或者第二子区域。
在一种可能的实施方式中,将第二终端的标识从第二区域,移动到第一子区域或者第二子区域,包括:当第一终端识别到第二终端位于第一终端的第二侧时,将第二终端的标识从第二区域,移动到第二子区域。第二操作为用户对输入设备对应的光标向第一终端的界面的第二侧边缘的移动操作。
这样一来,第二终端的标识相对于第一终端的第一标识的方向,与现实中第二终端相对于第一终端的方向相同,可以使得第二界面中的显示内容更贴近现实世界,提高用户使用体验感,同时也方便用户将输入设备对应的光标,移动到第二终端的界面上。
在一种可能的实施方式中,将第二终端的标识从第二区域,移动到第一子区域或者第二子区域,包括:当第一终端识别到第二终端位于第一终端的第一侧时,将第二终端的标识从第二区域,移动到第一子区域。第二操作为用户对输入设备对应的光标,向第一终端的界面的第一侧边缘的移动操作。
类似地,第二终端的标识相对于第一终端的第一标识的方向,与现实中第二终端相对于第一终端的方向相同。这样一来,可以使得第二界面中的显示内容更贴近现实世界,提高用户使用体验感,同时也方便用户将输入设备对应的光标,移动到第二终端的界面上。
在一种可能的实施方式中,在响应于用户的第二操作,第一终端将输入设备对应的光标,移动到第二终端的界面上之后,本申请提供的方法还包括:第一终端响应于对第二终端的标识向第二侧的移动操作,移动第二终端的标识。第一终端检测到第二终端移动到第二侧时,在第二子区域显示第二终端的标识。第一终端响应于用户对输入设备对应的光标,向第一终端的界面的第二侧边缘的移动操作,移动光标到第二终端的界面上。
这样一来,当第二终端在现实世界中,从第一终端的第一侧移动到第二侧时,第一终端可以响应于用户的操作,将第二终端的标识的从第一子区域移动到第二子区域。这样一来,通过简单的操作,即可使得第二界面中的显示内容更贴近现实世界,提高用户使用体验感,同时也方便用户将输入设备对应的光标,移动到第二终端的界面上。
在一种可能的实施方式中,在响应于用户的第二操作,第一终端将输入设备对应的光标,移动到第二终端的界面上之后,本申请提供的方法还包括:第一终端响应于对第二标识中的第三终端的标识的朝第一侧方向的移动操作,移动第三终端的标识。第一终端检测到第三终端的标识移动到第一侧时,与第三终端建立短距离通信连接。第一终端在第一子区域显示第三终端的标识,且第二终端的标识移动到第二子区域显示。第一终端响应于用户对输入设备对应的光标,向第一终端的界面的第一侧边缘的移动操作,移动光标到第三终端的界面上。
这样一来,第一终端除了可以向第二终端共享输入设备的功能以外,还可以向第三终端共享输入设备的功能。
在一种可能的实施方式中,在第一终端响应于用户对输入设备对应的光标,向第一终 端的界面的第一侧边缘的移动操作,移动光标到第三终端的界面上之后,本申请提供的方法还包括:第一终端响应于对第三终端的标识朝第二侧方向的移动操作,移动第三终端的标识。第一终端检测到第三终端的标识移动到第二侧时,在第二子区域上显示第三终端的标识,且将第二终端的标识从第二子区域移动到第一子区域。第一终端响应于用户对输入设备对应的光标,向第一终端的界面的第二侧边缘的移动操作,移动光标到第三终端的界面上。
需要说明的是,在第一终端同时具备向第二终端、第三终端共享输入设备的功能的情况下,若第三终端在现实世界中从第一终端的第一侧移动到第二侧时,第一终端可以响应于用户对第三终端的标识的操作,将第三终端的标识从第一终端的第一标识的第一侧移动到第二侧。这样一来,可以使得第二界面中的显示内容更贴近现实世界,提高用户使用体验感,同时也方便用户将输入设备对应的光标,移动到第三终端的界面上。
在一种可能的实施方式中,在第一终端响应于用户对输入设备对应的光标,向第一终端的界面的第二侧边缘的移动操作,移动光标到第三终端的界面上之后,本申请提供的方法还包括:第一终端响应于对第二标识中的第四终端的标识的第一操作,若第一终端识别到第四终端位于第一终端的第一侧,则第一终端与第二终端断开短距离通信连接,与第四终端建立短距离通信连接。第一终端将第二终端的标识从第一子区域移动到第二区域,以及将第四终端的标识从第二区域移动到第一子区域。第一终端响应于用户对第一界面上的输入设备对应的光标,向第四终端的第二侧的移动操作,移动光标到第四终端的界面上。
需要说明的是,当第一区域仅包括第一子区域和第二子区域时,说明第一终端允许建立短距离通信连接的设备的上限为两个。在第一终端与第二终端、第三终端连接的基础上,第一终端响应于对第二标识中的第四终端的标识的第一操作,说明用户需要将第四终端与第一终端建立短距离通信连接。这时,若第一终端识别到第四终端位于第一终端的第一侧(即第二终端的所在侧)。这时,第一终端与第二终端断开短距离通信连接,而与第四终端建立短距离通信连接。而且第一终端将第二终端的标识从第一子区域移动到第二区域,以及将第四终端的标识从第二区域移动到第一子区域,以指示用户第一终端与第二终端断开短距离通信连接,而与第四终端建立短距离通信连接。这时,第一终端具体向第四终端共享输入设备的功能。
在一种可能的实施方式中,第二终端的标识位于第二区域上的显示状态,与第二终端的标识位于第一子区域或第二子区域的显示状态不同。这样一来,用户可以更清楚地通过第二终端的标识的显示状态,来进一步分辨第二终端是否与第一终端建立短距离通信连接。
在一种可能的实施方式中,在第一终端的第一标识周围的第二区域显示发现的设备的第二标识,包括:第一终端识别发现的各设备相对于第一终端的方向。第一终端在第一终端的第一标识周围的第二区域,显示发现的设备的第二标识,其中,各第二标识相对于第一终端的第一标识的方向,与各设备相对于第一终端的方向相同。
这样一来,可以使得发现的设备的标识相对于第一终端的第一标识的方向,与现实中发现的设备相对于第一终端的方向相同。这样一来,可以使得第二界面中的显示内容更贴近现实世界,提高用户使用体验感。
在一种可能的实施方式中,在第一终端在第一终端的第一标识周围的第二区域,显示发现的设备的第二标识之后,本申请提供的方法还包括:在第一终端检测到其中一个设备 相对于第一终端的方向发生变化时,第一终端在第一界面调整其中一个设备的第二标识的位置,其中,调整后的其中一个设备的第二标识相对于第一终端的第一标识的方向,与其中一个设备相对于第一终端的方向相同。
这样一来,即使现实世界中其中一个的设备相对于第一终端的发现发生变化时,同样可以使得该设备的标识相对于第一终端的第一标识的方向,与现实中相对于第一终端的方向相同。这样一来,可以使得第二界面中的显示内容保持贴近现实世界,提高用户使用体验感。
在一种可能的实施方式中,第二区域包括多个第三子区域,在第一终端的第一标识周围的第二区域显示发现的设备的第二标识,包括:第一终端识别发现的各设备相对于第一终端的方向。第一终端根据发现的各设备相对于第一终端的方向、各第三子区域相对于第一终端的第一标识方向、设定的各设备的优先级、以及设定的各第三子区域的优先级,确定发现的各设备的第二标识的排列方式。第一终端根据确定的第二标识的排列方式,在多个第三子区域显示发现的设备的第二标识。
这样一来,可以将优先级越高的设备的第二标识,排列在越方便用户操作的位置,以方便用户浏览和操作。
在一种可能的实施方式中,发现的各设备的第二标识在第二区域的排列方式为:随机排列。或者,根据发现的各设备的优先级排列。或者,第二区域包括多个第三子区域,根据多个第三子区域的优先级排列。
在一种可能的实施方式中,发现的设备的数量大于第一个数,在第一终端的第一标识周围的第二区域显示发现的设备的第二标识,包括:在发现的设备的数量大于第一个数个时,第一终端从发现的设备中选择第一个数个设备。在第一终端的第一标识周围的第二区域,显示被选择的第一个数个设备的第二标识。
在一种可能的实施方式中,选择第一个数个设备的策略可以为:从发现的设备中任意选择第一个数个设备。或者,从发现的设备中选择被发现的时间排序靠前的第一个数个设备。或者,当发现的设备中曾经连接过的设备大于或等于第一个数时,从曾经连接过的设备中选择第一个数个设备。
可以理解地,上一次与第一终端连接的时刻越早的第二终端,或者,与第一终端曾经连接的次数越多的第二终端,为用户越关注的设备。这样一来,根据确定的优先级对第二终端排序的位置,更方便用户的操作。
在一种可能的实施方式中,第一界面还包括第二控件,第二控件用于指示显示下一组设备的第二标识,在在第一终端的第一标识周围的第二区域,显示被选择的第一个数个设备的第二标识之后,本申请提供的方法还包括:第一终端响应于对第二控件的触发操作,确定发现的设备中未被选择的设备的第二标识的数量是否小于第一个数个。当在未被选择的设备的数量大于第一个数个时,第一终端从未被选择的设备中再次选择第一个数个的设备;并在第一终端的第一标识周围的第二区域,再次被选择的第一个数个的设备的第二标识。当未被选择的设备的数量小于或等于第一个数个时,第一终端在第一终端的第一标识周围的第二区域,显示未被选择的设备的第二标识。
这样一来,可以使得之前未被显示的第二标识,能够被显示在第二界面,以方便用户浏览和操作。
在一种可能的实施方式中,在将第二终端的标识从第二区域移动到第一区域之后,本申请提供的方法还包括:第一终端响应于对位于第一区域上的第二终端的标识的第四操作,将第二终端的标识从第一区域移动到第二区域显示。第一终端与第二终端断开短距离通信连接。
在一种可能的实施方式中,第四操作为将第二终端的标识移出第一区域的操作。或者,第四操作位对位于第一区域上的第二终端的标识的点击操作。或者,第二终端的标识携带有第三控件,第四操作为对第三控件的点击操作。
在一种可能的实施方式中,输入设备为键盘、鼠标或者触摸板。
第二方面,本申请还提供一种终端设备,包括处理器和存储器,存储器用于存储代码指令;处理器用于运行代码指令,使得终端设备以执行如第一方面或第一方面的任一种实现方式中的第一终端或第二终端执行的方法。
第三方面,本申请还提供一种计算机可读存储介质,计算机可读存储介质存储有指令,当指令被执行时,使得计算机执行如第一方面或第一方面的任一种实现方式中第一终端或第二终端执行的方法。
第四方面,本申请还提供一种计算机程序产品,包括计算机程序,当计算机程序被运行时,使得计算机执行如第一方面或第一方面的任一种实现方式中描述的第一终端或第二终端执行的方法。
应当理解的是,本申请的第二方面至第四方面与本申请的第一方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。
附图说明
图1为手机在word的编辑界面编辑文本数据的界面示意图;
图2为本申请实施例提供的终端设备的硬件系统架构示意图;
图3为本申请实施例提供的笔记本电脑200响应于对设置项3的点击操作,显示第二界面的界面示意图;
图4为本申请实施例提供的笔记本电脑200进行设备发现的原理示意图;
图5为本申请实施例提供的笔记本电脑200响应于对平板电脑300的图标的点击操作,与平板电脑300建立短距离通信连接的界面示意图;
图6为本申请实施例提供的笔记本电脑200响应于用户对光标的移动操作,将光标移动到平板电脑300的界面上的界面示意图;
图7为本申请实施例提供的笔记本电脑200在与平板电脑300建立短距离通信连接的基础上,又与手机100建立短距离通信连接的界面示意图;
图8为本申请实施例提供的笔记本电脑200在与平板电脑300、手机100建立短距离通信连接的基础上,响应于对平板电脑400的图标204的点击操作时,与平板电脑300的断开短距离通信连接,且与平板电脑400建立短距离通信连接的示意图;
图9为本申请实施例提供的笔记本电脑200识别设备的方向的原理示意图;
图10为本申请实施例提供的笔记本电脑200响应于对手机的图标203的点击操作,与手机100建立短距离通信连接的界面示意图;
图11为本申请实施例提供的在与手机100建立短距离通信连接的基础上,又与平 板电脑400建立短距离通信连接的界面示意图;
图12为本申请实施例提供的笔记本电脑200在与平板电脑400、手机100建立短距离通信连接的基础上,响应于对平板电脑300的图标202的点击操作时,与平板电脑400的断开短距离通信连接,且与平板电脑300建立短距离通信连接的界面示意图;
图13为本申请实施例提供的笔记本电脑200响应于对手机的图标203的移动操作,将手机的图标203移动到第一子区域207的界面示意图;
图14为本申请实施例提供的笔记本电脑200响应于用户的操作,将手机的图标207从第一子区域207,移动到第二子区域208的界面示意图;
图15为本申请实施例提供的笔记本电脑200在第一子区域207显示手机的图标203的基础上,又向笔记本电脑200的图标209的左侧移动平板电脑400的图标204时,在第一子区域207显示平板电脑400的图标204以及在第二子区域208显示手机的图标203的界面示意图;
图16为本申请实施例提供的笔记本电脑200响应于用户的操作,调换平板电脑400的图标204和手机的图标203的位置的界面示意图;
图17为本申请实施例提供的笔记本电脑200响应于对手机的图标203的操作,将手机的图标203移出第二子区域208的界面示意图;
图18为本申请实施例提供的笔记本电脑200响应于对手机的图标203上的删除控件210的点击操作,将手机的图标203移出第二子区域208的界面示意图;
图19为本申请实施例提供的笔记本电脑200显示发现的设备的图标的界面示意图之一;
图20为本申请实施例提供的笔记本电脑200显示发现的设备的图标的界面示意图之二;
图21为本申请实施例提供的笔记本电脑200显示发现的设备的图标的界面示意图之三;
图22为本申请实施例提供的一种终端设备的硬件结构示意图;
图23为本申请实施例提供的一种芯片的结构示意图。
具体实施方式
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一值和第二值仅仅是为了区分不同的值,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A, 同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。
目前,随着终端技术的发展,终端设备已经成为人们工作生活的一部分。目前的一些终端设备,可以与鼠标、键盘以及触摸板等输入设备连接,以更方便用户输入操作指令。
当第一终端与鼠标、键盘等输入设备连接时,若用户想要向第二终端共享鼠标、键盘等输入设备的功能时,可以将第一终端和第二终端建立短距离通信连接,使得第一终端进入操作共享模式。在第一终端处于操作共享模式下时,用户可以使用鼠标、键盘在第二终端便捷的输入控制指令或者数据。
示例性地,当第一终端为笔记本电脑、第二终端为手机时,如图1中的(a)所示,手机100可以显示桌面101,桌面101包括word图标102。如图1中的(b)所示,手机100可以响应于对word图标102的触发操作,显示word的编辑界面103。手机100可以编辑界面103点击编辑区域,显示输入法应用的界面104。这样一来,用户可以通过输入法应用的界面104输入数据,以编辑word文档。
相关技术中,通过设置笔记本电脑连接的鼠标或者键盘同时与手机建立连接,也就是手机和笔记本电脑共享鼠标或者键盘,可以实现方便编辑手机上的word文档。但是,相关技术中设置的过程和连接的交互方式比较复杂。
有鉴于此,本申请提供了一种设备建立连接的交互方法,第一终端响应于对第一窗口的第一界面中的第一控件的触发操作,进行设备发现,并在第一窗口显示第二界面,第二界面中包括第一终端的第一标识,第一终端的第一标识的周围包括第一区域,在第一终端的第一标识周围的第二区域内显示有发现的设备的第二标识。第一终端响应于对第二标识中的第二终端的标识的第一操作,与第二终端建立短距离通信连接,并将第二终端的标识从第二区域移动到第一区域。
这样一来,第一终端和第二终端进入预设模式,在预设模式下,响应于用户的第二操作,第一终端将输入设备对应的光标,移动到第二终端的界面上。接收用户对输入设备的第三操作。第二终端响应于第三操作,执行第三操作对应的功能。即是说,第一终端即可具备向第二终端共享在第一终端的输入设备的功能,操作方便快捷。
可以理解的是,上述第一终端可以是笔记本电脑、台式电脑等连接有鼠标、键盘和/或触摸板等输入设备的设备。本申请的实施例对第一终端所采用的具体技术和具体设备形态不做限定。
为了能够更好地理解本申请实施例,下面对本申请实施例的第一终端的结构进行介绍。示例性的,图2为本申请实施例提供的一种第一终端的结构示意图。
图2为本申请实施例提供的第一终端的硬件结构示意图。参照图2,第一终端可以包括多个子系统,这些子系统协作以执行、协调或监控第一终端的一个或多个操作或功能。第一终端包括显示器220、处理器230、鼠标240、键盘250、触控板260、扬声器270、无线通信模块280以及存储器290。
第一终端的无线通信功能可以通过天线,无线通信模块280,调制解调处理器以及基带处理器等实现。天线用于发射和接收电磁波信号。第一终端中的天线可用于覆盖单个或 多个通信频带。不同的天线还可以复用,以提高天线的利用率。
无线通信模块280可以提供应用在第一终端上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),超宽带(ultra wide band,UWB)连接等无线通信的解决方案。
处理器230可被实现为能够处理、接收或发送数据或指令的任何电子设备。例如,处理器可以是微处理器、中央处理单元、专用集成电路、现场可编程门阵列、数字信号处理器、模拟电路、数字电路或这些设备的组合。处理器可以是单线程或多线程处理器。处理器可以是单核或多核处理器。
在使用期间,处理器230可被配置为访问存储有指令的存储器。该指令可被配置为使处理器执行、协调或监视第一终端的一个或多个操作或功能。
显示器220可以通信地耦接至处理器230。处理器230可以使用显示器220向用户呈现信息。在很多情况下,处理器230使用显示器220来呈现用户可以与之交互的界面。
鼠标240通过第一终端的USB接口与第一终端连接,还可以与第一终端通过无线通信模块280通信连接。第一终端可以响应于用户移动鼠标240的操作,移动显示器220上的光标的位置。
鼠标240可以响应于用户的移动操作,移动显示器220上的光标的位置。
键盘250可以集成于第一终端,也可以通过第一终端的USB接口与第一终端连接,还可以与第一终端通过无线通信模块280通信连接。第一终端可以响应于用户在键盘250的触发操作,在显示器220上输入操作指令(如回车指令、空格指令),也可以在显示器上输入文本数据。
触摸板260,第一终端可以响应于用户在触摸板上的滑动操作,移动在显示器220上显示的光标。
扬声器270,也称“喇叭”,用于将音频电信号转换为声音信号。第一终端可以通过扬声器270收听音乐,或者发出超声波。在本申请实施例中,可以在第一终端的两侧分别设置一个扬声器270,以便第一终端确定发现的设备相对于第一终端的方向。
存储器290可以用于存储计算机可执行程序代码,可执行程序代码包括指令。例如,存储器可被实现作为随机存取存储器、只读存储器、闪存存储器、可移动存储器、其他类型的存储元件或此类设备的组合。存储器290可以包括存储程序区和存储数据区。存储器290可以在存储数据区存储数据,存储程序区存储本申请实施例的方法对应的程序指令。例如,存储器290存储有建立短距离通信连接的设备的身份信息、以及连接的时刻等信息。
下面以第一终端为笔记本电脑200、第二终端为手机100,并结合具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以独立实现,也可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。需要说明的是,第一终端和第二终端可以是笔记本电脑、平板电脑、手机等终端设备。第一终端和第二终端可以为同类型的设备,比如,第一终端和第二终端都是笔记本电脑;或者,第一终端和第二终端可以为不同类型的设备,比如,第一终端为 笔记本电脑,第二终端为手机或者平板电脑。
本申请实施例提供了一种设备建立连接的方法,应用于笔记本电脑(即第一终端)。如图3所示,笔记本电脑可以响应于对显示于笔记本电脑的“电脑管家”的图标或选项的操作,显示第一窗口(附图中未示),第一窗口为“电脑管家”(即第一应用)的第一界面。第一界面包括选项列表,选项列表包括设置项1、设置项2、设置项3、设置项4、以及设置项5。其中,“设置项3”(即第一控件)的具体名称可以为:例如,“硬件共享”、“超级控制”或者“设备连接”等名称,在此不作限定。仍如图3所示,第一界面201还可以包括笔记本电脑的图标209(即第一终端的第一标识)、位于笔记本电脑的图标209的左侧(即第一侧)的第一子区域207、以及位于笔记本电脑的图标209的右侧(即第二侧)的第二子区域208。
另外,如图3所示,笔记本电脑在响应于对“设置项3”的选项的点击操作时,在第一窗口显示第二界面201。笔记本电脑200在显示第二界面201时,进行设备发现。如图4所示,笔记本电脑200发现了手机100、平板电脑300、以及平板电脑400。其中,手机100、平板电脑300、以及平板电脑400分别与笔记本电脑400的距离在距离阈值内。
如图5中的(a)所示,笔记本电脑200可以在第二界面201显示发现的手机100的图标203、平板电脑300的图标202、以及平板电脑400的图标204(即发现的设备的第二标识)。其中,手机100的图标203、平板电脑300的图标202、以及平板电脑400的图标204可以位于笔记本电脑200的图标209的下方(即第二区域)。当然地,手机100的图标203、平板电脑300的图标202、以及平板电脑400的图标204还可以位于笔记本电脑200的图标209的上方、左方、或者,右方等,在此不做限定。其中,手机100的图标203、平板电脑300的图标202、以及平板电脑400的图标204均可以称为第一图标。
仍如图5中的(a)所示,手机100的图标203关联有手机100的身份信息“YOYO的手机”,平板电脑300的图标202关联有平板电脑300的身份信息“YOYO的平板”,平板电脑400的图标204关联有平板电脑400的身份信息“张三的平板”。其中,“YOYO”为用户登录手机100、平板电脑300的操作系统的用户名,“张三”为用户登录平板电脑400的操作系统的用户名。这样一来,用户可以根据上述的各个身份信息准确地感知到各个第一图标对应的设备。
这时,第一子区域207和第二子区域208上均未显示任何一个设备的图标,说明笔记本电脑200尚未与任何一个设备建立短距离通信连接。这时,笔记本电脑200可以通过视觉动效引导用户实现设备间连接,比如,笔记本电脑可以控制第一子区域207和第二子区域208闪烁、或者每隔预设时长(如0.5s)切换颜色,来引导用户点击或拖曳其中一个或多个设备的第一图标,来与设备建立短距离通信连接。
仍如图5中的(a)所示,笔记本电脑200可以响应于对平板电脑300的图标202(即第二终端的标识)的点击操作(即第一操作),与平板电脑300建立短距离通信连接。
在一些实施例中,笔记本电脑200与平板电脑300建立短距离通信连接的过程可以为:笔记本电脑200响应于对平板电脑300的图标202的点击操作,向平板电脑300 发送第一请求,第一请求用于请求建立短距离通信连接,且第一请求携带有笔记本电脑200的身份信息(如物理地址)。平板电脑300响应于第一请求,确认是否记录有笔记本电脑200的身份信息。当记录有笔记本电脑200的身份信息时,说明平板电脑300曾经连接过笔记本电脑200,平板电脑300才向笔记本电脑200反馈应答消息。如此,可以提高笔记本电脑200的数据的安全性。当平板电脑300未记录有笔记本电脑200的身份信息时,平板电脑300可以显示第一提示信息(附图中未示),第一提示信息用于指示与笔记本电脑200建立短距离通信连接。当平板电脑300响应于对第一提示信息的确认操作时,才向笔记本电脑200反馈应答消息。如此,可以提高笔记本电脑200的数据的安全性。当笔记本电脑200在接收到平板电脑300反馈的应答消息时,与平板电脑300建立短距离通信连接。
在另一些实施例中,笔记本电脑200与平板电脑300建立短距离通信连接的过程可以为:笔记本电脑200向平板电脑300发送第一请求,第一请求用于请求建立短距离通信连接,且第一请求携带有登录笔记本电脑200的用户账号。
平板电脑300响应于第一请求,确认登录平板电脑300的用户账号,是否与登录笔记本电脑200的用户账号一致。当登录平板电脑300的用户账号,与登录笔记本电脑200的用户账号一致时,说明平板电脑300和笔记本电脑200属于同一用户。进而,平板电脑300向笔记本电脑200反馈应答消息。如此,可以提高笔记本电脑200的数据的安全性。当平板电脑300登录平板电脑300的用户账号,与登录笔记本电脑200的用户账号不一致时,平板电脑300可以显示第一提示信息,第一提示信息用于指示与笔记本电脑200建立短距离通信连接。当平板电脑300响应于对第一提示信息的确认操作时,向笔记本电脑200反馈应答消息。如此,可以提高笔记本电脑200的数据的安全性。当笔记本电脑200在接收到平板电脑300反馈的应答消息时,与平板电脑300建立短距离通信连接。
其中,上述的短距离通信连接可以是wifi连接,蓝牙连接,或者超宽带(uitra wide band,UWB)连接等,在此不作限定。
如图5中的(b)所示,当笔记本电脑200与平板电脑300成功建立短距离通信连接后,笔记本电脑200可以在位于笔记本电脑200的图标209的左侧的第一子区域207上,显示平板电脑300的图标202。当平板电脑300的图标在第一子区域207上时,即笔记本电脑200能够向用户更直观地展示笔记本电脑200与平板电脑300处于连接状态。另外,当平板电脑300的图标在第一子区域207上时,笔记本电脑200不再显示位于笔记本电脑200的图标209下方的平板电脑300的图标。
需要说明的是,在图5中的(b)中,平板电脑300的图标202在位于第一子区域207上的显示状态,与位于笔记本电脑200的图标209下方时的显示状态不同。例如,平板电脑300的图标202在位于第一子区域207时,与位于笔记本电脑200的图标209下方时的大小不同。而且,当平板电脑300的图标位于笔记本电脑200的图标209下方时,平板电脑300的图标202一侧关联有平板电脑300的身份信息。当平板电脑300的图标202位于第一子区域207上时,平板电脑300的图标202一侧未关联有平板电脑300的身份信息。
在另一些实施例中,平板电脑300的图标202在位于第一子区域207上的显示状 态,与位于笔记本电脑200的图标209下方时的显示状态也可以完全相同,在此不作限定。
可以替换地,在上述的图5中的(a)的基础上,也可以实现图5中的(c)对应的方案。如图5中的(c)所示,笔记本电脑200与平板电脑300成功建立通信连接后,笔记本电脑200也可以在位于笔记本电脑200的图标209的右侧的第二子区域208上,显示平板电脑300的图标。当平板电脑300的图标在第二子区域208上时,笔记本电脑200也可以向用户更直观地展示笔记本电脑200与平板电脑300处于连接状态。
示例性地,当第一子区域207和第二子区域208上的显示内容均为空时,平板电脑300的图标202显示的区域,可以基于如下方式确定:
第一种:若笔记本电脑300曾经基于第一界面101与平板电脑300建立过短距离通信连接时,平板电脑300的图标显示于上一次所显示的区域。
第二种:若笔记本电脑300未基于第一界面101与平板电脑300建立过短距离通信连接时,平板电脑300的图标显示于笔记本电脑200的图标209的左侧的第一子区域207上。
当笔记本电脑200与平板电脑300建立短距离通信连接后,笔记本电脑200和平板电脑300进入预设模式。其中,预设模式也可以称为输入设备共享模式,在此不作限定。在预设模式下,笔记本电脑200具备向平板电脑300共享输入设备的功能。
示例性地,如图6所示,笔记本电脑200响应于用户对光标向朝笔记本电脑200的显示屏(即笔记本电脑200显示的界面)的右侧边缘的移动操作(如,笔记本电脑200响应于用户朝向显示屏的右侧边缘拖动鼠标的操作,即第二操作),控制光标(即可输入指令的焦点位置)移动到笔记本电脑200的显示屏的边缘。这时,笔记本电脑200还可以继续响应于用户对光标朝平板电脑300的方向的移动操作(即第二操作),控制光标移动到平板电脑300显示的界面301。
如此,当笔记本电脑200的鼠标、触摸板、以及键盘等输入设备接收到输入的操作时,笔记本电脑200可以响应于用户的操作,向平板电脑300发送控制指令。平板电脑300响应于来自笔记本电脑200的控制指令,执行与控制指令对应的功能。
示例性地,仍如图6所示,界面301为文本输入界面。当用户在笔记本电脑200的键盘输入文本编辑操作(即第三操作)时,平板电脑300在文本输入界面显示文本编辑操作对应的数据(即第三操作对应的功能)。当用户在笔记本电脑200的触摸板或者鼠标,输入移动鼠标的操作(即第三操作)时,笔记本电脑200响应于用户的操作向平板电脑发送控制指令,平板电脑300响应于移动鼠标的操作,根据控制指令在文本输入界面控制光标跟随移动鼠标的操作而移动(即第三操作对应的功能);或者,当用户在笔记本电脑200的触摸板或者鼠标进行鼠标的左键或者右键的操作(即第三操作)时,响应于用户的操作,平板电脑300在文本输入界面执行点击鼠标的左键或者右键的操作对应的功能(即第三操作对应的功能)。
需要说明的是,平板电脑300响应于用户的操作在文本输入界面执行相应的功能时,笔记本电脑200显示的界面的内容与界面301的内容之间没有关联性,也就是,笔记本电脑200不响应于上述用户的操作。
综上所述,本申请实施例提供的设备建立连接的方法,笔记本电脑200可以通过 在笔记本电脑200的图标周围显示发现的设备的身份信息,且各设备的身份信息关联的第一图标,以及在建立连接后,将发现的设备从第二区域移动到第一区域,可以直观的向用户展示笔记本电脑200和其他设备的连接关系。进而,用户点击其中的平板电脑300的图标,即可与平板电脑300建立短距离通信连接。笔记本电脑200和平板电脑300进入预设模式。笔记本电脑200即可具备向平板电脑300共享在笔记本电脑200的输入设备的功能,操作步骤便捷简单,效率高。另外,对发现的设备的标图标进行操作,即可实现连接的过程,相比于相关技术中需要对两个设备分别进行设置,操作也更方便快捷,体验感高)。
需要说明的是,上述图5对应的实施例是以笔记本电脑200与一个设备建立短距离通信连接,进入预设模式为例说明的。下面,以已连接的平板电脑300的图标在第二子区域208上为例,说明笔记本电脑200如何与更多的设备连接,进入预设模式。
如图7中的(a)所示,笔记本电脑200又响应于对手机100的图标203(即第三终端的标识)的点击操作(即第一操作),笔记本电脑200与手机100(即第三终端)建立短距离通信连接。其中,笔记本电脑200与手机100建立短距离通信连接的原理,与上述的笔记本电脑200与平板电脑300的原理相同,在此不作赘述。这时,如图7中的(b)所示,笔记本电脑200检测到第一子区域207显示的内容为空,则可以将手机100的图标203显示在第一子区域207上。这样一来,笔记本电脑200可以向用户更直观地展示笔记本电脑200与手机100处于连接状态。
当笔记本电脑200与手机100建立短距离通信连接后,笔记本电脑200还具备向手机100共享输入设备的功能。其中,笔记本电脑200向手机100共享输入设备的过程,与上述笔记本电脑200向平板电脑300共享输入设备的过程相同,区别可能在于,笔记本电脑通过鼠标移动的方向、停留的位置等确定向哪个设备共享输入设备。举例来说,如图7中的(b)所示,当用户向右侧移动鼠标到笔记本电脑显示屏的边缘时,响应于用户的操作,在图标202对应的平板电脑300的界面上显示鼠标的光标,实现向平板电脑共享输入设备;当用户向左侧移动鼠标的光标到笔记本电脑200的显示屏的边缘时,响应于用户的向左侧移动鼠标的光标的操作,在图标203对应的手机100的界面上显示鼠标的光标,实现向手机共享输入设备。以上仅仅是连接两个设备时共享输入设备的示例,本申请不限于此,比如说,还可以通过将鼠标移动到笔记本电脑同侧边缘的不同位置实现与不同设备共享输入设备。
在一些实施例中,当笔记本电脑200设置的可连接设备的数量的上限为两个时,在图7对应的实施例的基础上,如图8中的(a)所示,笔记本电脑200又检测到对平板电脑400的图标204(即第四终端的标识)的点击操作(即第一操作),这时,笔记本电脑200检测到已连接的设备数量已经达到两个。如此,笔记本电脑200可以从已连接的设备中,确定出最早连接的设备为平板电脑300。
进而,笔记本电脑200与平板电脑300断开连接,且笔记本电脑200与平板电脑400(即第四终端)建立短距离通信连接。如图8中的(b)所示,笔记本电脑200将第二子区域208的平板电脑300的图标移动到笔记本电脑200的图标209的下方显示。而且,笔记本电脑200将平板电脑400的图标204移动到第二子区域208显示。即笔记本电脑200向用户更直观地展示笔记本电脑200与平板电脑400处于连接状态,以 及与平板电脑300处于未连接状态。
当笔记本电脑200与平板电脑300断开连接,且笔记本电脑200与平板电脑400建立短距离通信连接后,笔记本电脑200还具备向平板电脑400共享输入设备的功能,且不再具备向平板电脑300共享输入设备的功能。其中,笔记本电脑200向平板电脑400共享输入设备的过程,与上述笔记本电脑200向平板电脑300共享输入设备的过程相同,在此不作赘述。这样一来,笔记本电脑200可以响应于用户对光标向笔记本电脑200的界面的右侧边缘的移动操作,移动光标到平板电脑400的界面上在另一些实施例中,当笔记本电脑200设置的连接设备的数量的上限大于两个的更多数量时,笔记本电脑200与平板电脑400建立短距离通信连接之后,也可以保持与平板电脑300短距离通信连接。这样一来,第二界面201中的笔记本电脑200的图标209的附近还可以包括除第一子区域107和第二子区域108的更多区域,用来显示新连接上的设备的图标,用户也可以更直观地展示笔记本电脑200与新连接上的设备处于连接状态。或者,也可以在一个区域上显示多个设备,表示,笔记本电脑可以向这一侧移动实现与多个设备中的任一设备共享输入设备。
需要说明的是,上述的图5-图8对应的实施例,是以笔记本电脑200未对建立短距离连接的设备进行方向识别为例,说明如何在第二界面201显示设备的图标以及显示设备的图标的。下面,结合图9-图12说明,笔记本电脑200对建立短距离连接的设备进行方向识别的情况下,如何在第二界面201显示设备的图标以及显示设备的图标。
在图3对应的实施例的基础上,笔记本电脑200在发现手机100、平板电脑300、以及平板电脑400时,可以识别手机100、平板电脑300、以及平板电脑400相对于笔记本电脑200的方向。
示例性地,笔记本电脑200的左侧和右侧均设置有扬声器。笔记本电脑200发现手机100、平板电脑300、以及平板电脑400时,如图9所示,笔记本电脑200的左侧的扬声器发出第一频率的超声波,笔记本电脑200的右侧的扬声器发出第二频率的超声波。其中,第一频率的超声波和第二频率的超声波均携带有笔记本电脑200的物理地址。由于手机100位于笔记本电脑200的左侧,因此,手机100接收到第一频率的超声波在接收到第二频率的超声波之前。进而,手机100可以基于第一频率的超声波携带的物理地址,向笔记本电脑200反馈第一指示,其中,第一指示用于指示手机接收到第一频率的超声波在接收到第二频率的超声波之前。笔记本电脑200根据第一指示,确定手机100位于笔记本电脑200的左侧。类似地,笔记本电脑200还可以基于同样的原理,确定平板电脑400位于笔记本电脑200的左侧,平板电脑300位于笔记本电脑200的右侧。也就是说,笔记本电脑200具备识别发现的设备的方位的功能。
由图9对应的实施例可知,手机100、平板电脑300以及平板电脑400在X轴(即水平方向)方向上,从左到右依次排列,且手机100、平板电脑400位于笔记本电脑200的左侧,平板电脑300位于笔记本电脑200的右侧。
进而,如图10中的(a)所示,笔记本电脑200可以在第二界面201按照从左到右的方式依次显示发现的手机100的图标203、平板电脑400的图标204、以及平板电脑300的图标202。手机100的图标203关联有手机100的身份信息“YOYO的手机”,平板电脑300的图标202关联有平板电脑300的身份信息“YOYO的平板”,平板电 脑400的图标204关联有平板电脑400的身份信息“张三的平板”。这样一来,手机100的图标203、平板电脑300的图标202、以及平板电脑400的图标204的排列方式,可以让用户更直观的感知到手机100、平板电脑300、笔记本电脑200以及平板电脑400在X轴方向上的位置。这样一来,可以使得第二界面201中的显示内容更贴近现实世界,提高用户使用体验感。
另外,当笔记本电脑200识别到手机100、平板电脑300以及平板电脑400的位置次序发生了变化,且变化后的位置次序为:平板电脑400、手机100以及平板电脑300在X轴方向上,从左到右依次排列,且平板电脑400、手机100位于笔记本电脑200的左侧,平板电脑300位于笔记本电脑200的右侧。如此,笔记本电脑200可以将图10(a)中各设备的图标的次序更新为:从左到右依次排列的平板电脑400的图标204、手机100的图标203、以及平板电脑300的图标202(附图中未示)。
也就是说,当笔记本电脑200识别到手机100、平板电脑300以及平板电脑400中的任一设备在X轴方向上的位置顺序发生变化时,笔记本电脑200也在第二界面201中更新手机100的图标203、平板电脑400的图标204、以及平板电脑300的图标202的位置次序,以使得手机100的图标203、平板电脑400的图标204、以及平板电脑300的图标202的位置次序,与现实世界中的手机100、平板电脑300以及平板电脑400的位置次序一致。
如图10中的(a)-(b)所示,笔记本电脑200响应到对手机100的图标203的点击操作,与手机100建立短距离通信连接。笔记本电脑200确定手机100位于笔记本电脑200的左侧,则将手机100的图标203显示于位于笔记本电脑200左侧的第一子区域207。即是说,手机100的图标203相对于笔记本电脑200的图标209的方向,与现实中手机100相对于笔记本电脑200的方向相同。这样一来,可以使得第二界面201中的显示内容更贴近现实世界,提高用户使用体验感。同时,也方便用户将输入设备对应的光标,移动到手机100的界面上。
当笔记本电脑200与手机100建立短距离通信连接后,笔记本电脑200与手机100进入预设模式。在预设模式下,笔记本电脑200具备向手机100共享输入设备的功能。由于手机100的图标203相对于笔记本电脑200的图标209的方向,与现实中手机100相对于笔记本电脑200的方向相同,这样一来,当用户需要向手机100共享输入设备时,可以基于手机100的图标203相对于笔记本电脑200的图标209的方向,将光标朝笔记本电脑200的显示屏的邻近手机100一侧的方向移动。笔记本电脑200响应于用户的移动操作,将光标移动到笔记本电脑200的显示屏的邻近手机100一侧的边缘。进而,用户基于手机100的图标203相对于笔记本电脑200的图标209的方向,继续将光标朝笔记本电脑200的显示屏的邻近手机100一侧的方向移动。这时,笔记本电脑200可以响应于用户的移动操作,控制光标移动到手机100显示的界面,方便快捷,且更符合用户的操作习惯。
由图9对应的实施例可知,手机100、平板电脑300以及平板电脑400在X轴方向上,从左到右依次排列,且手机100、平板电脑400位于笔记本电脑200的左侧,平板电脑300位于笔记本电脑200的右侧。进而,如图11中的(a)-(b)所示,在笔记本电脑200已经连接手机100的基础上,笔记本电脑200又响应到对平板电脑400 的图标204的点击操作,与平板电脑400建立短距离通信连接。笔记本电脑200确定平板电脑400位于笔记本电脑200的左侧。进而,笔记本电脑200在检测到位于笔记本电脑200的图标209的左侧的第一子区域207上已经有手机100的图标203时,在第二界面201中的位于笔记本电脑的图标209的右侧的第二子区域208,显示平板电脑400的图标204。如此,平板电脑400的图标204不会挤占位于笔记本电脑200的同一方向的手机100的图标203的位置。
由图9对应的实施例可知,手机100、平板电脑300以及平板电脑400在X轴方向上,从左到右依次排列,且手机100、平板电脑400位于笔记本电脑200的左侧,平板电脑300位于笔记本电脑200的右侧。类似地,当笔记本电脑200与平板电脑400建立短距离通信连接后,笔记本电脑200还具备向平板电脑400共享输入设备的功能。也就是说,笔记本电脑200除了可以向手机100共享输入设备的功能以外,还可以向平板电脑400共享输入设备的功能。
在一种可能的实现方式中,在笔记本电脑200已经连接手机100(即第二终端)的基础上,笔记本电脑200又响应到对平板电脑400的图标204(即第三终端的标识)的点击操作,与平板电脑400(第三终端)建立短距离通信连接。笔记本电脑200确定平板电脑400位于笔记本电脑200的左侧,可以在左侧的第一子区域207上同时显示图标203和图标204。笔记本电脑200可以响应于用户的向左侧边缘移动鼠标光标的操作,控制光标移动到手机100显示的界面或者平板电脑400的界面上,方便快捷,且更符合用户的操作习惯。具体的,可以在笔记本电脑200左侧分上下两个区域,不同的区域实现与不同的设备分享输入设备的功能。比如说,笔记本电脑200可以响应于用户的向左侧上部边缘移动鼠标光标的操作,与手机100共享输入设备,笔记本电脑200可以响应于用户的向左侧下部边缘移动鼠标光标的操作,与平板电脑400共享输入设备。
如图12中的(a)-(b)所示,在笔记本电脑200已经连接手机100(即第一终端)、平板电脑400(即第三终端)的基础上,笔记本电脑200又响应到对平板电脑300的图标202(第四终端的标识)的点击操作,笔记本电脑200确定平板电脑300(第四终端)位于笔记本电脑200的右侧。或者,笔记本电脑200又响应到对平板电脑300的图标202(第四终端的标识)的朝笔记本电脑200的右侧的移动操作,当用户移动手机100的图标203到笔记本电脑200的图标209的右侧后,用户抬手停止触摸触控板,或者松开鼠标的左键(即停止移动操作)。笔记本电脑200检测到用户停止对手机100的图标203的移动操作。
这时,笔记本电脑200与位于笔记本电脑200的右侧的平板电脑400断开短距离通信连接,而与平板电脑300建立短距离通信连接。进而,笔记本电脑200将第二子区域208上的平板电脑400的图标204移动到在笔记本电脑200的图标209的下方显示,以指示笔记本电脑200与平板电脑400断开短距离通信连接。
进而,笔记本电脑200将位于笔记本电脑的图标209的下方的平板电脑300的图标202和平板电脑300的身份信息,移动到位于笔记本电脑的图标209的右侧的第二子区域208显示,以指示笔记本电脑200与平板电脑300建立短距离通信连接。类似地,平板电脑300的图标202相对于笔记本电脑200的图标209的方向,与现实中平 板电脑300相对于笔记本电脑200的方向相同。这样一来,可以使得第二界面201中的显示内容更贴近现实世界,提高用户使用体验感。进而,笔记本电脑200可以响应于用户向平板电脑300的界面的右侧边缘,移动光标到平板电脑300的界面上。
类似地,在笔记本电脑200已经连接手机100(即第一终端)、平板电脑400(即第三终端)的基础上,当笔记本电脑200确定平板电脑300(第四终端)位于笔记本电脑200的左侧,或者,笔记本电脑200又响应到对平板电脑300的图标202(第四终端的标识)的朝笔记本电脑200的左侧的移动操作的原理,与图12对应的实施例相同,在此不做赘述。
与图10对应的实施例类似地,当笔记本电脑200与平板电脑300建立短距离通信连接,笔记本电脑200和平板电脑300进入预设模式。在预设模式下,笔记本电脑200具备向平板电脑300共享输入设备的功能。由于平板电脑300的图标202相对于笔记本电脑200的图标209的方向,与现实中平板电脑300相对于笔记本电脑200的方向相同,这样一来,当用户需要向平板电脑300共享输入设备时,可以基于平板电脑300相对于笔记本电脑200的方向,将笔记本电脑200的第二界面201中的光标向朝平板电脑300的方向的移动操作,控制光标移动到平板电脑300显示的界面,方便快捷,且更符合用户的操作习惯。
需要说明的是,在上述的实施例中,均是笔记本电脑200响应于对设备的图标的点击操作,与设备建立短距离通信连接的。在另一些实施例中,笔记本电脑200还可以响应于对设备的图标的移动操作,与设备建立短距离通信连接。
如图13中的(a)所示,当手机100位于笔记本电脑200的左侧时,笔记本电脑200可以响应于用户对手机100的图标203向笔记本电脑200的图标209的左侧的移动操作(即第一操作),朝笔记本电脑200的图标209的左侧移动手机100的图标203。当用户移动手机100的图标203到笔记本电脑200的图标209的左侧后,用户抬手停止触摸触控板,或者松开鼠标的左键(即停止移动操作)。这时,如图13中的(b)-(c)所示,笔记本电脑200检测到用户停止对手机100的图标203的移动操作,笔记本电脑200在笔记本电脑200的图标209左侧的第一子区域207,显示手机100的图标203。即,手机100的图标103相对于笔记本电脑200的图标的方向,与手机100的图标103所在的区域相对于笔记本电脑200所在的方向相同。进而,笔记本电脑200与手机100建立短距离通信连接。进而,笔记本电脑200可以响应于用户向手机100的界面的左侧边缘,移动光标到手机100的界面上。
另外,在一些实施方式中,当手机100被放置到笔记本电脑200的右侧时,如图14中的(a)-(b)所示,笔记本电脑200可以响应于用户对手机100的图标203向笔记本电脑200的图标209的右侧的移动操作,朝笔记本电脑200的图标209的右侧移动手机100的图标203。当用户移动手机100的图标203到笔记本电脑200的图标209的右侧后,用户抬手停止触摸触控板,或者松开鼠标的左键(即停止移动操作)。这时,笔记本电脑200检测到用户停止对手机100的图标203的移动操作,笔记本电脑200在笔记本电脑200的图标209右侧的第二子区域208,显示手机100的图标203。进而,笔记本电脑200可以响应于用户向手机100的界面的右侧边缘,移动光标到手机100的界面上。也就是说,可以使得第二界面中的显示内容更贴近现实世界,提高 用户使用体验感,同时也方便用户将输入设备对应的光标,移动到手机100的界面上。
如此,手机100的图标103相对于笔记本电脑200的图标的方向,与手机100的图标103所在的区域相对于笔记本电脑200所在的方向相同,此时用户向笔记本电脑的显示屏的右侧边缘移动鼠标时,可以将光标移动到手机100的显示界面上,用输入设备实现对手机100的输入。这样一来,用户可以根据需求切换手机100的图标203的位置。可以理解地,在图14对应的实施例实现的过程中,笔记本电脑200与手机100保持短距离通信连接。
另外,当笔记本电脑200在第一子区域207,显示手机100的图标203时,如图15中的(a)所示,笔记本电脑200又响应于用户对平板电脑400的图标204向笔记本电脑200的图标209的左侧的移动操作,朝笔记本电脑200的图标209的左侧移动平板电脑400的图标204。如图15中的(b)-(c)所示,当用户将平板电脑400的图标204移动到笔记本电脑200的图标209的左侧后,用户抬手停止触摸触控板,或者松开鼠标的左键(即停止移动操作)。这时,笔记本电脑200检测到停止对平板电脑400的图标204的移动操作,笔记本电脑200与平板电脑400建立短距离通信连接。进而,笔记本电脑200在笔记本电脑200的图标209左侧的第一子区域207,显示平板电脑400的图标204,并且笔记本电脑200在笔记本电脑200的图标209右侧的第二子区域208显示手机100的图标203。如此,可以实现笔记本电脑200的图标209左侧的第一子区域207显示,最近一次连接的位于笔记本电脑200的左侧的设备。这样一来,更方便用户操作笔记本电脑200向最近一次连接的设备共享输入设备。
这时,笔记本电脑200可以基于图6对应的实施例类似的原理,响应于用户向左侧移动鼠标的操作,将位于笔记本电脑200的第二界面201的光标,向左移动到位于笔记本电脑200左侧的平板电脑400显示的界面中;这样一来,笔记本电脑200可以向平板电脑400共享鼠标、键盘以及触摸板等输入设备的功能;另外,笔记本电脑200还可以基于图6对应的实施例类似的原理,响应于用户向右侧移动鼠标的操作,将位于笔记本电脑200的第二界面201的光标,向右移动到位于笔记本电脑200右侧的手机100显示的界面中;这样一来,笔记本电脑200可以向平板电脑400共享鼠标、键盘以及触摸板等输入设备的功能。
示例性地,从图15中的(c)对应的实施例的看出,手机100的图标203位于笔记本电脑200的图标209的右侧,平板电脑400的图标209位于笔记本电脑200的图标209的左侧。
在这种情况下,若手机100位于笔记本电脑200的左侧,平板电脑400位于笔记本电脑200的右侧时,如图16中的(a)所示,笔记本电脑200还可以响应于用户对手机100的图标203向笔记本电脑200的图标209的左侧的移动操作,朝笔记本电脑200的图标209的左侧移动手机100的图标203。如图16中的(b)-(c)所示,当手机100的图标203被移动到笔记本电脑200的图标209的左侧后,用户抬手停止触摸触控板,或者松开鼠标的左键(即停止移动操作)。这时,笔记本电脑200检测到停止对手机100的图标203的移动操作,笔记本电脑200在笔记本电脑200的图标209左侧的第一子区域207,显示手机100的图标203。笔记本电脑200在笔记本电脑200的图标209右侧的第二子区域208显示平板电脑400的图标204。如此,笔记本电脑 200可以实现调整设备的图标的方向,以使得设备的图标的位置相对笔记本电脑200的图标209方向,与设备相对于笔记本电脑200的位置一致。
这样一来,当笔记本电脑200和平板电脑400进入预设模式后,笔记本电脑200可以响应于用户的对光标向左的移动操作,准确的控制光标移动到手机100显示的界面。或者,笔记本电脑200可以响应于用户的对光标向右的移动操作,可以准确地控制光标移动到平板电脑400显示的界面。也就是说,用户根据手机或者平板电脑相对于笔记本电脑的实际位置移动笔记本电脑界面上的光标,即可将光标移动到手机或者笔记本电脑的界面上,实现通过笔记本电脑的输入设备对手机或者笔记本电脑的输入控制。
需要说明的是,在上述的实施例中均是以笔记本电脑200如何响应于用户的操作,与设备建立短距离通信连接的。下面,说明笔记本电脑200如何响应于用户的操作,与设备断开短距离通信连接。
第一种断开短距离连接的方式:笔记本电脑200可以响应于对设备的图标,移出第一子区域207或者第二子区域208的移动操作(即第四操作),将设备的图标移出第一子区域207或者第二子区域208。进而,在用户抬手停止触摸触控板,或者松开鼠标的左键(即停止移动操作)后,与被移动的设备的图标关联的设备断开短距离通信连接。设备在与笔记本电脑200断开通信连接后,在笔记本电脑200下方显示断开连接的设备的图标和身份信息,且断开连接的设备的图标和身份信息,位于与笔记本电脑200建立连接之前的位置。
示例性地,在上述的图15对应的实施例的基础上,如图17中的(a)所示,笔记本电脑响应于对手机100的图标203的移动操作,将手机100的图标203移出第二子区域208(即第四操作)。如图17中的(b)所示,笔记本电脑200检测到停止对手机100的图标203的移动操作(如用户抬手停止触摸触控板,或者松开鼠标的左键)时,手机100的图标203未处于第一子区域207或第二子区域208,则笔记本电脑200与手机100断开短距离通信连接。进而,如图17中的(c)所示,在笔记本电脑200的图标209下方显示手机100的图标203和身份信息,且断开连接的设备的图标和身份信息,位于与笔记本电脑200建立连接之前的位置,以提示用户手机100成功与笔记本电脑200断开短距离连接。
第二种断开短距离连接的方式:当设备的图标显示在第一子区域207或者第二子区域208上时,设备的图标还可以携带有删除控件(即第三控件)。笔记本电脑200可以响应于用户对删除控件的点击操作(即第四操作),与被点击删除控件的设备的图标关联的设备,断开短距离通信连接。设备在与笔记本电脑200断开通信连接后,在笔记本电脑200下方显示断开连接的设备的图标和身份信息。可选地,笔记本电脑200还可以响应于用户对上述的携带有删除控件的设备的图标的长按操作或移动操作,取消显示删除控件。
示例性地,在上述的图15对应的实施例的基础上,如图18中的(a)-(b)所示,笔记本电脑响应于对手机100的图标203上删除控件210的点击操作,与手机100断开短距离通信连接。进而,如图17中的(c)所示,在笔记本电脑200的图标209下方显示手机100的图标203和身份信息,以提示用户手机100成功与笔记本电脑200 断开短距离连接。
需要说明的是,基于上述的两种断开短距离连接的方式,在一些实施方式中,当手机100的图标和身份信息显示于笔记本电脑200的图标209下方时,手机100的图标在X轴上相对于笔记本电脑200的图标209的位置,可以与手机100在X轴上相对于笔记本电脑200的位置相同。在另一些实施方式中,手机100的图标203的位置还可以位于在手机100与笔记本电脑200建立短距离连接前所处的位置,在此不作限定。
需要说明的是,上述的图5-图18对应的实施例,均是以在第二界面201中的笔记本电脑200的图像209的下方,显示发现的三个设备的图标为例说明的。当笔记本电脑200发现更多的设备时,第二界面201的空间大小的局限性,无法一次性显示发现的所有的设备的图标。如此,在笔记本电脑200发现的设备的数量大于第一个数个时,笔记本电脑200从发现的设备中选择第一个数个的设备,在笔记本电脑200的图标209下方显示被选择的第一个数个的设备的图标和身份信息。这样一来,可以使得用户越关注前第一个数个的设备的图标,越优先被显示在第二界面,以方便用户浏览和操作。
示例性地,在一些实施方式中,在预设的阈值为5,且笔记本电脑200发现了设备1、设备2、设备3、设备4、设备5、设备6、设备7以及设备8,总共8个设备。笔记本电脑200可以从发现的8个设备中,确定5个设备。其中,确定5个设备的策略可以为:任意选择5个设备,也可以选择被发现的时间排序前5的设备,或者,当发现的8个设备中,曾经连接过的设备大于或等于5个时,从曾经连接过的设备中选择5个设备;当发现的8个设备中,曾经连接过的设备小于5个时;确定的5个设备中包括所有的曾经连接过的设备。其中,笔记本电脑200确定的5个设备,即需要显示图标和身份信息的第一组设备。
进而,笔记本电脑200可以在第二界面201中的笔记本电脑200的图标209的下方,显示选择的5个设备的图标和身份信息。
在一些实施例中,如图19所示,笔记本电脑200的图标209的下方被划分为第三子区域A、第三子区域B、第三子区域C、第三子区域D、以及第三子区域E,每个第三子区域用于显示一个设备的图标和和身份信息。其中,第三子区域A、第三子区域B、第三子区域C、第三子区域D、以及第三子区域E从左到右的顺序依次为:第三子区域D、第三子区域B、第三子区域A、第三子区域C、以及第三子区域E。其中,第三子区域D、第三子区域B位于笔记本电脑200的图标209的左侧,第三子区域C、以及第三子区域E位于笔记本电脑200的图标209的右侧。且各个第三子区域的优先级为第三子区域A的优先级>第三子区域B的优先级>第三子区域C的优先级>第三子区域D的优先级>第三子区域E的优先级,且各个设备的优先级为设备1的优先级>设备2的优先级>设备3的优先级>设备4的优先级>设备5的优先级。当然地,各个第三子区域的优先级还可以是其他的优先级排列,各个设备的优先级也可以是其他的优先级排列,在此仅仅是举例说明。
其中,上述各设备的优先级可以是各设备最后一次连接笔记本电脑200的时刻确定的。其中,最后一次连接笔记本电脑200的时刻最晚的设备的优先级越高。或者,上述各设备的优先级还可以是各设备连接笔记本电脑200的次数确定的。其中,连接笔记本电脑200的次数最多的设备的优先级越高。可以理解地,上一次与笔记本电脑200连接的时刻越早 的设备,或者,与笔记本电脑200曾经连接的次数越多的设备,为用户越关注的设备。这样一来,根据确定的优先级对设备排序的位置,更方便用户的操作。
如此,笔记本电脑200可以根据各个设备相对于笔记本电脑200的方向、各个第三子区域相对于笔记本电脑200的图标209方向、各个设备的优先级以及各个第三子区域的优先级,确定各个设备的图标和身份信息的排列方式。这样一来,可以将优先级越高的设备的第二标识,排列在越方便用户操作的位置,以方便用户浏览和操作。
例如,当设备1、设备2、设备3、设备4、以及设备5均位于笔记本电脑200的左侧时,笔记本电脑200确定位于笔记本电脑200的图标的左侧的第三子区域D、第三子区域B。进而,笔记本电脑200确定第三子区域B的优先级>第三子区域D的优先级,且设备1的优先级最高,因此,笔记本电脑200将设备1的图标和和身份信息显示于第三子区域B,而将优先级仅次于设备1的设备2的图标和和身份信息显示于第三子区域D。而第三子区域A位于笔记本电脑的图标209的下侧,第三子区域C以及第三子区域E均位于笔记本电脑200的图标209右侧,如此,笔记本电脑200确定未显示设备的图标和身份信息的第三子区域中,第三子区域A的优先级最高;以及未被显示的图标和身份信息的设备中,设备3的优先级最高,则笔记本电脑200将设备3的图标和身份信息显示于第三子区域A。基于类似的原理,笔记本电脑200还可以将设备4的图标和和身份信息显示于第三子区域C,设备5的的图标和身份信息显示于第三子区域E。
其中,上述的实施例是以设备1、设备2、设备3、设备4、以及设备5均位于笔记本电脑200的左侧为例,对如何显示各设备的图标和身份信息进行说明的。在另一些实施例中,当设备1、设备2、设备3、设备4、以及设备5均位于笔记本电脑200的右侧;或者,设备1、设备2、设备3、设备4、以及设备5分别位于笔记本电脑200的两侧时,显示各设备的图标和身份信息与原理,与各设备均位于笔记本电脑200的左侧时,如何显示各设备的图标和身份信息的原理类似,在此不作限定。
在另一些实施例中,当笔记本电脑200也可以仅根据各个设备的优先级和/或各个第三子区域的优先级,确定各个设备的图标和身份信息的排列方式。这样一来,可以将优先级越高的设备的第二标识,排列在越方便用户操作的位置,以方便用户浏览和操作。
如图20所示,笔记本电脑200确定第三子区域A的优先级最高,且设备1的优先级最高,则在第三子区域A显示设备1的图标和身份信息。基于类似的原理,笔记本电脑200在第三子区域B的显示设备2的图标和身份信息,笔记本电脑200在第三子区域C的显示设备3的图标和身份信息、笔记本电脑200在第三子区域D的显示设备4的图标和身份信息以及笔记本电脑200在第三子区域E的显示设备5的图标和身份信息。
在另一些实施例中,当笔记本电脑200也可以仅根据各个设备相对于笔记本电脑200的方向,确定各个设备的图标和身份信息的排列方式。在图21中的(a)中,设备1、设备2、设备3、设备4、以及设备5的5个设备的图标的排列方式从左到右依次为:设备4、设备2、设备1、设备3以及设备5。另外,在图21中的(a)中,第二界面201内的左侧可以包括用于指示显示上一组设备的图标和身份信息的控件205, 和第二界面201内的右侧可以包括用于指示显示下一组设备的图标和身份信息的控件206(即第二控件)。其中,在图21中的(a)中,第二界面201内的左侧可以包括用于指示显示上一组设备的图标和身份信息的控件205,也可以不显示,在此不作限定。
笔记本电脑200响应于对控件206的点击操作,确定未被显示图标和身份信息的设备的数量小于5个。进而,在图21中的(a)对应的实施例的基础上,如图21中的(b)所示,笔记本电脑200在第二界面201中的笔记本电脑200的图标209的下方的显示内容,更新为未被显示图标和身份信息的设备6、设备7、以及设备8,以供用户浏览下一组已经被发现的设备。另外,在另一些可选实施方式中,当笔记本电脑200显示设备6、设备7、以及设备8时,第二界面201中的控件206可以不显示。
类似地,设备6、设备7、以及设备8的图标和身份信息的排列方式为:各个设备被笔记本电脑200识别的在X轴方向的位置分布方式。在图21中的(b)中,设备6、设备7、以及设备8的3个设备的图标和身份信息的排列方式为:设备7、设备6、以及设备8。
仍如图21中的(b)所示,第二界面201内的左侧可以包括用于指示显示上一组设备的图标和身份信息的控件205。笔记本电脑200响应于对控件205的点击操作(附图中未示),显示设备1、设备2、设备3、设备4、设备5的5个设备的图标和身份信息。即,笔记本电脑200响应于对控件205的点击操作(附图中未示),显示上一组设备的图标和身份信息。这样一来,还可以供用户返回浏览上一组已经被发现的设备。
另外,在图19-图21分别对应的实施例的基础上,笔记本电脑200响应于对控件206的点击操作,确定未被显示图标和身份信息的设备的数量大于5个时,从未被显示图标和身份信息的设备中,再次确定5个设备。其中,再次确定5个设备的方式与上述实施例中的设备相同,在此不作赘述。进而,笔记本电脑200在第二界面201中的笔记本电脑200的图像209的下方的显示内容,更新为再次确定的5个设备的图标和身份信息(附图中未示)。
需要说明的是,在上述的实施例中,均是以笔记本电脑200在与发现的设备建立连接后,在笔记本电脑200的图标209左侧的第一子区域207,或在笔记本电脑200的图标200右侧的第二子区域208显示已建立连接的设备的图标为例说明的。在另一些实施例中,当笔记本电脑200在与发现的设备建立连接后,或者,用户将设备的图标拖到第一子区域或者第二子区域之后,还可以在笔记本电脑200的图标209左侧的第一子区域207,或在笔记本电脑200的图标200右侧的第二子区域208显示已建立连接的设备的桌面(即第二终端的标识位于所述第二区域上的显示状态,与第二终端的标识位于第一子区域207或第二子区域208的显示状态不同,附图中未示),在此不作限定。这样一来,用户可以更清楚地通过设备的标识的显示状态,来进一步分辨设备是否与第一终端建立短距离通信连接。
进一步地,当笔记本电脑200响应于用户将设备的桌面移出第一子区域207或第二子区域208的移动操作(即第四操作)时,笔记本电脑200将移出第一子区域207或第二子区域208设备的桌面,更新为设备的图标(附图中未示)。另外,当笔记本电脑200在与发现的设备断开连接后,在第一子区域207,或第二子区域208取消显 示已建立连接的设备的桌面,并在笔记本电脑200的图标209下方显示断开连接的设备的图标,且断开连接的设备的图标位于与笔记本电脑200建立连接之前的位置。
需要说明的是,在上述的实施例中是以手机100、和平板电脑300显示文本输入界面为例进行说明,笔记本电脑200如何向手机100、和平板电脑300共享输入设备的。在另一些实施例中,笔记本电脑200还可以基于与上述类似的原理,对显示游戏界面的手机100、或者平板电脑300共享输入设备,在此不作赘述。
示例性的,图22为本申请实施例提供的一种终端设备的硬件结构示意图,如图22所示,该终端设备包括处理器2201,通信线路2204以及至少一个通信接口(图22中示例性的以通信接口2203为例进行说明)。
处理器2201可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。
通信线路2204可包括在上述组件之间传送信息的电路。
通信接口2203,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,无线局域网(wireless local area networks,WLAN)等。
可能的,该终端设备还可以包括存储器2202。
存储器2202可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过通信线路2204与处理器相连接。存储器也可以和处理器集成在一起。
其中,存储器2202用于存储执行本申请方案的计算机执行指令,并由处理器2201来控制执行。处理器2201用于执行存储器2202中存储的计算机执行指令,从而实现本申请实施例所提供的第一终端或第二终端执行的方法。
可能的,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。
在具体实现中,作为一种实施例,处理器2201可以包括一个或多个CPU,例如图22中的CPU0和CPU1。
在具体实现中,作为一种实施例,终端设备可以包括多个处理器,例如图22中的处理器2201和处理器2205。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。
示例性的,图23为本申请实施例提供的一种芯片的结构示意图。芯片230包括一个或两个以上(包括两个)处理器2310和通信接口2330。
在一些实施方式中,存储器2340存储了如下的元素:可执行模块或者数据结构, 或者他们的子集,或者他们的扩展集。
本申请实施例中,存储器2340可以包括只读存储器和随机存取存储器,并向处理器2310提供指令和数据。存储器2340的一部分还可以包括非易失性随机存取存储器(non-volatile random access memory,NVRAM)。
本申请实施例中,存储器2340、通信接口2330以及存储器2340通过总线系统2320耦合在一起。其中,总线系统2320除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。为了便于描述,在图23中将各种总线都标为总线系统2320。
上述本申请实施例描述的方法可以应用于处理器2310中,或者由处理器2310实现。处理器2310可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器2310中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器2310可以是通用处理器(例如,微处理器或常规处理器)、数字信号处理器(digital signal processing,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门、晶体管逻辑器件或分立硬件组件,处理器2310可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。
结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。其中,软件模块可以位于随机存储器、只读存储器、可编程只读存储器或带电可擦写可编程存储器(electrically erasable programmable read only memory,EEPROM)等本领域成熟的存储介质中。该存储介质位于存储器2340,处理器2310读取存储器2340中的信息,结合其硬件完成上述方法的步骤。
在上述实施例中,存储器存储的供处理器执行的指令可以以计算机程序产品的形式实现。其中,计算机程序产品可以是事先写入在存储器中,也可以是以软件形式下载并安装在存储器中。
计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包括一个或多个可用介质集成的服务器、数据中心等数据存储设备。例如,可用介质可以包括磁性介质(例如,软盘、硬盘或磁带)、光介质(例如,数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。
本申请实施例还提供了一种计算机可读存储介质。上述实施例中描述的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何目标介质。
作为一种可能的设计,计算机可读介质可以包括紧凑型光盘只读储存器(compact disc read-only memory,CD-ROM)、RAM、ROM、EEPROM或其它光盘存储器;计算机可读介质可以包括磁盘存储器或其它磁盘存储设备。而且,任何连接线也可以被适当地称为计算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,DSL或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘(CD),激光盘,光盘,数字通用光盘(digital versatile disc,DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。
上述的组合也应包括在计算机可读介质的范围内。以上,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (22)

  1. 一种设备建立连接的方法,其特征在于,应用于第一终端和第二终端,所述第一终端连接有用于输入控制指令的输入设备,所述方法包括:
    所述第一终端显示第一窗口,所述第一窗口为第一应用的第一界面,所述第一界面包括第一控件;
    所述第一终端响应于对所述第一控件的触发操作,进行设备发现,并在所述第一窗口显示第二界面,所述第二界面中包括所述第一终端的第一标识,所述第一终端的第一标识的周围包括第一区域,在所述第一终端的第一标识周围的第二区域内显示有发现的设备的第二标识;
    所述第一终端响应于对所述第二标识中的所述第二终端的标识的第一操作,与所述第二终端建立短距离通信连接,并将所述第二终端的标识从所述第二区域移动到所述第一区域;
    所述第一终端和所述第二终端进入预设模式,在所述预设模式下,响应于用户的第二操作,所述第一终端将所述输入设备对应的光标,移动到所述第二终端的界面上;
    接收用户对所述输入设备的第三操作;
    所述第二终端响应于所述第三操作,执行所述第三操作对应的功能。
  2. 根据权利要求1所述的方法,其特征在于,所述第一区域包括第一子区域和第二子区域,所述第一子区域位于所述第一标识的第一侧,所述第二子区域位于所述第一标识的第二侧,所述将所述第二终端的标识从所述第二区域移动到所述第一区域,包括:
    将所述第二终端的标识从所述第二区域,移动到所述第一子区域或者所述第二子区域。
  3. 根据权利要求2所述的方法,其特征在于,将所述第二终端的标识从所述第二区域,移动到所述第一子区域或者所述第二子区域,包括:
    当所述第一终端识别到所述第二终端位于所述第一终端的第二侧时,将所述第二终端的标识从所述第二区域,移动到所述第二子区域;
    所述第二操作为用户对所述输入设备对应的光标向所述第一终端的界面的第二侧边缘的移动操作。
  4. 根据权利要求2所述的方法,其特征在于,将所述第二终端的标识从所述第二区域,移动到所述第一子区域或者所述第二子区域,包括:
    当所述第一终端识别到所述第二终端位于所述第一终端的第一侧时,将所述第二终端的标识从所述第二区域,移动到所述第一子区域;
    所述第二操作为用户对所述输入设备对应的光标,向所述第一终端的界面的第一侧边缘的移动操作。
  5. 根据权利要求4所述的方法,其特征在于,在响应于用户的第二操作,所述第一终端将所述输入设备对应的光标,移动到所述第二终端的界面上之后,所述方法还包括:
    所述第一终端响应于对所述第二终端的标识向所述第二侧的移动操作,移动所述第二终端的标识;
    所述第一终端检测到所述第二终端移动到所述第二侧时,在所述第二子区域显示所述第二终端的标识;
    所述第一终端响应于用户对所述输入设备对应的光标,向所述第一终端的界面的第二 侧边缘的移动操作,移动所述光标到所述第二终端的界面上。
  6. 根据权利要求4所述的方法,其特征在于,在响应于用户的第二操作,所述第一终端将所述输入设备对应的光标,移动到所述第二终端的界面上之后,所述方法还包括:
    所述第一终端响应于对所述第二标识中的第三终端的标识的朝所述第一侧方向的移动操作,移动所述第三终端的标识;
    所述第一终端检测到所述第三终端的标识移动到所述第一侧时,与所述第三终端建立短距离通信连接;
    所述第一终端在所述第一子区域显示所述第三终端的标识,且所述第二终端的标识移动到所述第二子区域显示;
    所述第一终端响应于用户对所述输入设备对应的光标,向所述第一终端的界面的第一侧边缘的移动操作,移动所述光标到所述第三终端的界面上。
  7. 根据权利要求6所述的方法,其特征在于,在所述第一终端响应于用户对所述输入设备对应的光标,向所述第一终端的界面的第一侧边缘的移动操作,移动所述光标到所述第三终端的界面上之后,所述方法还包括:
    所述第一终端响应于对所述第三终端的标识朝所述第二侧方向的移动操作,移动所述第三终端的标识;
    所述第一终端检测到所述第三终端的标识移动到所述第二侧时,在所述第二子区域上显示所述第三终端的标识,且将所述第二终端的标识从所述第二子区域移动到所述第一子区域;
    所述第一终端响应于用户对所述输入设备对应的光标,向所述第一终端的界面的第二侧边缘的移动操作,移动所述光标到所述第三终端的界面上。
  8. 根据权利要求7所述的方法,其特征在于,在所述第一终端响应于用户对所述输入设备对应的光标,向所述第一终端的界面的第二侧边缘的移动操作,移动所述光标到所述第三终端的界面上之后,所述方法还包括:
    所述第一终端响应于对所述第二标识中的第四终端的标识的第一操作,若所述第一终端识别到所述第四终端位于所述第一终端的第一侧,则所述第一终端与所述第二终端断开短距离通信连接,与所述第四终端建立短距离通信连接;
    所述第一终端将第二终端的标识从所述第一子区域移动到所述第二区域,以及将所述第四终端的标识从所述第二区域移动到所述第一子区域;
    所述第一终端响应于用户对所述输入设备对应的光标,向所述第一终端的界面的第二侧边缘,移动所述光标到所述第四终端的界面上。
  9. 根据权利要求2所述的方法,其特征在于,所述第二终端的标识位于所述第二区域上的显示状态,与所述第二终端的标识位于所述第一子区域或所述第二子区域的显示状态不同。
  10. 根据权利要求1-9任一所述的方法,其特征在于,所述在所述第一终端的第一标识周围的第二区域显示发现的设备的第二标识,包括:
    所述第一终端识别发现的各设备相对于所述第一终端的方向;
    所述第一终端在所述第一终端的第一标识周围的第二区域,显示发现的设备的第二标识,其中,各所述第二标识相对于所述第一终端的第一标识的方向,与所述各设备相对于 所述第一终端的方向相同。
  11. 根据权利要求10所述的方法,其特征在于,在所述第一终端在所述第一终端的第一标识周围的第二区域,显示发现的设备的第二标识之后,所述方法还包括:
    在所述第一终端检测到其中一个设备相对于所述第一终端的方向发生变化时,所述第一终端在所述第一界面调整所述其中一个设备的第二标识的位置,其中,调整后的其中一个设备的第二标识相对于所述第一终端的第一标识的方向,与所述其中一个设备相对于所述第一终端的方向相同。
  12. 根据权利要求1所述的方法,其特征在于,所述第二区域包括多个第三子区域,所述在所述第一终端的第一标识周围的第二区域显示发现的设备的第二标识,包括:
    所述第一终端识别发现的各设备相对于所述第一终端的方向;
    所述第一终端根据所述发现的各设备相对于所述第一终端的方向、各所述第三子区域相对于所述第一终端的第一标识方向、设定的各设备的优先级、以及设定的各所述第三子区域的优先级,确定所述发现的各设备的第二标识的排列方式;
    所述第一终端根据确定的第二标识的排列方式,在所述多个第三子区域显示发现的设备的第二标识。
  13. 根据权利要求1所述的方法,其特征在于,所述发现的各设备的第二标识在所述第二区域的排列方式为:
    随机排列;
    或者,根据所述发现的各设备的优先级排列;
    或者,所述第二区域包括多个第三子区域,根据所述多个第三子区域的优先级排列。
  14. 根据权利要求1所述的方法,其特征在于,所述发现的设备的数量大于第一个数,所述在所述第一终端的第一标识周围的第二区域显示发现的设备的第二标识,包括:
    在发现的设备的数量大于第一个数个时,所述第一终端从发现的设备中选择所述第一个数个设备;
    在所述第一终端的第一标识周围的第二区域,显示被选择的所述第一个数个设备的第二标识。
  15. 根据权利要求14所述的方法,其特征在于,选择所述第一个数个设备的策略可以为:
    从所述发现的设备中任意选择所述第一个数个设备;
    或者,从所述发现的设备中选择被发现的时间排序靠前的所述第一个数个设备;
    或者,当所述发现的设备中曾经连接过的设备大于或等于所述第一个数时,从所述曾经连接过的设备中选择所述第一个数个设备。
  16. 根据权利要求14所述的方法,其特征在于,所述第一界面还包括第二控件,所述第二控件用于指示显示下一组设备的第二标识,在在所述第一终端的第一标识周围的第二区域,显示被选择的所述第一个数个设备的第二标识之后,所述方法还包括:
    所述第一终端响应于对所述第二控件的触发操作,确定所述发现的设备中未被选择的设备的第二标识的数量是否小于所述第一个数个;
    当在未被选择的设备的数量大于所述第一个数个时,所述第一终端从未被选择的设备中再次选择所述第一个数个的设备;并在所述第一终端的第一标识周围的第二区域,再次 被选择的所述第一个数个的设备的第二标识;
    当所述未被选择的设备的数量小于或等于所述第一个数个时,所述第一终端在所述第一终端的第一标识周围的第二区域,显示所述未被选择的设备的第二标识。
  17. 根据权利要求1-16任一所述的方法,其特征在于,在所述将所述第二终端的标识从所述第二区域移动到所述第一区域之后,所述方法还包括:
    所述第一终端响应于对位于所述第一区域上的所述第二终端的标识的第四操作,将所述第二终端的标识从所述第一区域移动到所述第二区域显示;
    所述第一终端与所述第二终端断开短距离通信连接。
  18. 根据权利要求17所述的方法,其特征在于,所述第四操作为将所述第二终端的标识移出所述第一区域的操作;
    或者,所述第四操作位对位于所述第一区域上的所述第二终端的标识的点击操作;
    或者,所述第二终端的标识携带有第三控件,所述第四操作为对所述第三控件的点击操作。
  19. 根据权利要求1-17任一所述的方法,其特征在于,所述输入设备为键盘、鼠标或者触摸板。
  20. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时,使得所述终端设备执行如权利要求1至19任一项中的所述第一终端执行的方法。
  21. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时,使得计算机执行如权利要求1至19任一项中的所述第一终端或所述第二终端执行的方法。
  22. 一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序被运行时,使得计算机执行如权利要求1至19任一项中的所述第一终端或所述第二终端执行的方法。
PCT/CN2023/092421 2022-06-13 2023-05-06 设备建立连接的方法和终端设备 WO2023241257A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210663211.8A CN117270700A (zh) 2022-06-13 2022-06-13 设备建立连接的方法和终端设备
CN202210663211.8 2022-06-13

Publications (2)

Publication Number Publication Date
WO2023241257A1 true WO2023241257A1 (zh) 2023-12-21
WO2023241257A9 WO2023241257A9 (zh) 2024-05-10

Family

ID=89192078

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/092421 WO2023241257A1 (zh) 2022-06-13 2023-05-06 设备建立连接的方法和终端设备

Country Status (2)

Country Link
CN (1) CN117270700A (zh)
WO (1) WO2023241257A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425408A (zh) * 2012-05-23 2013-12-04 深圳富泰宏精密工业有限公司 鼠标键盘共享方法及系统
US20160299676A1 (en) * 2015-04-08 2016-10-13 Samsung Electronics Co., Ltd. Display apparatus and method for controlling the same
CN114201103A (zh) * 2021-08-16 2022-03-18 荣耀终端有限公司 数据输入方法和终端设备
CN114579016A (zh) * 2020-11-30 2022-06-03 华为技术有限公司 一种共享输入设备的方法、电子设备及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425408A (zh) * 2012-05-23 2013-12-04 深圳富泰宏精密工业有限公司 鼠标键盘共享方法及系统
US20160299676A1 (en) * 2015-04-08 2016-10-13 Samsung Electronics Co., Ltd. Display apparatus and method for controlling the same
CN114579016A (zh) * 2020-11-30 2022-06-03 华为技术有限公司 一种共享输入设备的方法、电子设备及系统
CN114201103A (zh) * 2021-08-16 2022-03-18 荣耀终端有限公司 数据输入方法和终端设备

Also Published As

Publication number Publication date
CN117270700A (zh) 2023-12-22
WO2023241257A9 (zh) 2024-05-10

Similar Documents

Publication Publication Date Title
EP3675460B1 (en) File sharing method and terminal
WO2021036594A1 (zh) 一种应用于投屏场景的控制方法以及相关设备
US11314371B2 (en) Method and apparatus for providing graphic user interface
US20190324603A1 (en) Display device for executing a plurality of applications and method for controlling the same
US8638309B2 (en) Apparatus, method, and medium for providing user interface for file transmission
JP6210975B2 (ja) ネットワーク電子機器間のデータ共有方法および装置
US11604580B2 (en) Configuration of application execution spaces and sub-spaces for sharing data on a mobile touch screen device
EP2672762A1 (en) Connecting the highest priority Bleutooth device to a mobile terminal
WO2020007147A1 (zh) 分屏应用切换方法、装置、存储介质及电子设备
KR102102438B1 (ko) 디스플레이 장치 및 그 제어 방법
CN105138228A (zh) 显示设备及其显示方法
JP2013504826A (ja) コンピュータ周辺機器上にアプリケーションインターフェイス部を提供する方法および装置
US10095324B2 (en) Method for handling pen multi-input event and apparatus for the same
KR20140031468A (ko) 휴대 단말 및 이의 컨텐츠 공유 방법
CN108920071B (zh) 基于异形显示屏的控制方法、装置、存储介质及移动终端
WO2021008547A1 (zh) 终端设备的图标显示方法及装置
CN110168487A (zh) 一种触摸控制方法及装置
WO2023179425A1 (zh) 一种输入设备的连接方法、设备及系统
US11349976B2 (en) Information processing method, file transmission method, electronic apparatus, and computing apparatus
WO2020007144A1 (zh) 分屏应用切换方法、装置、存储介质及电子设备
KR20140021161A (ko) Nfc 모듈을 가지는 휴대 단말에서 데이터 통신 방법 및 장치
EP3951589A1 (en) View display method and electronic device
WO2023241257A1 (zh) 设备建立连接的方法和终端设备
WO2023125048A1 (zh) 内容显示方法及相关产品
WO2022228028A1 (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: 23822828

Country of ref document: EP

Kind code of ref document: A1