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

By displaying multiple device groups on the connection management interface and using the server to control the connections, multi-device connections without setting up a central device are realized, solving the problems of complex connection management and insufficient flexibility in the existing technology, and improving device utilization and use. scene.

CN114422566BActive Publication Date: 2024-10-01GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202111641476.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2024-10-01
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

The existing technology lacks flexibility in the multi-device connection process. Users need to set up central electronic devices, and connection management is complex, making it difficult to achieve flexible device combinations and status changes.

Method used

By displaying multiple device groups on the connection management interface, users can drag electronic devices to the target group, and the server receives the request and controls the establishment of connections between devices, achieving flexible connection management without the need for a central device.

Benefits of technology

It improves the flexibility of multi-device connections and simplifies the connection management process. Users can flexibly change device connection status according to needs, enhancing device utilization and usage scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114422566B_ABST
    Figure CN114422566B_ABST
Patent Text Reader

Abstract

The present application relates to a multi-device connection method, apparatus, system, equipment and storage medium, and belongs to the field of terminal technology. The method includes: displaying multiple device groups on a connection management interface, each device group includes at least one electronic device, and the device group is used to indicate the connection status of the electronic device; in response to a first electronic device being dragged to a target device group, a connection establishment request is sent to a server to instruct the first electronic device to establish a connection with at least one second electronic device in the target device group, and the server is used to manage the connection relationship between electronic devices. In this way, there is no need to set up a central electronic device, making the connection more flexible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of terminal technology, and in particular to a multi-device connection method, apparatus, system, device and storage medium. Background Art

[0002] With the development of terminal technology, users have more and more ways to operate electronic devices. For example, by building device connections, one electronic device can control other electronic devices.

[0003] In the related art, a data sending end usually sends a connection establishment request to a data receiving end, and the data receiving end establishes a connection with the data sending end based on the connection establishment request. For example, when the video data played on the mobile phone needs to be projected onto a TV, the mobile phone can be connected to the TV. The process of establishing a connection between the mobile phone and the TV is: the mobile phone searches for the TV in the current local area network, sends a connection establishment request to the searched TV, establishes a connection with the TV, and projects the video data on the mobile phone onto the TV. Summary of the invention

[0004] The embodiments of the present application provide a multi-device connection method, apparatus, system, device and storage medium, which can improve the flexibility of multi-device connection. The technical solution is as follows:

[0005] In one aspect, a device connection method is provided, the method being executed by any electronic device logged into the same account, the method comprising:

[0006] Displaying a plurality of device groups on the connection management interface, each device group including at least one electronic device, the device group being used to indicate the connection status of the electronic device;

[0007] In response to the first electronic device being dragged to the target device group, a connection establishment request is sent to a server to instruct the first electronic device to establish a connection with at least one second electronic device in the target device group. The server is used to manage the connection relationship between electronic devices.

[0008] On the other hand, a multi-device connection method is provided, the method being executed by a server, the method comprising:

[0009] Receiving a connection establishment request sent by any electronic device in the multi-device connection system, the connection establishment request is used to instruct a first electronic device to establish a connection with at least one second electronic device, the first electronic device is an electronic device being dragged among the electronic devices, and the at least one second electronic device is an electronic device in a target device group to which the first electronic device is dragged;

[0010] Based on the connection establishment request, the first electronic device and the at least one second electronic device are controlled to establish a connection.

[0011] On the other hand, a multi-device connection system is provided, the system comprising a plurality of electronic devices and a server;

[0012] Any electronic device among the plurality of electronic devices is used to display a plurality of device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to indicate the connection status of the electronic device; in response to the first electronic device being dragged to the target device group, sending a connection establishment request to the server;

[0013] The server is used to receive the connection establishment request, and control the first electronic device to establish a connection with at least one second electronic device in the target device group based on the connection establishment request.

[0014] On the other hand, a multi-device connection apparatus is provided, the apparatus is executed by an electronic device, the electronic device is any electronic device in a multi-device connection system, and the apparatus includes:

[0015] A display module, used to display multiple device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to indicate the connection status of the electronic device;

[0016] The sending module is used to send a connection establishment request to a server in response to a first electronic device being dragged to a target device group to instruct the first electronic device to establish a connection with at least one second electronic device in the target device group. The server is used to manage the connection relationship between electronic devices.

[0017] On the other hand, a multi-device connection apparatus is provided, the apparatus being executed by a server, and the apparatus comprising:

[0018] a receiving module, configured to receive a connection establishment request sent by any electronic device in the multi-device connection system, wherein the connection establishment request is used to instruct a first electronic device to establish a connection with at least one second electronic device, wherein the first electronic device is an electronic device being dragged among the electronic devices, and the at least one second electronic device is an electronic device in a target device group to which the first electronic device is dragged;

[0019] The control module is used to control the first electronic device and the second electronic device to establish a connection based on the connection establishment request.

[0020] On the other hand, an electronic device is provided, comprising a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the multi-device connection method as described in the above aspect.

[0021] On the other hand, a server is provided, comprising a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the multi-device connection method as described in the above aspect.

[0022] On the other hand, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores at least one program code, and the at least one program code is used to be executed by a processor to implement the multi-device connection method as described in the above aspects.

[0023] On the other hand, a computer program product is provided, wherein the computer program product stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the multi-device connection method as described in the above aspects.

[0024] In an embodiment of the present application, a connection management interface is displayed, in which multiple device groups for indicating connection status are displayed, so that the purpose of changing the connection status of an electronic device can be achieved by dragging a first electronic device into a target device group, thereby eliminating the need to set a central electronic device, making the connection more flexible. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A schematic diagram of an implementation environment involved in a multi-device connection method according to an exemplary embodiment of the present application is shown;

[0026] Figure 2 A flowchart of a multi-device connection method shown in an exemplary embodiment of the present application is shown;

[0027] Figure 3 A schematic diagram of a connection management interface shown in an exemplary embodiment of the present application is shown;

[0028] Figure 4 A schematic diagram of a connection management interface shown in an exemplary embodiment of the present application is shown;

[0029] Figure 5 A schematic diagram of a connection management interface shown in an exemplary embodiment of the present application is shown;

[0030] Figure 6 A flowchart of a multi-device connection method shown in an exemplary embodiment of the present application is shown;

[0031] Figure 7 A schematic diagram of a connection management interface shown in an exemplary embodiment of the present application is shown;

[0032] Figure 8 A flowchart of a multi-device connection method shown in an exemplary embodiment of the present application is shown;

[0033] Fig. 9 A flowchart of a multi-device connection method shown in an exemplary embodiment of the present application is shown;

[0034] Fig.10 A flowchart of a multi-device connection method shown in an exemplary embodiment of the present application is shown;

[0035] Fig.11 A flowchart of a multi-device connection method shown in an exemplary embodiment of the present application is shown;

[0036] Fig.12 A flowchart of a multi-device connection method shown in an exemplary embodiment of the present application is shown;

[0037] Fig.13 A flowchart of a multi-device connection method shown in an exemplary embodiment of the present application is shown;

[0038] Fig.14 A flowchart of a multi-device connection method shown in an exemplary embodiment of the present application is shown;

[0039] Fig.15 A flowchart of a multi-device connection method shown in an exemplary embodiment of the present application is shown;

[0040] Fig.16 A flowchart of a multi-device connection method shown in an exemplary embodiment of the present application is shown;

[0041] Fig.17 A block diagram of a multi-device connection apparatus shown in an exemplary embodiment of the present application is shown;

[0042] Fig.18 A block diagram of a multi-device connection apparatus shown in an exemplary embodiment of the present application is shown;

[0043] Fig.19 A structural block diagram of an electronic device shown in an exemplary embodiment of the present application is shown;

[0044] Fig. 20 A structural block diagram of a server shown in an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0045] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0046] The "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. Among them, the target account and device identification information involved in the embodiments of the present application can be information fully authorized by the user or all parties.

[0047] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment involved in a multi-device connection method shown in an exemplary embodiment of the present application. Figure 1 The implementation environment includes: an electronic device 10 and a server 20. The electronic device 10 is any electronic device among multiple electronic devices that log in to the same account. The electronic device 10 and the server 20 are connected via a network.

