Multi-device connection establishing method, related device and communication system

By dragging and dropping elements indicating shared services between device icons, and using a unified entrance to enable the startup, switching and closing of shared services of multiple devices, the problem of cumbersome operations in the prior art is solved, and user experience and operation efficiency are improved.

CN120343755APending Publication Date: 2025-07-18HONOR DEVICE CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410042521.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-10
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

In the prior art, when multiple devices operate together, the process of starting and switching shared services is cumbersome, and different entrances need to be remembered, and the operation is not convenient enough.

Method used

A multi-device connection building method is provided, by dragging and dropping elements indicating shared services between device icons, and using a unified entrance to realize the start, switch and shutdown of shared services, including sending corresponding messages to establish and disconnect.

Benefits of technology

It enables users to quickly start or close the shared service through simple drag and drop operations, simplifying the collaborative operation process of multiple devices, and improving operation convenience and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120343755A_ABST
    Figure CN120343755A_ABST
Patent Text Reader

Abstract

The invention provides a multi-device connection establishing method, a related device and a communication system. The electronic device can provide a unified entrance for multiple shared services, and a user can conveniently select the shared service through the entrance and open the shared service between two devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminals, and in particular, to a method for establishing connections between multiple devices, related devices, and a communication system. Background Art

[0002] With the increase in the number of terminal devices, users' demand for multi-device collaboration has also gradually increased. Therefore, how to conveniently achieve multi-device collaboration is an urgent problem to be solved. Summary of the Invention

[0003] This application provides a method for establishing connections between multiple devices, related devices, and a communication system. An electronic device can provide a unified entry for multiple shared services, and a user can conveniently select a shared service through this entry and enable the shared service between two devices.

[0004] In a first aspect, a method for establishing connections between multiple devices is provided. The method is applied to an electronic device and includes: the electronic device displays an icon of a first device and an icon of a second device; the electronic device receives a first operation on the icon of the first device and displays a first element, where the first element indicates a first shared service; the electronic device receives a second operation of dragging the first element to the icon of the second device and releasing it, and the electronic device sends a first message to the second device, where the first message is used to trigger the second device to establish a first connection with the first device and enable the first shared service based on the first connection.

[0005] By implementing the method of the first aspect, a user can conveniently and quickly trigger the first shared service to be enabled between devices by dragging an element indicating the shared service between device icons.

[0006] In combination with the first aspect, the first message includes an identifier of the first device and an identifier of the first shared service.

[0007] In combination with the first aspect, in some implementation manners of the first aspect, after the electronic device sends the first message to the second device, the method further includes: the electronic device receives an indication message, where the indication message is used to indicate that the second device and the first device have enabled the first shared service.

[0008] In a second aspect, another method for establishing connections between multiple devices is provided. The method is applied to an electronic device and includes: the electronic device displays an icon of a first device and an icon of a second device; the electronic device receives a first operation on the icon of the first device and displays a first element, where the first element indicates a first shared service; the electronic device receives a second operation of dragging the first element to the icon of the second device and releasing it, and the electronic device sends a first message to the first device, where the first message is used to trigger the first device to establish a first connection with the second device and enable the first shared service based on the first connection.

[0009] When implementing the method of the second aspect, the user can conveniently and quickly trigger the activation of the first sharing service between the first device and the second device by dragging an element indicating the sharing service among the device icons.

[0010] In combination with the second aspect, the first message includes the identifier of the second device and the identifier of the first sharing service.

[0011] In combination with the second aspect, in some implementation manners of the second aspect, after the electronic device sends the first message to the first device, the method further includes: the electronic device receives an indication message, and the indication message is used to indicate that the first sharing service has been activated between the second device and the first device.

[0012] In combination with the first aspect or the second aspect, in some implementation manners of the first aspect or the second aspect, during the process of dragging the first element to the icon of the second device and releasing it, the first element is updated from a first form to a second form.

[0013] In this way, during the dragging operation of the first element, the second form can better prompt the user about the sharing service corresponding to the first element. For example, the first form includes a circle, and the second form includes a bar. The first element in the second form of the bar is not easily blocked by the finger of the user's touch operation, and a prompt message such as the text "Keyboard and Mouse Sharing" is added, improving the user's operation experience of dragging the first element.

[0014] In combination with the first aspect or the second aspect, in some implementation manners of the first aspect or the second aspect, after the electronic device receives the second operation, the method further includes: the electronic device displays a second element, and the second element touches the icon of the second device.

[0015] In combination with the previous embodiment, after a period of time, the electronic device updates the second element from a third form to a fourth form.

[0016] In some implementation manners, the electronic device can display the second element in the third form after receiving the second operation, and update the second element from the third form to the fourth form after receiving the indication message indicating that the first sharing service has been activated between the second device and the first device. That is, the display interface of the electronic device indicates that the first sharing service is in the activated state, which can prompt the user that the first sharing service has been activated.

[0017] In certain implementations of the first aspect or the second aspect, the method further includes: the electronic device displays an icon of a fourth device; the electronic device receives a third operation of dragging the second element to the icon of the fourth device and releasing it, and the electronic device sends a second message to the fourth device, where the second message is used to trigger the fourth device to establish a second connection with the first device and start the first sharing service based on the second connection.

[0018] In this way, by dragging and dropping the element indicating the sharing service between device icons by the user, the electronic device can conveniently and quickly switch the device for starting the sharing service.

[0019] Combined with the previous embodiment, the second message includes the identifier of the first device and the identifier of the first sharing service.

[0020] In certain implementations of the first aspect or the second aspect, the method further includes: the electronic device displays an icon of a fourth device; the electronic device receives a third operation of dragging the second element to the icon of the fourth device and releasing it, and the electronic device sends a second message to the first device, where the second message is used to trigger the fourth device to establish a second connection with the first device and start the first sharing service based on the second connection.

[0021] Combined with the previous embodiment, the second message includes the identifier of the fourth device and the identifier of the first sharing service.

[0022] In certain implementations of the first aspect or the second aspect, after the electronic device receives the third operation, the method further includes: the electronic device sends a third message to the second device, where the third message is used to trigger the second device and the first device to close the first sharing service.

[0023] In this way, based on the third operation of the user on the electronic device, the electronic device can conveniently and quickly trigger the first device and the second device to close the first sharing service, and switch the first sharing service to the first device and the fourth device.

[0024] In certain implementations of the first aspect or the second aspect, after the electronic device receives the third operation, the method further includes: the electronic device sends a third message to the first device, where the third message is used to trigger the second device and the first device to close the first sharing service.

[0025] In this way, based on the third operation of the user on the electronic device, the electronic device can also conveniently and quickly trigger the closing of the first sharing service between the first device and the second device. In some implementation manners of the first aspect or the second aspect, after the electronic device displays the second element, the method further includes: the electronic device receives a fourth operation of dragging the second element away from the icon of the second device and releasing it, and the electronic device sends a fourth message to the second device, where the fourth message is used to trigger the second device and the first device to close the first sharing service.

[0026] In this way, through the fourth operation by the user, the electronic device can conveniently and quickly trigger the closing of the first sharing service between the first device and the second device.

[0027] Combined with the previous embodiment, the fourth message includes the identifier of the first device and the identifier of the first sharing service.

[0028] In some implementation manners of the first aspect or the second aspect, after the electronic device displays the second element, the method further includes: the electronic device receives a fourth operation of dragging the second element away from the icon of the second device and releasing it, and the electronic device sends a fourth message to the first device, where the fourth message is used to trigger the second device and the first device to close the first sharing service.

[0029] In this way, through the fourth operation by the user, the electronic device can also conveniently and quickly trigger the closing of the first sharing service between the first device and the second device.

[0030] Combined with the previous embodiment, the fourth message includes the identifier of the second device and the identifier of the first sharing service.

[0031] Combined with the first aspect or the second aspect, in some implementation manners of the first aspect or the second aspect, the user account logged in to the electronic device is the same as the user accounts logged in to the first device and the second device. Before the electronic device displays the icons of the first device and the second device, the method further includes: the electronic device detects the first device and the second device.

[0032] In this way, it can be determined that on the electronic device, the first device and the second device are devices used by the same user. In devices used by the same user, collaborative operations of the devices are allowed, and the first sharing service can be quickly enabled. Instead of enabling the first sharing service between two unrelated devices.

[0033] Combined with the previous embodiment, when the electronic device detects the first device and the second device, specifically it includes: the electronic device sends a broadcast message; the electronic device receives the messages returned by the first device and the second device based on the broadcast message.

[0034] In this way, the electronic device can quickly obtain the first device and the second device, avoiding the need to temporarily obtain the information of the first device and the second device when establishing the first shared service.

[0035] Combined with the previous embodiment, the messages returned by the first device and the second device based on the broadcast message received by the electronic device specifically include: the device type of the first device and the device type of the second device.

[0036] In some implementation manners of the first aspect or the second aspect, the electronic device detecting the first device and the second device specifically includes: the electronic device detecting the first device and the second device through any one or more of the following communication technologies: Wireless Local Area Network (WLAN), Bluetooth (BT), or Near Field Communication (NFC).

[0037] In some implementation manners of the first aspect or the second aspect, the electronic device detecting the first device and the second device may further include: the electronic device detecting the first device and the second device through a server for relaying.

[0038] In this way, even if the first device and the second device are not near the electronic device, the electronic device can still detect the first device and the second device.

[0039] Combined with the first aspect or the second aspect, in some implementation manners of the first aspect or the second aspect, the first shared service includes any one of the following: keyboard and mouse sharing, screen sharing, remote control, or cross-terminal invocation.

[0040] Combined with the first aspect or the second aspect, in some implementation manners of the first aspect or the second aspect, the electronic device and the second device are the same electronic device, or the electronic device and the first device are the same electronic device.

[0041] In this way, the electronic device can not only display the establishment of a connection between the first device and the second device, but also establish a connection with the first device or the second device. This reflects that the electronic device and the first device or the second device start the first shared service. Combined with the first aspect or the second aspect, in some implementation manners of the first aspect or the second aspect, before the electronic device displays the first element, the method further includes: the electronic device queries the shared services supported by the first device; the electronic device displaying the first element specifically includes: the electronic device displays the icons of the shared services supported by the first device, and the icons of the shared services supported by the first device include the icon of the first shared service, and the icon of the first shared service is the first element.

[0042] In this way, the electronic device can display the shared services supported by the first device, so as to facilitate the user to select the first shared service to be enabled from them.

[0043] Combined with the first aspect or the second aspect, in some implementations of the first aspect or the second aspect, before the electronic device displays the first element, the method further includes: the electronic device queries the sharing services supported by the first device; the electronic device displays the first element, specifically including: the electronic device displays the icons of the sharing services supported by the first device, and the icons of the sharing services supported by the first device include the icon of the first sharing service, and the icon of the first sharing service is the first element.

[0044] Combined with the first aspect or the second aspect, in some implementations of the first aspect or the second aspect, the electronic device displays the icon of a fifth device that does not support the first sharing service, and the second device supports the first sharing service. During the process that the electronic device receives the second operation, the method further includes:

[0045] The electronic device displays the icon of the second device and the icon of the fifth device, and the forms of the two icons are different. Specifically, the form of the icon of the second device indicates that the second device supports the first sharing service, and the form of the icon of the fifth device indicates that the fifth device does not support the first sharing service.

[0046] In some implementations of the first aspect or the second aspect, after the electronic device records the activation of the first sharing service between the first device and the second device, the method further includes: the electronic device sends the record of the activation of the first sharing service between the first device and the second device to a data synchronization server, and the record is used for the fourth device to synchronously obtain the information that the first sharing service is activated between the first device and the second device.

[0047] In this way, after the electronic device enters the communication system, the electronic device can save the record of the activation of the sharing service between the first device and the second device locally on the electronic device, or save it on the cloud server. Moreover, after the electronic device enters the trust ring, it can also obtain the record of the activation of the sharing service between the first device and the second device from the cloud server.

[0048] In a third aspect, a method for establishing connections among multiple devices is provided. The method is applied to a communication system, and the communication system includes a first device, a second device, and a third device. The method includes: the third device displays the icon of the first device and the icon of the second device; the third device receives a first operation on the icon of the first device and displays a first element, where the first element indicates a first sharing service; the third device receives a second operation of dragging the first element to the icon of the second device and releasing it, and the third device sends a first message to the second device; the second device responds to the first message, establishes a first connection with the first device, and the first device and the second device activate the first sharing service based on the first connection.

[0049] Implementing the method of the third aspect, the third device provides a unified interface for the first shared service of the first device and the second device in the communication system, facilitating the activation of the first shared service between the first device and the second device.

[0050] In combination with the third aspect, the method executed by the third device in the third aspect can refer to the method provided by the first aspect and any implementation manner of the first aspect, which will not be elaborated here.

[0051] In the fourth aspect, another method for multi-device connection establishment is provided. This method is applied to a communication system, which includes a first device, a second device, and a third device. The method includes: the third device displays the icon of the first device and the icon of the second device; the third device receives a first operation on the icon of the first device and displays a first element, where the first element indicates a first shared service; the third device receives a second operation of dragging the first element to the icon of the second device and releasing it, and the third device sends a first message to the first device; the first device responds to the first message, establishes a first connection with the second device, and the first device and the second device activate the first shared service based on the first connection.

[0052] Implementing the method of the fourth aspect, the third device provides a unified interface for the first shared service of the first device and the second device in the communication system, facilitating the activation of the first shared service between the first device and the second device.

