Equipment connection method and computer equipment

By displaying the connection management page on the electronic device and responding to user operations, the connection process of sharing services between multiple devices is simplified, complex operation problems in the prior art are solved, and convenient connection management is achieved.

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

Patent Information

Application Number
CN202410042689.8
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 interconnection scenario, the operation of users to establish connections between devices based on shared services is relatively complicated.

Method used

It provides a device connection method, by displaying a connection management page on an electronic device, displaying the icons of this device and other devices, and selecting the target service and device in the service list in response to user operations, triggering connection establishment, supporting intuitive status display and easy-to-operate connection management.

Benefits of technology

It simplifies the connection process of users based on shared services between multiple devices under the same user account, and improves the convenience and intuitiveness of operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120343153A_ABST
    Figure CN120343153A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an equipment connection method and computer equipment, relates to the technical field of electronics, and is used for providing a simple and quick way for a user and establishing connection among equipment based on shared service in an interconnection scene. The method comprises the following steps: displaying a connection management page; the connection management page comprises an icon corresponding to the device and icons corresponding to other devices except the device, and the other devices and the device log in the same user account. And in response to a trigger operation on an icon corresponding to the first equipment on the connection management page, displaying a service list of the first equipment. The service list comprises an icon of a service supported by the first equipment as an initiator; the first device is any one of the present device or other devices. And in response to a first selection operation on the icon of the target service in the service list and a second selection operation on the icon corresponding to the second equipment, triggering the first equipment to establish connection with the second equipment based on the target service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of electronic technologies, and in particular, to a device connection method and a computer device. Background Art

[0002] With the development of technologies, the functions of electronic devices are becoming more and more abundant. Users' usage requirements for electronic devices in different scenarios are also getting higher and higher. Some electronic devices support the interconnection of multiple devices used by users to implement shared services in the interconnection scenario. Exemplarily, the shared services in the interconnection scenario may include: screen sharing, keyboard and mouse sharing, remote control, file access, cross-terminal invocation, and network sharing, etc.

[0003] In related technologies, the operation for users to establish a connection between devices based on shared services in the interconnection scenario is relatively complex. Summary of the Invention

[0004] Embodiments of the present application provide a device connection method and a computer device, which are used to provide a simple and fast way for users to establish a connection between devices based on shared services in the interconnection scenario.

[0005] To achieve the above object, the embodiments of the present application adopt the following technical solutions:

[0006] In a first aspect, a device connection method is provided, and the method includes:

[0007] An electronic device displays a connection management page. The connection management page includes an icon representing this device, and icons representing other devices except this device. All devices on the connection management page log in to the same user account. A user can manage the interconnection services between devices under this user account on the connection management page. The electronic device, in response to a triggering operation on the icon corresponding to a first device on the connection management page, displays a service list of the first device. The service list includes icons of services supported by the first device as an initiator; the first device is any one of the devices displayed on the connection management page. In this way, it is convenient for the user to view the services supported by each device under this user account as an initiator, and it is avoided that the user needs to view the devices supported by each device as an initiator on different devices. Subsequently, the electronic device, in response to a first selection operation on the icon of a target service in the service list and a second selection operation on the icon corresponding to a second device, triggers the first device to establish a connection with the second device based on the target service. In this way, a way is provided for the user to be able to trigger the establishment of a connection between any two devices logged in under the same user account based on shared services on the connection management page of any one of the devices logged in under the same user account, and the operation is simple and convenient.

[0008] In a possible implementation of the first aspect, before detecting a second selection operation on the icon corresponding to the second device, the above method further includes: in response to the first selection operation, displaying the icons corresponding to the first type of devices that can establish a connection with the first device based on the target service in a first state, and displaying the icons corresponding to the second type of devices that cannot establish a connection with the first device based on the target service in a second state. Among them, the second device belongs to the devices that can establish a connection with the first device based on the target service. In this solution, the states of the two types of devices are displayed in an intuitive manner, facilitating the user to determine whether a connection can be established with the first device based on the target service according to the states displayed by the icons corresponding to other devices when selecting the second device based on the target service.

[0009] In a possible implementation of the first aspect, the first selection operation includes a click operation; the second selection operation includes a click operation. This solution provides a simple operation method that can establish a connection between two devices under the same user account based on a shared service.

[0010] In a possible implementation of the first aspect, the first selection operation includes a drag operation; the second selection operation includes the operation of dragging the icon of the target service to the position where the icon corresponding to the second device is located and then releasing it. This solution provides a simple operation method that can establish a connection between two devices under the same user account based on a shared service.

[0011] In a possible implementation of the first aspect, the above method further includes: in response to the first selection operation on the icon of the target service in the service list and the second selection operation on the icon corresponding to the second device, displaying a connection status control corresponding to the target service. Among them, the connection status control includes a third state or a fourth state. The third state is used to indicate that the first device is establishing a connection with the second device based on the target service, and the fourth state is used to indicate that the first device has completed establishing a connection with the second device based on the target service. In this way, while triggering the first device to establish a connection with the second device based on the target service, the user is prompted that the connection is being established or has been completed through the status control.

[0012] In a possible implementation of the first aspect, the first selection operation includes a drag operation and the second selection operation includes the operation of dragging the icon of the target service to the position where the icon corresponding to the second device is located and then releasing it. In this solution, the above display of the connection status control corresponding to the target service may specifically include, in response to the drag operation on the icon of the target service in the service list and when the icon of the target service is dragged within a preset range (such as a first preset range) of the icon corresponding to the second device, displaying the connection status control corresponding to the target service.

[0013] In a possible implementation of the first aspect, the above-mentioned connection status control corresponding to the target service may specifically include: displaying the connection status control corresponding to the target service within a preset range (such as a second preset range) of the icon corresponding to the second device. In this way, it is convenient to distinguish the device corresponding to the connection indicated by the connection status control.

[0014] In a possible implementation of the first aspect, the above-mentioned first device is the initiating end in establishing a connection based on the target service. The above-mentioned second device is the receiving end in establishing a connection based on the target service.

[0015] In a possible implementation of the first aspect, the above-mentioned method further includes: in response to a trigger operation on the connection status control, displaying the expanded connection status control. The expanded connection status control is further used to indicate the device identifier of the peer device that establishes a connection with the second device based on the target service, that is, the first device. In this way, it is convenient to display more detailed information of the connection status control for the user, such as information about the peer device.

[0016] In a possible implementation of the first aspect, the connection status control before expansion may represent the service of the established connection in the form of a picture. In this solution, the expanded connection status control may also display the service name of the connection corresponding to the connection status control.

[0017] In a possible implementation of the first aspect, after displaying the connection status control corresponding to the target service, the above-mentioned method further includes: in response to a connection disconnection operation performed based on the connection status control, triggering the second device to disconnect the connection established with the first device based on the target service. In this way, a simple and convenient way is provided for the user to operate to disconnect the connection established by the second device based on the target service with the first device.

[0018] In a possible implementation of the first aspect, the above-mentioned method further includes: in response to the connection disconnection operation, stopping the display of the connection status control. In this way, it is convenient to prompt the user that the connection established between the first device and the second device based on the target service has been disconnected.

[0019] In a possible implementation of the first aspect, the above-mentioned connection disconnection operation performed based on the connection status control may specifically include: dragging the connection status control to the blank area of the connection management page. In this way, a simple and convenient way is provided for the user to operate to disconnect the connection established by the second device based on the target service with the first device.

[0020] In a possible implementation of the first aspect, the connection status control includes a cancel icon. The connection disconnection operation performed based on the connection status control may specifically include: a triggering operation on the cancel icon in the connection status control. In this way, a simple and convenient way is provided to the user to operate to disconnect the connection established by the second device with the first device based on the target service.

[0021] In a possible implementation of the first aspect, the expanded connection status control includes a cancel icon. The connection disconnection operation performed based on the connection status control may specifically include: a triggering operation on the cancel icon in the expanded connection status control. In this way, a simple and convenient way is provided to the user to operate to disconnect the connection established by the second device with the first device based on the target service.

[0022] In a possible implementation of the first aspect, before displaying the icons corresponding to the first type of devices that can establish a connection with the first device based on the target service in the first state and displaying the icons corresponding to the second type of devices that cannot establish a connection with the first device based on the target service in the second state, the method further includes: in response to a first selection operation, querying the first peer device type supported by the target service of the first device, and querying the second peer device type supported by the target service of other devices except the first device. In this solution, the first type of devices includes: devices whose second peer device type includes the device type of this device and whose device type belongs to the first peer device type. The second type of devices includes: devices whose second peer device type does not include the device type of this device, and / or devices whose device type does not belong to the first peer device type.

[0023] In this solution, for the target service, the peer device types supported by the first device and other devices are respectively queried. If the first device and other devices mutually support each other as peer devices, then this device is a first type of device. For the peer devices not supported by the first device, or for other devices that do not support the first device as a peer device, then this device is a second type of device. In this way, it is ensured that in response to the first selection operation, the status display of other devices except the first device is accurate, thereby prompting the user which devices can be selected to establish a connection based on the target service.

[0024] In a possible implementation of the first aspect, querying the peer device type supported by the target service of a device may specifically include: obtaining a preset field corresponding to the target service of the device for representing the device type of the peer device supported by the target service, and performing service attribute parsing on this preset field to obtain the peer device type supported by the target service.

[0025] In a possible implementation of the first aspect, the above-mentioned display of the service list in response to the triggering operation on the icon corresponding to the first device on the connection management page may specifically include: in response to the triggering operation on the icon corresponding to the first device on the connection management page, obtaining the service data corresponding to the first device. The service data of the first device includes the services supported by the first device, and whether each service supported by the first device is enabled and whether it supports acting as an initiator. Determine the services supported by the first device as an initiator according to the service data of the first device. Display the service list, and the service list includes the icons of the services supported by the first device as an initiator. In this way, it can be ensured that the icons in the displayed service list are all icons of the services supported by the first device as an initiator, so as to ensure that the target service selected by the user from the service list can act as an initiator to establish a connection with other devices.

[0026] In a possible implementation of the first aspect, the above-mentioned obtaining the service data corresponding to the first device may specifically include: obtaining the preset fields corresponding to each service of the first device. Perform service attribute parsing on the preset fields to obtain the service data corresponding to the first device. Among them, the preset fields corresponding to the service include: a first field for indicating the ability switch of the service, a second field for indicating the connection status of the service, a third field for indicating the connection list of the service, a fourth field for indicating the device type of the peer device supported by the service, and a fifth field for indicating the device type that supports acting as an initiator of the service.