[0048] In the embodiment of the present application, the target application is installed in the electronic device 10, and the server 20 is the background server of the target application. The electronic device 10 is used to log in to the background server through the target application, and establish a connection with other electronic devices installed with the target application through the background server. The target application is used to send the account for logging in to the electronic device 10 to the server 20, and the electronic devices in the target application are associated based on the server 20, so as to control the connection between the electronic devices.

[0049] When the electronic devices are connected, the electronic device 10 can send data corresponding to the function to the electronic device 10 based on the function of the electronic device 10 to establish the connection, so that the data can be processed or displayed by the connected electronic device 10. For example, the electronic devices 10 are a mobile phone and a television, and since the television has the function of playing video data and audio data, after the mobile phone and the television are connected, the mobile phone sends both the video data and the audio data to the television, and the video data and the audio data are played by the television.

[0050] The electronic device 10 may be a mobile phone, a tablet computer, a computer or a wearable device with wireless communication function, a household appliance, etc. The server 20 may be at least one of a server, a server cluster consisting of multiple servers, a cloud server, a cloud computing platform, and a virtualization center. In the embodiments of the present application, this is not specifically limited.

[0051] It should be noted that when the first electronic device is dragged into the target device group, there is at least one second electronic device in the target device group that can establish a connection with the first electronic device. Accordingly, the electronic device traverses the electronic devices in the target device group to determine the at least one second electronic device. For ease of understanding, the following description is made by taking the establishment of a connection between the first electronic device and a second electronic device in the target device group as an example.

[0052] Please refer to Figure 2 , which shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application, the method comprising the following steps:

[0053] Step S201: the electronic device displays a plurality of device groups on a connection management interface, each device group includes at least one electronic device, and the device group is used to indicate the connection status of the electronic device.

[0054] The connection management interface may be an interface of a target application program. The connection management interface is used to display multiple device groups.

[0055] The connection state includes an established connection and an unestablished connection. In an embodiment of the present application, the electronic device can display the multiple device groups in different display states. Accordingly, the electronic device displays a device group including at least two electronic devices in a first display state, and the first display state indicates that a connection has been established between the at least two electronic devices; and displays a device group including only one electronic device in a second display state, and the second display state indicates that the one electronic device is in an unestablished connection state.

[0056] The first display state and the second display state are set as needed, and are not specifically limited in the embodiment of the present application. For example, the first display state is a color display state, and the second display state is a grayscale display state.

[0057] In the embodiment of the present application, device groups in different connection states are displayed in different display states, so that the user can more intuitively understand the connection status of the electronic devices in each device group.

[0058] In addition, each device group may be displayed in the form of a display frame. Accordingly, at least one electronic device of the device group is displayed in the same display frame.

[0059] In some embodiments, the electronic device displays all electronic devices of the device group in each display frame. In the embodiment of the present application, the user can determine the number of electronic devices in the device group through the electronic devices in the display frame, thereby determining whether the electronic devices have established a connection, thereby more intuitively understanding the electronic devices in each device group.

[0060] For example, see Figure 3, the display frame where the device identification A is located only includes the electronic device A, and the electronic device A is not connected to other electronic devices. If the electronic device B and the electronic device C are in the same display frame, it means that the electronic device B and the electronic device C are connected.

[0061] In some embodiments, a display frame displays an electronic device in a device group, and in response to a click operation on the display frame, at least one electronic device in the device group corresponding to the display frame is expanded to display. In the embodiment of the present application, each display frame only displays the electronic devices in the device group, saving the area occupied by the display frame in the connection management interface.

[0062] For example, see Figure 4 , electronic device A is displayed in a display frame. If a click operation on the display frame is received, and the device group corresponding to the display frame also includes electronic device B, the electronic device A and the electronic device B are expanded and displayed in the display frame.

[0063] It should be noted that the electronic device currently displaying the connection management interface can be any electronic device with a display function among a plurality of electronic devices capable of establishing a connection. In the embodiment of the present application, the electronic device is not specifically limited.

[0064] Another point to be explained is that among the multiple electronic devices corresponding to the same account, only some of them may be in a state where a connection can be established. For example, among the multiple electronic devices, there may be an electronic device that is not currently logged into the target application, is currently powered off, or the path to the established connection is full. In these cases, the electronic device cannot establish a connection with other electronic devices.

[0065] In some embodiments, the connection management interface does not display electronic devices that are currently unable to establish a connection. For example, the electronic devices corresponding to the same account include: electronic device A, electronic device B, electronic device C, and electronic device D. Among them, the account is not currently logged in to electronic device A, and electronic device B is currently in a powered-off state, then the connection management interface only displays the device group of electronic device C and electronic device D.

[0066] In some embodiments, the connection management interface displays all electronic devices corresponding to the account. Among them, the electronic device that is currently unable to establish a connection is displayed in a special display form. For example, the electronic device that is currently unable to establish a connection is displayed in grayscale. For example, the electronic devices corresponding to the same account include: electronic device A, electronic device B, electronic device C, and electronic device D. Among them, electronic device A is not currently logged in to the account, and electronic device B is currently in the off state, then the device group of electronic device A, electronic device B, electronic device C, and electronic device D is displayed in the connection management interface, and electronic device A and electronic device B are displayed in grayscale.

[0067] It should be noted that the electronic devices in the device group can be displayed by device identification, which can be the name, code or icon of the electronic device.

[0068] Step S202: In response to the first electronic device being dragged to the target device group, the electronic device sends a connection establishment request to a server to instruct the first electronic device to establish a connection with a second electronic device in the target device group. The server is used to manage connections between various electronic devices.

[0069] The drag operation is a drag operation triggered by the user in the connection management interface. The electronic device detects the long press operation triggered in the connection management interface and switches the multiple electronic devices from a non-draggable state to a draggable state. In the draggable state, the electronic device displays the process of the first electronic device moving based on the drag operation.

[0070] In response to the current dragged position of the first electronic device coinciding with the position of the target device group, the electronic device determines that the first electronic device is dragged to the target device group. Figure 5 After the first electronic device is dragged to the target device group, the electronic device determines a second electronic device in the device group for establishing a connection with the first electronic device, generates a connection establishment request based on the first electronic device and the second electronic device, and sends the connection establishment request to the server.

[0071] Step S203: The server receives a connection establishment request.

[0072] Step S204: the server controls the first electronic device and the second electronic device to establish a connection based on the connection establishment request.

[0073] In this step, the server determines the first electronic device and the second electronic device to be connected based on the connection establishment request, and controls the first electronic device and the second electronic device to establish the connection.

[0074] Among them, establishing a connection between the first electronic device and the second electronic device can be to establish a short-range communication connection between the first electronic device and the second electronic device, or the server stores the association relationship between the first electronic device and the second electronic device so that during data transmission, data is transmitted to the first electronic device and the second electronic device based on the association relationship.

[0075] Accordingly, in some embodiments, the server sends a connection indication to the second electronic device, the connection indication carries the device identification of the first electronic device, and the connection indication is used to instruct the second electronic device to establish a short-distance communication connection with the first electronic device. Alternatively, the server sends a connection indication to the first electronic device, the connection indication carries the device identification of the second electronic device, and the connection indication is used to instruct the first electronic device to establish a short-distance communication connection with the second electronic device. Alternatively, the server sends a connection indication to the second electronic device, the connection indication carries the device identification of the first electronic device, and the connection indication is used to instruct the second electronic device to establish a short-distance communication connection with the first electronic device, and the server sends a connection indication to the first electronic device, the connection indication carries the device identification of the second electronic device, and the connection indication is used to instruct the first electronic device to establish a short-distance communication connection with the second electronic device. Through this connection method, fast data transmission can be achieved when the distance between devices is small.

[0076] In some embodiments, the server stores the association relationship between the first electronic device and the second electronic device, and in response to receiving data sent by the second electronic device, the server sends the data to the first electronic device based on the association relationship. Through this connection method, the network connected to the application device can be used for data transmission to achieve fast data transmission.