[0053] In combination with the fourth aspect, the method executed by the third device in the fourth aspect can refer to the method provided by the second aspect and any implementation manner of the second aspect, which will not be elaborated here.

[0054] In combination with the third aspect or the fourth aspect, in some implementation manners of the third aspect or the fourth aspect, the communication system further includes a fifth device, the fifth device does not support the first shared service, and the second device supports the first shared service. During the process that the third device receives the second operation, the method further includes:

[0055] The third device displays the icon of the second device and the icon of the fifth device, and the forms of the two icons are different. Specifically, the form of the icon of the second device indicates that the second device supports the first shared service, and the form of the icon of the fifth device indicates that the fifth device does not support the first shared service.

[0056] In some implementation manners of the third aspect or the fourth aspect, the method further includes: the third device sends a record of the activation of the first shared service between the first device and the second device to a data synchronization server, and the fourth device obtains the activation of the first shared service between the first device and the second device based on the data synchronization server.

[0057] In this way, after the electronic device enters the communication system, it can also be saved in the cloud server. Moreover, after the electronic device enters the trust ring, it can also obtain the record of the first device and the second device starting the sharing service from the cloud server.

[0058] In a fifth aspect, an electronic device is provided. The electronic device includes one or more memories and one or more processors; the memory is coupled to the one or more processors, and the memory is used to store computer program code. The computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the electronic device to execute the method described in the foregoing first aspect or any implementation manner of the first aspect or any implementation manner of the first aspect or the second aspect.

[0059] In a sixth aspect, a communication system is provided. The communication system includes: a first device, a second device, and a third device. The third device is used to execute the method described in the foregoing first aspect or any implementation manner of the first aspect or the second aspect or any implementation manner of the second aspect.

[0060] In a seventh aspect, a chip is provided. The chip is applied to an electronic device and includes one or more processors. The processor is used to call computer instructions to cause the electronic device to execute the method described in the foregoing first aspect or any implementation manner of the first aspect or the second aspect or any implementation manner of the second aspect.

[0061] In an eighth aspect, a computer-readable storage medium is provided, including instructions. When the instructions run on an electronic device, the electronic device is caused to execute the method described in the foregoing first aspect or any implementation manner of the first aspect or the second aspect or any implementation manner of the second aspect.

[0062] In a ninth aspect, a computer program product is provided. When the computer program product runs on a computer, the computer is caused to execute the method executed by the electronic device in any implementation manner of the first aspect or any implementation manner of the second aspect. Description of the Drawings

[0063] Figure 1 A set of user interfaces displayed by the electronic device 300 provided in the embodiments of the present application;

[0064] Figure 2 A set of user interfaces displayed by the electronic device 300 when the electronic device 300 provided in the embodiments of the present application triggers itself and the electronic device 100 to start the sharing service;

[0065] Figure 3AA set of user interfaces displayed on the electronic device 300 when the electronic device 300 provided in the embodiment of the present application triggers the electronic devices 200 and 100 to start a sharing service;

[0066] Figure 3B A set of user interfaces displayed on the electronic device 300 when the start of the sharing service fails between two devices provided in the embodiment of the present application;

[0067] Figure 4 A set of user interfaces displayed on the electronic device 300 when the sharing service between two devices is closed in the embodiment of the present application;

[0068] Figure 5 A set of user interfaces displayed on the electronic device 300 when switching the sharing service between devices in the embodiment of the present application;

[0069] Figure 6 A schematic structural diagram of the communication system 10 provided in the embodiment of the present application;

[0070] Figure 7A A flowchart of a method for establishing connections among multiple devices provided in the embodiment of the present application;

[0071] Figure 7B A framework diagram of the data synchronization server and the third device provided in the embodiment of the present application;

[0072] Figure 8A A flowchart of module interactions when the third device provided in the embodiment of the present application displays the sharing services supported by the device;

[0073] Figure 8B A flowchart of module interactions when the third device provided in the embodiment of the present application triggers two devices to start a sharing service;

[0074] Figure 8C A flowchart of module interactions when the third device provided in the embodiment of the present application switches the sharing service between devices;

[0075] Figure 8D A flowchart of module interactions when the third device provided in the embodiment of the present application closes the sharing service;

[0076] Figure 9 A flowchart of module interactions when the third device provided in the embodiment of the present application triggers two devices to start a sharing service;

[0077] Figure 10 A hardware architecture block diagram of the third device provided in the embodiment of the present application. Detailed implementation manners

[0078] The technical solutions in the embodiments of the present application will be clearly and elaborately described below in conjunction with the accompanying drawings. Among them, in the description of the embodiments of the present application, unless otherwise specified, " / " means "or". For example, A / B may represent A or B; "and / or" in the text is only an association relationship describing associated objects, indicating that there can be three relationships. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone.

[0079] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as implying or suggesting relative importance or implicitly indicating the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present application, unless otherwise specified, the meaning of "a plurality" is two or more.

[0080] Referring to "embodiments" in the present application means that the specific features, structures, or characteristics described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described in the present application may be combined with other embodiments.

[0081] The term "user interface (UI)" in the following embodiments of the present application is a media interface for interaction and information exchange between an application program or an operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is source code written in specific computer languages such as Java and Extensible Markup Language (XML). The interface source code is parsed and rendered on an electronic device and finally presented as content recognizable by the user. The common manifestation form of the user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations presented in a graphical manner. It can be visible interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and Widgets displayed on the display screen of an electronic device.

[0082] The present application relates to the following terms:

[0083] Shared service

[0084] Shared service refers to the ability provided by an electronic device to share resources such as data, screen, and other software and hardware capabilities. Enabling the shared service involves two devices, provided that a connection is established. After the connection is established, the two devices can enable the shared service based on the connection.

[0085] Shared services can include the following categories: keyboard and mouse sharing, screen sharing, remote control, and cross-device calls, etc. The following elaborates on these shared services.

[0086] Keyboard and mouse sharing means that a device provides the keyboard input ability and mouse input ability to other connected devices. Keyboard and mouse sharing is also known as the keyboard and mouse sharing service. For the first device equipped with input devices, the first device can provide the function of sharing its input devices for one or more other devices (such as the second device). The input devices include a mouse and a keyboard (physical keyboard and / or virtual keyboard). For example, when the first device is a personal computer (PC) and the second device is a mobile phone, the keyboard and mouse sharing service provided by the PC supports the mobile phone to share its keyboard and mouse, and the operations input to the keyboard and mouse of the PC can be used to control the mobile phone.

[0087] Screen sharing means that the user interface of the first device is projected onto the screen of the second device for display. Optionally, screen sharing can also allow users to operate the user interface of the first device on the second device. Optionally, screen sharing can also support performing specific operations on the second device, such as dragging files from the user interface of the second device to the user interface of the first device to transfer the files in the second device to the first device, realizing cross-device operations and cross-device file transfer between the first device and the second device, etc.

[0088] Remote control means that for the first device and the second device located at different network addresses, especially in different geographical locations, the first device can share the input devices of the second device. For example, if the first device is in Guangdong Province and the second device is in Shandong Province, and the first device and the second device are connected to different network addresses on the Internet, the first device can share the input devices of the second device, such as input devices like a mouse and a keyboard.

[0089] File access means that the first device can view, create, edit, and save the documents of the second device, and perform the above operations on the documents of the second device through remote control. For example, the user creates a document on the second device through touch operations on the first device.

[0090] Cross-device invocation means that when a user operates an application on a first device, the interface of a second device can prompt the user to operate on the application running on the first device on the second device, so as to transfer to the second device for continuous operation, such as watching videos, editing documents, etc. For example, when a video application is running on the first device and the user is watching a video on the first device, when the second device is close to the first device, a prompt message is displayed on the second device. The user clicks on the prompt message on the second device. In response to the user's click operation, the second device opens the video application and displays the video content that the user is watching, so as to transfer to the second device to continue watching, etc.

[0091] Trust ring

[0092] A trust ring can be regarded as a group of devices, which may include one or more devices. A device can join the trust ring. The conditions for a device to join the trust ring may include the following two: 1. The device and the devices in the trust ring log in to the same user account. 2. The device is detected to be online by the devices in the trust ring. The way for a device to be detected to be online can be detected through a short-range connection method or through a server. For specific reference, please refer to the introduction of the subsequent embodiments. Being online can mean being detected or sensed by other devices.

[0093] Starting a sharing service between two electronic devices is a commonly used function of users. An electronic device usually supports multiple sharing services, and users can select the sharing services they want as needed. Each sharing service has a separate startup entry, and users can start the corresponding sharing service through different entries provided by the electronic device. Such a method is relatively cumbersome for users. Users need to remember different entries, start the sharing service through different entries, and subsequent operations such as closing the sharing service and switching the sharing service also need to enter the corresponding entry to operate.

[0094] In the method provided in this application, an electronic device can provide a unified startup entry for multiple sharing services. Users can conveniently select a sharing service through this entry and start the sharing service between two devices.

[0095] First, the user interface provided in this application is introduced.

[0096] Figure 1 An exemplary set of user interfaces displayed by the electronic device 300 is shown.

[0097] Figure 1 (a) shows the main interface of the electronic device 300, which contains an icon of the settings application. The electronic device 300 can receive a user operation (such as a click operation, a touch operation, a drag operation) on the icon of the settings application. In response to this user operation, Figure 1 (b) is displayed. Figure 1(b) shows an intelligent interconnection column. The electronic device 300 can receive a user operation acting on the intelligent interconnection column and, in response to the user operation, display Figure 1 (c).

[0098] Such as Figure 1 As shown in (c), the electronic device 300 displays: icons of devices joined to the trust ring, and an icon 104 of the user account. Among them, the icons of devices joined to the trust ring may include: 1. Icons of multiple electronic devices joined to the trust ring through near-field communication technology, such as the icon 103 of the electronic device 100, the icon 102 of the electronic device 200, and the icon 101 of the electronic device 300. 2. An icon 107 of a laptop computer joined to the trust ring through a cloud server. The electronic device 300 may be, for example, a mobile phone, such as Figure 1 the mobile phone shown in Figure 1 ; the electronic device 200 may be, for example, a tablet computer, such as Figure 1 the Pad V8 shown in

[0099] When the electronic device 300 receives a user operation acting on the icon 103, in response to the user operation, it displays Figure 1 (d).

[0100] Such as Figure 1 As shown in (d), the electronic device 300 displays icons of various shared services supported by the electronic device 100 corresponding to the icon 103, such as a screen sharing icon 1031, a keyboard and mouse sharing icon 1032, a remote control icon 1033, a file access icon 1034, and a cross-device call icon 1035. The five icons correspond to the following shared services: screen sharing, keyboard and mouse sharing, remote control, file access, and cross-device call. For a specific introduction to the above shared services, reference can be made to the definitions of the foregoing terms, which will not be elaborated here.

[0101] In some embodiments, Figure 1 in (c) and (d), the icon 101 of the electronic device 300 is displayed in a dark color, indicating that the icon 101 is the icon of the local device. In other embodiments, Figure 1 in (c) and (d), the icon 101 of the electronic device 300 is displayed in a light color. The present application does not limit the specific light or dark color of the device icon.

[0102] In some embodiments, when the electronic device 300 enters Figure 1Before the interface shown in (c), the electronic device 300 turns on communication modules such as wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), and near field communication (NFC) to obtain devices that can be detected within the communication range.

[0103] In some embodiments, after the electronic device 300 enters Figure 1 the interface shown in (c), the display interface of the electronic device 300 displays a prompt message for prompting the user of the operations that can be input. For example Figure 1 the prompt text in (c) and Figure 1 the prompt text in (d): "Click on the device ball and select the desired service to complete the transfer", and Figure 1 the prompt text shown in (d): "Click / drag the service to complete the transfer".

[0104] In some embodiments, when the electronic device 300 receives a click on the icon 107 of the laptop computer that joins the trust ring through the cloud server, in response to this operation, it can display the icons of various shared services supported by the laptop computer. Among them, the electronic device 100 indicated by the icon 103 and the laptop computer indicated by the icon 107 can be the same device or two different devices of the same model, and this application does not limit this.

[0105] Figure 2 Shows a set of user interfaces displayed by the electronic device 300 when it triggers itself and the electronic device 100 to start a shared service.

[0106] Refer to Figure 2 of (a), Figure 2 of (a) shows the interface of the electronic device 300 receiving a user operation acting on the keyboard and mouse sharing icon 1032. Figure 2 of (a) can be the interface displayed after the electronic device 300 receives a user operation acting on Figure 1 the icon 103 in (c) of, and reference can be made to Figure 1 of (d).

[0107] When the electronic device 300 receives a user operation acting on the keyboard and mouse sharing icon 1032, and this user operation drags and moves the keyboard and mouse sharing icon 1032 close to the icon 101, it displays Figure 2 of (b).

[0108] Such as Figure 2As shown in (b) of [Figure number], when the electronic device 300 receives this user operation, during the dragging process of the keyboard and mouse sharing icon 1032, the keyboard and mouse sharing icon 1032 is updated to the bar-shaped keyboard and mouse sharing icon 10321. After the user drags the bar-shaped keyboard and mouse sharing icon 10321 to the icon 101, the bar-shaped keyboard and mouse sharing icon 10321 is released. In response to the operation of releasing the bar-shaped keyboard and mouse sharing icon 10321, the electronic device 300 sends a message to start keyboard and mouse sharing to the electronic device 100, and updates the bar-shaped keyboard and mouse sharing icon 10321 to the spherical keyboard and mouse sharing icon 10322 for display Figure 2 as shown in (c) of [Figure number].