[0027] In a possible implementation of the first aspect, after the electronic device is powered on, according to the service information of each service (whether it is supported, whether it is enabled, whether it is connected, the connection list, the supported peer device, and whether it supports acting as an initiator), write the preset fields corresponding to each service into the electronic device.

[0028] In a possible implementation of the first aspect, some of the preset fields corresponding to the service support dynamic modification. For example, the preset fields for indicating whether the service is enabled, whether the service is connected, the connection list, etc. may change and be updated. When an update occurs, the preset fields can be updated. In this way, it is ensured that the connection management page of the electronic device is updated in real time according to the actual usage scenario, and it is ensured that the user can view the latest device status of each device under the same user account and the connection status of the services between the devices.

[0029] In a possible implementation of the first aspect, the above-mentioned display of the connection management page includes: obtaining the online / offline status of each device logged in to the same user account as this device, and displaying the icons corresponding to the devices logged in to the same user account as this device and in the online state on the connection management page. In this way, the online devices under the same user account can be intuitively displayed to the user, facilitating the user to select the operation for establishing a connection.

[0030] In a possible implementation of the first aspect, displaying the connection management page includes: obtaining all devices logged in with the same user account as this device, and the online / offline status of each device. Icons corresponding to all devices logged in with the same user account as this device are displayed on the connection management page, where the icons corresponding to the devices in the online state are displayed in the fifth state, and the icons corresponding to the devices in the offline state are displayed in the sixth state. In this way, the online devices under the same user account can be intuitively presented to the user, facilitating the user to select the operation of establishing a connection.

[0031] In a possible implementation of the first aspect, when it is detected that the status of the device logged in with the user account has changed, the connection management page is updated based on the device information of the device whose status has changed.

[0032] In a possible implementation of the first aspect, the change in the status of the device may specifically include: the change in the online / offline status of the device, and / or, the connection status of the device in the online state based on the service to establish a connection. Such as the device going online or offline, and / or, the device in the online state establishing a new connection based on the service, and / or, the device in the online state disconnecting the established connection based on the service, etc. In this way, it is ensured that the latest device status and the connection status of the services between devices under the same user account can be viewed on the connection management page of this device.

[0033] Among them, when this device detects that the device in the online state has established a new connection based on the service, and that the device in the online state has disconnected the established connection based on the service, it can be specifically determined by obtaining the change in the preset fields corresponding to each service of the device in the online state. When the device establishes a new connection or disconnects an existing connection based on the service, the corresponding device will update the corresponding preset fields. This device can monitor whether the device in the online state establishes a new connection or disconnects an existing connection by obtaining the change in the preset field.

[0034] In a possible implementation of the first aspect, the first state in the above implementation may include a colored state, and the second state is a grayed-out state. Or the first state and the second state are displayed in different colors. Or, the third state and the fourth state in the above implementation can be distinguished by different icons.

[0035] In a possible implementation of the first aspect, the trigger operation in the above implementation may be a click operation, a double-click operation, a long-press operation, etc.

[0036] In a possible implementation of the first aspect, the drag operation in the above implementation may specifically include performing a move operation while long-pressing. The release after dragging specifically includes: stopping the long-press operation after the move operation.

[0037] In a second aspect, the present application further provides a computer device. The computer device may include: a display screen, a processor, a memory, and a computer program stored in the memory. The display screen and the memory are respectively coupled to the processor. The display screen is used to display the interface of the computer device. The processor executes the computer program to enable the computer device to execute the device connection method according to any one of the above first aspects.

[0038] In a possible implementation manner of the second aspect, the computer device may be an electronic device.

[0039] In a third aspect, the present application provides a computer-readable storage medium, in which instructions are stored, and when the instructions are run on a computer device, the computer device can execute the device connection method according to any one of the above first aspects.

[0040] In a fourth aspect, a computer program product including instructions is provided, and when the computer program product is run on a computer device, the computer device can execute the device connection method according to any one of the above first aspects.

[0041] In a fifth aspect, a device (for example, the device may be a chip system) is provided. The device includes a processor for supporting an electronic device to implement the functions involved in the above first aspect. In a possible design, the device further includes a memory for storing necessary program instructions and data of the electronic device. When the device is a chip system, it may be composed of chips or may include chips and other discrete devices.

[0042] Among them, for the technical effects brought by any one of the design manners in the second aspect to the fifth aspect, reference may be made to the technical effects brought by different design manners in the first aspect, which will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a schematic structural diagram of a communication system provided by an embodiment of the present application;

[0044] Figure 2 It is a schematic scenario diagram of a device connection method provided by an embodiment of the present application;

[0045] Figure 3A It is a schematic scenario diagram of a device connection method provided by an embodiment of the present application;

[0046] Figure 3B It is a schematic scenario diagram of a device connection method provided by an embodiment of the present application;

[0047] Figure 4 It is a schematic scenario diagram of a device connection method provided by an embodiment of the present application;

[0048] Figure 5 Schematic diagram of a scenario for a device connection method provided by an embodiment of the present application;

[0049] Figure 6 Schematic diagram of a scenario for a device connection method provided by an embodiment of the present application;

[0050] Figure 7 Schematic diagram of a scenario for a device connection method provided by an embodiment of the present application;

[0051] Figure 8 Schematic diagram of a scenario for a device connection method provided by an embodiment of the present application;

[0052] Figure 9 Frame diagram of an electronic device provided by an embodiment of the present application;

[0053] Figure 10 Flow chart of a device connection method provided by an embodiment of the present application;

[0054] Figure 11 Schematic diagram of the conversion between connection states of services;

[0055] Figure 12 Flow chart of a device connection method provided by an embodiment of the present application;

[0056] Figure 13 Schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application;

[0057] Figure 14 Structural diagram of a chip system provided by an embodiment of the present application. Detailed implementation manners

[0058] With the development of technology, the functions of electronic devices are becoming increasingly rich. Users' usage requirements for electronic devices in different scenarios are also getting higher and higher. Some electronic devices support the interconnection of multiple devices used by users to realize services in the interconnection scenario. Exemplarily, the shared services in the interconnection scenario may include: screen sharing, keyboard and mouse sharing, remote control, file access, cross-terminal invocation, and network sharing, etc.

[0059] Such as Figure 1 As shown, mobile phone 1, mobile phone 2, tablet computer 3, and laptop computer 4 log in to the same account. These four devices can establish connections with each other.

[0060] One device may support multiple services (i.e., shared services). The services supported by different devices may be the same or may be different. There needs to be a common supported service between two devices for these two devices to establish a connection.

[0061] In some examples, the function that multiple devices logged in with the same account can establish connections with each other can be named intelligent interconnection. The multiple devices logged in with the same account can be represented as devices on the same trust ring.

[0062] In the related art, in the interconnection scenario, the operation for the user to establish a connection between devices based on shared services is relatively complex.

[0063] Based on this, an embodiment of the present application proposes a device connection method. This method is applied to any one of multiple electronic devices logged in with the same account, and these multiple electronic devices can establish connections with each other. A connection management page can be displayed on the electronic device. This connection management page is used to display icons representing different electronic devices (including this device and other devices) logged in with the same account. For a trigger operation on the icon corresponding to any one of the electronic devices (such as the first device), a service list of this electronic device is displayed. Among them, this service list is used to display the services that the first device supports as a source, and the services are specifically displayed in the form of icons. In this way, it is convenient for the user to view the services that each device under this user account supports as a source, and it is avoided that the user needs to view the devices that each device supports as a source on different devices. After that, in response to a first selection operation on the icon of the target service in the service list and a second selection operation on the icon corresponding to the second device, the first device is triggered to establish a connection with the second device based on the target service. Among them, the second device can be this device or any one of the other devices except the first device. In this way, a way is provided for the user to trigger the establishment of a connection based on shared services between any two devices logged in with the same user account on the connection management page of any one of the devices logged in with the same user account, and the operation is simple and convenient.

[0064] Exemplarily, the above electronic device may be a mobile phone, a tablet computer, a personal computer (PC), a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, wearable devices such as smart watches, artificial intelligence (AI) speakers, and in-vehicle devices. It may also be various teaching aids (such as learning machines, early education machines), smart toys, portable robots, personal digital assistants (PDAs), augmented reality (AR) / virtual reality (VR) devices, media players, etc. It may also be a device with mobile office functions, a device with smart home functions, a device with audio-visual entertainment functions, a device supporting smart travel, etc. The specific form of the device is not particularly limited in the embodiments of the present application.

[0065] The technical solutions proposed in the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0066] It should be noted that the process of device A establishing a connection with device B based on service 1 may also be recorded as the process of transferring service 1 between device A and device B.

[0067] Taking the electronic device as a mobile phone as an example, please refer to Figure 2 , the mobile phone can display the control center page of the trust ring, hereinafter referred to as the connection management page 101.

[0068] In the connection management page 101, the mobile phone can display the devices on the same trust ring as the mobile phone. In some embodiments, the mobile phone can only display the currently online devices on the connection management page 101. In other embodiments, the devices displayed by the mobile phone on the connection management page 101 may also include all the devices on the trust ring, including online devices and offline devices. In this embodiment, the mobile phone can distinguish online devices and offline devices through different display states; exemplarily, the mobile phone can display online devices in a color / lighted state, while displaying offline devices in a grayed-out state.

[0069] Among them, a device on the trust ring being online specifically means that the device is in a powered-on state and the device has logged in to the user account corresponding to the trust ring. In some examples, the preset connection functions of the device (such as WLAN, and / or Bluetooth, etc.) are enabled to facilitate communication and connection between devices on the trust ring.

[0070] Specifically, the devices are represented in the form of icons on the connection management page 101. Such asFigure 2 As shown in Figure 2 , the connection management page 101 includes an icon 102 of the local device (i.e., the mobile phone), an icon 103 of the tablet computer, and an icon 104 of the notebook computer. In some examples, the icon corresponding to the device can be named a device sphere. A prompt message 105 can also be displayed on the connection management page 101: "The user clicks on the device sphere and selects the required service to complete the transfer". This prompt message 105 can be used to guide the user to complete the service transfer between devices.