[0077] The different ways of establishing the above-mentioned connections can be applicable to different network environments, thereby expanding the application scope of the embodiments of the present application.

[0078] One point that needs to be explained is that after the first electronic device establishes a connection with the second electronic device, the electronic device displays the first electronic device in the target device group. Accordingly, in some embodiments, when the first electronic device is dragged to the target device group, the electronic device displays the first electronic device in the target device group. In some embodiments, when the first electronic device is dragged to the target device group, the electronic device displays that the first electronic device and the second electronic device are in a connection establishment state, and in response to the first electronic device and the second electronic device completing the connection establishment, the server sends a connection establishment completion notification to the electronic device, and the electronic device displays the first electronic device in the target device group based on the connection establishment completion notification.

[0079] It should be noted that, in response to the original device group of the first electronic device also including other electronic devices, a third disconnection request is sent to the server, and the third disconnection request is used to instruct to disconnect the first electronic device from the electronic devices in the original device group. In this way, it can be ensured that when the first electronic device implements a function, the corresponding function is implemented only based on the data sent by one electronic device, and the first electronic device is prevented from receiving data from multiple other electronic devices.

[0080] In some embodiments, in response to the original device group of the first electronic device also including other electronic devices, the first electronic device is kept connected to the other electronic devices in the original device group. In this way, the first electronic device can establish connections with electronic devices in multiple target device groups, thereby improving the utilization rate of the first electronic device and enriching the use scenarios of the first electronic device.

[0081] In an embodiment of the present application, a connection management interface is displayed, in which multiple device groups for indicating connection status are displayed, so that the purpose of changing the connection status of an electronic device can be achieved by dragging a first electronic device into a target device group, thereby eliminating the need to set a central electronic device, making the connection more flexible.

[0082] In an embodiment of the present application, any device group among the multiple device groups displayed in the connection management interface can be used as a target device group, and for each device group, the device group includes at least one electronic device. When the target device group includes one electronic device, the electronic device establishes a connection between the first electronic device and the second electronic device in the target device group through steps S201-S204.

[0083] In a case where the target device group further includes other electronic devices, the electronic device determines whether to establish a connection between the first electronic device and the second electronic device based on a function of a third electronic device in the target device group.

[0084] When the function of the third electronic device is different from that of the first electronic device, the first electronic device establishes a connection with the second electronic device through the above steps S201-S204. When the function of the third electronic device is the same as that of the first electronic device, the electronic device can determine whether to establish a connection between the first electronic device and the second electronic device in the following ways.

[0085] See also Figure 6 , which shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application. In the embodiment of the present application, the target device group includes multiple electronic devices as an example for explanation. The method includes the following steps:

[0086] Step S601: the electronic device displays a plurality of device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to indicate the connection status of the electronic device.

[0087] The principle of this step is the same as that of step S201 and will not be repeated here.

[0088] Step S602: In response to the first electronic device being dragged to the target device group, the electronic device determines whether there is a third electronic device with the same first function as the first electronic device among the plurality of electronic devices.

[0089] The first function is a function that can be realized by the first electronic device, for example, an audio playback function, a video playback function, a control function, etc.

[0090] When the target device group includes multiple electronic devices, the electronic device determines a second electronic device from multiple device identifiers of the target device group, wherein the second electronic device is a data transmitter. For other electronic devices among the multiple electronic devices except the second electronic device, the electronic device executes step S603.

[0091] Step S603: When the target device group includes a third electronic device, display the priority of the first electronic device and the third electronic device, the priority being used to indicate the capability of a first function, and both the third electronic device and the first electronic device have the first function.

[0092] The priority of the electronic device corresponding to each function may be a system default or may be set by the user based on the connection management interface. In some embodiments, the connection management interface displays a device priority configuration table, which displays the priorities corresponding to different electronic devices. The user may enter the priorities corresponding to different electronic devices under different functions in the device priority configuration table.

[0093] For example, a TV can display higher-definition videos than a tablet computer, so the priority of playing videos can be set to TV over tablet computer. A speaker is more suitable for playing audio than a mobile phone, so the priority of playing audio can be set to speaker over mobile phone.

[0094] The electronic device displays a selection interface, and the priorities of the first electronic device and the third electronic device are displayed in the selection interface. In response to a selection operation on any electronic device, the electronic device that establishes a connection with the second electronic device is determined based on the electronic device corresponding to the selection operation.

[0095] Step S604: In response to the selection operation on the first electronic device, the electronic device sends a first connection establishment request to the server to instruct the first electronic device to establish a connection with the second electronic device to execute the first function.

[0096] The selection operation may be a click operation on the device identifier of the first electronic device, etc.

[0097] Among them, the principle of the electronic device establishing the connection between the first electronic device and the second electronic device through the first connection establishment request indication is the same as the principle of the electronic device establishing the connection between the first electronic device and the second electronic device through the connection establishment request indication in step S202, and will not be repeated here.

[0098] It should be noted that, in response to the selection operation on the third electronic device, the electronic device maintains the connection between the second electronic device and the third electronic device, and the electronic device does not add the first electronic device to the target device group.

[0099] Step S605: The server receives a first connection establishment request.

[0100] The principle of this step is the same as that of step S203 and will not be repeated here.

[0101] Step S606: The server controls the first electronic device to establish a connection with the second electronic device based on the first connection establishment request.

[0102] The principle of this step is the same as that of step S204 and will not be repeated here.

[0103] It should be noted that the electronic device displays the first electronic device in the target device group. This process is the same as the principle of the electronic device displaying the first electronic device in the target device group in step S204, and will not be repeated here.

[0104] In addition, when the target device group also includes electronic devices for implementing other functions, the electronic device also displays the other electronic devices in the target device group. Figure 7 The target device group includes electronic device A and electronic device B. The connection management interface also includes electronic device C and electronic device D. Electronic device C is dragged to the target device group by dragging. The method of displaying multiple electronic devices in the target electronic device is the same as the principle of displaying multiple electronic devices in the device group in step S201, which will not be repeated here.

[0105] Another point that needs to be explained is that when the target device group also includes electronic devices for implementing other functions, the second electronic device in the target device group sends data of the type corresponding to the function to multiple electronic devices in the device group based on the functions corresponding to different electronic devices.

[0106] In some embodiments, the second electronic device and other electronic devices are provided with a distributed service, and the second electronic device for sending data can send corresponding data to the distributed service proxy module of other electronic devices based on the distributed service calling module corresponding to the distributed service. Figure 8 When the second electronic device is connected to two electronic devices, where the other two electronic devices are used to play video data and audio data respectively, the second electronic device sends the video data and audio data to the other two electronic devices based on the distributed service calling module, where the other electronic devices receive the video data and audio data through the service agent module.

[0107] It should be noted that the second electronic device can also send corresponding types of data to other electronic devices through the server. Accordingly, the second electronic device sends data corresponding to multiple functions to the server, and the server sends corresponding data to other electronic devices based on the function of each electronic device.

[0108] Step S607: the electronic device sends a first disconnection request to the server, where the first disconnection request is used to instruct to disconnect the connection between the second electronic device and the third electronic device.

[0109] The first disconnection request includes the device identifications of the second electronic device and the third electronic device. Accordingly, the electronic device generates the first disconnection request based on the device identifications of the second electronic device and the third electronic device, and sends the first disconnection request to the server.

[0110] Step S608: The server receives the first disconnection request.

[0111] Step S609: the server controls the second electronic device and the third electronic device to disconnect based on the first disconnection request.

[0112] In this step, the server determines the second electronic device and the third electronic device to be disconnected based on the first connection disconnection request, and controls the second electronic device and the third electronic device to be disconnected.

[0113] In some embodiments, the server sends a disconnection instruction to the second electronic device, the disconnection instruction carries the device identification of the third electronic device, and the disconnection instruction is used to instruct the second electronic device to disconnect the short-range communication connection with the third electronic device. Alternatively, the server sends a disconnection instruction to the third electronic device, the disconnection instruction carries the device identification of the second electronic device, and the disconnection instruction is used to instruct the third electronic device to disconnect the short-range communication connection with the second electronic device. In some embodiments, the server deletes the stored association relationship between the second electronic device and the third electronic device. This prevents the first electronic device and the third electronic device from both implementing the same function corresponding to the second electronic device, and prevents mutual influence between devices caused by implementing the same function through multiple devices.