[0109] As Figure 2 shown in (c) of [Figure number], the electronic device 300 displays: 1. Prompt text such as "Transferring the 'Keyboard and Mouse Sharing' service", 2. The spherical keyboard and mouse sharing icon 10322 at the upper right corner of the icon 101. The spherical keyboard and mouse sharing icon 10322 is displayed in a loading state, and this loading state can be displayed as two dark circles with periodically changing colors and sizes. The electronic device 300 sends a message to start keyboard and mouse sharing to the electronic device 100 and waits for the return message from the electronic device 100. After the return message from the electronic device 100 indicates that the keyboard and mouse sharing has been successfully started, the electronic device 300 displays Figure 2 as shown in (d) of [Figure number].

[0110] As Figure 2 shown in (d) of [Figure number], the electronic device 300 and the electronic device 100 have successfully started keyboard and mouse sharing. The electronic device 300 displays the prompt message 105, and the spherical keyboard and mouse sharing icon 10322 is displayed in a completed state. The completed state of the spherical keyboard and mouse sharing icon 10322 can refer to the symbol of keyboard and mouse sharing, and this symbol is a pattern where two rectangular frames overlap diagonally.

[0111] In some embodiments, the electronic device 300 can also receive the operation of dragging Figure 2 any one of the screen sharing icon 1031, the remote control icon 1033, the file access icon 1034, or the cross-device call icon 1035 shown in (a) of [Figure number], and can start the corresponding sharing service in response to this operation.

[0112] In some embodiments, during the process of the user dragging the bar-shaped keyboard and mouse sharing icon 10321, the electronic device 300 may determine whether each electronic device in the trust ring supports keyboard and mouse sharing. If an electronic device supports keyboard and mouse sharing, the display mode of the icon of the electronic device is changed, for example, from a light display mode to a dark display mode. If an electronic device does not support keyboard and mouse sharing, the display mode of the icon of the electronic device is not changed. By means of different display modes, the user can know which devices support the sharing service and which devices do not support the sharing service when dragging the icon of the sharing service, so as to select the devices that support the sharing service to start the sharing service and avoid invalid operations.

[0113] In some embodiments, when the electronic device 300 fails to start keyboard and mouse sharing with the electronic device 100, the electronic device 300 displays a prompt message indicating the failure to start keyboard and mouse sharing. Among them, the reasons for the failure of the electronic device 300 to start keyboard and mouse sharing with the electronic device 100 include but are not limited to poor network conditions.

[0114] In some embodiments, the completion state of the spherical keyboard and mouse sharing icon 10322 is displayed in dark color, indicating that the keyboard and mouse sharing is successfully running in the electronic device 300.

[0115] In some embodiments, the spherical keyboard and mouse sharing icon 10322 touches the icon 101 of the electronic device 300 and is displayed in the upper right corner of the icon 101, indicating that the electronic device 300 is the main device for keyboard and mouse sharing. The main device for keyboard and mouse sharing refers to the device that receives the opening message and closing message of the keyboard and mouse sharing.

[0116] Figure 3A Shows a set of user interfaces displayed by the electronic device 300 when the electronic device 300 triggers the electronic device 200 and the electronic device 100 to start the sharing service.

[0117] Reference Figure 3A of (a), Figure 3A of (a) shows the interface of the electronic device 300 receiving a user operation acting on the keyboard and mouse sharing icon 1032. Figure 3A of (a) can be referred to Figure 1 of (d), the difference is that Figure 3A in (a) an icon 106 of a smart TV device is added.

[0118] The electronic device 300 receives a user operation acting on the keyboard and mouse sharing icon 1032. This user operation drags and brings the keyboard and mouse sharing icon 1032 close to the icon 102, and displays Figure 3A of (b).

[0119] Such as Figure 3AAs shown in (b) of [Figure 0], when the electronic device 300 receives this user operation, during the dragging process of the keyboard and mouse sharing icon 1032, the keyboard and mouse sharing icon 1032 is updated to the bar-shaped keyboard and mouse sharing icon 10321. After the user drags the bar-shaped keyboard and mouse sharing icon 10321 to after the icon 102, the bar-shaped keyboard and mouse sharing icon 10321 is released. In response to the operation of releasing the bar-shaped keyboard and mouse sharing icon 10321, the electronic device 300 sends a message to start keyboard and mouse sharing to the electronic device 300, and updates the bar-shaped keyboard and mouse sharing icon 10321 to the spherical keyboard and mouse sharing icon 10322 for display Figure 3A as shown in (c) of [Figure 0].

[0120] As Figure 3A shown in (c) of [Figure 0], the electronic device 300 displays: 1. Prompt text such as "The 'keyboard and mouse sharing' service is being transferred", and 2. The spherical keyboard and mouse sharing icon 10322 located in the upper left corner of the icon 102. The spherical keyboard and mouse sharing icon 10322 is displayed in a loading state, and this loading state can be displayed as two dark circles that change over time. The electronic device 300 sends a message to the electronic device 200 to start keyboard and mouse sharing between the electronic device 100 and the electronic device 200, and waits for the return message from the electronic device 200. After the return message from the electronic device 200 indicates that the keyboard and mouse sharing has been successfully started, the electronic device 300 displays Figure 3A as shown in (d) of [Figure 0].

[0121] As Figure 3A shown in (d) of [Figure 0], the electronic device 200 and the electronic device 100 have successfully started keyboard and mouse sharing, and the electronic device 300 displays the prompt message icon 105, and the spherical keyboard and mouse sharing icon 10322 is displayed in a completed state. The completed state of the spherical keyboard and mouse sharing icon 10322 can refer to the symbol of keyboard and mouse sharing.

[0122] In some embodiments, the electronic device 300 may also receive an operation of dragging any one of the screen sharing icon 1031, the remote control icon 1033, the file access icon 1034, or the cross-terminal call icon 1035 as shown in Figure 3A (a) of [Figure 0], and may start the corresponding sharing service in response to this operation.

[0123] In some embodiments, during the process of the user dragging the bar-shaped keyboard and mouse sharing icon 10321, the electronic device 300 may determine whether each electronic device in the trust ring supports keyboard and mouse sharing, and determine the display mode of its icon based on whether it supports keyboard and mouse sharing, such as displaying it as dark or light.

[0124] In some embodiments, when the electronic device 300 receives a message that the start of keyboard and mouse sharing between the electronic device 200 and the electronic device 100 fails, the electronic device 300 displays a prompt message indicating that the start of keyboard and mouse sharing has failed.

[0125] In some embodiments, the completion status of the spherical keyboard and mouse sharing icon 10322 is displayed in a dark color, indicating that the keyboard and mouse sharing is successfully running in the electronic device 200.

[0126] In some embodiments, the icon of the spherical keyboard and mouse sharing 10322 touches the icon 102 of the electronic device 200 and can be displayed in the upper right corner of the icon 102, indicating that the electronic device 200 is the main device for keyboard and mouse sharing.

[0127] Figure 3B A set of user interfaces displayed on the electronic device 300 when the electronic device 300 triggers the electronic device 100 and the smart TV device to start the sharing service is shown.

[0128] Reference Figure 3B to (a) of Figure 3A (a) of shows the interface of the electronic device 300 receiving a user operation on the keyboard and mouse sharing icon 1032. Figure 3B (a) of can be referred to Figure 3A to (a) of

[0129] The electronic device 300 receives a user operation on the keyboard and mouse sharing icon 1032. This user operation drags and brings the keyboard and mouse sharing icon 1032 close to the icon 106, and shows Figure 3B (b) of

[0130] As Figure 3B shown in (b) of, when the electronic device 300 receives this user operation, during the dragging process of the keyboard and mouse sharing icon 1032, the keyboard and mouse sharing icon 1032 is updated to the bar-shaped keyboard and mouse sharing icon 10321. After the user drags the bar-shaped keyboard and mouse sharing icon 10321 to behind the icon 106, the bar-shaped keyboard and mouse sharing icon 10321 is released. In response to the user operation of releasing the bar-shaped keyboard and mouse sharing icon 10321, the electronic device 300 stops displaying the bar-shaped keyboard and mouse sharing icon 10321 and shows Figure 3B (c) of

[0131] In some embodiments, when the electronic device 300 learns that the icon 106 of the smart TV device does not support keyboard and mouse sharing, after receiving the operation of releasing the bar-shaped keyboard and mouse sharing icon 10321, the bar-shaped keyboard and mouse sharing icon 10321 disappears in the interface of the electronic device 300. For the specific change form of the disappearance of the bar-shaped keyboard and mouse sharing icon 10321, it includes the form that after the electronic device 300 receives the user operation of releasing the bar-shaped keyboard and mouse sharing icon 10321, the bar-shaped keyboard and mouse sharing icon 10321 disappears in the area where the release operation is located, and also includes the form that the electronic device 300 shows that the bar-shaped keyboard and mouse sharing icon 10321 automatically moves to the icon 103 and disappears. The present application does not limit the specific change form of the disappearance of the bar-shaped keyboard and mouse sharing icon 10321.

[0132] In some embodiments, the electronic device 300 may also display an error prompt in Figure 3B (c) of, indicating that the smart TV device does not support keyboard and mouse sharing. For example, the text prompt "SmartTV does not support the 'keyboard and mouse sharing' function" is displayed in the electronic device 300. The specific content of the error prompt is not limited in this application.

[0133] Figure 4 Shows a set of user interfaces displayed by the electronic device 300 when the electronic device 300 triggers the closing of the sharing service between the electronic device 300 and the electronic device 100.

[0134] Referring to Figure 4 (a) of, Figure 4 (a) of may be the interface displayed by the electronic device 300 after the electronic device 100 and the electronic device 300 start keyboard and mouse sharing. Among them, when the electronic device 300 and the electronic device 100 start keyboard and mouse sharing, the spherical keyboard and mouse sharing icon 10322 displayed in the electronic device 300 is in a completed state, and the prompt text shows "Using the 'keyboard and mouse sharing' service". Figure 4 (a) of may refer to Figure 2 (d) of, which will not be elaborated here for the time being.

[0135] The electronic device 300 receives a user operation acting on the spherical keyboard and mouse sharing icon 10322. This user operation drags the spherical keyboard and mouse sharing icon 10322 and moves it away from the icon 101 of the electronic device 300, displaying Figure 4 (b) of.

[0136] As Figure 4 (b) of shows, when the electronic device 300 receives this user operation, the spherical keyboard and mouse sharing icon 10322 moves away from the icon 101 following the user's drag operation. After the user drags the spherical keyboard and mouse sharing icon 10322 away from the icon 101, the spherical keyboard and mouse sharing icon 10322 is released. In response to the user operation of releasing the spherical keyboard and mouse sharing icon 10322, the electronic device 300 sends a message to the electronic device 100 to close the keyboard and mouse sharing, and displays Figure 4 (c) of.

[0137] As Figure 4 (c) of shows, in response to this user operation, the displayed spherical keyboard and mouse sharing icon 10322 of the electronic device 300 gradually deepens in transparency over time and automatically moves into the icon 103. When the transparency of the spherical keyboard and mouse sharing icon 10322 increases to the maximum value, the spherical keyboard and mouse sharing icon 10322 disappears. After the electronic device 300 and the electronic device 100 close the keyboard and mouse sharing, after a period of time, the electronic device 300 stops displaying the spherical keyboard and mouse sharing icon 10322 and displays Figure 4 (d) of.Figure 4 (d) of which can be referred to Figure 1 (c) of which.

[0138] In some embodiments, after the spherical keyboard and mouse sharing service icon 10322 is separated from the icon 101 of the electronic device 300, the spherical keyboard and mouse sharing service icon 10322 is displayed in a light color.

[0139] In some embodiments, after the spherical keyboard and mouse sharing service icon 10322 is separated from the icon 101 of the electronic device 300, the spherical keyboard and mouse sharing service icon 10322 remains darkly displayed to prompt the user that the keyboard and mouse sharing is in the on state at this time. For the specific display form of the spherical keyboard and mouse sharing icon 10322, this application does not limit it.

[0140] In some embodiments, in response to a user operation that releases the spherical keyboard and mouse sharing icon 10322, the spherical keyboard and mouse sharing service icon 10322 directly disappears in the electronic device 300 without going through Figure 4 the stage shown in (c) of which. For the specific representation of the spherical keyboard and mouse sharing service icon 10322, this application does not limit it.

[0141] In some embodiments, when the electronic device 300 ends the keyboard and mouse sharing with the electronic device 100, a prompt message indicating that the keyboard and mouse sharing is successfully closed is displayed in the electronic device 300. For example, a text prompt such as "The 'keyboard and mouse sharing' ends the transfer" is displayed in the electronic device 300. For the specific content and form of the prompt message, this application does not limit it.

[0142] Figure 5 Shows a set of user interfaces displayed by the electronic device 300 when switching the sharing service between devices.

[0143] Refer to Figure 5 (a) of which, Figure 5 (a) of which can be the interface displayed by the electronic device 300 after the electronic device 100 and the electronic device 300 start the keyboard and mouse sharing. Among them, when the electronic device 300 and the electronic device 100 start the keyboard and mouse sharing, the spherical keyboard and mouse sharing icon 10322 displayed in the electronic device 300 is in the completed state, and the prompt text shows "Using the 'keyboard and mouse sharing' service". Figure 5 (a) of which can be referred to Figure 4 (a) of which.