[0071] On this connection management page 101, the user can select the icon (i.e., the device sphere) corresponding to any device to view the expanded state of the corresponding device. Among them, on the connection management page 101, the user can choose to view the expanded state of the local device or the expanded state of other devices. Exemplarily, in response to the user's trigger operation on the notebook computer icon 104, the mobile phone can display the expanded state of the notebook computer (which can be denoted as the first device), that is, the service list 106 of the notebook computer. Among them, the trigger operation can be a click operation, a double-click operation, a long-press operation, etc. Figure 2 The click operation is taken as an example for illustration.

[0072] In the embodiments of the present application, the service list 106 can be used to display the services supported by the device as the initiator. Exemplarily, each service can be displayed in the form of an icon in the service list 106. Figure 2 The services supported by the notebook computer as the initiator shown in the service list 106 include: screen sharing, keyboard and mouse sharing, remote control, file access, cross-device call, and network sharing.

[0073] When two devices establish a connection based on a certain service, one device is the initiator and the other device is the receiver (sink). Some services only support specific devices as the initiator. Therefore, only displaying the services supported by the corresponding device as the initiator in the service list can avoid the situation that the services displayed in the service list cannot be used by the user to establish a connection between devices through a click operation or a drag operation. In the embodiments of the present application, in response to the user's click operation or drag operation on the service in the service list, the mobile phone will trigger the corresponding device as the initiator and send a connection request to other devices based on this service.

[0074] In some examples, when the mobile phone displays the service list of the device, the outline can be displayed as the outline of the corresponding device. For example, the outline of the service list 106 is the outline of the notebook computer. In this way, it can prompt the user about the device corresponding to the currently displayed service list, facilitating the user to quickly understand the selected device.

[0075] In some examples, in response to the user's click operation on the laptop icon 104, the mobile phone can also display a prompt message 107: "Laptop" and a prompt message 108: "Complete the transfer by clicking / dragging the service" on the connection service management interface. Among them, the prompt message 107 is used to prompt the user about the currently selected device, that is, the device corresponding to the service list 106. In this way, the user can be prompted about the device corresponding to the currently displayed service list, facilitating the user to quickly understand the selected device. The prompt message 108 is used to guide the user to select a service between devices to complete the transfer.

[0076] The user can select any service in the service list 106 to control the laptop to establish a connection with other devices on the trust ring based on this service. In one example, in response to the user's click operation or drag operation (which can be recorded as the first selection operation) on the keyboard and mouse sharing control (which can be recorded as the icon of the target service) in the service list 106, the mobile phone triggers the corresponding device (laptop) to initiate a connection request to other devices on the trust ring based on the keyboard and mouse sharing service. In some examples, after the mobile phone detects the user's click operation or drag operation on the keyboard and mouse sharing control and then detects a second selection operation on the icon corresponding to the second device, it can trigger the laptop to initiate a connection request to the second device based on the keyboard and mouse sharing service, so as to establish a connection between the laptop and the second device based on the keyboard and mouse sharing service.

[0077] Figure 3A Taking the first selection operation by the user on the keyboard and mouse sharing control in the service list 106 as an example of a drag operation for illustration.

[0078] In response to the user's drag operation on the keyboard and mouse sharing control in the service list 106, the mobile phone can drag and display the icon of the keyboard and mouse sharing service following the contact position of the drag operation (such as the position of the user's finger on the display screen), such as Figure 3A the icon 109 of the keyboard and mouse sharing service shown. Among them, dragging and displaying means displaying the icon of the keyboard and mouse sharing service at the position corresponding to the user's drag operation.

[0079] As can be seen from the above description, the services supported by different devices may be different. For two devices to establish a connection, there must be a service that they both support. The laptop may be able to establish a connection with some devices on the trust ring based on the keyboard and mouse sharing service, while unable to establish a connection with other devices. To enable the user to clearly understand which devices can establish a connection with the laptop based on the keyboard and mouse sharing service, the mobile phone can display the icons corresponding to the above two parts of devices in different states during the user's drag operation on the keyboard and mouse sharing control.

[0080] In some embodiments, during the process of the mobile phone responding to the user's dragging operation on the icon 109 of the keyboard and mouse sharing service, it can display the icons corresponding to the first type of devices that can establish a connection with the laptop based on the keyboard and mouse sharing service in the first state; and display the icons corresponding to the second type of devices that cannot establish a connection with the laptop based on the keyboard and mouse sharing service in the second state. Among them, the first state is different from the second state, which is used to prompt the user about the first type of devices that can establish a connection with the laptop (i.e., the service currently selected by the user) based on the keyboard and mouse sharing service, and the second type of devices that cannot establish a connection with the laptop based on the keyboard and mouse sharing service. In this embodiment, during the process of the user's dragging operation on the keyboard and mouse sharing control, the user can determine whether a connection can be established with the device based on the keyboard and mouse sharing service according to the state of the icons corresponding to other devices. Taking the example that the laptop can establish connections with both the mobile phone and the tablet based on the keyboard and mouse sharing service, during the process of the user dragging the keyboard and mouse control, the icons corresponding to the mobile phone and the tablet are both in the lit state.

[0081] Exemplarily, the first state can be the lit state, and the second state can be the grayed-out state. Or, the first state and the second state can be displayed in different colors respectively for distinction, such as the first state is green and the second state is red, etc.

[0082] Among them, the mobile phone can obtain the first type of peer device types supported by the target service of the target device according to the target service of the target device selected by the user operation; for example, the first type of peer device types supported by the keyboard and mouse sharing service of the laptop includes: the mobile phone and the tablet. Then, traverse the second type of peer device types supported by the target services of other devices on the trust ring; for example, the second type of peer device types supported by the keyboard and mouse sharing service of the mobile phone includes the laptop, and the second type of peer device types supported by the keyboard and mouse sharing service of the tablet includes the laptop. Thus, if the first type of peer device type corresponding to the laptop includes the mobile phone, and the second type of peer device type corresponding to the mobile phone includes the laptop, then the laptop can establish a connection with the mobile phone based on the keyboard and mouse sharing service. The same applies to the tablet. It should be noted that the premise of the above judgment is that both the mobile phone and the tablet support the keyboard and mouse sharing service and have enabled the keyboard and mouse sharing service.

[0083] In some other examples, still taking the keyboard and mouse sharing service as an example, if the first type of peer device type corresponding to the laptop does not include the mobile phone, and / or the second type of peer device type corresponding to the mobile phone does not include the laptop, it means that the laptop cannot establish a connection with the mobile phone based on the keyboard and mouse sharing service. The same applies to the tablet.

[0084] During the process of the user dragging the icon 109 of the keyboard and mouse sharing service, the user can release the icon 109 of the keyboard and mouse sharing service at any time.

[0085] In some examples, if the position where the user releases the icon 109 of the keyboard and mouse sharing service is at the icon position corresponding to another device, and the device can establish a connection with the laptop based on the keyboard and mouse sharing service, then the mobile phone will trigger the laptop to establish a connection with the device based on the keyboard and mouse sharing service. As Figure 3B shown, in response to the user releasing the icon 109 of the keyboard and mouse sharing service at the position where the icon corresponding to the mobile phone is located, the mobile phone will trigger the laptop to establish a connection with the mobile phone based on the keyboard and mouse sharing service. This release operation can be recorded as the second selection operation. Since the position corresponding to the release operation is at the position where the icon corresponding to the mobile phone is located, this second selection operation can be understood as an operation performed on the icon corresponding to the mobile phone. Among them, the specific implementation process of the mobile phone triggering the laptop to establish a connection with the mobile phone based on the keyboard and mouse sharing service can refer to the records in the related technology and will not be elaborated in the embodiments of the present application.

[0086] In some embodiments, when the mobile phone detects the release operation of the user on the icon 109 of the keyboard and mouse sharing service, it can determine whether to trigger the laptop to establish a connection according to whether there is an icon corresponding to a device that can establish a connection with the laptop based on the keyboard and mouse sharing service within a certain range (such as the first preset range) of the position where the release operation is located. If there is an icon corresponding to a device that can establish a connection with the laptop based on the keyboard and mouse sharing service within a certain range of the position where the release operation is located, then trigger the laptop to establish a connection. Otherwise, do not trigger the laptop to establish a connection.

[0087] During the process of the mobile phone triggering the laptop to establish a connection with the mobile phone based on the keyboard and mouse sharing service, the progress of establishing the connection can be prompted in the form of a connection status control. In some embodiments, the mobile phone can display the connection status control near the icon corresponding to the device at the receiving end of the connection (such as within the second preset range); this is convenient for the user to better distinguish the connection represented by the connection status control. Exemplarily, as Figure 3B shown, the connection status control 110 is displayed near the icon corresponding to the mobile phone in the third state. The connection status control 110 in this third state is used to indicate that the connection is being established, that is, the keyboard and mouse sharing service is being transferred.

[0088] In some embodiments, the mobile phone can also display a prompt message 111 to prompt that the "keyboard and mouse sharing" service is being transferred, that is, a connection is being established based on the keyboard and mouse sharing service.

[0089] After the laptop computer completes the connection with the mobile phone based on the keyboard and mouse sharing service, that is, after the keyboard and mouse sharing service is transferred, the mobile phone can update the connection state control in the third state to another state. Exemplarily, the mobile phone can update the connection state control 110 in the third state to the connection state control 112 in the fourth state. The connection state control 112 in the fourth state can be used to indicate that the connection is established.

[0090] At the same time, the prompt information of the mobile phone can be updated from "keyboard and mouse sharing" service is being transmitted to "keyboard and mouse sharing" service is being used, such as Figure 3B The prompt information 113 shown. In other embodiments, the prompt information displayed by the mobile phone can also be displayed in other forms, and the prompt information can also be other display content; for example, the "keyboard and mouse sharing" service flow is completed, etc. At this point, a connection is established between the laptop computer and the mobile phone based on the keyboard and mouse sharing service, and the keyboard and mouse sharing service can be used between the laptop computer and the mobile phone.

[0091] In other examples, if the user releases the icon 109 of the keyboard and mouse sharing service at a blank position on the connection management page, the mobile phone will not trigger the laptop to establish a connection with other devices based on the keyboard and mouse sharing service. In addition, the mobile phone can stop displaying the icon 109 of the keyboard and mouse sharing service. In this way, the user can reselect other services to complete the transfer; the process of the user reselecting other services can refer to Figures 2 - 3B Example shown.

[0092] Figure 4 Take the case where the first selection operation of the user on the keyboard and mouse sharing control in the service list 106 is a click operation as an example. In this embodiment, the mobile phone can display prompt information 113-1 in response to the user's click operation on the keyboard and mouse sharing control in the service list 106. The prompt information 113-1 is used to guide the user to select the receiving end of the "keyboard and mouse sharing" service of the laptop. Further, the mobile phone can trigger the laptop to establish a connection with the mobile phone based on the keyboard and mouse sharing service in response to the user's click operation (i.e., the second selection operation) on the icon corresponding to the mobile phone.