[0114] In an embodiment of the present application, the priorities of the first functions of the first electronic device and the third electronic device are displayed to the user so that the user can select an electronic device to be connected to the second electronic device from the first electronic device and the third electronic device based on the priorities of the first functions. This provides a basis for the user to select the electronic device to be connected so that the second electronic device can connect to the electronic device with a higher priority.

[0115] It should be noted that the order of steps S604-S606 and steps S607-S609 can be set as needed. In the embodiment of the present application, the order of steps S604-S606 and steps S607-S609 is not specifically limited.

[0116] In an embodiment of the present application, a connection management interface is displayed, in which multiple device groups for indicating connection status are displayed, so that the purpose of changing the connection status of an electronic device can be achieved by dragging a first electronic device into a target device group, thereby eliminating the need to set a central electronic device, making the connection more flexible.

[0117] In the embodiment of the present application, the electronic device can also automatically select an electronic device with a higher priority to establish a connection based on the priorities of the first electronic device and the third electronic device. Fig. 9 , which shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application. In the embodiment of the present application, an electronic device automatically selects an electronic device based on a priority to establish a connection as an example. The method includes the following steps:

[0118] Step S901: the electronic device displays a plurality of device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to indicate the connection status of the electronic device.

[0119] The principle of this step is the same as that of step S201 and will not be repeated here.

[0120] Step S902: In response to the first electronic device being dragged to the target device group, the electronic device determines whether there is a third electronic device with the same first function as the first electronic device among the plurality of electronic devices.

[0121] The principle of this step is the same as that of step S602 and will not be repeated here.

[0122] Step S903: when the target device group includes a third electronic device, the electronic device determines the priorities of the first electronic device and the third electronic device.

[0123] This step has the same principle as that of step S603 in which the electronic device determines the priorities of the first electronic device and the third electronic device, and will not be described in detail herein.

[0124] Step S904: When the priority of the first electronic device is higher than that of the third electronic device, the electronic device sends a first connection establishment request to the server to instruct the first electronic device to establish a connection with the second electronic device to execute the first function.

[0125] This step has the same principle as that of establishing a connection based on the first connection establishment request in step S604, and will not be described in detail here.

[0126] In addition, it should be noted that when the priority of the first electronic device is not higher than that of the third electronic device, the electronic device maintains the connection between the second electronic device and the third electronic device, and the electronic device does not add the first electronic device to the target device group.

[0127] Step S905: The server receives a first connection establishment request.

[0128] The principle of this step is the same as that of step S203 and will not be repeated here.

[0129] Step S906: The server controls the first electronic device to establish a connection with the second electronic device based on the first connection establishment request.

[0130] The principle of this step is the same as that of step S204 and will not be repeated here.

[0131] Step S907: the electronic device sends a first disconnection request to the server, where the first disconnection request is used to instruct to disconnect the connection between the second electronic device and the third electronic device.

[0132] The principle of this step is the same as that of step S607 and will not be repeated here.

[0133] Step S908: The server receives the first disconnection request.

[0134] The principle of this step is the same as that of step S608 and will not be repeated here.

[0135] Step S909: the server controls the second electronic device and the third electronic device to disconnect based on the first disconnection request.

[0136] The principle of this step is the same as that of step S609 and will not be repeated here.

[0137] In an embodiment of the present application, the electronic device automatically selects an electronic device with a higher priority from the first electronic device and the third electronic device according to the priority, so that the electronic device with a higher priority can be selected to implement the first function, thereby ensuring the quality of implementing the first function.

[0138] In an embodiment of the present application, a connection management interface is displayed, in which multiple device groups for indicating connection status are displayed, so that the connection status of an electronic device can be changed by dragging a first electronic device into a target device group, thereby eliminating the need to set a central electronic device and making the connection more flexible.

[0139] In the embodiment of the present application, when the target electronic device also includes other electronic devices, the electronic device may also determine whether to establish a connection between the first electronic device and the second electronic device in combination with the maximum number of electronic devices corresponding to the second electronic device for implementing the first function. Fig.10 , which shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application, the method comprising the following steps:

[0140] Step S1001: the electronic device displays a plurality of device groups on a connection management interface, each device group includes at least one electronic device, and the device group is used to indicate the connection status of the electronic device.

[0141] The principle of this step is the same as that of step S201 and will not be repeated here.

[0142] Step 1002: In response to a first electronic device being dragged to a target device group, when the target device group includes a third electronic device, the electronic device determines the number of target paths corresponding to the second electronic device, where the number of target paths represents the maximum number of electronic devices for implementing the first function.

[0143] The target path quantity may be a system default or a user-defined number based on a connection management interface. In some embodiments, the connection management interface displays a path constraint table, which displays the target path quantity corresponding to different functions. The user may enter the target path quantity corresponding to different functions in the path constraint table.

[0144] For example, the first function is an audio playback function. In order to prevent interference between multiple electronic devices playing audio, the maximum number of devices for the audio playback function is generally set to 1. For example, if the first function is a video playback function, and multiple electronic devices play videos, there is no interference between the electronic devices. Therefore, the number of electronic devices corresponding to the video playback function can be multiple. For example, the number of electronic devices corresponding to the video playback function can be 3, 4, 5, or unlimited.

[0145] Among them, another point that needs to be explained is that the electronic device can store the maximum number of devices corresponding to each function locally. The electronic device can also determine the maximum number of devices corresponding to each function based on the server. In the embodiment of the present application, this is not specifically limited.

[0146] Step S1003: the electronic device determines the number of third electronic devices.

[0147] In this step, the electronic device determines the number of third electronic devices based on the number of electronic devices in the target device group.

[0148] Step S1004: the electronic device compares the number of third electronic devices with the number of target paths.

[0149] Step S1005: In response to the number of the third electronic devices being less than the number of the target paths, the electronic device sends a second connection establishment request to the server to instruct the first electronic device to establish a connection with the second electronic device to execute the first function.

[0150] This step has the same principle as that of establishing a connection based on the first connection establishment request in step S604, and will not be described in detail here.

[0151] Step S1006: The server receives the second connection establishment request.

[0152] The principle of this step is the same as that of step S203 and will not be repeated here.

[0153] Step S1007: the server controls the first electronic device to establish a connection with the second electronic device based on the second connection establishment request.

[0154] The principle of this step is the same as that of step S204 and will not be repeated here.

[0155] In an embodiment of the present application, when the number of target paths corresponding to the second electronic device is less than the number of currently connected third electronic devices, the electronic device controls the first electronic device and the second electronic device to establish a connection, so that the function of the second electronic device can be implemented by multiple electronic devices, enriching the application scenarios of the connection.

[0156] In an embodiment of the present application, a connection management interface is displayed, in which multiple device groups for indicating connection status are displayed, so that the connection status of an electronic device can be changed by dragging a first electronic device into a target device group, thereby eliminating the need to set a central electronic device and making the connection more flexible.

[0157] In the embodiment of the present application, in response to the number of the third electronic devices being equal to the number of the target paths, the electronic device may maintain the connection between the first electronic device and the plurality of third electronic devices, and not add the first electronic device to the target device group. The electronic device may also determine whether to establish a connection between the first electronic device and the second electronic device based on the priority of the first electronic device and the plurality of third electronic devices. Fig.11 , which shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application, the method comprising the following steps:

[0158] Step S1101: the electronic device displays a plurality of device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to indicate the connection status of the electronic device.

[0159] The principle of this step is the same as that of step S201 and will not be repeated here.

[0160] Step S1102: In response to the first electronic device being dragged to the target device group, when the target device group includes a third electronic device, the electronic device determines the number of target paths corresponding to the second electronic device, where the number of target paths represents the maximum number of electronic devices for implementing the first function.

[0161] The principle of this step is the same as that of step S1002 and will not be repeated here.

[0162] Step S1103: the electronic device determines the number of third electronic devices.