[0144] When the electronic device 300 receives a user operation acting on the spherical keyboard and mouse sharing icon 10322, the user operation drags the spherical keyboard and mouse sharing icon 10322 and moves it closer to the icon 102 of the electronic device 200, and the display shows Figure 5 (b) of which.

[0145] As shown in Figure 5 In (b) of Figure 5 , the electronic device 300 receives this user operation, and the spherical keyboard and mouse sharing icon 10322 leaves the icon 101 following the user's dragging operation. The electronic device 300 may receive the operation that the user drags the spherical keyboard and mouse sharing icon 10322 onto the icon 102 and releases it. In response to the user operation of releasing the spherical keyboard and mouse sharing icon 10322, the electronic device 300 closes the keyboard and mouse sharing with the electronic device 100, and sends a message to start the keyboard and mouse sharing to the electronic device 200. The electronic device 300 touches the spherical keyboard and mouse sharing icon 10322 with the icon 102 of the electronic device 200, and updates the state of the spherical keyboard and mouse sharing icon 10322 to a loading state, which can be displayed as two dark circles changing with time, as shown in Figure 5 (c) of Figure 5 .

[0146] As shown in Figure 5 (c) of Figure 5 , the electronic device 300 displays the spherical keyboard and mouse sharing icon 10322 at the upper left corner of the icon 102. The spherical keyboard and mouse sharing icon 10322 is displayed in a loading state. After the electronic device 300 sends a message to start the keyboard and mouse sharing to the electronic device 200, it waits for the return message from the electronic device 200. When the return message from the electronic device 200 indicates that the keyboard and mouse sharing is successfully started, as shown in Figure 5 (d) of Figure 5 .

[0147] As shown in Figure 5 (d) of Figure 5 , the electronic device 300 closes the keyboard and mouse sharing with the electronic device 100, the electronic device 200 starts the keyboard and mouse sharing with the electronic device 100, and the keyboard and mouse sharing between the electronic device 300 and the electronic device 100 is switched to the keyboard and mouse sharing between the electronic device 200 and the electronic device 100. The electronic device 300 displays the prompt message 105, and the spherical keyboard and mouse sharing icon 10322 is displayed in a completed state. The completed state of the spherical keyboard and mouse sharing icon 10322 may refer to the symbol of the keyboard and mouse sharing.

[0148] In some embodiments, after the electronic device 300 triggers itself and the electronic device 100 to start the sharing service as shown in Figure 2 , the electronic device 300 can execute the method for switching the sharing service between devices as shown in Figure 5 .

[0149] Figure 6 Exemplarily shows the structure of the communication system 10 provided by the present application.

[0150] Referring to Figure 6 , the communication system 10 may include: a plurality of electronic devices, an account management server 400, and a data synchronization server 500.

[0151] Among them, multiple electronic devices may include any one or more of the following: electronic device 100, electronic device 200, electronic device 300, and electronic device 600. Each electronic device may be of the same type or different types. Each electronic device may be provided by the same device manufacturer.

[0152] Each electronic device can support a sharing service, and the definition of the sharing service can refer to the relevant description above.

[0153] The account management server 400 is used to provide a login service for each electronic device. When an electronic device sends a login request to the account management server 400 using an account and password, the account management server 400 determines whether the account and password match. If they match, the account management server 400 can approve the login request of the electronic device and allow the electronic device to log in to the account management server 400. In some embodiments, the account management server 400 can also send a token to the successfully logged-in electronic device, send the same token to each device logged in with the same account, and send different tokens to each device logged in with different accounts. That is, electronic devices with the same account can obtain the same token after logging in.

[0154] Each electronic device can join a trust ring. The trust ring can be regarded as a device group, which may include one or more devices. For example, the electronic device 300 can learn that other devices (such as the electronic device 100) have joined the trust ring in the following two ways:

[0155] 1. The electronic device 300 logs in to the account management server 400 using a first account and learns that there is another electronic device 100 nearby that also logs in to the account management server 400 using the first account. Specifically, after the electronic device 300 logs in to the account management server 400, it can receive the token issued by the account management server 400; then, the electronic device 300 can use short-range communication technology to send a broadcast message carrying the token outward. After receiving the broadcast message, other nearby devices (such as the electronic device 100) can compare it with their own token. If they are the same, it means that other devices are currently also logged in to the account management server 400 using the first account; after other devices compare the tokens and they are the same, they can return a confirmation message to the electronic device 300. In this way, the electronic device 300 can detect that other devices are online, and the electronic device 300 and other devices join the same trust ring. This method can also be called joining the trust ring in the short range.

[0156] 2. The electronic device 300 logs in to the account management server 400 using the first account, and other devices (such as the electronic device 100) also log in to the account management server 400 using the first account. The data synchronization server 500 can obtain information about each device logged in with the same account (such as device name, device icon, etc.) from the account management server 400, and distribute the information about each device logged in with the same account to these devices. In this way, each device logged in with the same account can perceive each other and thus joins the same trust ring. This method can also be referred to as cloud joining the trust ring.

[0157] After each device in this application joins the trust ring, the method provided in this application can be used to conveniently establish a connection and start a sharing service between any two devices. The way to start the sharing service can refer to the relevant introduction in the subsequent method embodiments. For example, the electronic device 300 can trigger itself to establish a connection and start a sharing service with other devices (such as the electronic device 100), and can also trigger two other devices (such as the electronic device 100 and the electronic device 200) to establish a connection and start a sharing service. The way to establish a connection between two devices can be based on short-range communication technology or long-range communication technology, which is not limited here.

[0158] Not limited to this, after a connection is established and a sharing service is started between any two devices, the sharing service can also be switched to other devices, or the sharing service can also be closed. For specific details, please refer to the introduction in the subsequent method embodiments.

[0159] The data synchronization server 500 can be used to manage the information of each device within the trust ring. If each device joins the trust ring using the above first method, each device also needs to report its own information and the information of other detected devices to the data synchronization server 500, so that the data synchronization server 500 can know which devices have joined the trust ring. If each device joins the trust ring using the above second method, the data synchronization server 500 can record the information of each device that has joined the trust ring by itself.

[0160] The data synchronization server 500 can also be used to manage the connection status of each device within the trust ring and the status of the sharing service enabled between devices. Specifically, if there is a device in the communication system 10 that has established a connection or started a sharing service, the data synchronization server 500 can record the connection status of each device and the status of the sharing service enabled. This information can be reported by each device or obtained by the data synchronization server 500 itself.

[0161] In some implementations, each device can also be used to manage the information of each device in the trust ring, manage the connection status of each device in the trust ring, and the status of the shared service between devices, and can display a user interface based on this information to let the user know the above information. The user interface displayed by the electronic device can refer to the various UI examples shown in the above examples.

[0162] The account management server 400 and the data synchronization server 500 may be provided by manufacturers of various devices.

[0163] In some implementations, the account management server 400 and the data synchronization server 500 may be combined into one server, or may be divided into more servers, which is not limited here.

[0164] Figure 6 The communication system shown is only an example and does not constitute a limitation to the present application. Figure 6 More or fewer devices may also be included. For example, Figure 6 It may also include intermediate devices such as routers and base stations that provide connections between devices and servers. For another example, the communication system 10 may also only include the electronic device 300 and the electronic device 100 .

[0165] based on Figure 6 The communication system 10 described above introduces a method for establishing a connection between multiple devices provided by the present application.

[0166] Figure 7A The flow of the method for establishing a connection between multiple devices is exemplified.

[0167] like Figure 7A As shown, the method may specifically include the following steps:

[0168] Phase 1 (S701-S703): The third device displays the shared services supported by the device

[0169] S701. Multiple devices log in to the same account.

[0170] Multiple devices can use the same user account to initiate a login request to the account management server 400 , and after the account management server 400 agrees to the login request, all devices can log in to the account management server 400 . The multiple devices may include any multiple electronic devices in the communication system 10 .

[0171] S702: The third device detects other devices that log in to the same account.

[0172] The third device can be any device in the communication system 10. For example, it can be the electronic device 300. The third device can detect other devices based on the short-range communication technology or based on the data synchronization server 500. For specific details, please refer to the detailed description of the communication system 10 above.

[0173] Through S701 - S702, the third device and the other devices it detects meet the conditions for joining the trust ring, and it can be considered that these devices have joined the trust ring.

[0174] S703. The third device displays the icons of the first device, the second device, and the third device.

[0175] In some embodiments, the third device can also display the icon of the fourth device.

[0176] The first device, the second device, the third device, and the fourth device are all devices that have joined the trust ring through the above S701 step - S702 step.

[0177] In some embodiments, the first device, the second device, and the third device are different devices. For example, the first device, the second device, and the third device are respectively the electronic device 100, the electronic device 200, and the electronic device 300 in the communication system 10.

[0178] In some embodiments, the first device and the third device are the same device. For example, the first device and the third device are the electronic device 300 in the communication system 10, and the second device is the electronic device 200.

[0179] In some embodiments, the second device and the third device are the same device. For example, the second device and the third device are the electronic device 300 in the communication system 10, and the first device is the electronic device 100.

[0180] The third device can display a user interface, in which the icons of the first device, the second device, and the third device are displayed. An example of this user interface can be referred to Figure 1 in (c), and the entry method can be referred to the introduction of the UI embodiments in Figure 1 (a) and Figure 1 the (b) above.

[0181] Phase 2 (S704 - S711): The third device enables the sharing service between two devices

[0182] S704. The third device receives a first operation on the icon of the first device.

[0183] The first operation can be a click operation, a touch operation, or other types of touch operations.

[0184] S705. In response to the first operation, the third device displays icons of various shared services supported by the first device.

[0185] Specifically, the third device may display icons of various shared services it supports above the icon of the first device. Refer to Figure 1 (c) of [reference], taking the electronic device 300 as the third device and the electronic device 100 as the first device as an example, the icons of various shared services supported by the first device displayed by the third device can be referred to Figure 1 (d) of [reference], including a screen sharing icon 1031, a keyboard and mouse sharing icon 1032, a remote control icon 1033, a file access icon 1034, and a cross - device call icon 1035.

[0186] Among them, the shared services supported by the first device can be obtained by the third device querying the first device. The query method can be based on near - field communication technology or remote communication technology based on the data synchronization server 500.

[0187] The icons of multiple shared services displayed by the third device include an icon indicating the first shared service, and this icon indicating the first shared service can be referred to as the first element. The first shared service can be any one of the following: screen sharing, keyboard and mouse sharing, remote control, file access, and cross - device call. Refer to Figure 2 and Figure 3A , examples of the first element may include the keyboard and mouse sharing icon 1032 and the bar - shaped keyboard and mouse sharing icon 10321, and an example of the first shared service may include keyboard and mouse sharing.

[0188] S706. The third device receives a second operation of dragging the first element to the icon of the second device and releasing it.

[0189] Taking the electronic device 300 as the second device and the third device, the electronic device 100 as the first device, and the keyboard and mouse sharing icon 1032 and the bar - shaped keyboard and mouse sharing icon 10321 as the first element as an example, this second operation can be referred to Figure 2 from (a) of [reference] to Figure 2 the operation of dragging the keyboard and mouse sharing icon 1032 out of the display area of the icon of the first shared service and dragging it to the icon 101 of the second device in (b) of [reference]. Among them, after the icon of keyboard and mouse sharing is dragged out of the display area of the icon of the first shared service, the keyboard and mouse sharing icon 1032 is updated to the bar - shaped keyboard and mouse sharing icon 10321, that is, during the dragging process, the first element is updated from the first form to the second form.

[0190] Taking the electronic device 300 as the third device, the electronic device 100 as the first device, the electronic device 200 as the second device, and the keyboard and mouse sharing icon 1032 and the bar - shaped keyboard and mouse sharing icon 10321 as the first element as an example, this second operation can be referred toFigure 3A from (a) of Figure 3A the operation of dragging the shared icon 1032 away from the display area of the icon of the first shared service in (b) of

[0191] In some embodiments, the third device may determine whether each electronic device in the trust ring supports keyboard and mouse sharing during the process of dragging the first element. If keyboard and mouse sharing is supported, the icon of the electronic device is displayed in dark color; if keyboard and mouse sharing is not supported, the icon of the electronic device is displayed in light color.

[0192] After receiving the second operation, the third device determines whether the second device supports the first shared service. If it supports, the subsequent steps are continued; if it does not support, no response may be output, or the user may also be prompted that the second device does not support the first shared service.

[0193] S707. In response to the second operation, the third device displays a second element, and the second element touches the icon of the second device.

[0194] The second element may cover part of the icon of the second device or touch the edge of the icon of the second device. Refer to Figure 2 In (c) of

[0195] In some embodiments, refer to Figure 3A In (c) of

[0196] In some embodiments, after receiving the second operation, the third device may display the second element in a loading state, indicating that the second device and the first device are starting the shared service. The loading state may be, for example, two dark circles with periodically changing display colors and sizes. Refer to Figure 2 In (c) of Figure 3AIn (c), the spherical keyboard and mouse sharing icon 10322 is displayed in a loading state and touches the edge of the icon 102 of the second device.

[0197] S708. The third device sends a first message to the second device.