[0093] It is understandable that, in response to the user clicking the keyboard and mouse sharing control in the service list 106 , the mobile phone can also display different types of devices in different states according to whether the device can establish a connection with the laptop based on the keyboard and mouse sharing service.

[0094] The above embodiment introduces the process of establishing a connection between devices in response to a user operation triggering on the connection management page. On the connection management page, the user can also cancel the established connection between devices. For example, a user cancels the established keyboard and mouse sharing service between a laptop and a mobile phone on the connection management page. Figure 5, after the mobile phone displays the connection status control at the receiving end of the connection, the user can click on the connection status control to view the expanded state of the connection status control. In response to the user's click operation on the connection status control 114, the mobile phone can display the expanded state of the connection status control 114, such as Figure 5 the expanded connection status control 115 shown. The expanded connection status control 115 is used to indicate the corresponding service and the peer device that established the connection based on the service.

[0095] In addition, the expanded connection status control 115 can also include a cancel icon, which is used to cancel the connection established based on the service. As Figure 5 shown, the "×" included in the expanded connection status control 115.

[0096] In some examples, in response to the user's click operation on the cancel icon "×" in the expanded connection status control 115, the mobile phone can trigger the disconnection of the connection established between the laptop and the mobile phone based on the keyboard and mouse sharing service. At the same time, the mobile phone can stop displaying the connection status control of the mobile phone.

[0097] Figure 5 The connection status control 114 shown is the connection status control in the fourth state, that is, the connection status control used to represent the completion of the connection established based on the corresponding service. It can be understood that in other examples, when the mobile phone displays the connection status control in the third state, it can also respond to the click operation performed by the user on the connection status control in the third state and display the expanded connection status control. In this embodiment, the expanded connection status control is used to indicate the corresponding service and the peer device that is establishing a connection based on the service. The expanded connection status control can also include a cancel icon "×", and in response to the user's click operation on the cancel icon "×", the mobile phone can trigger the action of stopping the laptop from establishing a connection with the mobile phone based on the service. In this way, during the process of the laptop establishing a connection with the mobile phone based on the service, if for some reason the connection cannot be successfully established and the laptop has been in the state of establishing a connection, the user can cancel the connection establishment and try to select the service to establish a connection again.

[0098] In other examples, the user can also directly perform a drag operation on the connection status control to cancel the connection established based on the service. As Figure 6 shown, in response to the user's operation of dragging the connection status control 116 to the blank area and then releasing it, the mobile phone can trigger the laptop to disconnect the established connection with the mobile phone based on the keyboard and mouse sharing service. At the same time, the mobile phone can stop displaying the connection status control at the position of the corresponding icon of the mobile phone. In the technical solution provided by the embodiments of the present application, an intuitive and convenient way to cancel the connection can be provided to the user.

[0099] Connections can be established between two devices simultaneously based on multiple services. After the mobile phone responds to the operation for triggering the laptop to establish a connection with the mobile phone based on the keyboard and mouse sharing service, the mobile phone can continue to respond to the user's operation and trigger the laptop to establish a connection with the mobile phone based on other services. Please refer to Figure 7 , the laptop has established a connection with the mobile phone based on the keyboard and mouse sharing service. The user selects other services in the service list of the laptop and drags them. For example, for the screen sharing service, the mobile phone responds to the user's dragging operation and drags and displays the screen sharing control, such as Figure 7 the screen sharing control 118 shown. Then, the mobile phone responds to the user's release operation of the screen sharing control at the corresponding icon position on the mobile phone, and triggers the laptop to establish a connection with the mobile phone based on the screen sharing service. During the process of the laptop establishing a connection with the mobile phone based on the screen sharing service, the mobile phone can display a connection status control 119 representing the connection near the corresponding icon of the mobile phone (such as within a second preset range). At the same time, the mobile phone can also display a prompt message: The "screen sharing" service is in progress of being transferred. After the laptop completes the establishment of the connection with the mobile phone based on the screen sharing service, a connection status control 120 representing the connection is displayed near the corresponding icon of the mobile phone. At the same time, the mobile phone can also display a prompt message: The "screen sharing" service is being used.

[0100] One device can establish connections with more than two devices simultaneously based on the same service. After the mobile phone responds to the operation for triggering the laptop to establish a connection with the mobile phone based on the keyboard and mouse sharing service, the mobile phone can continue to respond to the user's operation and trigger the laptop to establish a connection with other devices based on the keyboard and mouse sharing service. Please refer to Figure 8 , the laptop has established a connection with the mobile phone based on the keyboard and mouse sharing service. The user continues to select the keyboard and mouse sharing service in the service list of the laptop and drags it, then the mobile phone responds to the user's dragging operation and drags and displays the icon 121 of the keyboard and mouse sharing service. In some examples, since the laptop has established a connection with the mobile phone based on the keyboard and mouse sharing service, then during the user's dragging process of the icon 121 of the keyboard and mouse sharing service, the corresponding icon of the mobile phone can be displayed in a second state. That is, the mobile phone cannot establish a service with the laptop based on the keyboard and mouse sharing service anymore.

[0101] Then, in response to the user's release operation on the icon 121 of the keyboard and mouse sharing service at the position corresponding to the tablet computer on the mobile phone, the notebook computer is triggered to establish a connection with the tablet computer based on the keyboard and mouse sharing service. During the process of the notebook computer establishing a connection with the tablet computer based on the keyboard and mouse sharing service, the mobile phone can display a connection status control (not shown in the figure) representing the connection near the icon corresponding to the tablet computer (the receiving end of the connection), such as within a second preset range. Moreover, after the notebook computer completes the establishment of the connection with the tablet computer based on the keyboard and mouse sharing service, a connection status control 122 representing the connection is displayed near the icon corresponding to the tablet computer (the receiving end of the connection).

[0102] The above embodiments introduce the implementation process of the device connection method proposed in the embodiments of the present application with specific examples, and are schematic diagrams of the interaction process between the user and the electronic device (mobile phone). It can be understood that the devices and services selected by the user in the above embodiments are all examples. In other embodiments, the user can select any device on the trust ring on the connection management page, select any service supported by the device as the initiating end, and select to establish a connection with other devices on the trust ring based on this service. The display of the connection management page on any device logged in with the same user account is intuitive, facilitating the user to perform operations according to the intention and trigger the establishment of a connection (i.e., service transfer) between any two devices on the trust ring based on the shared service, with simple and convenient operations.

[0103] Figure 9 Shows the framework of the electronic device to which the above device connection method is applied, as well as the frameworks of the device cloud for realizing the interconnection service between devices. The operating system of this electronic device can be the Android system or the Windows system. Taking the electronic device as the above mobile phone as an example, in this embodiment, the chip of the mobile phone can include a central processing unit (CPU), a graphics processing unit (GPU), a Bluetooth (BT) chip, and a Wi-Fi chip.

[0104] The security middle platform of the mobile phone is used to authenticate the user's logged-in account to confirm that the device is a device on the trust ring. The security middle platform includes the same account authentication.

[0105] The trust ring of the mobile phone includes a fusion interconnection platform and a shared service. Among them, the fusion interconnection platform includes an access networking service, a device management service, a data transmission service, and a unified interconnection service. Among them, the access networking service can be used for the access and networking of devices on the trust ring. The device management service can be used to manage the devices on the trust ring. The data transmission service can be used for data transmission with other devices on the trust ring. The unified interconnection framework is used to manage the interconnection services between devices on the trust ring.

[0106] The shared service is used to manage the services that can be transferred between devices. Exemplarily, the shared service may include a keyboard and mouse sharing service, a network sharing service, a screen sharing service, and other shared services.

[0107] The system interaction and application layer includes a trust ring interaction center. This trust ring interaction center can be used to manage the update of the display content of the interaction page with the user (i.e., the above-mentioned connection management page), and detect the operations performed by the user on the interaction page (such as click operations, drag operations, etc.).

[0108] The intelligent multi-modal human-computer interaction framework includes a shared service management framework. This shared service management framework can be used to respond to the operations performed by the user on the interaction page, and dispatch the corresponding shared service in the shared service to establish a connection between devices.

[0109] The device cloud can include services such as device online and offline perception, message forwarding between devices, and device data synchronization. Among them, device online and offline perception can be used to perceive the online status and offline status of devices. Message forwarding between devices can be used to forward messages between devices to achieve communication between devices. Device data synchronization can be used to manage the synchronization of data between devices, so as to ensure that the information of each device on the trust ring seen by the user on each device on the trust ring is consistent. The data that needs to be synchronized between devices can specifically include the online status, offline status of each device on the trust ring, and the connection status between devices. In some embodiments, the above data may also include the synchronization of notification messages received between devices.

[0110] In some embodiments, the data transmission between devices on the trust ring can be realized by the data transmission services of each device for communication. In other embodiments, the data transmission between devices on the trust ring can also be forwarded by the message forwarding service between devices of the device cloud between devices.

[0111] The process for a device to enter the trust ring includes: authenticating the account logged in by the device through the security middle platform. After the account authentication is successful, the security middle platform can notify the access networking service to add the device to the ring. Then, after the access networking service adds the device to the ring, it notifies the device management service to report the message of the device's online status to the trust ring interaction center. After receiving the reported message of the device's online status, the trust ring interaction center can display the corresponding device on the interaction page, or update the display status of the corresponding device on the interaction page.

[0112] In some embodiments, after receiving the message of the device's online status, the Trust Ring Interaction Center may also obtain the services supported by the device as an initiator. After that, when the Trust Ring Interaction Center detects that the user triggers the icon corresponding to the device on the interaction page, it may display the service list of the device in combination with the services supported by the device as an initiator.

[0113] In some embodiments, after receiving the message of the device's on - status, the Trust Ring Interaction Center may also obtain all the services supported by the device, as well as the device types of the peer devices supported by each service for connection, etc. After that, when the Trust Ring Interaction Center detects that the user performs a drag operation on the target service of the target device on the interaction page, it may determine the devices that can establish a connection based on the target service with the target service in combination with all the services supported by each device and the device types of the peer devices supported by each service, so as to determine the display status of the icons corresponding to each device on the interaction interface.