[0163] The principle of this step is the same as that of step S1003 and will not be repeated here.

[0164] Step S1104: the electronic device compares the number of third electronic devices with the number of target paths.

[0165] The principle of this step is the same as that of step S1004 and will not be repeated here.

[0166] Step S1105: In response to the number of the third electronic devices being equal to the number of the target paths, the electronic device determines the priorities of the first electronic device and the plurality of third electronic devices.

[0167] This step has the same principle as that of step S602 in which the electronic device determines the priorities of the first electronic device and the third electronic device, and will not be described in detail herein.

[0168] Step S1106: When the priority of the first electronic device is higher than the priority of the third electronic device with the lowest priority, the electronic device sends a second connection establishment request to the server to establish a connection between the first electronic device and the second electronic device to execute the first function.

[0169] In this step, see Fig.12 The electronic device determines a third electronic device with the lowest priority from multiple electronic devices, and compares the priority of the third electronic device with the lowest priority with the priority of the first electronic device. When the priority of the fourth electronic device with the lowest priority is higher than the priority of the first electronic device, the electronic device maintains the connection in the target device group and does not add the first electronic device to the target device group.

[0170] This step has the same principle as that of establishing a connection based on the first connection establishment request in step S604, and will not be described in detail here.

[0171] Step S1107: The server receives a second connection establishment request.

[0172] The principle of this step is the same as that of step S203 and will not be repeated here.

[0173] Step S1108: The server controls the first electronic device and the second electronic device to establish a connection based on the second connection establishment request.

[0174] The principle of this step is the same as that of step S204 and will not be repeated here.

[0175] Step S1109: the electronic device sends a first disconnection request to the server, where the first disconnection request is used to instruct to disconnect the connection between the second electronic device and the third electronic device.

[0176] The principle of this step is the same as that of step S607 and will not be repeated here.

[0177] Step S1110: The server receives a first disconnection request.

[0178] The principle of this step is the same as that of step S608 and will not be repeated here.

[0179] Step S1111: the server controls the second electronic device and the third electronic device to disconnect based on the first disconnection request.

[0180] The principle of this step is the same as that of step S609 and will not be repeated here.

[0181] In an embodiment of the present application, the electronic device that establishes a connection with the second electronic device is determined by combining the number of target paths corresponding to the second electronic device and the priority of the electronic device. In this way, among multiple electronic devices, an electronic device with a higher priority is selected to ensure the quality of implementing the function of the second electronic device.

[0182] In an embodiment of the present application, a connection management interface is displayed, in which multiple device groups for indicating connection status are displayed, so that the connection status of an electronic device can be changed by dragging a first electronic device into a target device group, thereby eliminating the need to set a central electronic device and making the connection more flexible.

[0183] In the embodiment of the present application, the electronic device can also control the first electronic device to connect to the second electronic device with matching functions in the target device group, see Fig.13 , which shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application, the method comprising the following steps:

[0184] Step S1301: the electronic device displays a plurality of device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to indicate the connection status of the electronic device.

[0185] The principle of this step is the same as that of step S201 and will not be repeated here.

[0186] Step S1302: In response to the first electronic device being dragged to the target device group, the electronic device sends a third connection establishment request to the server to instruct the first electronic device to establish a connection with the second electronic device to perform the second function, if the second function of the second electronic device in the target device group matches the third function of the first electronic device.

[0187] In an embodiment of the present application, an electronic device determines the third function of a first electronic device, and determines the second functions of multiple electronic devices in the target device group, determines a second electronic device whose second function matches the third function from the multiple electronic devices, and establishes a connection between the second electronic device and the first electronic device.

[0188] For example, the target device group includes a mobile phone and a television, wherein the mobile phone sends video data and audio data to the television, and the first electronic device is a Bluetooth headset. The electronic device determines that the third function of the Bluetooth headset is an audio playback function, and the electronic device currently implementing the audio playback function is a television. The electronic device establishes a connection between the headset and the television.

[0189] Step S1303: The server receives a third connection establishment request.

[0190] The principle of this step is the same as that of step S203 and will not be repeated here.

[0191] Step S1304: the server controls the first electronic device to establish a connection with the second electronic device based on the third connection establishment request.

[0192] The principle of this step is the same as that of step S204 and will not be repeated here.

[0193] In the embodiment of the present application, the first electronic device can establish a connection with any electronic device with the same function in the target device group, thereby enriching the usage scenarios of the embodiment of the present application.

[0194] One thing that needs to be explained is that before the first electronic device is added to the target device group, the data flow in the target device group is: the fourth electronic device sends data corresponding to multiple functions to the second electronic device, and the second electronic device displays the data based on the second function and other functions. After the first electronic device is added to the target device group, the data flow in the target device group is: the fourth electronic device sends data corresponding to multiple functions to the second electronic device, and the second electronic device sends data corresponding to the second function to the first electronic device, so that other functions of the second electronic device display other data, and the third function of the first electronic device displays the data corresponding to the second function.

[0195] For example, the data corresponding to the multiple functions include video data and audio data; the fourth electronic device is a mobile phone, the second electronic device is a television, and the first electronic device is a Bluetooth headset. Before the Bluetooth headset is added to the target device group, the mobile phone sends the video data and audio data to the television, and the television plays the video data and audio data. After the Bluetooth headset is added to the target device group, the Bluetooth headset establishes a connection with the television, the mobile phone sends the video data and audio data to the television, and the television sends the audio data to the Bluetooth headset, so that the television plays the video data and the Bluetooth headset plays the audio data.

[0196] In an embodiment of the present application, a connection management interface is displayed, in which multiple device groups for indicating connection status are displayed, so that the purpose of changing the connection status of an electronic device can be achieved by dragging a first electronic device into a target device group, thereby eliminating the need to set a central electronic device, making the connection more flexible.

[0197] It should be noted that the above process can also be implemented by a server. Accordingly, the server stores the number of target paths corresponding to the electronic devices in the multiple device groups. In the case where the target device group includes a third electronic device, the electronic device sends the device identifications of the first electronic device and the second electronic device to the server, and the server executes the above steps to establish a connection between the first electronic device and the second electronic device.

[0198] In this way, determining whether to control the first electronic device to establish a connection with the second electronic device through the server reduces the requirements for the electronic devices, thereby increasing the breadth of application scenarios of the embodiments of the present application.

[0199] In the embodiment of the present application, the drag operation performed on the electronic device can also trigger the electronic device in the target collaborative device to be disconnected, see Fig.14 , which shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application, the method comprising the following steps:

[0200] Step S1401: the electronic device displays a plurality of device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to indicate the connection status of the electronic device.

[0201] The principle of this step is the same as that of step S201 and will not be repeated here.

[0202] Step S1402: In response to the fourth electronic device in the target device group being dragged out of the target device group, a second disconnection request is sent to the server, where the second disconnection request is used to instruct to disconnect the fourth electronic device from other electronic devices in the target device group.

[0203] In this step, the process of detecting whether the fourth electronic device is dragged out of the target device group is the same as the principle of the electronic device detecting whether the first electronic device is dragged into the target device group in step S202, which will not be repeated here.

[0204] The process of the electronic device requesting the server to control the fourth electronic device to disconnect from other electronic devices in the target device group based on the second connection disconnection request is the same as the principle of the process of requesting disconnection in steps S607-S609, which will not be repeated here.

[0205] Step S1403: the electronic device displays other electronic devices except the fourth electronic device in the target device group.

[0206] In this step, the electronic device is displayed in the fourth electronic device in a new device group, and the other electronic devices except the fourth electronic device are displayed in the target device group.

[0207] In an embodiment of the present application, a connection management interface is displayed, in which multiple device groups for indicating connection status are displayed, so that the connection status of an electronic device can be changed by dragging a first electronic device into a target device group, thereby eliminating the need to set a central electronic device and making the connection more flexible.

[0208] It should be noted that when an electronic device is newly connected to a server, it can also request the server to synchronize the connection status of multiple electronic devices. Fig.15 , which shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application, the method comprising the following steps:

[0209] Step S1501: The electronic device sends a connection status synchronization request to the server, and the connection status synchronization request includes a target account.