[0198] The third device sends a first message to the second device. The first message may carry the following information: the identifier of the first device and the identifier of the first sharing service. The first message is used to instruct the second device and the first device to establish a connection and start the first sharing service based on this connection. The connection established between the second device and the first device may be referred to as the first connection.

[0199] The first message may be sent based on a short-range communication technology or based on the data synchronization server 500 and a remote communication technology.

[0200] S709. The second device and the first device establish a first connection.

[0201] After receiving the first message, the second device, in response to the first message, establishes a first connection with the first device. The first connection includes, but is not limited to, a Wi-Fi connection, a Bluetooth connection, and an NFC connection. This application does not limit this.

[0202] S710. The second device and the first device start the first sharing service based on the first connection.

[0203] The first device and the second device start the first sharing service based on the established first connection. The source side of the first sharing service may be the first device, and the sink side may be the second device. That is to say, the first device is the initiator of the first sharing service.

[0204] S711. The second device returns the result of starting the first sharing service to the third device.

[0205] The result of starting the first sharing service between the second device and the first device may be successful or failed. There may be various reasons for failure, such as poor network conditions, etc.

[0206] According to the result of starting the first sharing service, the third device may update the display state of the second element. If the start is successful, the second element may be updated from the loading state to the completed state. For an example of the completed state, reference can be made to Figure 2 in (d) and Figure 3A the state shown by the spherical keyboard and mouse sharing icon 10322 in (d). If the start fails, the third device may stop displaying the second element. For the interface displayed by the third device when the keyboard and mouse sharing fails to start, reference can be made to Figure 3B the interface displayed by the third device in (d). The completed state of the second element may refer to the second element displaying the symbol of keyboard and mouse sharing, and this symbol is a pattern of two rectangular frames overlapping diagonally.

[0207] If the activation is successful, a prompt message indicating the activation of the first sharing service can also be displayed on the third device. For example, a text prompt message such as "The transfer of 'keyboard and mouse sharing' was successful". The specific form of the prompt message in this application is not limited.

[0208] Based on the technical solutions shown in steps S704 - S711 of this application, two electronic devices can use an entry provided by a third device to activate the sharing service between the two electronic devices with a single operation. The activation method of this sharing service is relatively convenient and fast.

[0209] If the activation result in step S710 is successful, subsequent steps S712 - S720 can be executed, or steps S721 - S726 can be executed.

[0210] Phase 3 (S712 - S720): The third device switches the device of the sharing service

[0211] S712. The third device receives a third operation of dragging the second element from the icon of the second device to the icon of the fourth device and releasing it.

[0212] Taking the electronic device 300 as the second device and the third device, the electronic device 100 as the first device, the electronic device 200 as the fourth device, and the spherical keyboard and mouse sharing icon 10322 as the second element as an example, this third operation can be referred to Figure 5 from (a) to Figure 5 the operation of dragging the spherical keyboard and mouse sharing icon 10322 away from the icon 101 of the first device and dragging it to the icon 102 of the fourth device in (b).

[0213] In some embodiments, the third device can determine whether each device in the trust ring supports keyboard and mouse sharing during the process of dragging the second element. If it supports keyboard and mouse sharing, the icon of the electronic device is displayed in dark color. If it does not support keyboard and mouse sharing, the icon of the electronic device is displayed in light color.

[0214] After receiving the third operation, the third device determines whether the fourth device supports the first sharing service. If it supports, the subsequent steps are continued; if it does not support, no response can be output, or the user can also be prompted that the fourth device does not support the first sharing service.

[0215] S713. In response to the third operation, the third device displays the second element, and the second element touches the icon of the fourth device.

[0216] The third device displays the second element, and the second element touches the icon of the fourth device. The second element can cover part of the icon of the fourth device or touch the edge of the icon 102 of the fourth device. Refer to Figure 5In (c) thereof, the third device displays the spherical keyboard and mouse sharing icon 10322, and the spherical keyboard and mouse sharing icon 10322 touches the edge of the icon 102 of the fourth device.

[0217] In some embodiments, after the third device receives the second operation, it can update the second element from the completed state to the loading state. Among them, the second element leaving the icon 101 of the second device indicates that the second device and the first device close the sharing service. The second element being updated from the completed state to the loading state indicates that the fourth device and the first device are opening the sharing service. The loading state can be, for example, two dark circles with periodically changing display colors and sizes. Refer to Figure 5 In (c) thereof, the spherical keyboard and mouse sharing icon 10322 is displayed in the loading state and touches the edge of the icon 102 of the fourth device.

[0218] S714. The third device sends a third message to the second device.

[0219] The third device sends a third message to the second device. The third message can carry the following information: the identifier of the first device, the identifier of the first sharing service. The third message is used to instruct the second device and the first device to disconnect the first connection and close the first sharing service.

[0220] The third message can be sent based on the short-range communication technology or based on the data synchronization server 500 and the remote communication technology.

[0221] S715. In response to the first message, the second device disconnects the first connection between the second device and the first device.

[0222] S716. The second device and the first device close the first sharing service.

[0223] S714 - S716 are optional steps. In some embodiments, the second device and the first device can also maintain the first connection and keep the first sharing service open.

[0224] S717. The third device sends a second message to the fourth device.

[0225] The third device sends a second message to the fourth device. The second message can carry the following information: the identifier of the first device, the identifier of the second device, the identifier of the first sharing service. The second message is used to instruct the fourth device and the first device to establish a second connection and open the first sharing service based on the second connection. Among them, for the device that switches the sharing service, it is necessary to record the device information of the device to which the sharing service was connected before switching the sharing service, for the subsequent analysis and processing of the sharing service. The identifier of the second device is the device information of the device before switching the sharing service in this embodiment.

[0226] The second message can be sent based on near-field communication technology or based on the data synchronization server 500 and remote communication technology.

[0227] In some embodiments, step S717 is a step executed after receiving a third operation, and step S717 can also be executed before step S714. That is, this application does not limit the order in which the third device sends the third message and the second message after responding to the third operation.

[0228] S718. The fourth device and the first device establish a second connection.

[0229] After receiving the second message, the fourth device responds to the second message and establishes a second connection with the first device. The second connection includes, but is not limited to, a Wi-Fi connection, a Bluetooth connection, and an NFC connection. This application does not limit this.

[0230] S719. The fourth device and the first device start a first sharing service based on the second connection.

[0231] S720. The fourth device returns the result of starting the first sharing service to the third device.

[0232] The result of starting the first sharing service between the fourth device and the first device can be successful or failed. There can be various reasons for failure, such as poor network conditions, etc.

[0233] According to the result of starting the first sharing service between the fourth device and the first device, the third device can update the display state of the second element. If the start is successful, the second element can be updated from the loading state to the completed state. For an example of the completed state, refer to Figure 5 the state shown by the spherical mouse and keyboard sharing icon 10322 in (d). If the start fails, the third device can stop displaying the second element.

[0234] If the start is successful, a prompt message indicating the start of the first sharing service can also be displayed on the third device, such as a text prompt message of "The'mouse and keyboard sharing' transfer is successful". This application does not limit the specific form of the prompt message.

[0235] Based on the technical solution shown in steps S712 - S720 of this application, two electronic devices can use an entry provided by the third device to switch the sharing service device with one operation, and conveniently and quickly switch the second device that has established a sharing service with the first device to the fourth device.

[0236] The third device and the fourth device can be the same device or different devices.

[0237] When the third device and the fourth device are the same device, the interaction steps between the third device and the fourth device: S717 and S720 should be understood as interactions between internal modules of the third device. For the specific interaction process, please refer to the subsequent Figure 9 .

[0238] Phase 4 (S721 - S726): The third device closes the shared service

[0239] S721. The third device receives the fourth operation of dragging the second element away from the icon of the second device and releasing it.

[0240] Taking the electronic device 300 as the third device and the second device, the electronic device 100 as the first device, and the spherical keyboard and mouse sharing icon 10322 as the second element as an example, this third operation can be referred to Figure 4 from (a) to Figure 4 the operation of dragging the spherical keyboard and mouse sharing icon 10322 away from the icon 101 of the second device and releasing the spherical keyboard and mouse sharing icon 10322 in (b).

[0241] S722. In response to the fourth operation, the third device displays the second element, and the second element touches the icon of the first device.

[0242] The second element can gradually increase the transparency of the second element over time. Among them, when the transparency of the second element increases to the maximum value, the second element disappears. The second element can cover part of the icon of the first device or touch the edge of the icon of the first device. Referring to Figure 4 (c), the third device displays the spherical keyboard and mouse sharing icon 10322, and the spherical keyboard and mouse sharing icon 10322 touches the icon 103 of the first device.

[0243] In some embodiments, after receiving the fourth operation, the third device can stop displaying the second element. Specifically, please refer to Figure 4 (d).

[0244] S723. The third device sends a fourth message to the second device.

[0245] The third device sends a fourth message to the second device. The fourth message can carry the following information: the identifier of the first device and the identifier of the first shared service. The fourth message is used to instruct the second device and the first device to disconnect the second connection and close the first shared service.

[0246] The fourth message can be sent based on the near - field communication technology or based on the data synchronization server 500 and the remote communication technology.

[0247] S724. In response to the fourth message, the second device disconnects the second connection with the first device.

[0248] S725, the second device and the first device close the first shared service.

[0249] S726, the second device returns the result of closing the first shared service to the third device.

[0250] According to the result of the second device and the first device closing the first shared service, the third device can update the display status of the second element. If the closing is successful, the display of the second element is stopped, refer to Figure 5 (d) of. If the closing fails, the third device can display a prompt message indicating that the first shared service fails to close, such as the text prompt message of "The 'Mouse and Keyboard Sharing' fails to close". The specific form of the prompt message in this application is not limited.

[0251] Based on the technical solution shown in steps S721 - S726 of this application, the electronic device can conveniently and quickly close the shared service device with one operation through the entry provided by the third device.

[0252] The third device and the second device can be the same device or different devices.

[0253] When the third device and the second device are the same device, the interaction steps between the third device and the second device: S708, S711, S714, S723 and S726 should be understood as the interaction between the internal modules of the third device. The specific interaction process can be referred to later Figure 9 .

[0254] In some embodiments, when the second device or the fourth device is an Internet of Things (IoT) device, it is necessary to send a message to the master device of the IoT device and let it forward the message to the IoT device. For example, when the second device and the first device establish a shared service, if the second device is an IoT device, S708, S711 and S714 should be understood as the third device sending a message to the master device of the second device, and then the master device of the second device forwards the message to the second device.

[0255] In some embodiments, some steps in the second stage can be replaced. For example, S708 can also be replaced by the third device sending a first message to the first device, and the first message includes the identifier of the second device and the identifier of the first shared service. The first message is used to trigger the first device and the second device to establish a first connection and open the first shared service based on the first connection. S711 can be replaced by the first device returning the result of opening the first shared service to the third device.

[0256] In some embodiments, some steps in Phase 3 can be replaced. For example, S714 can also be replaced with the third device sending a third message to the first device, where the third message includes the identifier of the second device and the identifier of the first shared service, and this first message is used to trigger the first device and the second device to disconnect the first connection and close the first shared service.

[0257] In some embodiments, S717 can also be replaced with the third device sending a second message to the first device, where the second message includes the identifier of the fourth device and the identifier of the first shared service, and this second message is used to trigger the first device and the fourth device to establish a second connection and start the first shared service based on the second connection. S720 can be replaced with the first device returning the result of starting the first shared service to the third device.

[0258] In some embodiments, some steps in Phase 4 can be replaced. For example, S723 can also be replaced with the third device sending a fourth message to the first device, where the fourth message includes the identifier of the second device and the identifier of the first shared service, and this first message is used to trigger the first device and the second device to disconnect the second connection and close the first shared service. S726 can be replaced with the first device returning the result of closing the first shared service to the third device.

[0259] Figure 7B Exemplarily shows the software structure of the third device and the data synchronization server.

[0260] The data synchronization server includes a device offline awareness service, a device message forwarding service, and a device data synchronization service.

[0261] Among them, the device offline awareness service is used to obtain the connection status of the device, the device message forwarding service is used to provide the service of receiving device data and forwarding the data to the target device, and the device data synchronization service is used to synchronize data such as the connection status between connected devices within the trust ring to the newly online device. The data synchronization server is used to save the information of the devices in the trust ring, including device identifiers, device connection relationships, etc. The data synchronization server is located in the cloud and can communicate with the accessed devices through wired connections, IP networks, etc. For example, when the fourth device joins the trust ring of the third device, the data synchronization service can enable the fourth device to obtain the devices connected within the trust ring and the connection relationships through the device data synchronization service. The third device can forward messages to the fourth device through the device message forwarding service, and the fourth device can obtain the device connection status within the trust ring of the third device through the device offline awareness service.

[0262] The third device includes a security authentication module, a trust ring module, a trust ring interaction center module, and a shared service management framework.

[0263] The security authentication module includes an identical account authentication module, which is used to perform a trust ring authentication on the electronic device. Specifically, for electronic devices logging in with the same user account, it is determined that the authentication conditions are met, while for electronic devices logging in with different accounts or not logging in, it is determined that the authentication conditions are not met. When the electronic device meets the authentication conditions and is sensed by a third device, it enters the trust ring. For example, if the account logged in by the fourth device is the same as that of the third device, the third device sends a broadcast carrying a token to the vicinity through a short-range communication technology. After receiving the broadcast, the fourth device compares the token in it with its own token. If they are found to be the same, it returns a confirmation message to the third device, and the third device adds the fourth device to the trust ring of the third device after receiving the confirmation message.