[0114] Further, in some embodiments, when the Trust Ring Interaction Center detects the drag operation performed by the user, it may be necessary to trigger the service transfer between devices. Therefore, after detecting the drag operation performed by the user, the Trust Ring Interaction Center may notify the Shared Service Management Framework so that the Shared Service Management Framework schedules the corresponding service from the shared services to establish a connection between devices.

[0115] In some embodiments, taking the electronic device as a mobile phone as an example, the device connection method proposed in the embodiments of the present application may include the following steps: The mobile phone displays a connection management page. The connection management page includes an icon representing the corresponding device of this device, and icons representing other devices except this device. All devices on the connection management page log in to the same user account. The user can manage the interconnection services between devices under this user account on the connection management page. The mobile phone responds to the trigger operation on the icon corresponding to the first device on the connection management page and displays the service list of the first device. The service list includes icons of the services supported by the first device as an initiator; the first device is any one of the devices displayed on the connection management page. In this way, it is convenient for the user to view the services supported by each device under this user account as an initiator, avoiding the need to view the devices supported by each device as an initiator on different devices. After that, the mobile phone responds to the first selection operation on the icon of the target service in the service list and the second selection operation on the icon corresponding to the second device, and triggers the first device to establish a connection with the second device based on the target service. In this way, a method is provided for the user to trigger the establishment of a connection based on a shared service between any two devices logged in under the same user account on the connection management page of any one of the devices logged in under the same user account, and the operation is simple and convenient.

[0116] Among them, the second device can be any device other than the first device among this device or other devices other than this device.

[0117] In some embodiments, before detecting the second selection operation on the icon corresponding to the second device, the above method further includes: in response to the first selection operation, displaying the icons corresponding to the first type of devices that can establish a connection with the first device based on the target service in the first state, and displaying the icons corresponding to the second type of devices that cannot establish a connection with the first device based on the target service in the second state. Among them, the second device belongs to the devices that can establish a connection with the first device based on the target service. In this solution, the states of the two types of devices are displayed in an intuitive manner, facilitating the user to determine whether a connection can be established with the first device based on the target service according to the states displayed by the icons corresponding to other devices when selecting the second device based on the target service.

[0118] In some embodiments, the first selection operation can be a click operation, and the second selection operation can also be a click operation. In other embodiments, the first selection operation can be a drag operation; the second selection operation can be an operation of dragging the icon of the target service to the position where the icon corresponding to the second device is located and then releasing it. This solution provides a simple operation method to establish a connection between two devices based on a shared service under the same user account.

[0119] Next, based on Figure 9 the framework shown, combined with Figure 10 the specific implementation process of the mobile phone displaying the icons corresponding to the devices on the trust ring in the connection management page in the above device connection method will be described. In this embodiment, the trust ring interaction center includes a service interaction module and a service data set. The shared service management framework includes a data dynamic detection module and a service attribute management module. Before leaving the factory, the mobile phone pre-sets a data template in the device management service through the service attribute management module; this data template is used to specify the format of the preset fields related to the services provided by the trust ring.

[0120] S201. The mobile phone is powered on.

[0121] S202. The device management service sends a service initialization instruction to the shared service.

[0122] Correspondingly, the shared service receives the service initialization instruction.

[0123] S203. In response to the service initialization instruction, the shared service initializes the shared service.

[0124] It can be understood that in the above S203, the shared service specifically initializes the shared service of the local machine (that is, the mobile phone). It should be noted that the specific implementation process of the shared service initializing the shared service of the local machine can refer to the description in related technologies.

[0125] S204. The sharing service initializes and writes data to the device management service based on the started sharing service.

[0126] Specifically, when the sharing service initializes and writes data to the device management service, it needs to write in the format specified by the data template preset in the device management service.

[0127] In an embodiment of the present application, after detecting that the device goes online, the device management service reports a message of the device online status to the trust ring interaction center. In some embodiments, after detecting that the device goes online, the device management service also needs to report the data of the online device to the trust ring interaction center.

[0128] In some embodiments, when the sharing service initializes and writes data to the device management service, it can write the data of all sharing services supported by the local machine. In other embodiments, when the sharing service initializes and writes data to the device management service, it can write the data of preset sharing services. The preset sharing services can include the sharing services supported by the mobile phone, or can also include the sharing services not supported by the mobile phone.

[0129] In some embodiments, for each sharing service, the corresponding data thereof includes multiple preset fields, and each preset field represents an attribute of the sharing service. The preset fields may include: (1) a field for indicating the ability switch of the service, (2) a field for indicating the connection status of the service, (3) a field for indicating the connection list of the service, (4) a field for indicating the device type of the peer device supported by the service, and (5) a field for indicating the device type of the device supported as the initiating end of the service.

[0130] Taking the example that when the sharing service initializes and writes data in the device management service, and writes the data corresponding to 3 sharing services (sharing service 1, sharing service 2, and sharing service 3), the data initialized and written by the sharing service in the device management service includes: the data corresponding to sharing service 1 (including multiple preset fields), the data corresponding to sharing service 2 (including multiple preset fields), and the data corresponding to sharing service 3 (including multiple preset fields).

[0131] The following gives an exemplary description of the definitions of each preset field and the data template corresponding to each preset field.

[0132] (1) The field (switch) for indicating the ability switch of the service:

[0133] Field meaning: The ability switch of the service. Field type: int. Value range: {0, 1, 2}, where 0 means not supported, 1 means the switch is off, and 2 means the switch is on. In some examples, the default value of switch can be set to 0. In some embodiments, the writing time of switch: when the device starts up and the service is pulled up and started, the correct ability switch is written for the first time, and dynamic changes are supported. In some other embodiments, if the value of switch is 0, the writing time of switch can be when the mobile phone is initialized.

[0134] Exemplarily, when the value of the (1) field is 0, it means that the device does not support the service. When the value of the (1) field is 1, it means that the device supports the service and the service is already on. When the value of the (1) field is 2, it means that the device supports the service and the service is not on.

[0135] (2) The field (status) used to represent the connection status of the service:

[0136] Field meaning: The connection status of the service. Field type: int. Value range: {0, 1, 2}; where 0 means disconnected, 1 means connected (running, connected), and 2 means connecting. In some examples, the default value of status is 0. Writing time: when the running status of the service changes.

[0137] Figure 11 Shows different connection statuses of the service and a schematic diagram of the conversion between different connection statuses. Disconnected: The service is not connected to any device, for example, no connection is established with other devices based on the keyboard and mouse sharing service. Connected: All devices connected by the service are successful, for example, connections are established with two other devices based on the keyboard and mouse sharing service and both are connected. If only one device is connected, then connecting one device is successful. Connecting: There is a connecting status for the devices connected by the service, for example, connections are established with two devices based on the keyboard and mouse sharing service, one of the two devices is connected successfully and the other is connecting; or both devices are in the connecting state.

[0138] (3) The field (connectedDeviceList) used to represent the connection list of the service:

[0139] Field meaning: The specific connection list of the service. Field type: string.

[0140] Value range: Field template "Device ID; status; role". Among them, "status" represents the connection status of the current device to the corresponding device, aiming to distinguish the connection status of each device. "status" has two states: 2 (indicating connecting), 1 (connected).

[0141] "role" represents whether the connection role of the current service to the current device is "source" or "sink", which is used to determine the display direction of the connection status control, and the connection status control will be displayed on the "sink". In the scenario where the mobile phone establishes connections with multiple devices based on the same service at the same time, "connectedDeviceList" can include fields corresponding to each device.

[0142] Exemplarily, the "connectedDeviceList" corresponding to the keyboard and mouse sharing service of a laptop can include: Device ID1, connecting, source; Device ID2, connected, source. The meaning represented by this "connectedDeviceList" is: The laptop is establishing a connection with Device 1 based on this service, and the laptop has established a connection with Device 2 based on this service.

[0143] The default value of "connectedDeviceList" is empty, and the writing time: Write when the service running status changes.

[0144] (4) Field (deviceType) used to represent the device types of the peer devices supported by this service:

[0145] Field meaning: The types of peer devices that the device can connect to. Field type: int.

[0146] Value range: Take values bit by bit. Each bit corresponds to a type of device respectively: bit0 represents mobile phone, bit1 represents personal computer PC, bit2 represents tablet PAD, bit3 represents foldable mobile phone, bit4 represents TV, bit5 represents in-vehicle infotainment system, bit6 represents printer, bit7 represents watch, bit8 represents earphone. Exemplarily, if bit0 is 1, it means that this device can establish a connection with a mobile phone based on this service; on the contrary, if bit0 is 0, it means that this device cannot establish a connection with a mobile phone based on this service. bit1-bit9 are similar to bit0.

[0147] The default value of "deviceType" can be the common connection types. Writing time: When the device starts and the service is pulled up and started, write the correct peer device types for the first time, and dynamic changes are supported.

[0148] (5) Field (prefDev) used to represent the device types that this service supports as the initiating end:

[0149] Field meaning: The preferred device type of this service is used to connect and manage the service initiation display within the page (which can be called the control center page). Field type: int.

[0150] Value range: Bitwise value is taken, and each bit represents a type of device: bit0 represents mobile phone, bit1 represents personal computer PC, bit2 represents tablet PAD, bit3 represents foldable mobile phone, bit4 represents TV, bit5 represents in-vehicle infotainment system, bit6 represents printer, bit7 represents watch, bit8 represents earphone. Exemplarily, when bit0 is 1, it means the mobile phone supports this service as an initiating end; on the contrary, when bit0 is 0, the mobile phone does not support this service as an initiating end. bit1-bit9 are similar to bit0.

[0151] Writing timing of prefDev: When the device starts and the service is pulled up and started, the correct preferred device type is written for the first time, and dynamic changes are supported.

[0152] In some other embodiments, the preset fields included in a shared service may further include: (6) a field for indicating the carrier on which this service runs, (7) a field for indicating the physical connection type after the device establishes a connection, (8) a field for indicating the logical channel after the device establishes a connection, (9) a field for indicating the version number of this service, (10) a field for indicating the scheduling level of this service in the control center, (11) a field for indicating the logical connection type supported by this service, (12) a field for indicating the dependency relationship of this service, (13) a field for indicating the services that conflict with this service.

[0153] (6) A field for indicating the carrier on which this service runs (packageName):

[0154] Field meaning: The carrier on which the service runs: For Android devices, it is the package name, and for PC devices, it is the PID. Field type: string. Value range: Not applicable. Default value of packageName: For Android devices, it is the package name, and for PC devices, it is the PID. Writing timing: When the device starts and the service is pulled up and started, the correct carrier package name is written for the first time, and dynamic changes are supported.