[0210] When the electronic device is first connected to the server, it sends a synchronization request to the server. The electronic device newly connected to the server refers to the electronic device that logs in the target account through the target application. The electronic device can log in to the target account by entering the account password, or the electronic device can log in to the target account by scanning the QR code corresponding to the target account. In the embodiment of the present application, this is not specifically limited.

[0211] Step S1502: The server receives a status synchronization request sent by the electronic device.

[0212] Step S1503: The server determines the connection status of multiple electronic devices corresponding to the target account.

[0213] The server stores multiple accounts and the electronic devices corresponding to each account. Fig.16 The server comprises an account management module and a synchronization module, wherein the account management module stores multiple accounts and the electronic devices corresponding to each account, and the account synchronization module stores the connection status of each electronic device. The synchronization module sends the received target account to the account management module, and the account management module determines multiple electronic devices based on the account, and sends the multiple electronic devices to the synchronization module, and the synchronization module determines the connection status of the multiple electronic devices.

[0214] Step S1504: The server sends the connection status of multiple electronic devices corresponding to the target account to the electronic device.

[0215] The server sends the device identifications of the multiple electronic devices and the connection status of each electronic device to the electronic device.

[0216] Step S1505: The electronic device receives the connection status of multiple electronic devices sent by the server.

[0217] Step S1506: The electronic device determines the multiple device groups based on the connection states of the multiple electronic devices.

[0218] One point that needs to be explained is that after the connection status of any electronic device changes, the server can also automatically send the updated connection status to the same account corresponding to the electronic device, so that the connection status stored in multiple electronic devices corresponding to the same account is consistent, thereby ensuring that the connection status of other electronic devices can be controlled on any electronic device.

[0219] In an embodiment of the present application, a connection management interface is displayed, in which multiple device groups for indicating connection status are displayed, so that the connection status of an electronic device can be changed by dragging a first electronic device into a target device group, thereby eliminating the need to set a central electronic device and making the connection more flexible.

[0220] One point that needs to be explained is that when the first electronic device establishes a connection with at least one second electronic device in the target device group, each second electronic device can establish a connection with the first electronic device through any of the above-mentioned solutions, which will not be described in detail in the embodiments of the present application.

[0221] Please refer to Fig.17 , which shows a structural block diagram of a multi-device connection device provided by an embodiment of the present application. The multi-device connection device can be implemented as all or part of a processor through software, hardware, or a combination of both. The device includes:

[0222] Display module 1701, used to display multiple device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to indicate the connection status of the electronic device;

[0223] The first sending module 1702 is used to send a connection establishment request to a server in response to the first electronic device being dragged to the target device group, so as to instruct the first electronic device to establish a connection with at least one second electronic device in the target device group. The server is used to manage the connection relationship between electronic devices.

[0224] In some embodiments, the display module 1701 includes:

[0225] A first display unit, configured to display a device group including at least two electronic devices in a first display state, wherein the first display state indicates that a connection has been established between the at least two electronic devices;

[0226] The second display unit is used to display a device group including only one electronic device in a second display state, and the second display state indicates that the one electronic device is in an unconnected state.

[0227] In some embodiments, the first sending module 1702 includes:

[0228] a third display unit, for displaying, for any second electronic device in the target device group, in response to the first electronic device being dragged to the target device group, a priority of the first electronic device and the third electronic device when the target device group includes a third electronic device, the priority being used to indicate the strength of the first function, the third electronic device being an electronic device in the target device group that has established a connection with the second electronic device, and both the third electronic device and the first electronic device have the first function;

[0229] A first sending unit, configured to send a first connection establishment request to the server in response to a selection operation on the first electronic device, wherein the first connection establishment request is used to instruct the first electronic device to establish a connection with the second electronic device to perform the first function;

[0230] The device also includes:

[0231] The second sending module is used to send a first connection disconnection request to the server, where the first connection disconnection request is used to instruct to disconnect the connection between the second electronic device and the third electronic device.

[0232] In some embodiments, the display module 1701 is further configured to, in response to a selection operation on the third electronic device, not control the first electronic device to establish a connection with the at least one second electronic device.

[0233] In some embodiments, the first sending module 1702 includes:

[0234] a determining unit, configured to, for any second electronic device in the target device group, in response to the first electronic device being dragged to the target device group, determine the number of target paths corresponding to the second electronic device when the target device group includes a third electronic device, wherein the number of target paths represents a maximum number of electronic devices for implementing the first function;

[0235] The second sending unit is used to send a second connection establishment request to the server in response to the number of the third electronic devices being less than the number of the target paths, so as to instruct the first electronic device to establish a connection with the second electronic device to execute the first function.

[0236] In some embodiments, the display module 1701 is further configured to, in response to the number of the third electronic devices being equal to the number of the target paths, not add the first electronic device to the target device group; or,

[0237] The third display unit is further configured to display the priorities of the first electronic device and the third electronic device in response to the number of the third electronic devices being equal to the number of the target paths.

[0238] In some embodiments, the first sending module 1702 includes:

[0239] The third sending unit is used to send a third connection establishment request to the server for any second electronic device in the target device group, in response to the first electronic device being dragged to the target device group, when the second function of the second electronic device in the target device group matches the third function of the first electronic device, to instruct the first electronic device to establish a connection with the second electronic device to perform the second function.

[0240] In some embodiments, the apparatus further comprises:

[0241] A third sending module, configured to send a second disconnection request to the same server in response to a fourth electronic device in the target device group being dragged out of the target device group, wherein the second disconnection request is used to instruct to disconnect the connection between the fourth electronic device and other electronic devices in the target device group;

[0242] The display module 1701 is further configured to display other electronic devices except the fourth electronic device in the target device group.

[0243] In some embodiments, the apparatus further comprises:

[0244] a fourth sending module, configured to send a third disconnection request to the server in response to the original device group of the first electronic device also including other electronic devices, wherein the third disconnection request is used to instruct to disconnect the first electronic device from the electronic devices in the original device group; or

[0245] The maintaining module is used for maintaining the connection between the first electronic device and other electronic devices in the original device group in response to the original device group of the first electronic device also including other electronic devices.

[0246] In some embodiments, the apparatus further comprises:

[0247] a fifth sending module, configured to send a status synchronization request to the server, wherein the connection status synchronization request includes a target account, and the status synchronization request is used to request the server to return connection statuses of multiple electronic devices corresponding to the target account;

[0248] A first receiving module, used for receiving connection status of multiple electronic devices sent by the server;

[0249] The determination module is used to determine the multiple device groups based on the connection status of the multiple electronic devices.

[0250] In an embodiment of the present application, a connection management interface is displayed, in which multiple device groups for indicating connection status are displayed, so that the connection status of an electronic device can be changed by dragging a first electronic device into a target device group, thereby eliminating the need to set a central electronic device and making the connection more flexible.

[0251] Please refer to Fig.18 , which shows a structural block diagram of a multi-device connection device provided by an embodiment of the present application. The multi-device connection device can be implemented as all or part of a processor through software, hardware, or a combination of both. The device includes:

[0252] The second receiving module 1801 is used to receive a connection establishment request sent by any electronic device in the multi-device connection system, where the connection establishment request is used to instruct a first electronic device to establish a connection with a second electronic device, where the first electronic device is the electronic device being dragged among the electronic devices, and the second electronic device is an electronic device in the target device group to which the first electronic device is dragged;

[0253] The first control module 1802 is used to control the first electronic device to establish a connection with the second electronic device based on the connection establishment request.

[0254] In some embodiments, the apparatus further comprises:

[0255] A third receiving module, configured to receive a disconnection request sent by the electronic device;

[0256] The second control module is used to control the electronic devices in the target device group to disconnect based on the disconnection request.

[0257] In some embodiments, the apparatus further comprises:

[0258] A fourth receiving module, configured to receive a status synchronization request sent by the electronic device, wherein the status synchronization request carries a target account;

[0259] An acquisition module, used to acquire the connection status of multiple electronic devices corresponding to the target account;

[0260] The sixth sending module is used to send the connection status of the multiple electronic devices to the electronic device.