[0264] The trust ring module includes a fusion interconnection module and a shared service module. Among them, the fusion interconnection module is used to form a communication solution among groups of electronic devices logging in with the same account. The shared service module is used to provide different shared services, including keyboard and mouse sharing service, network sharing service, screen sharing service, other shared services, etc. Based on different shared services, different electronic device sharing effects can be achieved.

[0265] Among them, the fusion interconnection module includes a device management service, a data transmission service, an access networking service, and a unified interconnection framework. The device management service is used to record and provide information such as the running status among electronic devices within the trust ring, the information of electronic device support services, and the types of electronic devices. The data transmission service is used to provide the transmission ability of the device management service. The access networking service is used to record the authenticated electronic devices into the trust ring. The same interconnection framework is used to provide services for connecting different electronic devices within the trust ring.

[0266] After the electronic device enters the trust ring through the access networking service, it reports the device online to the trust ring interaction center module through the device management service.

[0267] The trust ring interaction center module is in the application layer and includes service interaction connections and device / service data sets. For the specific method processes related to the trust ring interaction center module in this application, reference can be made to the subsequent Figures 8A - 8D specific descriptions related to the trust ring interaction center module, which will not be elaborated here.

[0268] Among them, the service interaction module is used to obtain the operations on the third device and respond to the operations, and notify the display screen to display the operation results. The device / service data set is used to store the information of the electronic devices in the trust ring and the shared services supported by the electronic devices. For the specific method processes related to the service interaction connection module and the device / service data set in this application, reference can be made to the specific descriptions of steps S901 - S903 and steps S910 - S912 in the following text Figure 9 which will not be elaborated here.

[0269] The third device can detect the drag operation on the displayed shared service icon, obtain the information of the two electronic devices that need to enable the shared service function and the shared service to be enabled. Based on the obtained information of the two electronic devices and the shared service, the shared service in the shared service module is scheduled and connected through the shared service management framework.

[0270] The shared service management framework includes a service conflict scheduling module and a service connection management module. For the specific method flow involved in the shared service management framework in this application, reference can be made to the subsequent Figures 8A - 8D specific description related to the shared service management framework, which will not be elaborated here.

[0271] Among them, the service conflict scheduling module is used to detect whether both parties of the electronic devices requesting the shared service meet the connection requirements. If the connection requirements are met, the service conflict scheduling module sends a message allowing connection establishment to the service connection management module. If the connection requirements are not met, the service conflict scheduling module sends a message indicating that connection cannot be established to the service interaction module. The service connection management module is used to communicate with the shared service module, send connection requests and receive connection results. For the specific method flow involved in the service conflict scheduling module and the service connection management module in this application, reference can be made to the subsequent Figure 9 specific descriptions of steps S904 - S906, and steps S908 - S910, which will not be elaborated here.

[0272] The shared service module is used to establish a connection between the two electronic devices on both sides of the shared service and enable the shared service between the two electronic devices.

[0273] Based on Figure 7B the software architecture of the third device introduced above, the following further details the steps executed by the third device in Figures 8A - 9 the Figure 7A above.

[0274] Figure 8A Taking the interaction process of each module in the third device as an example, the first stage of the method embodiment is specifically introduced. Figure 7A above.

[0275] S801, the shared service module writes the profile basic information to the device management service.

[0276] Specifically, the profile basic information includes the types of shared services supported by the third device, and the types of shared services supported by different device types. For example, the shared services supported by a device of the mobile phone type include screen sharing, keyboard and mouse sharing, cross-device invocation, file access, and other shared service types. The shared services supported by a device of the laptop type include screen sharing, keyboard and mouse sharing, remote control, cross-device invocation, file access, and other shared service types.

[0277] Among them, in the process of the multi-device connection establishment method, step S801 is located before step S702 and after step S701. That is, after the third device logs in to the account and enters the third device trust ring, S801 is executed to obtain the information of each device within the trust ring and the information of the shared services supported by each device within the trust ring.

[0278] S802, the device management service sends a message indicating the first device going online and a message indicating the second device going online to the shared service management framework.

[0279] In some embodiments, the first device and the third device belong to the same trust ring. When the first device accesses the communication network and sends a notification message to the third device, the device management service module in the third device obtains the notification message and sends a message indicating the first device going online and a message indicating the second device going online to the shared service management module framework.

[0280] S803, the shared service management framework detects the type of the first device and the type of the second device based on the message indicating the first device going online and the message indicating the second device going online.

[0281] In some embodiments, the first device is a laptop and the second device is a tablet. When the first device goes online, the third device detects that the type of the first device is a laptop in the shared service management framework. When the second device goes online, the third device detects that the type of the second device is a tablet in the shared service management framework. For a specific description, reference can also be made to the relevant description in step S702, which will not be elaborated here.

[0282] S804, the shared service management framework obtains the information of the shared services supported by the first device and the information of the shared services supported by the second device from the device management service.

[0283] In some embodiments, the third device detects that the first device goes online and obtains the information of the shared services supported by the device of this type from the device management service module based on the type of the first device. For example, when the first device is a laptop, the third device obtains the information of the shared services supported by the device of this type from the device management service module based on the detected laptop type.

[0284] In the process of the multi-device connection establishment method, steps S802 - S804 represent the foregoing Figure 7A , the specific implementation of step S702 in the third device.

[0285] S805. The shared service management framework sends the information of the first device and the information of the shared services supported by the first device, the information of the second device and the information of the shared services supported by the second device to the trust ring interaction center module.

[0286] Specifically, the information of the first device includes the type of the first device, such as a laptop computer type. The information of the shared services supported by the first device includes the first shared services, such as keyboard and mouse sharing, screen sharing, remote control, file access, and cross-device call. The information of the second device includes the type of the second device, such as a tablet computer type. The information of the shared services supported by the second device also includes the first shared services, such as keyboard and mouse sharing, screen sharing, remote control, file access, and cross-device call.

[0287] In some embodiments, the shared service management framework also sends the information of the shared services supported by the third device to the trust ring interaction center module.

[0288] It should be noted that the foregoing S805 is a step executed after the third device detects the type of the device. That is to say, S805 can also be executed after S803 and before S804. The embodiments of the present application do not limit the execution order of this S805 step.

[0289] S806. The trust ring interaction center module notifies the display screen to display the icon of the first device, the icon of the second device, and the icon of the third device.

[0290] The trust ring interaction center module displays the information of the device and the supported shared services in the third device through the display module based on the obtained information of the device and the supported shared services. Refer to Figure 1 in (c), the icon 103 can be the icon of the first device, the icon 102 can be the icon of the second device, and the icon 101 can be the icon of the third device.

[0291] Among them, in the process of the multi-device connection establishment method, steps S805 - S806 represent the foregoing Figure 7A , the specific implementation of step S703 in the third device.

[0292] Figure 8B Taking the interaction process of each module in the third device as an example, the second stage of the method embodiment is specifically introduced. Figure 7A Method embodiment.

[0293] In Figure 8B , taking the third device and the second device as the same device as an example for illustration.

[0294] S807, the trust ring interaction center module obtains a notification event of a first operation.

[0295] The first operation may be a click operation, a touch operation, or other types of touch operations.

[0296] Among them, in the process of the multi-device connection establishment method, step S807 represents the specific implementation of the foregoing Figure 7A , step S704 in the third device.

[0297] S808, the trust ring interaction center module sends a message to the shared service management framework to query the shared services supported by the first device.

[0298] Specifically, the shared service management framework of the third device obtains information about the first device and information about the shared services supported by the first device. Among them, the shared services supported by the first device include keyboard and mouse sharing, screen sharing, remote control, file access, and cross-terminal invocation.

[0299] S809, the trust ring interaction center module, in response to the first operation, calls the display screen to display icons of the shared services supported by the first device.

[0300] Specifically, referring to Figure 1 the relevant description in (d), icons of the shared services supported by the first device are displayed on the display screen of the third device, including but not limited to the screen sharing icon 1031, the keyboard and mouse sharing icon 1032, the remote control icon 1033, the file access icon 1034, and the cross-terminal invocation icon 1035.

[0301] Among them, in the process of the multi-device connection establishment method, steps S808 - S809 represent the specific implementation of the foregoing Figure 7A , step S705 in the third device.

[0302] S810, the trust ring interaction center module receives a notification event of a second operation.

[0303] The second operation may be an operation of dragging a first element to an icon of a second device and releasing it.

[0304] Taking the electronic device 300 as the second device and the third device, the electronic device 100 as the first device, and the keyboard and mouse sharing icon 1032 and the bar-shaped keyboard and mouse sharing icon 10321 as the first element as an example, this second operation can be referred to Figure 2 in (a) to Figure 2The operation of dragging the keyboard and mouse sharing icon 1032 in (b) away from the display area of the icon of the first sharing service and dragging it to the icon 101 of the second device. After the keyboard and mouse sharing icon is dragged away from the display area of the icon of the first sharing service, the keyboard and mouse sharing icon 1032 is updated to the bar-shaped keyboard and mouse sharing icon 10321, that is, the first element is updated from the first form to the second form during the dragging process.

[0305] Reference Figure 2 Referring to (c), in response to the second operation, the third device displays the spherical keyboard and mouse sharing icon 10322, and the spherical keyboard and mouse sharing icon 10322 contacts the icon 103 of the second device, that is, in response to the above second operation, the third device displays the second element, and the second element contacts the icon of the second device.

[0306] Among them, in the process of the multi-device connection method, the S810 step represents the above-mentioned Figure 7A , the specific implementation of the S706 step - S706 step in the third device.

[0307] S811, the trust ring interaction center module detects whether the second device supports the first sharing service.

[0308] The trust ring interaction center module determines whether the second device supports the first sharing service. Specifically, the trust ring interaction center module obtains the sharing services supported by the second device and compares them with the first sharing service. If the second device does not support the first sharing service, an error prompt message is displayed on the display screen of the third device, and the first element disappears. If the second device supports the first sharing service, the subsequent S812 step - S817 steps are executed.

[0309] Among them, in the process of the multi-device connection method, the second device and the third device can be the same device. Taking the third device and the second device as the same device as an example, the third device will continue to execute the subsequent S812 step - S817 steps.

[0310] S812, the trust ring interaction center module sends a first message to the service sharing module.

[0311] Specifically, the first message includes the second device identifier, the first sharing service identifier, and the request for the first device and the second device to enable the first sharing service.

[0312] Among them, in the process of the multi-device connection method, the S812 step represents the above-mentioned Figure 7A , the specific implementation of the S708 step in the third device.

[0313] S813, the service sharing module enables the first sharing service.

[0314] After the sharing service module of the third device receives the first message, it establishes a first connection with the first device and enables a first sharing service based on the first connection. The first connection includes, but is not limited to, Wi-Fi connection, Bluetooth connection, and NFC connection, and the present application does not limit this.

[0315] Among them, in the process of the multi-device connection establishment method, step S813 represents the foregoing Figure 7A , the specific implementation of steps S709 - S710 in the third device.

[0316] S814, the sharing service module returns the result of enabling the first sharing service to the device management service.

[0317] S815, the device management service returns the result of enabling the first sharing service between the second device and the first device to the sharing service management framework.

[0318] The result of enabling the first sharing service between the second device and the first device specifically includes the information of enabling the first sharing service between the second device and the first device, and the information of establishing the first connection between the second device and the first device.

[0319] S816, the sharing service management framework returns the result of establishing the first connection between the second device and the first device to the trust ring interaction center module.

[0320] S817, the trust ring interaction center module calls the display screen to display the result of the second operation.

[0321] Specifically, referring to Figure 3A the relevant description in (d), using icon 103 as the icon of the first device, icon 102 as the icon of the second device, and the spherical keyboard and mouse sharing icon 10322 as the second element, the third device, based on the trust ring interaction center module, displays that after the first sharing service is enabled between the first device and the second device, the second element shows the completion state, and a prompt message indicating successful establishment of the service is displayed in the third device.

[0322] Among them, in the process of the multi-device connection establishment method, the steps shown in S814 - S817 represent the foregoing Figure 7A , the specific implementation of step S711 in the third device.

[0323] In some embodiments, if the second device and the third device are different devices, then Figure 8BIn the steps shown in S812 - S814, the trust ring interaction center module of the third device sends a first message to the second device. The second device responds to the first message, establishes a first connection with the first device, and enables a first shared service based on the first connection. After enabling the first shared service, the second device returns the result of enabling the first shared service to the third device. The third device receives the result of enabling the first shared service and executes the subsequent steps shown in S815 - S817.

[0324] Figure 8C Taking the interaction process of each module in the third device as an example, the third stage of the method embodiment is specifically introduced. Figure 7A of the method embodiment.

[0325] In Figure 8C , taking the third device and the second device as the same device, and the third device and the fourth device as different devices as an example for illustration.

[0326] S818, the trust ring interaction center module receives a notification event of a third operation.

[0327] The third operation can be dragging the second element icon to switch the device of the shared service connection.

[0328] Specifically, in the display interface of the third device, drag the spherical keyboard and mouse sharing icon 10322 in contact with the icon of the second device so that it contacts the icon of the fourth device. After the spherical keyboard and mouse sharing icon 10322 contacts the icon of the fourth device, it is displayed in a loading state. For specific reference, please refer to Figure 5 Figure (a) - Figure 5 Figure (c) of, and the relevant description will not be repeated here.