[0155] (7) A field for indicating the physical connection type after the device establishes a connection (physicalConnectType):

[0156] Field meaning: The physical connection type after the device establishes a connection. Field type: int.

[0157] Value range: Bitwise value is taken, and the meaning of each bit is as follows:

[0158] bit0 represents Bluetooth Low Energy (BLE) connection; bit1 represents Wi-Fi peer-to-peer (P2P) connection; bit2 represents WLAN; bit3 represents Basic Rate (BR) Bluetooth connection.

[0159] The default value of physicalConnectType is 0. Write timing: When the service running state changes, write the correct connection state upon successful connection, and restore the default value upon connection failure.

[0160] (8) Field (businessConnectType) used to represent the logical channel after the device establishes a connection:

[0161] Field meaning: The logical channel after the device establishes a connection. Field type: int. Value range: {0, 1, 2}; where 0 represents the first type of logical channel (such as onehop); 1 represents the second type of logical channel (such as MagicLink); 2 represents other types.

[0162] The default value of businessConnectType: None. Write timing: When the service running state changes, write the correct connection state upon successful connection, and restore upon connection failure.

[0163] (9) Field (version) used to represent the version number of this service:

[0164] Field meaning: The version number of the service. Field type: string. Value range: in the format of x.xx. The default value of version can be set to 1.00. Write timing: When the device starts and the service is pulled up and started, write the correct service version number for the first time.

[0165] (10) Field (dccAccess) used to represent the scheduling level of this service in the control center:

[0166] Field meaning: The scheduling level of the service in the control center. Field type: int. The default value is 2. Write timing: When the device starts and the service is pulled up and started, write the correct scheduling level for the first time, and dynamic changes are supported.

[0167] (11) Field (supportConnectType) used to represent the logical connection types supported by this service:

[0168] Field meaning: The logical connection types supported by the service. Field type: int.

[0169] Value range: Bitwise value; the meaning of each bit is as follows:

[0170] bit0 represents the first type of logical channel (e.g., onehop); bit1 represents the second type of logical channel (e.g., MagicLink); bit2 represents other types; bit3: nearBy.

[0171] The default value of supportConnectType is none. Write timing: When the device starts up and the service is pulled up and started, write the correct supported type for the first time, and dynamic changes are supported.

[0172] (12) Field (required) for indicating the dependency relationship of the service:

[0173] Field meaning: The dependency relationship of the service, where there is a service that needs to depend on other services. Field type: string. Value range: required: service ID (e.g., required: superio). The default value of required is none. Write timing: When the device starts up and the service is pulled up and started, write the correct dependency relationship for the first time, and dynamic changes are supported.

[0174] (13) Field (conflictSvc) for indicating the services that conflict with this service:

[0175] Field meaning: According to the specification, there are services that cannot run concurrently with each other. Write the service ID that conflicts with this service. Field type: string.

[0176] Value range: conflictSvc: service ID (e.g., conflictSvc: "superio; superHandoff").

[0177] The default value of conflictSvc is none. Write timing: When the device starts up and the service is pulled up and started, write the conflict blacklist for the first time, and dynamic changes are supported.

[0178] It can be understood that the types of the above preset fields and the specific definitions of the preset fields are all examples. In other embodiments, the shared service may also include other types of preset fields. The definitions of the preset fields can also be other contents.

[0179] S205. The device management service reports data to the service attribute management module.

[0180] The data reported by the device management service to the service attribute management module is the data initially written during the initialization of the shared service; such as preset fields. In some embodiments, the data initially written during the initialization of the shared service is in JSON format (a cross - language format). However, data in JSON format usually cannot be directly read by the service interaction module. To facilitate the service interaction module to read the data, the service attribute management module can perform service attribute parsing on the received data, such as S206.

[0181] S206. The service attribute management module performs service attribute parsing on the data.

[0182] Service attribute parsing can determine the service attributes of each service according to the data initially written for each service in the device management service by the shared service; such as service attributes including whether the device supports the service, the connection status of the service on the device, the connection list, the type of peer device supported, and whether the device supports being an initiator, etc.

[0183] In some embodiments, the above - mentioned S206 can specifically include: the service attribute management module converts the data from the initial data format to a preset data format. In some embodiments, the initial data format is JSON format; the preset data format can be set according to the actual situation, and the preset data format can be a data format of a structure.

[0184] S207. The service attribute management module returns service data to the service data set.

[0185] Correspondingly, the service data set receives the service data.

[0186] S208. The service data set caches the service data.

[0187] S209. Display the connection management page.

[0188] The mobile phone can display the connection management page in response to the user's operation. Exemplarily, the mobile phone can display the connection management page in response to the user's operation of turning on the intelligent interconnection function (i.e., the trust ring function).

[0189] S210. Display the icons corresponding to the devices on the trust ring on the connection management page.

[0190] In some embodiments, the above - mentioned S210 can specifically include: the service interaction module obtains the status of each device on the trust ring; the service interaction module displays the icons corresponding to the devices according to the status of each device.

[0191] In some embodiments, the status of each device on the trust ring can include the online status and the offline status. Obtaining the status of other devices on the trust ring by the local device can facilitate accurately displaying the status of each device in the connection management interface of the local device.

[0192] In some other embodiments, the status of each device on the trust ring may further include the connection status of each service supported by the device. Exemplarily, the trust ring includes a laptop and a tablet computer, and the laptop and the tablet computer have established a connection based on the keyboard and mouse sharing service. In this embodiment, the status of the device may further include the status that the laptop and the tablet computer have established a connection based on the keyboard and mouse sharing.

[0193] In some embodiments, the service interaction module obtains the status of each device, specifically by receiving the status of each device reported by the device management service. In some embodiments, the service interaction module obtaining the status of each device may specifically include: The device management service can obtain the status of other devices through the device cloud as shown, and then the device management service reports the status of other devices to the service interaction module. Alternatively, for the service interaction module to obtain the status of each device, the data transmission service can also interact with other devices to obtain the status of other devices. Then the data transmission service sends the status of other devices to the device management service. Finally, the device management service reports the status of other devices to the service interaction module. Figure 9 As can be seen from the description of the above embodiments, in some embodiments, the connection management page displays the icons corresponding to the currently online devices on the trust ring. In this embodiment, the service interaction module can display the icons corresponding to the currently online devices on the connection management page.

[0194] In some other embodiments, the connection management page can display the icons corresponding to all the devices on the trust ring, including the online devices and the offline devices, and distinguish the online devices and the offline devices with different display states. In this embodiment, the service interaction module can display the icons corresponding to all the devices on the trust ring on the connection management page, and display the icons corresponding to the currently online devices in a colored state / lighted state, and display the icons corresponding to the currently offline devices in a grayed-out state.

[0195]

[0196] ​In some other embodiments, the status of the device obtained by the service interaction module further includes the connection status of each service supported by the device. In this embodiment, if the service interaction module determines, based on the obtained status of the device, that the device has established a connection with another device, it may display a connection status control for the corresponding service at the icon position of the device on the connection management page. Taking the service interaction module as an example, according to the obtained status of the device, it is determined that the laptop has established a connection with the tablet based on the keyboard and mouse sharing service, and the laptop is the initiator and the tablet is the receiver. The mobile phone can display a connection status control at the icon position corresponding to the tablet on the connection management page. Among them, the connection status control is used to represent the status of the connection established between the laptop and the tablet based on the keyboard and mouse sharing service. In this way, it is convenient for the user to quickly understand the connection status of each service supported by other devices on the trust ring on the local connection management page.

[0197] The user can perform a click operation on the icon corresponding to the displayed device on the connection management page. Icons corresponding to multiple devices on the trust ring are displayed on the connection management page. Specifically, the user can perform a click operation on the icon corresponding to any online device (including the local device and other devices) displayed on the connection management page. Correspondingly, the mobile phone can receive this click operation, such as S211.

[0198] S211. The service interaction module receives the click operation.

[0199] This click operation is specifically a click operation on the icon corresponding to device A. Combining Figure 2 with the example shown, the above S211 can specifically correspond to the mobile phone detecting that the user clicks on the laptop icon 104.

[0200] S212. The service interaction module requests the service data set to query the service data of device A.

[0201] S213. The service data set determines whether the service data of device A is found.

[0202] Generally, after the mobile phone starts the sharing service, it will obtain the data of the local device and the data of other devices on the trust ring, and after parsing the service attributes of the data of each obtained device, it will report the parsed service data to the service data set. Then, the service data set will cache the service data of each device. If the service data set receives the reported service data of device A when detecting a click operation on the icon corresponding to the device on the connection management page, the service data set can query the service data of device A. That is, the judgment result of S213 is yes. At this time, the service data set can directly return the service data of device A to the service interaction module.

[0203] S214. The service data set returns service data to the service interaction module.

[0204] However, in some scenarios, when the service interaction module of the mobile phone receives a click operation from the user, the service data set has not yet received the report of the service data of device A, so the service data set cannot query the service data of device A. That is, the judgment result of S213 above is negative. In the embodiments of the present application, at this time, the service data set can actively obtain the service data of device A, such as S215 - S222.

[0205] S215. The service data set sends a data acquisition request to the service attribute management module.

[0206] Correspondingly, the service attribute management module receives the data acquisition request.

[0207] The service attribute management module can be used to parse the data of each device and convert the data from the initial data format to the preset data format. Therefore, in the embodiments of the present application, the service data set can obtain the service data of device A through the service attribute management module.

[0208] In some embodiments, the data acquisition request can be used to request the service data of device A. In other embodiments, the data acquisition request can also be used to request the latest service data of all devices on the trust ring.

[0209] S216. The service attribute management module sends a data acquisition request to the device management service.

[0210] Correspondingly, the device management service receives the data acquisition request.

[0211] S217. The device management service returns the data of device A to the service attribute management module.

[0212] Correspondingly, the service attribute management module receives the data of device A.

[0213] If device A is a mobile phone (i.e., the local device), the device management service can directly return the data written during the initialization of the shared service to the service attribute management module.

[0214] If device A is another device on the trust ring, the device management service can obtain the data of device A through the data transmission service of the fusion interconnection middle platform. Then, the device management service returns the obtained data of device A to the service attribute management module.

[0215] S218. The service attribute management module performs service attribute parsing on the data.

[0216] S219. The service attribute management module returns the service data of device A to the service data set.