[0261] In some embodiments, the first control module 1802 includes:

[0262] a fourth sending unit, configured to send a connection indication to the second electronic device, the connection indication carrying the device identification of the first electronic device, the connection indication being used to instruct the second electronic device to establish a short-range communication connection with the first electronic device; or

[0263] The storage unit is used to store the association relationship between the first electronic device and the second electronic device, and in response to receiving data sent by the second electronic device, send the data to the first electronic device based on the association relationship.

[0264] In an embodiment of the present application, a connection management interface is displayed, in which multiple device groups for indicating connection status are displayed, so that the connection status of an electronic device can be changed by dragging a first electronic device into a target device group, thereby eliminating the need to set a central electronic device and making the connection more flexible.

[0265] Please refer to Fig.19 , which shows a structural block diagram of an electronic device 1900 provided by an exemplary embodiment of the present application. The electronic device 1900 may be a terminal with image processing function such as a smart phone, a tablet computer, etc. The electronic device 1900 in the present application may include one or more of the following components: a processor 1910, a memory 1920, and a communication module 1930.

[0266] The processor 1910 may include one or more processing cores. The processor 1910 uses various interfaces and lines to connect the various parts of the entire electronic device 1900, and executes various functions and processes data of the terminal 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1920, and calling data stored in the memory 1920. Optionally, the processor 1910 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1910 can integrate one or more combinations of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processor (NPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 1910, but may be implemented by a separate chip.

[0267] The memory 1920 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1920 includes a non-transitory computer-readable storage medium. The memory 1920 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1920 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data (such as audio data, a phone book), etc., created according to the use of the electronic device 1900.

[0268] The communication module 1930 is used to transmit and receive signals, and the communication module may be a Wireless Fidelity (WIFI) module or the like.

[0269] The electronic device 1900 may also include a display screen, which is a display component for displaying a user interface. Optionally, the display screen is a display screen with a touch function, through which a user can use a finger, a touch pen, or any other suitable object to perform touch operations on the display screen.

[0270] The display screen is usually arranged on the front panel of the electronic device 1900. The display screen can be designed as a full screen, a curved screen, a special-shaped screen, a double-sided screen or a folding screen. The display screen can also be designed as a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., which is not limited in this embodiment.

[0271] In addition, those skilled in the art can understand that the structure of the electronic device 1900 shown in the above drawings does not constitute a limitation on the electronic device 1900, and the electronic device 1900 may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the electronic device 1900 also includes components such as a microphone, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a power supply, and a Bluetooth module, which are not described in detail here.

[0272] Please refer to Fig. 20, which shows a structural block diagram of a server 2000 provided by an exemplary embodiment of the present application. The server 2000 can be a first network device or a second network device. The server 2000 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 2010 and one or more memories 2020, wherein the memory 2020 stores at least one instruction, and the at least one instruction is loaded and executed by the processor 2010 to implement the cell switching method provided by the above-mentioned various method embodiments. Of course, the server 2000 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server 2000 may also include other components for implementing device functions, which will not be repeated here.

[0273] An embodiment of the present application also provides a computer-readable medium, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the multi-device connection method shown in the above embodiments.

[0274] An embodiment of the present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the multi-device connection method shown in the above embodiments.

[0275] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0276] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A multi-device connection method, It is characterized in that The method is executed by any electronic device logged into the same account, and the electronic device is an electronic device with a display function among a plurality of electronic devices capable of establishing a connection, and the method includes: Displaying a plurality of device groups on the connection management interface, each device group including at least one electronic device, the device group being used to indicate the connection status of the electronic device; In response to a first electronic device being dragged to a target device group, a connection establishment request is sent to a server to instruct the first electronic device to establish a connection with at least one second electronic device in the target device group. The server is used to manage the connection relationship between electronic devices, and the connection relationship is used to indicate that data can be transmitted between electronic devices. Distributed services are set in the at least one second electronic device and other electronic devices in the target device group. The at least one second electronic device is used to send data corresponding to multiple functions to the distributed service agent module of the other electronic devices based on the distributed service calling module corresponding to the distributed service.

2. The method according to claim 1, It is characterized in that Displaying multiple device groups on the connection management interface includes: Displaying a device group including at least two electronic devices in a first display state, wherein the first display state indicates that a connection has been established between the at least two electronic devices; A device group including one electronic device is displayed in a second display state, wherein the second display state indicates that the one electronic device is in an unconnected state.

3. The method according to claim 1, It is characterized in that In response to the first electronic device being dragged to the target device group, sending a connection establishment request to the server includes: For any second electronic device in the target device group, in response to the first electronic device being dragged to the target device group, when the target device group includes a third electronic device, displaying the priority of the first electronic device and the third electronic device, the priority being used to indicate the strength of the first function, the third electronic device being an electronic device in the target device group that has established a connection with the second electronic device, and both the third electronic device and the first electronic device have the first function; In response to a selection operation on the first electronic device, sending a first connection establishment request to the server to instruct the first electronic device to establish a connection with the second electronic device to perform the first function; The method further comprises: A first disconnection request is sent to the server, where the first disconnection request is used to instruct to disconnect the connection between the at least one second electronic device and the third electronic device.

4. The method according to claim 3, It is characterized in that The method further comprises: In response to the selection operation on the third electronic device, the first electronic device is not controlled to establish a connection with the at least one second electronic device.

5. The method according to claim 3, It is characterized in that In response to the first electronic device being dragged to the target device group, sending a connection establishment request to the server includes: For any second electronic device in the target device group, in response to the first electronic device being dragged to the target device group, when the target device group includes a third electronic device, determining the number of target paths corresponding to the second electronic device, the number of target paths representing the maximum number of electronic devices used to implement the first function; In response to the number of the third electronic devices being less than the number of the target paths, a second connection establishment request is sent to the server to instruct the first electronic device to establish a connection with the second electronic device to perform the first function.

6. The method according to claim 5, It is characterized in that The method further comprises: In response to the number of the third electronic devices being equal to the number of the target paths, not adding the first electronic device to the target device group; or, In response to the number of the third electronic devices being equal to the number of target paths, a step of displaying priorities of the first electronic device and the third electronic device is performed.

7. The method according to claim 1, It is characterized in that In response to the first electronic device being dragged to the target device group, sending a connection establishment request to the server includes: For any second electronic device in the target device group, in response to the first electronic device being dragged to the target device group, when the second function of the second electronic device matches the third function of the first electronic device, a third connection establishment request is sent to the server to instruct the first electronic device to establish a connection with the second electronic device to perform the second function.

8. The method according to claim 1, It is characterized in that The method further comprises: In response to a fourth electronic device in the target device group being dragged out of the target device group, a second disconnection request is sent to the server, where the second disconnection request is used to instruct to disconnect the fourth electronic device from other electronic devices in the target device group.

9. The method according to claim 1, It is characterized in that The method further comprises: In response to the original device group of the first electronic device also including other electronic devices, sending a third disconnection request to the server, wherein the third disconnection request is used to instruct to disconnect the first electronic device from the electronic devices in the original device group; or In response to the original device group of the first electronic device also including other electronic devices, the connection between the first electronic device and the other electronic devices in the original device group is maintained.

10. The method according to any one of claims 1 to 9, It is characterized in that Before displaying the plurality of device groups on the connection management interface, the method further includes: Sending a status synchronization request to the server, wherein the status synchronization request includes a target account, and the status synchronization request is used to request the server to return the connection status of multiple electronic devices corresponding to the target account; Receiving connection status of multiple electronic devices sent by the server; The plurality of device groups are determined based on connection states of the plurality of electronic devices.

11. A multi-device connection method, It is characterized in that The method is executed by a server, the server is used to manage the connection relationship between electronic devices, the connection relationship is used to indicate that data can be transmitted between the electronic devices, and the method includes: Receiving a connection establishment request sent by any electronic device in a multi-device connection system, the connection establishment request is used to instruct a first electronic device to establish a connection with at least one second electronic device, the first electronic device is an electronic device dragged among the electronic devices, the at least one second electronic device is an electronic device in a target device group to which the first electronic device is dragged, the at least one second electronic device and other electronic devices in the target device group are provided with a distributed service, and the at least one second electronic device is used to send data corresponding to multiple functions to a distributed service proxy module of the other electronic devices based on a distributed service calling module corresponding to the distributed service; Based on the connection establishment request, the first electronic device and the at least one second electronic device are controlled to establish a connection.