[0329] Among them, in the process of the multi - device connection establishment method, the fourth device and the third device can be the same device, and the S818 step is the specific implementation of the S712 step - S713 step in the third device.

[0330] S819, the trust ring interaction center module sends a third message to the shared service module.

[0331] Specifically, the third message includes the second device identifier, the first shared service identifier, and the request for the first device and the second device to close the first shared service.

[0332] Among them, in the process of the multi - device connection establishment method, the S819 step is the specific implementation of the S714 step in the third device.

[0333] S820, the shared service module of the third device closes the first shared service.

[0334] The sharing service module of the third device disconnects the first connection with the first device and closes the first sharing service in response to the third message.

[0335] Among them, in the process of the multi-device connection establishment method, step S820 is the specific implementation of steps S715 - S716 in the third device.

[0336] S821, the sharing service module returns the result of closing the first sharing service to the device management service.

[0337] S822, the device management service returns the result of the second device and the first device closing the first sharing service to the sharing service management framework.

[0338] The result of the second device and the first device closing the first sharing service specifically includes the information of the second device and the first device closing the first sharing service, and the information of the second device and the first device disconnecting the first connection.

[0339] S823, the sharing service management framework returns the result of the second device and the first device disconnecting the first connection to the trust ring interaction center module.

[0340] S824, the trust ring interaction center module sends the second message to the fourth device.

[0341] Specifically, the second message includes the fourth device identifier, the first sharing service identifier, and the request for the first device and the fourth device to enable the first sharing service.

[0342] The trust ring interaction center module of the third device sends the second message to the fourth device. The fourth device responds to the second message, establishes the second connection with the first device, and enables the first sharing service based on the second connection. The fourth device returns the result of enabling the first sharing service to the device management service of the third device.

[0343] Among them, in the process of the multi-device connection establishment method, step S824 is the specific implementation of step S717 in the third device.

[0344] S825, the device management service receives the result of the fourth device enabling the first sharing service.

[0345] The fourth device sends the information of the first device and the fourth device enabling the first sharing service to the device management service of the third device. The device management service of the third device records the information of the first device and the fourth device enabling the first sharing service.

[0346] S826, the device management service returns the result of the fourth device and the first device enabling the first sharing service to the sharing service management framework.

[0347] The results of the fourth device and the first device enabling the first sharing service specifically include the information on the fourth device and the first device enabling the first sharing service, and the information on the fourth device and the first device establishing a second connection.

[0348] S827. The sharing service management framework returns the result of the fourth device and the first device establishing a second connection to the trust ring interaction center module.

[0349] S828. The trust ring interaction center module calls the display screen to display the result of the third operation.

[0350] Specifically, referring to Figure 5 the relevant description in (d), using icon 103 as the icon of the first device, icon 102 as the icon of the fourth device, icon 101 as the icon of the second device, and the spherical keyboard and mouse sharing icon 10322 as the second element. Based on the trust ring interaction center module, the third device displays that after the first device switches the first sharing service from the second device to the fourth device, the second element is updated to the completed state, and a prompt message indicating successful service switching is displayed on the interface.

[0351] Among them, in the process of the multi-device connection establishment method, steps S826 - S828 are the specific implementation of step S720 in the third device.

[0352] In some embodiments, if the third device and the second device are different devices, then in Figure 8C the steps shown in S819 - S821, the trust ring interaction center module of the third device sends a third message to the second device. The second device responds to the third message, disconnects the first connection with the first device, and closes the first sharing service. After closing the first sharing service, the second device returns the result of closing the first sharing service to the third device. The third device receives the result of closing the first sharing service and executes the subsequent steps shown in S822 - S828.

[0353] In some embodiments, if the third device and the fourth device are the same device, then in Figure 8C the steps shown in S824 - S825, the trust ring interaction center module of the third device sends a second message to the sharing service module. The third device responds to the second message, establishes a second connection with the first device, and enables the first sharing service based on the second connection. After enabling the first sharing service, the device management service of the third device receives the result of enabling the first sharing service and executes the subsequent steps shown in S826 - S828.

[0354] Among them, the embodiment where the third device and the second device are the same device and the embodiment where the third device and the fourth device are the same device cannot occur simultaneously.

[0355] Figure 8D Taking the interaction process of each module in the third device as an example, the fourth stage of the method embodiment is specifically introduced. Figure 7A

[0356] In Figure 8D it is described by taking the third device and the second device as the same device as an example.

[0357] S829. The trust ring interaction center module receives a notification event of a fourth operation.

[0358] The fourth operation may be an operation of dragging the second element icon away from the icon of the second device.

[0359] In some embodiments, on the display interface of the third device, drag the second element in contact with the icon of the second device to separate it from the icon of the second device, release the second element, and the third device executes the subsequent steps S830 - S835. For the specific description of the fourth operation, reference can be made to Figure 4 (a) of Figure 4 and the relevant description in (b) of , which will not be elaborated here.

[0360] In some embodiments, for the second element, after release, the transparency can gradually deepen over time and it can automatically move into the icon of the first device. For the specific reference, see Figure 4 (c) of . This application does not limit this.

[0361] Among them, in the process of the multi - device connection - building method, step S829 is the specific implementation of steps S721 - S722 in the third device.

[0362] S830. The trust ring interaction center module sends a fourth message to the shared service module.

[0363] Specifically, the fourth message includes the second device identifier, the first shared service identifier, and a request for the first device and the second device to close the first shared service.

[0364] In some embodiments, when the second device and the third device are different devices, the trust ring interaction center module of the third device sends a fourth message to the service sharing module of the second device.

[0365] Among them, in the process of the multi - device connection - building method, step S830 is the specific implementation of step S723 in the third device.

[0366] S831. The shared service module closes the first shared service.

[0367] After receiving the fourth message, the shared service module of the third device disconnects the second connection with the first device and closes the first shared service.

[0368] Among them, in the process of the multi-device connection establishment method, step S831 is the specific implementation of steps S724 - S725 in the third device.

[0369] S832. The shared service module returns the result of closing the first shared service to the device management service.

[0370] S833. The device management service returns the result of the second device and the first device closing the first shared service to the shared service management framework.

[0371] The result of the second device and the first device closing the first shared service specifically includes the information of the second device and the first device closing the first shared service, and the information of the second device and the first device disconnecting the second connection.

[0372] S834. The shared service module returns the result of the second device and the first device disconnecting the second connection to the trust ring interaction center module.

[0373] S835. The trust ring interaction center module calls the display screen to display the result of the fourth operation.

[0374] Specifically, referring to Figure 4 the relevant description in (d), taking the icon 103 as the icon of the first device, the icon 102 as the icon of the second device, and the spherical keyboard and mouse sharing icon 10322 as the second element, based on the trust ring interaction center module, the third device displays the interface where after the fourth device disconnects the first shared service between the second device and the first device, the second element disappears, and the third device detects the touch operation.

[0375] Among them, in the process of the multi-device connection establishment method, steps S832 - S835 are the specific implementation of step S726 in the third device.

[0376] In some embodiments, if the third device and the second device are different devices, then in Figure 8D the steps shown in S830 - S832, the trust ring interaction center module of the third device sends a first message to the second device, the second device responds to the first message, disconnects the second connection with the first device and closes the first shared service. After closing the first shared service, the second device returns the result of closing the first shared service to the third device. After receiving the result of closing the first shared service, the third device executes the subsequent steps shown in S833 - S835.

[0377] Figure 9 Taking the interaction process among the trust ring interaction center module, the shared service management framework, and the shared service module in the third device as an example, the method flow of steps S810 - S817 in the method embodiment is specifically introduced. Figure 8B The method flow of steps S810 - S817 in the method embodiment.

[0378] In Figure 9 , taking the third device and the second device as the same device as an example for illustration.

[0379] S901, the service interaction module obtains information of the first device and information of shared services supported by the first device from the device / service data set.

[0380] As Figure 1 shown in (c) of Figure 1 and (d) of Figure 8B , taking the icon 101 as the icon of the second device and the icon 103 as the icon of the first device as an example, the third device receives a first operation on the icon of the first device, and the first operation can be a click operation, a touch operation or other types of touch operations. In response to the first operation, the service interaction module of the third device obtains the first device and the shared services supported by the first device from the device / service data set. The service interaction module calls the display screen of the third device to display icons of the shared services supported by the first device, including a screen sharing icon 1031, a keyboard and mouse sharing icon 1032, a remote control icon 1033, a file access icon 1034 and a cross-terminal call icon 1035. Specifically, after the third device receives the first operation and displays the icons of the shared services supported by the first device, it can be after the S808 step in

[0381] S902, the service interaction module receives a notification event of a second operation.

[0382] The second operation can be an operation of dragging a first element to the icon of the second device and releasing it.

[0383] As Figure 2 shown in (a) of Figure 2 to (b) of

[0384] , taking the icon 101 as the icon of the second device, the icon 103 as the icon of the first device, the keyboard and mouse sharing icon 1032 and the bar-shaped keyboard and mouse sharing icon 10321 as the first element as an example, the second operation can refer to the operation of dragging the keyboard and mouse sharing icon 1032 out of the display area of the icon of the first shared service and dragging it to the icon 101 of the second device in Figure 8B . Specifically, the third device receiving the second operation can refer to the S810 step in

[0385] In response to the second operation, the third device executes the first sharing service between the first device and the second device, and displays a second element that touches the icon of the second device. The specific steps are as shown in steps S903 - S912.

[0386] S903. Based on the second operation, the service interaction module sends a first message to the service conflict scheduling module.

[0387] S904. The service conflict scheduling module detects whether the second device supports the first sharing service.

[0388] The service conflict scheduling module of the third device determines whether the second device supports the first sharing service. Specifically, the service conflict scheduling module obtains the sharing services supported by the second device and compares them with the first sharing service. If the second device does not support the first sharing service, an error prompt message is displayed on the display screen of the third device, and the first element disappears. If the second device supports the first sharing service, the subsequent steps S905 - S912 are executed.

[0389] In the interaction process of each module in the third device, the above steps S903 - S904 are Figure 8B the specific implementation form of determining whether the second device supports the first sharing service in step S811, which will not be elaborated here.

[0390] S905. The service conflict scheduling module sends a first message to the service connection management module.

[0391] Specifically, the first message includes the second device identifier, the first sharing service identifier, and a request to start the first sharing service between the first device and the second device.

[0392] S906. The service connection management module sends a first message to the sharing service module.

[0393] In the interaction process of each module in the third device, the above steps S905 - S906 are Figure 8B the specific implementation form of sending the first message in step S812, which will not be elaborated here.

[0394] S907. The sharing service module starts the first sharing service.

[0395] The sharing service module of the third device responds to the first message, establishes a first connection with the first device, and starts the first sharing service based on the first connection. The first connection includes, but is not limited to, a Wi-Fi connection, a Bluetooth connection, and an NFC connection. This application does not limit this.

[0396] In the interaction process of each module in the third device, the above step S907 and Figure 8BIt is the same as the specific implementation form of step S813, which will not be elaborated here.

[0397] S908, the shared service module returns the result of enabling the first shared service to the service connection management module.

[0398] The result of enabling the first shared service specifically includes the result of the first device and the second device establishing a first connection and enabling the first shared service.

[0399] S909, the service connection management module returns the result of enabling the first shared service to the service conflict scheduling module.

[0400] In the interaction process of each module in the third device, the above steps S908 - S909 are Figure 8B the same as the specific manifestation forms of steps S814 - S815, which will not be elaborated here.

[0401] S910, the service conflict scheduling module returns the result of the second operation to the service interaction module.

[0402] In response to the request for the first device and the second device to enable the first shared service sent to the service conflict scheduling module in step S903, the service conflict scheduling module receives the result of the first device and the second device establishing a first connection.

[0403] S911, the service interaction module checks the first connection between the second device and the first device in the device / service data set.

[0404] Based on the result returned by the second operation, the service interaction module of the third device checks whether the first shared service between the first device and the second device has been enabled in the device / service data set. The device / service data set can update the connection status of devices in the trust ring in real time, including the connection relationship between the first device and the second device.

[0405] If the device / service data set records that the first device and the second device have established a first connection, the verification is correct, and step S912 is executed. If the device / service data set does not record that the first device and the second device have established a first connection, the verification is incorrect, and the service interaction module calls the display screen to display an error prompt message.

[0406] In the interaction process of each module in the third device, the above steps S910 - S911 are Figure 8B the same as the specific manifestation form of step S816, which will not be elaborated here.

[0407] S912, the service interaction module calls the display screen to display the result of the second operation.

[0408] The service interaction module of the third device displays the result of the second operation through the display screen. Specifically, the icon of the second device contacts the second element, and the third device displays a prompt message indicating that the first device and the second device have enabled the first sharing service, such as "The transfer of'mouse and keyboard sharing' is successful." Based on Figure 9 the interaction process among the internal modules of the third device shown, Figure 7A , Figures 8A to 8D the interaction process involving the trust ring interaction center module, the sharing service management framework, and the sharing service module of the third device in Figure 9 can be executed according to the process shown.

[0409] In the interaction process of each module in the third device, the above S912 step is Figure 8B the same as the specific manifestation form of the S817 step in

[0410] Figure 10 shows the schematic hardware structure of the electronic device provided in the embodiment of the present application. This electronic device is used to execute the multi-device connection establishment method provided in the foregoing method embodiment.