[0217] Correspondingly, the service data set receives the service data of device A.

[0218] S220. The service data set caches the service data of device A.

[0219] S221. The service data set returns the service data of device A to the service interaction module.

[0220] Correspondingly, the service interaction module receives the service data of device A.

[0221] S222. The service interaction module displays the services of device A according to the service data.

[0222] Combination Figure 2 For example, the above S222 may specifically correspond to the mobile phone displaying the service list 106 of the laptop computer, where the service list 106 includes the services of device A.

[0223] In an embodiment of the present application, the service interaction module displays the services of device A, which may specifically include: the service interaction module displays the services that device A supports as an initiator. Specifically, the services that device A supports as an initiator include the following two conditions: ① services that device A supports and has enabled; ② device A can serve as an initiator.

[0224] In some embodiments, the service interaction module can determine the service of device A that needs to be displayed based on the field (the above-mentioned field (1)) in the preset field used to indicate the capability switch of the service, and the field (the above-mentioned field (3)) used to indicate the device type that supports the service as the initiator. In this embodiment, taking service 1 as an example, the mobile phone can determine whether device A supports service 1 and whether device A has enabled service 1 based on the field (1) corresponding to service 1 of device A. Then, it can be determined whether device A can be used as the initiator based on the field (3) corresponding to service 1 of device A. If it is determined that device A supports service 1 and has enabled service 1 based on the field (1) of service 1, and it is determined that device A supports being used as the initiator based on service 1 based on the field (3) of service 1, it means that the services that device A supports as the initiator include service 1. Other services are similar to service 1. Finally, the service interaction module determines the service of device A that needs to be displayed based on the above two data; illustratively, the services that device A supports as the initiator include service 1, service 2, and service 3.

[0225] Among them, the first field corresponding to the service 1 of device A determines whether device A supports service 1, which can be determined after the service attribute management module parses the preset field for service attributes. Exemplarily, when the value of the first field corresponding to the service 1 of device A is 1, it means that device A supports service 1 and service 1 of device A has been turned on.

[0226] In some embodiments, the above S222 may further include the mobile phone displaying the connection status of each service supported by each device on the connection management page according to the connection status of each service supported by each device. In some embodiments, taking the example that a laptop has established a connection with a tablet based on the keyboard and mouse sharing service, the mobile phone may determine the sink end of this connection (taking the tablet as an example) according to the third field corresponding to the keyboard and mouse sharing service of the laptop. Then, the mobile phone may display a connection status control representing the keyboard and mouse sharing service near the icon corresponding to the tablet (such as within a second preset range).

[0227] In the technical solution proposed in the embodiments of the present application, online devices can be intuitively displayed on the connection management page according to the status of each device on the trust ring. Moreover, for any device on the trust ring, in response to a user's operation, a service list corresponding to the selected device can be displayed on the connection management page of the mobile phone. In this way, a more convenient operation method can be provided for the user, without the user having to open each device on the trust ring to view the services supported as the initiating end by each device.

[0228] Further, after the above S222, the user can complete the transfer of a service by dragging the service of device A. In some examples, in response to the user's drag operation on service 1 of device A, the mobile phone may drag and display the control corresponding to service 1. This process corresponds to Figure 3A In the example shown, in response to the user's drag operation on the icon of the keyboard and mouse sharing service, the mobile phone drags and displays the icon 109 of the keyboard and mouse sharing service.

[0229] To facilitate the user's intuitive view of which devices Service 1 of Device A can establish connections with, during the process of dragging the control corresponding to Service 1 of Device A, the mobile phone can display the icons corresponding to devices other than Device A on the trust ring in different display states (such as the first state or the second state). In some embodiments, the mobile phone can determine which devices can establish connections with Device A based on Service 1 according to the (4)th field in the above embodiments. Specifically, the mobile phone can obtain the (4)th field corresponding to Service 1 of Device A and determine the first peer device type supported by Service 1 of Device A. The mobile phone can also obtain the (4)th field corresponding to Service 1 of each device other than Device A (such as Device B and Device C), determine the second peer device type supported by Service 1 of Device B, and the second peer device type supported by Service 1 of Device C. If the first peer device type supported by Service 1 of Device A includes Device B, and the second peer device type supported by Service 1 of Device B includes Device A, then Device A can establish a connection with Device B based on Service 1. Then, during the process of dragging the control corresponding to Service 1 of Device A, the mobile phone can display the icon corresponding to Device B in the first state. The process of determining the display state of the icon corresponding to Device C is similar to that of Device B. It should be noted that the premise of the above judgment is that both Device B and Device C support Service 1 and both have Service 1 enabled.

[0230] In this solution, during the process of the user dragging the service to complete the transfer, the devices to which the service can be transferred and the devices that cannot be transferred can be intuitively displayed, facilitating the user to quickly obtain relevant information and then select the device to which the selected service needs to be transferred according to their own needs.

[0231] Figure 12 Illustrates the specific implementation process of the mobile phone updating the status display when the status of the devices on the trust ring changes. Figure 12 The shown process can be executed Figure 10 after the shown process.

[0232] S301. The device management service monitors data changes.

[0233] In the above S301, the device management service can monitor data changes of the local device from the shared service. In some embodiments, the device management service can register a callback function in the shared service. When the data changes in the shared service, it can notify the device management service through the callback function.

[0234] In other embodiments, the device management service can also obtain data of other devices through the data transmission service of the integrated device center. And when it determines that the connection status control of the service of other devices changes according to the data of other devices, it can report the change in the connection status of the service of this device to the mobile phone.

[0235] S302. The device management service detects a change in the connection status of the device and updates the corresponding preset fields.

[0236] Taking the connection status of the keyboard and mouse sharing service of a laptop changing from "connecting" to "connected" as an example, after the mobile phone detects this change in the connection status, the mobile phone can update the (2) field of the keyboard and mouse sharing service of the laptop in the mobile phone. Exemplarily, the device management service of the mobile phone can change the value of the (2) field of the keyboard and mouse sharing service of the laptop from 2 to 1. In other embodiments, the change in the connection status may also include establishing a new connection, or disconnecting an established connection, etc.

[0237] S303. The device management service dynamically reports the changed data to the data dynamic detection module.

[0238] Correspondingly, the data dynamic detection module receives the changed data dynamically reported by the device management module.

[0239] S304. The data dynamic detection module sends data to the service attribute management module.

[0240] S305. The service attribute management module performs service attribute parsing on the data.

[0241] S306. The service attribute management module dynamically reports the updated service data to the service data set.

[0242] Correspondingly, the service data set receives the updated service data.

[0243] S307. The service data set caches the updated service data.

[0244] S308. The service data set reports the updated service data to the service interaction module.

[0245] S309. The service interaction module updates the display of the connection status control according to the updated service data.

[0246] In some embodiments, the service interaction module updates the connection status control corresponding to the updated service data. In some embodiments, the update of the service data specifically includes: establishing a new connection between devices based on a service, or disconnecting an established connection between devices based on a service, etc.

[0247] In Figure 3B the example shown, the above S309 can specifically correspond to: the mobile phone displays the connection status control 110 in the third state near the icon corresponding to the mobile phone itself (i.e., the mobile phone), such as within the second preset range. Or the above S309 can also correspond to the mobile phone displaying the connection status control 112 in the fourth state near the icon corresponding to the mobile phone itself.

[0248] In the technical solution provided by the embodiments of the present application, based on the update of the connection status controls of each device on the trust ring on the connection management page, the status changes of the connections established between the devices on the trust ring based on services can be quickly and intuitively displayed. In this way, a more convenient operation method can be provided for users, without the need for users to open each device on the trust ring to view the connection status between each service of each device and other devices.

[0249] As Figure 13 shown is a schematic structural diagram of an electronic device 500 provided by an embodiment of the present application. The electronic device 500 may include a processor 510, an external memory interface 520, an internal memory 521, a universal serial bus (USB) interface 530, a charging management module 540, a power management module 541, a battery 542, an antenna 1, an antenna 2, a mobile communication module 550, a wireless communication module 560, an audio module 570, a sensor module 580, a button 590, a motor 591, a camera 592, a display screen 593, and a subscriber identification module (SIM) card interface 594, etc. Among them, the sensor module 580 may include a pressure sensor 580A, a touch sensor 580B, etc.

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

[0251] The processor 510 may include one or more processing units. For example, the processor 510 may include an application processor (AP), a modem processor, a graphics processor, an image signal processor (ISP), a controller, a memory, 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. For example, the processor 510 is used to execute the device connection method in the embodiments of the present application.

[0252] Among them, the controller can be the nerve center and command center of the electronic device 500. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.

[0253] A memory can also be set in the processor 510 for storing instructions and data. In some embodiments, the memory in the processor 510 is a cache memory. This memory can save the instructions or data that the processor 510 has just used or recycled. If the processor 510 needs to use this instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 510, and thus improves the efficiency of the system.

[0254] The USB interface 530 is an interface that conforms to the USB standard specification. Specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 530 can be used to connect a charger to charge the electronic device 500, or to transfer data between the electronic device 500 and peripheral devices.

[0255] The external memory interface 520 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 500. The external memory card communicates with the processor 510 through the external memory interface 520 to achieve the data storage function. For example, files such as music and videos are saved in the external memory card.

[0256] The internal memory 521 can be used to store computer-executable program code, and the executable program code includes instructions. The processor 510 executes various functional applications and data processing of the electronic device 500 by running the instructions stored in the internal memory 521. The internal memory 521 can include a program storage area and a data storage area. Among them, the program storage area can store the operating system and at least one application required for a function (such as a sound playback function, an image playback function, etc.).

[0257] In addition, the internal memory 521 can include high-speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0258] The charge management module 540 is used to receive a charging input from a charger. Among them, the charger can be a wireless charger or a wired charger. In some embodiments of wired charging, the charge management module 540 can receive the charging input of the wired charger through the USB interface 530.

[0259] The power management module 541 is used to connect the battery 542, the charging management module 540, and the processor 510. The power management module 541 receives inputs from the battery 542 and / or the charging management module 540, and supplies power to the processor 510, the internal memory 521, the external memory, the display screen 593, the camera 592, the wireless communication module 560, etc.

[0260] In some other embodiments, the power management module 541 may also be disposed in the processor 510. In some other embodiments, the power management module 541 and the charging management module 540 may also be disposed in the same device.