12. The method according to claim 11, It is characterized in that The method further comprises: Receiving a disconnection request sent by the electronic device; The electronic devices in the target device group are controlled to be disconnected based on the disconnection request.

13. The method according to claim 11, It is characterized in that The method further comprises: Receiving a status synchronization request sent by the electronic device, wherein the status synchronization request carries a target account; Obtaining connection status of multiple electronic devices corresponding to the target account; The connection status of the plurality of electronic devices is sent to the electronic device.

14. The method according to claim 11, It is characterized in that The controlling the first electronic device and the second electronic device to establish a connection based on the connection establishment request includes: Sending a connection indication to the second electronic device, the connection indication carrying the device identification of the first electronic device, the connection indication being used to instruct the second electronic device to establish a short-range communication connection with the first electronic device; or, The association relationship between the first electronic device and the second electronic device is stored, and in response to receiving data sent by the second electronic device, the data is sent to the first electronic device based on the association relationship.

15. A multi-device connection system, It is characterized in that The system includes a plurality of electronic devices and a server, wherein the server is used to manage connection relationships between the electronic devices, and the connection relationships are used to indicate that data can be transmitted between the electronic devices; Any electronic device among the plurality of electronic devices is used to display a plurality of device groups on the connection management interface, the electronic device is an electronic device with a display function among the plurality of electronic devices capable of establishing a connection relationship, each device group includes at least one electronic device, and the device group is used to indicate the connection status of the electronic device; In response to the first electronic device being dragged to the target device group, sending a connection establishment request to the server; The server is used to receive the connection establishment request, and based on the connection establishment request, controls the first electronic device to establish a connection with at least one second electronic device in the target device group, wherein the at least one second electronic device and other electronic devices in the target device group are provided with a distributed service, and the at least one second electronic device is used to send data corresponding to multiple functions to a distributed service agent module of the other electronic devices based on a distributed service calling module corresponding to the distributed service.

16. The system according to claim 15, It is characterized in that The electronic device is used to display a device group including at least two electronic devices in a first display state, wherein the first display state indicates that a connection has been established between the at least two electronic devices; and to display a device group including one electronic device in a second display state, wherein the second display state indicates that the one electronic device is in an unconnected state.

17. The system according to claim 15, It is characterized in that The electronic device is used to, in response to a first electronic device being dragged to a target device group, display the priority of the first electronic device and the third electronic device for any second electronic device in the target device group when the target device group includes a third electronic device, wherein the priority is used to indicate the strength of a first function, and both the third electronic device and the first electronic device have the first function; and in response to a selection operation of the first electronic device, send a first connection establishment request to the server; The server is used to receive the first connection establishment request, and control the first electronic device to establish a connection with the at least one second electronic device based on the first connection establishment request; The electronic device is further used to send a first connection disconnection request to the server; The server is used to receive the first connection disconnection request, and control the at least one second electronic device to disconnect from the third electronic device based on the first connection disconnection request.

18. The system according to claim 17, It is characterized in that The electronic device is further configured to, in response to a selection operation on the third electronic device, not add the first electronic device to the target device group.

19. The system according to claim 17, It is characterized in that The electronic device is further configured to determine the number of target paths corresponding to any second electronic device in the target device group, the number of target paths representing the maximum number of electronic devices used to implement the first function; in response to the number of the third electronic devices being equal to the number of target paths, performing a step of displaying the priority of the first electronic device and the third electronic device; and in response to the number of the third electronic devices being less than the number of target paths, sending a second connection establishment request to the server; The server is further configured to receive the second connection establishment request, and control the first electronic device to establish a connection with the second electronic device based on the second connection establishment request.

20. The system according to claim 15, It is characterized in that The electronic device is used to, in response to the first electronic device being dragged to the target device group, send a third connection establishment request to the server for any second electronic device in the target device group when the second function of any second electronic device in the target device group matches the third function of the first electronic device; The server is used to receive the third connection establishment request, and control the first electronic device to establish a connection with the second electronic device based on the third connection establishment request.

21. The system according to claim 15, It is characterized in that The electronic device is further configured to send a second disconnection request to the server in response to a fourth electronic device in the target device group being dragged out of the target device group; The server is further configured to receive the second disconnection request, and control the fourth electronic device to be disconnected from other electronic devices in the target device group based on the second disconnection request.

22. The system according to claim 15, It is characterized in that The electronic device is further configured to send a third disconnection request to the server in response to the original device group of the first electronic device also including other electronic devices; The server is further configured to receive the third disconnection request, and control the first electronic device to disconnect from the electronic devices in the original device group based on the third disconnection request.

23. The system according to any one of claims 15 to 22, It is characterized in that The electronic device is further configured to send a status synchronization request to the server, wherein the status synchronization request includes a target account; The server is further configured to receive the status synchronization request, obtain the connection status of multiple electronic devices corresponding to the target account based on the target account, and send the connection status of the multiple electronic devices to the electronic device; The electronic device is further used to receive the connection status of multiple electronic devices sent by the server, and determine the multiple device groups based on the connection status of the multiple electronic devices.

24. A multi-device connection device, It is characterized in that The device is executed by an electronic device, and the electronic device is any electronic device in a multi-device connection system that can establish a connection and has a display function, and the device includes: A display module, used to display multiple device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to indicate the connection status of the electronic device; A sending module is used to send a connection establishment request to a server in response to a first electronic device being dragged to a target device group, so as to instruct the first electronic device to establish a connection with at least one second electronic device in the target device group, the server is used to manage the connection relationship between electronic devices, the connection relationship is used to indicate that data can be transmitted between electronic devices, the at least one second electronic device and other electronic devices in the target device group are provided with a distributed service, and the at least one second electronic device is used to send data corresponding to multiple functions to the distributed service agent module of the other electronic devices based on the distributed service calling module corresponding to the distributed service.

25. A multi-device connection device, It is characterized in that The device is executed by a server, the server is used to manage the connection relationship between electronic devices, the connection relationship is used to indicate that data can be transmitted between the electronic devices, and the device includes: a receiving module, configured to receive a connection establishment request sent by any electronic device in a multi-device connection system, wherein the connection establishment request is used to instruct a first electronic device to establish a connection with at least one second electronic device, wherein the first electronic device is an electronic device dragged among the electronic devices, and the at least one second electronic device is an electronic device in a target device group to which the first electronic device is dragged, wherein the at least one second electronic device and other electronic devices in the target device group are provided with a distributed service, and the at least one second electronic device is used to send data corresponding to multiple functions to a distributed service proxy module of the other electronic devices based on a distributed service calling module corresponding to the distributed service; The control module is used to control the first electronic device and the second electronic device to establish a connection based on the connection establishment request.

26. An electronic device, It is characterized in that The electronic device includes a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the multi-device connection method as described in any one of claims 1 to 10.

27. A server, It is characterized in that The server includes a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the multi-device connection method as described in any one of claims 11 to 14.

28. A computer readable storage medium, It is characterized in that The computer-readable storage medium stores at least one program code, and the at least one program code is used to be executed by a processor to implement the multi-device connection method as described in any one of claims 1 to 10; or, the at least one program code is used to be executed by a processor to implement the multi-device connection method as described in any one of claims 11 to 14.

29. A computer program product, It is characterized in that The computer program product stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the multi-device connection method as described in any one of claims 1 to 10; or, the at least one program code is loaded and executed by a processor to implement the multi-device connection method as described in any one of claims 11 to 14.

Citation Information

Patent Citations

  • Equipment grouping method and apparatus

    CN105607499A

  • User privacy protection method and device

    CN110598441A

  • Equipment cooperation method, device and system, electronic equipment and storage medium

    CN112286618A

  • Application interaction method among multiple devices and related devices

    CN113311975A

  • Connection establishment method and device, electronic equipment and storage medium

    CN113316131A