[0411] The electronic device may include a processor 1001, a memory 1002, a wireless communication module 1003, a mobile communication module 1004, antennas 1003A and 1004A, a power switch 1005, a sensor module 1006, a focusing motor 1007, a camera 1008, a display screen 1009, etc. Among them, the sensor module 1006 may include a gyroscope sensor 1006A, an acceleration sensor 1006B, an ambient light sensor 1006C, an image sensor 1006D, a distance sensor 1006E, etc. Among them, the wireless communication module 1003 may include a WLAN communication module, a Bluetooth communication module, etc. The above-mentioned multiple parts can transmit data through the bus.

[0412] This electronic device may also be referred to as the first device, or the second device, or the third device, or the fourth device.

[0413] The processor 1001 may include one or more processing units. For example, the processor 1001 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0414] The memory 1002 may be used to store computer-executable program code, and the executable program code may include instructions. The processor 1001 executes various functional applications and data processing of the electronic device by running the instructions stored in the memory 1002. The memory 1002 may include a program storage area and a data storage area. In a specific implementation, the memory 1002 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.

[0415] The wireless communication function of the electronic device may be implemented by the antenna 1003A, the antenna 1004A, the mobile communication module 1004, the wireless communication module 1003, the modem processor, and the baseband processor, etc.

[0416] The antenna 1003A and the antenna 1004A may be used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device may be used to cover a single or multiple communication frequency bands. Different antennas may also be multiplexed to improve the utilization rate of the antennas.

[0417] The mobile communication module 1004 may provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc. applied to the electronic device. The mobile communication module 1004 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 1004 may receive electromagnetic waves by the antenna 1004A, filter, amplify, etc. the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 1004 may also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1004A and radiate it out.

[0418] The modulation and demodulation processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Subsequently, the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs a sound signal through an audio device, or displays an image or video through the display screen 1009.

[0419] The wireless communication module 1003 can provide solutions for wireless communications applied to the electronic device, including wireless local area networks (WLAN), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 1003 can be one or more devices integrating at least one communication processing module. The wireless communication module 1003 receives electromagnetic waves via the antenna 1003A, performs frequency modulation and filtering processing on the electromagnetic wave signal, and sends the processed signal to the processor 1001. The wireless communication module 1003 can also receive the signal to be transmitted from the processor 1001, perform frequency modulation and amplification on it, and convert it into electromagnetic waves through the antenna 1003A and radiate it out.

[0420] The power switch 1005 can be used to control the power supply to the electronic device.

[0421] The gyroscope sensor 1006A can be used to determine the motion posture of the electronic device. In some embodiments, the angular velocity of the electronic device around three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor 1006A. The gyroscope sensor 1006A can be used for anti-shake shooting. Exemplarily, when the shutter is pressed, the gyroscope sensor 1006A detects the angle of the electronic device shake, calculates the distance that the lens module needs to compensate according to the angle, and makes the lens offset the shake of the electronic device through reverse movement to achieve anti-shake. The gyroscope sensor 1006A can also be used for navigation and somatosensory game scenarios.

[0422] The acceleration sensor 1006B can detect the magnitude of the acceleration of the electronic device in various directions (generally three axes). When the electronic device is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device. For example, the acceleration sensor 1006B can be applied to applications such as horizontal and vertical screen switching and pedometers.

[0423] The ambient light sensor 1006C is used to sense the ambient light brightness. The electronic device can adaptively adjust the brightness of the display screen 1009 according to the sensed ambient light brightness. The ambient light sensor 1006C can also be used to automatically adjust the white balance during photography.

[0424] The image sensor 1006D, also known as the photosensitive element, can convert the optical image on the photosensitive surface into an electrical signal in proportion to the optical image by using the photoelectric conversion function of the optoelectronic device. The image sensor can be a charge coupled device (CCD) sensor or a complementary metal-oxide-semiconductor (CMOS) sensor.

[0425] The distance sensor 1006E can be used to measure distance. The electronic device can measure distance by infrared or laser. In some shooting scenarios, the electronic device can use the distance sensor 1006E to measure distance to achieve fast focusing.

[0426] The focusing motor 1007 can be used for fast focusing. The electronic device can control the movement of the lens through the focusing motor 1007 to achieve automatic focusing.

[0427] The electronic device can achieve the shooting function through the ISP, camera 1008, video codec, GPU, display screen 1009, application processor, etc.

[0428] The ISP is used to process the data fed back by the camera 1008. For example, when taking a photo, the shutter is opened, and the light passes through the lens and is transmitted to the camera photosensitive element. The optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise and brightness of the image. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 1008.

[0429] The camera 1008 can be used to capture static images or videos. The object generates an optical image through the lens and projects it onto the image sensor. The image sensor can convert the optical signal into an electrical signal, and then transmit the electrical signal to the ISP to convert it into a digital image signal. The ISP can output the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device can include one or N cameras 1008, where N is a positive integer greater than 1.

[0430] Video codecs are used to compress or decompress digital images. An electronic device may support one or more image codecs. In this way, the electronic device can open or save pictures or videos in multiple encoding formats.

[0431] The electronic device can implement the display function through the GPU, the display screen 1009, and the application processor, etc. The GPU is a microprocessor for image processing, connecting the display screen 1009 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 1001 may include one or more GPUs, which execute program instructions to generate or change display information.

[0432] The display screen 1009 is used to display images, videos, etc. The display screen 1009 includes a display panel. The display panel can adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 1009, where N is a positive integer greater than 1.

[0433] It can be understood that the structure schematically shown in the embodiments of the present invention does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The components shown in the figure can be implemented in hardware, software, or a combination of software and hardware.

[0434] The third device provided in this application is implemented as Figure 10 When the electronic device structure shown, the processor 1001 is used to call the corresponding software and hardware modules to execute the methods on the third device side as Figure 7A 、 Figures 8A - 9 In the middle. The display screen 1009 can display as Figures 1 - 5The interface of the electronic device described in []. Specifically, the display screen 1009 can be used to display the icon of the first device and the icon of the second device, and can also be used to receive a first operation on the icon of the first device and display a first element, which is the icon of the first shared service, indicating the first shared service. And receive a second operation of dragging the first element to the icon of the second device and releasing it. The wireless communication module 1003, the mobile communication module 1004, the antenna 1003A, the antenna 1004A, etc. can be used to send a first message to the second device after the display screen 1009 receives the second operation. For the specific introduction of the interface of the third electronic device, reference can also be made to the previous description of Figures 1 - 5 , which will not be elaborated here.

[0435] When the second device provided in this application is implemented as Figure 10 the electronic device structure shown, the processor 1001 is used to call the corresponding software and hardware modules to execute the methods on the second device side as described in Figure 7A , Figures 8B - 9 . Specifically, the wireless communication module 1003, the mobile communication module 1004, the antenna 1003A, and the antenna 1004A, etc. can be used to receive the first message, and in response to the first message, establish a first connection with the first device and start the first shared service based on the first connection. The above communication devices can also be used to receive a third message, and in response to the third message, disconnect the first connection with the first device and close the first shared service. The above communication devices can also be used to receive a fourth message, and in response to the fourth message, disconnect the second connection with the first device and close the first shared service.

[0436] When the first device provided in this application is implemented as Figure 10 the electronic device structure shown, the processor 1001 is used to call the corresponding software and hardware modules to execute the methods on the first device side as described in Figure 7A , Figures 8A - 9 . Specifically, the wireless communication module 1003, the mobile communication module 1004, the antenna 1003A, the antenna 1004A, etc. can be used to establish a first connection with the second device and start the first shared service based on the first connection, and can also be used to establish a second connection with the fourth device and start the first shared service based on the second connection.

[0437] When the fourth device provided in this application is implemented as Figure 10 the electronic device structure shown, the processor 1001 is used to call the corresponding software and hardware modules to execute the methods on the fourth device side as described in Figure 7A and Figure 8CA method on the fourth device side. Specifically, communication devices such as the wireless communication module 1003, the mobile communication module 1004, the antenna 1003A, and the antenna 1004A can be used to receive a second message, and in response to the second message, establish a second connection with the first device and start a first shared service based on the second connection.

[0438] The present application also provides a computer-readable storage medium storing a computer program (which can also be referred to as code or instructions). When the computer program is run, it causes the computer to execute the method performed by the electronic device in any of the foregoing embodiments.

[0439] The various embodiments of the present application can be combined arbitrarily to achieve different technical effects.

[0440] In the foregoing embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from a website, a computer, a server, or a data center to another website, computer, server, or data center in a wired manner (such as coaxial cable, optical fiber, digital subscriber line) or a wireless manner (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that the computer can access or a data storage device such as a server or a data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state disk).

[0441] Those of ordinary skill in the art can understand all or part of the processes in the methods of the foregoing embodiments. These processes can be completed by relevant hardware instructed by a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the foregoing method embodiments. The foregoing storage media include various media that can store program codes, such as ROM or random access memory RAM, magnetic disks, or optical discs.

[0442] In summary, the above description is only an embodiment of the technical solution of the present invention and is not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made in accordance with the disclosure of the present invention shall be included within the protection scope of the present invention.

Claims

1. A method for establishing connections among multiple devices, characterized in that, The method is applied to an electronic device, and the method includes: The electronic device displays an icon of a first device and an icon of a second device; The electronic device receives a first operation on the icon of the first device and displays a first element, where the first element indicates a first sharing service; The electronic device receives a second operation of dragging the first element to the icon of the second device and releasing it. The electronic device sends a first message to the second device, and the first message is used to trigger the second device to establish a first connection with the first device and start the first sharing service based on the first connection.

2. The method according to claim 1, wherein The first message includes an identifier of the first device and an identifier of the first sharing service.

3. The method according to claim 1 or 2, characterized in that, After the electronic device sends the first message to the second device, the method further includes: The electronic device receives an indication message, and the indication message is used to indicate that the second device and the first device have started the first sharing service.

4. The method according to any one of claims 1 to 3, characterized in that, During the process of dragging the first element to the icon of the second device and releasing it, the first element is updated from a first form to a second form.

5. The method according to any one of claims 1-4, characterized in that, After the electronic device receives the second operation, the method further includes: The electronic device displays a second element, and the second element touches the icon of the second device.

6. The method according to claim 5, wherein: After a period of time, the electronic device updates the second element from a third form to a fourth form.

7. The method according to claim 5 or 6, characterized in that The method further includes: The electronic device displays an icon of a fourth device; The electronic device receives a third operation of dragging the second element to the icon of the fourth device and releasing it. The electronic device sends a second message to the fourth device, and the second message is used to trigger the fourth device to establish a second connection with the first device and start the first sharing service based on the second connection.

8. The method according to claim 7, wherein The second message includes an identifier of the first device and an identifier of the first sharing service.

9. The method according to claim 7 or 8, characterized in that, After the electronic device receives the third operation, the method further includes: The electronic device sends a third message to the second device, and the third message is used to trigger the second device to close the first sharing service with the first device.

10. The method according to claim 5 or 6, characterized in that After the electronic device displays the second element, the method further includes: The electronic device receives a fourth operation of dragging the second element away from the icon of the second device and releasing it. The electronic device sends a fourth message to the second device, and the fourth message is used to trigger the second device to close the first sharing service with the first device.

11. The method according to claim 10, wherein The fourth message includes an identifier of the first device and an identifier of the first sharing service.

12. The method according to any one of claims 1-11, characterized in that, The user account logged in to the electronic device is the same as the user accounts logged in to the first device and the second device. Before the electronic device displays the icon of the first device and the icon of the second device, the method further includes: The electronic device detects the first device and the second device.

13. The method according to claim 12, wherein When the electronic device detects the first device and the second device, specifically including: The electronic device sends a broadcast message; The electronic device receives the messages returned by the first device and the second device based on the broadcast message.

14. The method according to claim 12 or 13, characterized in that, The detection of the first device and the second device by the electronic device specifically includes: The electronic device detects the first device and the second device through any one or more of the following communication technologies: Wireless Local Area Network (WLAN), Bluetooth (BT), or Near Field Communication (NFC).

15. The method according to any one of claims 1-14, characterized in that, The first shared service includes any one of the following: keyboard and mouse sharing, screen sharing, remote control, or cross-terminal invocation.

16. The method according to any one of claims 1-15, characterized in that, The electronic device and the second device are the same electronic device, or the electronic device and the first device are the same electronic device.

17. An electronic device, characterized in that, The electronic device includes one or more memories and one or more processors; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the electronic device to execute the method described in any one of claims 1-16.

18. A communication system, the communication system comprising: A first device, a second device, and a third device, wherein the third device is configured to execute the method described in any one of claims 1-16.

19. A chip, which is applied to an electronic device, is characterized in that, The chip includes one or more processors, and the processors are used to call computer instructions to cause the electronic device to execute the method described in any one of claims 1-16.

20. A computer-readable storage medium, comprising instructions, characterized in that, When the instruction runs on the electronic device, it causes the electronic device to execute the method described in any one of claims 1-16.

Citation Information

Patent Citations

  • Inter-terminal service sharing method and device, equipment and storage medium

    CN112367390A

  • Multi-device connection method, device and system, device and storage medium

    CN114422566A

  • Content sharing method, electronic equipment and storage medium

    CN114610193A

  • Method for sharing screen between devices and device using the same

    US20160110152A1

  • File sharing method, apparatus, and system, interactive smart device, source end device, and storage medium

    WO2021072912A1