[0261] The wireless communication function of the electronic device 500 can be implemented by the antenna 1, the antenna 2, the mobile communication module 550, the wireless communication module 560, the modulation and demodulation processor, and the baseband processor, etc.

[0262] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 500 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed as the diversity antenna of the wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0263] The mobile communication module 550 can provide solutions for wireless communications such as 2G / 3G / 4G / 5G applied to the electronic device 500. The mobile communication module 550 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 550 can receive electromagnetic waves by the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 550 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves through the antenna 1 and radiate it out.

[0264] The wireless communication module 560 can provide solutions for wireless communications applied to the electronic device 500, including wireless local area networks (WLANs) (such as Wi-Fi networks), Bluetooth, global navigation satellite systems (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 560 can be one or more devices integrating at least one communication processing module. The wireless communication module 560 receives electromagnetic waves via the antenna 2, frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 510. The wireless communication module 560 can also receive the signals to be sent from the processor 510, frequency-modulate them, amplify them, and convert them into electromagnetic waves through the antenna 2 for radiation.

[0265] In some embodiments, the antenna 1 of the electronic device 500 is coupled to the mobile communication module 550, and the antenna 2 is coupled to the wireless communication module 560, enabling the electronic device 500 to communicate with the network and other devices through wireless communication technologies.

[0266] The electronic device 500 can implement audio functions through the audio module 570 and the application processor, etc. For example, music playback, recording, etc.

[0267] The audio module 570 is used to convert digital audio signals into analog audio signals for output, and is also used to convert analog audio inputs into digital audio signals. The audio module 570 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 570 can be disposed in the processor 510, or some functional modules of the audio module 570 can be disposed in the processor 510.

[0268] The pressure sensor 580A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 580A can be disposed on the display screen 593. There are many types of pressure sensors 580A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can include at least two parallel plates with conductive materials. When a force acts on the pressure sensor 580A, the capacitance between the electrodes changes. The electronic device 500 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 593, the electronic device 500 detects the intensity of the touch operation according to the pressure sensor 580A. The electronic device 500 can also calculate the position of the touch based on the detection signal of the pressure sensor 580A.

[0269] The touch sensor 580B, also known as the "touch panel". The touch sensor 580B can be disposed on the display screen 593. The touch sensor 580B and the display screen 593 together form a touch screen, also known as the "touch display screen". The touch sensor 580B is used to detect touch operations acting thereon or in its vicinity. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 593. In some other embodiments, the touch sensor 580B can also be disposed on the surface of the electronic device 500, at a different position from where the display screen 593 is located.

[0270] The buttons 590 include a power-on button, volume buttons, etc. The buttons 590 can be mechanical buttons. They can also be touch buttons. The electronic device 500 can receive button inputs and generate key signal inputs related to the user settings and function controls of the electronic device 500.

[0271] The motor 591 can generate vibration prompts. The motor 591 can be used for incoming call vibration prompts and can also be used for touch vibration feedback.

[0272] The camera 592 is used to capture still images or videos. In some embodiments, the electronic device 500 can include one or N cameras 592, where N is a positive integer greater than 1.

[0273] The electronic device 500 realizes the display function through the GPU, the display screen 593, and the application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 593 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 510 can include one or more GPUs, which execute program instructions to generate or change display information.

[0274] The display screen 593 is used to display images, videos, etc. In some embodiments, the electronic device 500 can include one or N display screens 593, where N is a positive integer greater than 1.

[0275] The SIM card interface 594 is used to connect the SIM card. The SIM card can be inserted into or removed from the SIM card interface 594 to achieve contact and separation from the electronic device 500. The electronic device 500 can support one or N SIM card interfaces, where N is a positive integer greater than 1.

[0276] The device connection methods in the above embodiments can all be implemented in the electronic device 500 with the above hardware structure.

[0277] Some other embodiments of the present application provide a computer device (such as a mobile phone). The computer device may include: a display screen, a memory, one or more processors, and a computer program stored in the memory. The display screen and the memory are respectively coupled to the processor. When the processor executes the computer program, the computer device can execute each function or step that the mobile phone executes in the above method embodiments. The structure of the computer device may refer to Figure 13 the structure of the electronic device 500 shown.

[0278] Embodiments of the present application also provide a chip system, as Figure 14 shown, the chip system 100 includes at least one processor 1001 and at least one interface circuit 1002. The processor 1001 and the interface circuit 1002 can be interconnected by a line. For example, the interface circuit 1002 can be used to receive signals from other devices (such as the memory of a computer). For another example, the interface circuit 1002 can be used to send signals to other devices (such as the processor 1001). Exemplarily, the interface circuit 1002 can read the instructions stored in the memory and send the instructions to the processor 1001. When the instructions are executed by the processor 1001, the computer device can execute each step in the above embodiments. Of course, the chip system can also include other discrete devices, and the embodiments of the present application do not make specific limitations on this.

[0279] Embodiments of the present application also provide a computer-readable storage medium, which includes computer instructions. When the computer instructions run on the above computer device (such as a mobile phone), the computer device executes each function or step that the mobile phone executes in the above method embodiments.

[0280] Embodiments of the present application also provide a computer program product. When the computer program product runs on a computer device, the computer device executes each function or step that the mobile phone executes in the above method embodiments. Among them, the computer device can be an electronic device, such as a mobile phone.

[0281] Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

[0282] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections between each other can be through some interfaces. The indirect couplings or communication connections of devices or units can be in electrical, mechanical or other forms.

[0283] The units described as separate components may or may not be physically separated. The components displayed as units may be one physical unit or multiple physical units, that is, they can be located in one place, or they can be distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0284] In addition, each functional unit in various embodiments of the present application can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

[0285] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions for causing a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods of the various embodiments of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read only memory (ROM), random access memory (RAM), magnetic disks or optical discs that can store program codes.

[0286] The above content is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A device connection method, characterized in that, The method includes: Displaying a connection management page; the connection management page includes an icon corresponding to this device, and icons corresponding to other devices except this device, and the other devices and this device log in to the same user account; In response to a trigger operation on the icon corresponding to the first device on the connection management page, displaying a service list of the first device; the service list includes icons of services supported by the first device as an initiator; the first device is any one of this device or the other devices; In response to a first selection operation on the icon of the target service in the service list and a second selection operation on the icon corresponding to the second device, triggering the first device to establish a connection with the second device based on the target service.

2. The method according to claim 1, wherein Before detecting the second selection operation on the icon corresponding to the second device, the method further includes: In response to the first selection operation, displaying the icons corresponding to the first type of devices that can establish a connection with the first device based on the target service in a first state, and displaying the icons corresponding to the second type of devices that cannot establish a connection with the first device based on the target service in a second state; Wherein, the second device belongs to the devices that can establish a connection with the first device based on the target service.

3. The method according to claim 1 or 2, characterized in that, The first selection operation includes a click operation; the second selection operation includes a click operation.

4. The method according to claim 1 or 2, characterized in that, The first selection operation includes a drag operation; the second selection operation includes dragging the icon of the target service to the position where the icon corresponding to the second device is located and releasing the operation.

5. The method according to any one of claims 1-4, characterized in that, The method further includes: In response to a first selection operation on the icon of the target service in the service list and a second selection operation on the icon corresponding to the second device, displaying a connection status control corresponding to the target service; Wherein, the connection status control includes a third state or a fourth state, the third state is used to indicate that the first device is establishing a connection with the second device based on the target service, and the fourth state is used to indicate that the first device has completed establishing a connection with the second device based on the target service.

6. The method according to claim 5, wherein The method further includes: In response to a trigger operation on the connection status control, displaying the expanded connection status control; the expanded connection status control is further used to indicate the peer device that has established a connection with the second device based on the target service.

7. The method according to claim 5 or 6, characterized in that, After displaying the connection status control corresponding to the target service, the method further includes: In response to a connection disconnection operation performed based on the connection status control, triggering the second device to disconnect the connection established with the first device based on the target service.

8. The method according to claim 7, characterized in that, The method further includes: In response to the connection disconnection operation, stopping displaying the connection status control.

9. The method according to any one of claims 2-8, characterized in that, Before displaying the icons corresponding to the first type of devices that can establish a connection with the first device based on the target service in a first state and displaying the icons corresponding to the second type of devices that cannot establish a connection with the first device based on the target service in a second state, the method further includes: In response to the first selection operation, query the first peer device type supported by the target service of the first device, and query the second peer device type supported by the target service of other devices except the first device; Among them, the first type of devices includes: devices whose second peer device type includes the device type of this device and whose device type belongs to the first peer device type; The second type of devices includes: devices whose second peer device type does not include the device type of this device, and / or devices whose device type does not belong to the first peer device type.

10. The method according to any one of claims 1-9, characterized in that In response to a trigger operation on the icon corresponding to the first device on the connection management page, display the service list of the first device, including: In response to a trigger operation on the icon corresponding to the first device on the connection management page, obtain the service data corresponding to the first device; the service data of the first device includes the services supported by the first device, and whether each service supported by the first device is enabled and whether it supports being the initiating end; Determine the services supported by the first device as the initiating end according to the service data of the first device; Display the service list, and the service list includes the icons of the services supported by the first device as the initiating end.

11. The method according to claim 10, wherein The obtaining the service data corresponding to the first device includes: Obtain the preset fields corresponding to each service of the first device; the preset fields corresponding to the service include: a first field for indicating the ability switch of the service, a second field for indicating the connection status of the service, a third field for indicating the connection list of the service, a fourth field for indicating the device type of the peer device supported by the service, and a fifth field for indicating the device type that supports the service as the initiating end; Perform service attribute parsing on the preset fields to obtain the service data corresponding to the first device.

12. The method according to any one of claims 1-11, characterized in that, The method further includes: When detecting that the state of the device logging in to the user account changes, update the connection management page based on the device information of the device whose state has changed.

13. A computer device, characterized in that, Including: A display screen, a processor, a memory, and a computer program stored on the memory; the display screen and the memory are respectively coupled to the processor; The display screen is used to display the interface of the computer device; When the computer device runs, the processor executes the computer program to implement the method according to any one of claims 1-12.

14. A computer-readable storage medium, characterized in that, A computer program is stored, and when the computer program is run by the processor of the computer device, the method according to any one of claims 1-12 is implemented.

15. A computer program product, characterized in that, Including a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1-12 is implemented.

Citation Information

Patent Citations

  • Control method and device, and storage medium

    CN111930024A

  • Application interaction method among multiple devices and related devices

    CN113311975A

  • Equipment collaboration method and related device

    CN116156044A