WO2023125205A1 - Multi-device connection method, apparatus and system, and device and storage medium - Google Patents

Multi-device connection method, apparatus and system, and device and storage medium Download PDF

Info

Publication number
WO2023125205A1
WO2023125205A1 PCT/CN2022/140772 CN2022140772W WO2023125205A1 WO 2023125205 A1 WO2023125205 A1 WO 2023125205A1 CN 2022140772 W CN2022140772 W CN 2022140772W WO 2023125205 A1 WO2023125205 A1 WO 2023125205A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
connection
target
electronic
server
Prior art date
Application number
PCT/CN2022/140772
Other languages
French (fr)
Chinese (zh)
Inventor
杨俊拯
何�轩
梁羽平
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023125205A1 publication Critical patent/WO2023125205A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Definitions

  • the embodiments of the present application relate to the technical field of terminals, and in particular to a multi-device connection method, device, system, device, and storage medium.
  • one electronic device can be used to control other electronic devices.
  • the data sending end sends a connection establishment request to the data receiving end, and the data receiving end establishes a connection with the data sending end based on the connection establishment request.
  • the mobile phone can be connected to the TV set.
  • the process of establishing a connection between the mobile phone and the TV is as follows: search for TVs in the current local area network through the mobile phone, send a connection establishment request to the searched TV, realize the connection with the TV, and project the video data on the mobile phone to the TV.
  • Embodiments of the present application provide a multi-device connection method, device, system, device, and storage medium, which can improve the flexibility of multi-device connection. Described technical scheme is as follows:
  • a device connection method is provided, the method is executed by any electronic device that logs into the same account, and the method includes:
  • each device group includes at least one electronic device, and the device group is used to represent the connection status of the electronic device;
  • the server uses It is used to manage the connection relationship between electronic devices.
  • a multi-device connection method is provided, the method is executed by a server, and the method includes:
  • connection establishment request is used to instruct the first electronic device to establish a connection with at least one second electronic device, and the first electronic device is The dragged electronic device, the at least one second electronic device is an electronic device in the target device group to which the first electronic device is dragged;
  • the first electronic device is controlled to establish a connection with the at least one second electronic device.
  • a multi-device connection system in another aspect, includes a plurality of electronic devices and a server;
  • any one of the multiple electronic devices is 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 represent the connection status of the electronic device; in response to the first An electronic device is dragged to the target device group, and a connection establishment request is sent to the server;
  • the server is configured 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.
  • a multi-device connection device is provided, the device is used for an electronic device, and the electronic device is any electronic device in a multi-device connection system, and the device includes:
  • a display module configured 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 represent the connection status of the electronic device;
  • a sending module configured to send a connection establishment request to a server in response to the first electronic device being dragged to the 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.
  • a multi-device connection device which is used for a server, and the device includes:
  • a receiving module configured to receive a connection establishment request sent by any electronic device in the multi-device connection system, the connection establishment request is used to instruct the first electronic device to establish a connection with at least one second electronic device, and 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;
  • a control module configured to control the first electronic device to establish a connection with the second electronic device based on the connection establishment request.
  • an electronic device in another aspect, 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 realize the above aspects The multi-device connection method described above.
  • a server in another aspect, 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 above-mentioned multi-device connection method.
  • a computer-readable storage medium stores at least one piece of program code, and the at least one piece of program code is used to be executed by a processor to implement the multi-device described in the above aspect connection method.
  • a 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 aspect.
  • FIG. 1 shows a schematic diagram of an implementation environment involved in a multi-device connection method shown in an exemplary embodiment of the present application
  • FIG. 2 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application
  • Fig. 3 shows a schematic diagram of a connection management interface shown in an exemplary embodiment of the present application
  • Fig. 4 shows a schematic diagram of a connection management interface shown in an exemplary embodiment of the present application
  • Fig. 5 shows a schematic diagram of a connection management interface shown in an exemplary embodiment of the present application
  • FIG. 6 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application
  • Fig. 7 shows a schematic diagram of a connection management interface shown in an exemplary embodiment of the present application.
  • FIG. 8 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application
  • FIG. 9 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application.
  • FIG. 10 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application
  • FIG. 11 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application
  • Fig. 12 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application
  • Fig. 13 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application
  • Fig. 14 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application
  • Fig. 15 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application
  • Fig. 16 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application
  • Fig. 17 shows a block diagram of a multi-device connection device shown in an exemplary embodiment of the present application
  • Fig. 18 shows a block diagram of a multi-device connection device shown in an exemplary embodiment of the present application
  • Fig. 19 shows a structural block diagram of an electronic device shown in an exemplary embodiment of the present application.
  • Fig. 20 shows a structural block diagram of a server shown in an exemplary embodiment of the present application.
  • the "plurality” mentioned herein means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently.
  • the character “/” generally indicates that the contextual objects are an "or” relationship.
  • the target account number and device identification and other information involved in the embodiment of the present application may be information fully authorized by the user or by all parties.
  • FIG. 1 shows a schematic diagram of an implementation environment involved in a multi-device connection method shown in an exemplary embodiment of the present application.
  • the implementation environment includes: an electronic device 10 and a server 20 .
  • the electronic device 10 is any one of multiple electronic devices logged in with the same account.
  • the electronic device 10 is connected to the server 20 through a network.
  • a target application program is installed in the electronic device 10, and the server 20 is a background server of the target application program.
  • the electronic device 10 is used to log in the background server through the target application program, and establish a connection with other electronic devices installed with the target application program through the background server.
  • the target application program is used to send the account for logging in the electronic device 10 to the server 20, based on which the server 20 associates the electronic devices in the target application program so as to control the connection between the electronic devices.
  • the electronic device 10 can send data corresponding to the function to the electronic device 10 based on the function of the connected electronic device 10, so that the data can be processed or displayed by the connected electronic device 10, etc.
  • the electronic equipment 10 is a mobile phone and a TV set respectively. Since the TV set has the function of playing video data and audio data, after the connection between the mobile phone and the TV set is established, the mobile phone sends both the video data and the audio data to the TV set. The television plays the video data and audio data.
  • the electronic device 10 may be a mobile phone, a tablet computer, a computer with a wireless communication function, a wearable device, a household device, and the like.
  • the server 20 may be at least one of a server, a server cluster composed of multiple servers, a cloud server, a cloud computing platform, and a virtualization center. In the embodiment of the present application, no specific limitation is made on this.
  • the electronic device when the first electronic device is dragged into the target device group, there is at least one second electronic device capable of establishing a connection with the first electronic device in the target device group.
  • the electronic device traverses the electronic devices in the target device group, so as to determine the at least one second electronic device.
  • an example of establishing a connection between the first electronic device and a second electronic device in the target device group will be described below.
  • FIG. 2 shows a flow chart of a multi-device connection method shown in an exemplary embodiment of the present application.
  • the method includes the following steps:
  • Step S201 The electronic device displays multiple device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to represent the connection status of the electronic device.
  • connection management interface may be an interface of a target application program.
  • the connection management interface is used to display multiple device groups.
  • the connection status includes established connection and unestablished connection.
  • the electronic device can display the multiple device groups in different display states.
  • 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; in a second display state, it displays a device group including only one For a device group of electronic devices, the second display state indicates that the one electronic device is in an unconnected state.
  • the first display state and the second display state are set as required, which are not specifically limited in this embodiment of the present application.
  • the first display state is a color display state
  • the second display state is a grayscale display state.
  • device groups with 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.
  • each device group can be displayed in the form of a display box.
  • at least one electronic device of the device group is displayed in the same display frame.
  • the electronic device displays all electronic devices of the device group in each display frame.
  • the user can determine the number of electronic devices in the device group by displaying the electronic devices in the frame, so as to determine whether the electronic devices have established a connection, so as to understand the electronic devices in each device group more intuitively.
  • the electronic device A has not established a connection with other electronic devices. If electronic device B and electronic device C are in the same display frame, it means that the connection between electronic device B and electronic device C has been established.
  • one electronic device in the device group is displayed in the display frame, 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 and displayed.
  • each display frame only displays the electronic devices in the device group, which saves the area occupied by the display frame in the connection management interface.
  • electronic device A is displayed in the display frame. If a click operation on the display frame is received, and if the device group corresponding to the display frame also includes electronic device B, the display frame will be expanded and displayed. Electronic device A and electronic device B.
  • the electronic device that currently displays the connection management interface may be any electronic device that has a display function among multiple electronic devices capable of establishing a connection.
  • the electronic device is not specifically limited.
  • Another point that needs to be explained is that among multiple electronic devices corresponding to the same account, only some electronic devices may be in a state where a connection can be established. For example, among the multiple electronic devices, the electronic device may not be currently logged into the target application program, is currently in a power-off state, or the path of the established connection is full, and the like. In these cases, the electronic device cannot establish connections with other electronic devices.
  • the connection management interface does not display electronic devices that are currently unable to establish a connection.
  • the electronic devices corresponding to the same account include: electronic device A, electronic device B, electronic device C, and electronic device D.
  • the account is not currently registered in the electronic device A, and the electronic device B is currently powered off, then only the device groups of the electronic device C and the electronic device D are displayed in the connection management interface.
  • all electronic devices corresponding to the account are displayed on the connection management interface.
  • the electronic device that is currently unable to establish a connection is displayed in a special display form.
  • electronic devices that are currently unable to establish a connection are displayed in grayscale.
  • the electronic devices corresponding to the same account include: electronic device A, electronic device B, electronic device C, and electronic device D.
  • the connection management interface displays the device groups of electronic device A, electronic device B, electronic device C, and electronic device D, wherein electronic device A and that of electronic device B are displayed in grayscale.
  • the electronic devices in the device group can be displayed by means of device identifiers.
  • the device identifier may be the name, code or icon of the electronic device.
  • 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 the server to instruct the first electronic device to establish a connection with the second electronic device in the target device group, and the server uses It is used to manage connections between various electronic devices.
  • the drag operation is a drag operation triggered by the user in the connection management interface.
  • the electronic device detects a long-press operation triggered on the connection management interface, and switches the multiple electronic devices from a non-dragable state to a draggable state. In the draggable state, the electronic device displays a moving process of the first electronic device based on the drag operation.
  • the electronic device determines that 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, based on the first electronic device and the second electronic device
  • the electronic device generates a connection establishment request, and sends the connection establishment request to the server.
  • Step S203 the server receives the connection establishment request.
  • Step S204 The server controls the first electronic device to establish a connection with the second electronic device based on the connection establishment request.
  • the server determines the first electronic device and the second electronic device to be connected, and controls the first electronic device and the second electronic device to establish a connection.
  • establishing a connection between the first electronic device and the second electronic device may establish a short-distance 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 in the data During transmission, data is transmitted for the first electronic device and the second electronic device based on the association relationship.
  • the server sends a connection indication to the second electronic device, where the connection indication carries the device identifier of the first electronic device, and the connection indication is used to instruct the second electronic device to establish a connection with the first electronic device.
  • Short distance communication link the server sends a connection indication to the first electronic device, where the connection indication carries the device identifier 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.
  • the server sends a connection indication to the second electronic device, the connection indication carries the device identifier 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, the The server sends a connection instruction to the first electronic device, the connection instruction carries the device identifier of the second electronic device, and the connection instruction is used to instruct the first electronic device to establish a short-distance communication connection with the second electronic device.
  • This type of connection enables fast data transmission with a small distance between devices.
  • the server stores the association relationship between the first electronic device and the second electronic device, and in response to receiving the data sent by the second electronic device, the server sends the data to the first electronic device based on the association relationship .
  • the network connected to the device can be used for data transmission, so as to realize fast data transmission.
  • connection establishment methods can be applied in different network environments, thereby expanding the scope of application of the embodiments of the present application.
  • the electronic device displays the first electronic device in the target device group.
  • the electronic device displays the first electronic device in the target device group 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 the state of establishing a connection, and in response to the first electronic device and the second electronic device
  • 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.
  • a third connection disconnection request is sent to the server, and the third connection disconnection request is used to indicate disconnection of the first electronic device.
  • the connection of electronic equipment to electronic equipment in this original equipment group In this way, it can be ensured that when the first electronic device realizes the function, it only realizes the corresponding function based on the data sent by one electronic device, and prevents the first electronic device from receiving data from multiple other electronic devices.
  • the connection between the first electronic device and other electronic devices in the original device group is maintained.
  • the first electronic device in response to other electronic devices being included in the original device group of the first electronic device, the connection between the first electronic device and other electronic devices in the original device group is maintained.
  • 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 usage scenarios of the first electronic device.
  • connection management interface by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group.
  • the purpose of the connection state so that there is no need to set up a central electronic device, making the connection more flexible.
  • the establishment of a device connection between electronic devices that log in to the same account is taken as an example for illustration.
  • the above method can also be used to establish For device connection, the different accounts may be associated accounts, authorized accounts, different sub-accounts under the same parent account, etc., which is not limited in this embodiment of the present application.
  • any device group among multiple device groups displayed on the connection management interface can be used as the target device group, and for each device group, the device group includes at least one electronic device, and the target device group includes at least one electronic device.
  • the electronic device implements steps S201-S204 to establish a connection between the first electronic device and the second electronic device in the target device group.
  • the electronic device determines whether to establish a connection between the first electronic device and the second electronic device based on the function of the third electronic device in the target device group.
  • the first electronic device establishes a connection with the second electronic device through the above steps S201-S204.
  • the electronic device may determine whether to establish a connection between the first electronic device and the second electronic device in the following ways.
  • FIG. 6 it shows a flow chart of a multi-device connection method shown in an exemplary embodiment of the present application.
  • the target device group includes multiple electronic devices as an example.
  • the method includes the following step:
  • Step S601 The electronic device displays multiple device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to represent the connection status of the electronic device.
  • step S201 The principle of this step is the same as that of step S201, and will not be repeated here.
  • 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 having the same first function as the first electronic device among the plurality of electronic devices.
  • the first function is a function that can be realized by the first electronic device.
  • the first function is an audio playback function, a video playback function, a control function, and the like.
  • the electronic device determines the second electronic device from the multiple device identifiers of the target device group, where the second electronic device is a data sending end. For other electronic devices in the plurality of electronic devices except the second electronic device, the electronic device executes step S603.
  • Step S603 In the case that the target device group includes the third electronic device, display the priorities of the first electronic device and the third electronic device, the priority is used to represent the capability of the first function, and the priority of the first electronic device is displayed. Both the third electronic device and the first electronic device have the first function.
  • the priority of the electronic device corresponding to each function may be the default of the system, or may be set by the user based on the connection management interface.
  • the connection management interface displays a device priority configuration table
  • the device priority configuration table displays priorities corresponding to different electronic devices. The user can input the corresponding priorities of different electronic devices under different functions in the device priority configuration table.
  • a TV can display higher-definition videos than a tablet computer, so the video playback priority can be set so that the TV is higher than the tablet computer.
  • the audio is more suitable for playing audio than the mobile phone. Therefore, the priority of playing audio can be set so that the audio is higher than that of the mobile phone.
  • the electronic device displays a selection interface
  • the priorities of the first electronic device and the third electronic device are displayed in the selection interface
  • the electronic device corresponding to the selection operation determines the The second electronic device establishes a connection with the electronic device.
  • Step S604 In response to the selection operation of 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 perform the first function.
  • the selection operation may be a click operation on the device identifier of the first electronic device or the like.
  • the principle that the electronic device indicates to establish the connection between the first electronic device and the second electronic device through the first connection establishment request is the same as that in step S202, the electronic device indicates to establish the connection between the first electronic device and the second electronic device through the connection establishment request.
  • the principle of the connection between the electronic devices is the same and will not be repeated here.
  • the electronic device in response to the selection operation 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.
  • Step S605 the server receives the first connection establishment request.
  • step S203 The principle of this step is the same as that of step S203, and will not be repeated here.
  • 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.
  • step S204 The principle of this step is the same as that of step S204, and will not be repeated here.
  • the electronic device is in the target device group, and the first electronic device is displayed. This process is the same as the principle of displaying the first electronic device when the electronic device is in the target device group in step S204, and details are not repeated here.
  • the electronic device when the target device group further includes electronic devices for realizing other functions, the electronic device also displays the other electronic devices in the target device group.
  • the target device group includes electronic device A and electronic device B, and the connection management interface also includes electronic device C and electronic device D. Drag and drop electronic device C into the target device group, and the target electronic device
  • the manner of displaying multiple electronic devices in the 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.
  • the target device group also includes electronic devices for realizing other functions
  • the second electronic device in the target device group sends multiple electronic devices in the device group based on the functions corresponding to different electronic devices
  • An electronic device sends data of the type corresponding to the function.
  • the second electronic device and other electronic devices are provided with a distributed service, and the second electronic device used to send data can call the distributed service module to other electronic devices based on the distributed service corresponding to the distributed service.
  • the proxy module sends corresponding data.
  • the second electronic device when the second electronic device is connected with two electronic devices, where the two other electronic devices are respectively used to play video data and audio data, then the second electronic device calls the module to the other two based on the distributed service
  • the electronic device sends video data and audio data, and other electronic devices receive the video data and audio data through the service agent module.
  • the second electronic device may also send corresponding types of data to other electronic devices through the server.
  • the second electronic device sends data corresponding to various functions to the server, and the server sends corresponding data to other electronic devices based on the function of each electronic device.
  • Step S607 the electronic device sends a first connection disconnection request to the server, and the first connection disconnection request is used to instruct to disconnect the connection between the second electronic device and the third electronic device.
  • the first disconnection request includes device identifications of the second electronic device and the third electronic device.
  • the electronic device generates a first connection disconnection request based on the device identifiers of the second electronic device and the third electronic device, and sends the first connection disconnection request to the server.
  • Step S608 the server receives the first connection disconnection request.
  • Step S609 the server controls the second electronic device to disconnect from the third electronic device based on the first connection disconnection request.
  • 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 disconnect.
  • the server sends a disconnection indication to the second electronic device, the disconnection indication carries the device identifier of the third electronic device, and the disconnection indication is used to indicate that the second electronic device is disconnected from the third electronic device. Open the short-distance communication connection.
  • the server sends a disconnection instruction to the third electronic device, the disconnection instruction carries the device identifier of the second electronic device, and the disconnection instruction is used to instruct the third electronic device to disconnect the short-distance communication with the second electronic device connect.
  • the server deletes the stored association relationship between the second electronic device and the third electronic device. This prevents both the first electronic device and the third electronic device from realizing the same function corresponding to the second electronic device, and prevents mutual influence between devices caused by realizing the same function through multiple devices.
  • the user can select from the first electronic device and the third electronic device based on the priority of the first function.
  • the electronic device connected to the second electronic device provides a basis for the user to select the electronic device to be connected, so that the second electronic device is connected to an electronic device with a higher priority.
  • steps S604-S606 and steps S607-S609 can be set as required, and in this embodiment of the application, the order of steps S604-S606 and steps S607-S609 is not specifically limited.
  • connection management interface by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group.
  • the purpose of the connection state so that there is no need to set up a central electronic device, making the connection more flexible.
  • 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 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application.
  • an electronic device automatically selects an electronic device to establish a connection based on priority as an example for illustration. The method include the following steps:
  • Step S901 the electronic device displays multiple device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to represent the connection status of the electronic device.
  • step S201 The principle of this step is the same as that of step S201, and will not be repeated here.
  • 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 having the same first function as the first electronic device among the plurality of electronic devices.
  • step S602 The principle of this step is the same as that of step S602, and will not be repeated here.
  • Step S903 If the target device group includes the third electronic device, the electronic device determines the priorities of the first electronic device and the third electronic device.
  • This step is the same as the principle of determining the priorities of the first electronic device and the third electronic device by the electronic device in step S603, and will not be repeated here.
  • 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 connected to perform the first function.
  • This step is the same as the principle of establishing a connection based on the first connection establishment request in step S604, and will not be repeated here.
  • 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.
  • Step S905 the server receives the first connection establishment request.
  • step S203 The principle of this step is the same as that of step S203, and will not be repeated here.
  • 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.
  • step S204 The principle of this step is the same as that of step S204, and will not be repeated here.
  • Step S907 the electronic device sends a first connection disconnection request to the server, and the first connection disconnection request is used to instruct to disconnect the connection between the second electronic device and the third electronic device.
  • step S607 The principle of this step is the same as that of step S607, and will not be repeated here.
  • Step S908 the server receives the first connection disconnection request.
  • step S608 The principle of this step is the same as that of step S608, and will not be repeated here.
  • Step S909 the server controls the second electronic device to disconnect from the third electronic device based on the first connection disconnection request.
  • step S609 The principle of this step is the same as that of step S609, and will not be repeated here.
  • 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 realize the first function, ensuring Achieving the quality of the first function.
  • connection management interface by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group. Connection status, eliminating the need to set up central electronics, making connections more flexible.
  • the electronic device may also determine whether to establish the second electronic device based on the maximum number of electronic devices corresponding to the second electronic device for realizing the first function A connection between an electronic device and a second electronic device.
  • FIG. 10 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application, and the method includes the following steps:
  • Step S1001 The electronic device displays multiple device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to represent the connection status of the electronic device.
  • step S201 The principle of this step is the same as that of step S201, and will not be repeated here.
  • Step 1002 The electronic device is dragged to the target device group in response to the first electronic device, and if the target device group includes the third electronic device, determine the target path quantity corresponding to the second electronic device, the target path quantity Indicates the maximum number of electronic devices used to implement the first function.
  • the number of target paths may be the default value of the system, or may be set by the user based on the connection management interface.
  • the connection management interface displays a path constraint table, and the path constraint table displays the number of target paths corresponding to different functions. The user can input the number of target paths corresponding to different functions in the path constraint table.
  • the first function is an audio playback function.
  • the maximum number of devices for the audio playback function is set to 1.
  • the first function is a video playing function, and if videos are played on multiple electronic devices, there is no interference between the electronic devices. Therefore, the number of electronic devices corresponding to the video playing function may be multiple.
  • the number of electronic devices corresponding to the video playing function may be 3, 4, 5 or unlimited.
  • the electronic device may locally store the maximum number of devices corresponding to each function.
  • the electronic device may also determine the maximum number of devices corresponding to each function based on the server. In the embodiment of the present application, no specific limitation is made on this.
  • Step S1003 the electronic device determines the quantity of the third electronic device.
  • the electronic device determines the number of third electronic devices based on the number of electronic devices in the target device group.
  • Step S1004 the electronic device compares the number of the third electronic device with the number of target paths.
  • Step S1005 In response to the number of the third electronic device being less than the number of 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 electronic device. a function.
  • This step is the same as the principle of establishing a connection based on the first connection establishment request in step S604, and will not be repeated here.
  • Step S1006 the server receives the second connection establishment request.
  • step S203 The principle of this step is the same as that of step S203, and will not be repeated here.
  • 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.
  • step S204 The principle of this step is the same as that of step S204, and will not be repeated here.
  • the electronic device controls the first electronic device to establish a connection with the second electronic device, so that the second electronic device.
  • the functions of an electronic device can be realized by multiple electronic devices, which enriches the application scenarios of connection.
  • connection management interface by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group. Connection status, eliminating the need to set up central electronics, making connections more flexible.
  • the electronic device in response to the number of the third electronic device being equal to the number of target paths, the electronic device may maintain the connection between the first electronic device and multiple third electronic devices, and not add the first electronic device to the target path. 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 priorities of the first electronic device and multiple third electronic devices.
  • FIG. 11 it shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application, and the method includes the following steps:
  • Step S1101 The electronic device displays multiple device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to represent the connection status of the electronic device.
  • step S201 The principle of this step is the same as that of step S201, and will not be repeated here.
  • Step S1102 The electronic device is dragged to the target device group in response to the first electronic device, and if the target device group includes the third electronic device, determine the target path quantity corresponding to the second electronic device, the target path quantity Indicates the maximum number of electronic devices used to implement the first function.
  • step S1002 The principle of this step is the same as that of step S1002, and will not be repeated here.
  • Step S1103 the electronic device determines the quantity of the third electronic device.
  • step S1003 The principle of this step is the same as that of step S1003, and will not be repeated here.
  • Step S1104 the electronic device compares the number of the third electronic device with the number of target paths.
  • step S1004 The principle of this step is the same as that of step S1004, and will not be repeated here.
  • Step S1105 In response to the number of the third electronic device being equal to the number of target paths, the electronic device determines priorities of the first electronic device and multiple third electronic devices.
  • This step is the same as the principle of determining the priorities of the first electronic device and the third electronic device by the electronic device in step S602, and will not be repeated here.
  • 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 connect the first electronic device with the second electronic device. The electronic device establishes a connection to perform the first function.
  • the electronic device determines the third electronic device with the lowest priority among the plurality of electronic devices, and compares the priority of the third electronic device with the lowest priority with the priority of the first electronic device. In contrast, when the priority of the fourth electronic device with the lowest priority is higher than that 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 middle.
  • This step is the same as the principle of establishing a connection based on the first connection establishment request in step S604, and will not be repeated here.
  • Step S1107 the server receives the second connection establishment request.
  • step S203 The principle of this step is the same as that of step S203, and will not be repeated here.
  • Step S1108 the server controls the first electronic device to establish a connection with the second electronic device based on the second connection establishment request.
  • step S204 The principle of this step is the same as that of step S204, and will not be repeated here.
  • Step S1109 the electronic device sends a first connection disconnection request to the server, and the first connection disconnection request is used to instruct disconnection of the connection between the second electronic device and the third electronic device.
  • step S607 The principle of this step is the same as that of step S607, and will not be repeated here.
  • Step S1110 the server receives the first connection disconnection request.
  • step S608 The principle of this step is the same as that of step S608, and will not be repeated here.
  • Step S1111 the server controls the second electronic device to disconnect from the third electronic device based on the first connection disconnection request.
  • step S609 The principle of this step is the same as that of step S609, and will not be repeated here.
  • the electronic device to establish 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, so that among multiple electronic devices, the selection priority is higher.
  • the electronic device guarantees the quality of realizing the functions of the second electronic device.
  • connection management interface by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group. Connection status, eliminating the need to set up central electronics, making connections more flexible.
  • the electronic device can also control the connection between the first electronic device and the second electronic device with matching functions in the target device group, see FIG. 13 , which shows a multi-device connection shown in an exemplary embodiment of the present application
  • FIG. 13 shows a multi-device connection shown in an exemplary embodiment of the present application
  • Step S1301 The electronic device displays multiple device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to represent the connection status of the electronic device.
  • step S201 The principle of this step is the same as that of step S201, and will not be repeated here.
  • Step S1302 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, the electronic device sends The server sends a third connection establishment request to instruct the first electronic device to establish a connection with the second electronic device to perform the second function.
  • the electronic device determines the third function of the first electronic device, and determines the second function of multiple electronic devices in the target device group, and determines the second function and the third function from the multiple electronic devices
  • the matching second electronic device establishes a connection between the second electronic device and the first electronic device.
  • the target device group includes a mobile phone and a TV set, where the mobile phone sends video data and audio data to the TV set, and the first electronic device is a Bluetooth headset, then the electronic device determines that the third function of the Bluetooth headset is an audio playback function, currently implemented
  • the electronic device with the audio playback function is a TV set, and the electronic device establishes a connection between the earphone and the TV set.
  • Step S1303 the server receives the third connection establishment request.
  • step S203 The principle of this step is the same as that of step S203, and will not be repeated here.
  • 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.
  • step S204 The principle of this step is the same as that of step S204, and will not be repeated here.
  • the first electronic device may establish a connection with any electronic device having the same function in the target device group, thereby enriching the usage scenarios of the embodiment of the present application.
  • the data flow in the target device group is as follows: the fourth electronic device sends data corresponding to various functions to the second electronic device, and the second electronic device based on The second and other functions display this data.
  • the data flow in the target device group is as follows: the fourth electronic device sends the data corresponding to various functions to the second electronic device, and the second electronic device sends the data corresponding to the second function Send it 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.
  • data corresponding to multiple functions includes video data and audio data;
  • the fourth electronic device is a mobile phone, the second electronic device is a TV set, and the first electronic device is a Bluetooth headset.
  • the mobile phone Before the Bluetooth headset is added to the target device group, the mobile phone sends the video data and audio data to the TV, and the TV plays the video data and audio data.
  • the Bluetooth headset After the Bluetooth headset is added to the target device group, the Bluetooth headset establishes a connection with the TV, the mobile phone sends the video data and audio data to the TV, and the TV sends the audio data to the Bluetooth headset, so that the TV plays the video data, and the Bluetooth Headphones play audio data.
  • connection management interface by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group.
  • the purpose of the connection state so that there is no need to set up a central electronic device, making the connection more flexible.
  • the above-mentioned process can also be implemented through a server.
  • the server stores the number of target paths corresponding to the electronic devices in the multiple device groups.
  • the electronic device sends the device identifiers of the first electronic device and the second electronic device to the server, and the server executes the above steps to establish the connection between the first electronic device and the second electronic device. connection between devices.
  • the server determines whether to control the first electronic device to establish a connection with the second electronic device, which reduces the requirements on the electronic device, and further improves the versatility of the application scenarios of the embodiments of the present application.
  • the dragging operation performed on the electronic device can also trigger the disconnection of the electronic device in the target coordination device.
  • FIG. 14 shows a multi-device A flowchart of a method of connecting, the method comprising the following steps:
  • Step S1401 The electronic device displays multiple device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to represent the connection status of the electronic device.
  • step S201 The principle of this step is the same as that of step S201, and will not be repeated here.
  • Step S1402 In response to the fourth electronic device in the target device group being dragged out of the target device group, send a second connection disconnection request to the server, where the second connection disconnection request is used to instruct disconnection of the fourth electronic device. Connections between the electronic device and other electronic devices within the target device group.
  • step S202 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, and will not be repeated here.
  • 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 process of requesting disconnection in step S607-step S609. Let me repeat.
  • Step S1403 The electronic device displays other electronic devices except the fourth electronic device in the target device group.
  • the fourth electronic device is displayed in the new device group, and other electronic devices except the fourth electronic device are displayed in the target device group.
  • connection management interface by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group. Connection status, eliminating the need to set up central electronics, making connections more flexible.
  • FIG. 15 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application, and the method includes the following steps:
  • Step S1501 the electronic device sends a state synchronization request to the server, and the connection state synchronization request includes a target account.
  • the electronic device when it just connects to the server, it sends a synchronization request to the server.
  • the electronic device that is newly connected to the server refers to the electronic device that the target application program logs into the target account.
  • the electronic device may log in the target account by inputting the account password, or the electronic device may log in the target account by scanning a two-dimensional code corresponding to the target account. In the embodiment of the present application, no specific limitation is made on this.
  • Step S1502 the server receives the status synchronization request sent by the electronic device.
  • Step S1503 the server determines the connection statuses of the multiple electronic devices corresponding to the target account.
  • the server includes 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 a plurality of electronic devices based on the account, sends the plurality of electronic devices to the synchronization module, and the synchronization module determines the connection status of the plurality of electronic devices.
  • Step S1504 the server sends the connection statuses of the multiple electronic devices corresponding to the target account to the electronic device.
  • the server sends the device identifiers of the multiple electronic devices and the connection status of each electronic device to the electronic device.
  • Step S1505 the electronic device receives the connection statuses of the multiple electronic devices sent by the server.
  • Step S1506 the electronic device determines the multiple device groups based on the connection states of the multiple electronic devices.
  • 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 by multiple electronic devices corresponding to the same account is Consistent, thus ensuring that any electronic device can realize the control of the connection status of other electronic devices.
  • connection management interface by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group. Connection status, eliminating the need to set up central electronics, making connections more flexible.
  • any of the above schemes can be used to realize the connection with the first electronic device.
  • the establishment of the connection in the embodiment of this application, this will not be repeated.
  • FIG. 17 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 a part of the processor through software, hardware or a combination of the two.
  • the unit includes:
  • a display module 1701 configured 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 represent the connection status of the electronic device;
  • the first sending module 1702 is configured to send a connection establishment request to the server in response to the first electronic device being dragged to the target device group, to instruct the first electronic device to establish connection with at least one second electronic device in the target device group connection, the server is used to manage the connection relationship between electronic devices.
  • the display module 1701 includes:
  • the first display unit is configured to display a device group including at least two electronic devices in a first display state, the first display state indicating that a connection has been established between the at least two electronic devices;
  • the second display unit is configured to display a device group including only one electronic device in a second display state, the second display state indicating that the one electronic device is in a state of not establishing a connection.
  • the first sending module 1702 includes:
  • the third display unit is 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, if the target device group includes a third electronic device, Displaying the priority of the first electronic device and the third electronic device, the priority is used to indicate the capability of the first function, and the third electronic device has established a connection with the second electronic device in the target device group electronic device, the third electronic device and the first electronic device both have the first function;
  • the first sending unit is configured to send a first connection establishment request to the server in response to the selection operation of the first electronic device, and the first connection establishment request is used to instruct the first electronic device to establish with the second electronic device connected to perform the first function;
  • the unit also includes:
  • the second sending module is configured to send a first connection disconnection request to the server, where the first connection disconnection request is used to instruct disconnection between the second electronic device and the third electronic device.
  • the display module 1701 is further configured to not control the first electronic device to establish a connection with the at least one second electronic device in response to the selection operation of the third electronic device.
  • the first sending module 1702 includes:
  • the determining unit is 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, if the target device group includes a third electronic device, determine the A target path number corresponding to the second electronic device, where the target path number represents the maximum number of electronic devices used to realize the first function;
  • the second sending unit is configured to send a second connection establishment request to the server in response to the number of the third electronic device being less than the target path number, to instruct the first electronic device to establish a connection with the second electronic device to perform The first function.
  • the display module 1701 is further configured to not add the first electronic device to the target device group in response to the number of the third electronic device being equal to the target path number; or,
  • 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 device being equal to the target path number.
  • the first sending module 1702 includes:
  • the third sending unit is 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, the second function of the second electronic device in the target device group If it matches the third function of the first electronic device, sending a third connection establishment request to the server to instruct the first electronic device to establish a connection with the second electronic device to execute the second function.
  • the device also includes:
  • the third sending module is configured to send a second connection disconnection request to the same server in response to the fourth electronic device in the target device group being dragged out of the target device group, and the second connection disconnection request is used to indicate disconnection opening the connection between the fourth electronic device and other electronic devices in the target device group;
  • the display module 1701 is further configured to display other electronic devices except the fourth electronic device in the target device group.
  • the device also includes:
  • the fourth sending module is configured to send a third connection disconnection request to the server in response to other electronic devices included in the original device group of the first electronic device, and the third connection disconnection request is used to instruct disconnection of the first electronic device. the connection of an electronic device to the electronic device in the original equipment group; or,
  • a maintaining module configured to, in response to other electronic devices being included in the original equipment group of the first electronic device, maintain the connection between the first electronic device and other electronic devices in the original equipment group.
  • the device also includes:
  • the fifth sending module is configured to send a status synchronization request to the server, the connection 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;
  • the first receiving module is used to receive the connection status of multiple electronic devices sent by the server;
  • a determining module configured to determine the multiple device groups based on the connection status of the multiple electronic devices.
  • connection management interface by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group. Connection status, eliminating the need to set up central electronics, making connections more flexible.
  • FIG. 18 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 a part of the processor through software, hardware or a combination of the two.
  • the unit includes:
  • the second receiving module 1801 is configured to receive a connection establishment request sent by any electronic device in the multi-device connection system, the connection establishment request is used to instruct the first electronic device to establish a connection with the second electronic device, and the first electronic device is The dragged electronic device among the electronic devices, the second electronic device is an electronic device in the target device group to which the first electronic device is dragged;
  • the first control module 1802 is configured to control the first electronic device to establish a connection with the second electronic device based on the connection establishment request.
  • the device also includes:
  • a third receiving module configured to receive a connection disconnection request sent by the electronic device
  • the second control module is configured to control the electronic devices in the target device group to disconnect based on the connection disconnection request.
  • the device also includes:
  • a fourth receiving module configured to receive a state synchronization request sent by the electronic device, where the state synchronization request carries a target account
  • An acquisition module configured to acquire the connection statuses of multiple electronic devices corresponding to the target account
  • a sixth sending module configured to send the connection states of the plurality of electronic devices to the electronic device.
  • the first control module 1802 includes:
  • the fourth sending unit is configured to send a connection instruction to the second electronic device, the connection instruction carries the device identifier of the first electronic device, and the connection instruction is used to instruct the second electronic device to establish short-distance communication with the first electronic device connection; or,
  • the storage unit is configured to store the association relationship between the first electronic device and the second electronic device, and in response to receiving the data sent by the second electronic device, send the data to the first electronic device based on the association relationship.
  • connection management interface by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group. Connection status, eliminating the need to set up central electronics, making connections more flexible.
  • FIG. 19 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 an image processing function such as a smart phone and a tablet computer.
  • the electronic device 1900 in this application may include one or more of the following components: a processor 1910 , a memory 1920 , and a communication module 1930 .
  • Processor 1910 may include one or more processing cores.
  • the processor 1910 uses various interfaces and lines to connect various parts of the entire electronic device 1900, and by running or executing instructions, programs, code sets or instruction sets stored in the memory 1920, and calling data stored in the memory 1920, execute Various functions and processing data of the terminal 1000.
  • the processor 1910 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 1910 can integrate one or more of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a neural network processor (Neural-network Processing Unit, NPU) and a modem, etc.
  • a central processing unit Central Processing Unit, CPU
  • an image processor Graphics Processing Unit, GPU
  • a neural network processor Neural-network Processing Unit, NPU
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used to render and draw the content that needs to be displayed on the display screen
  • the NPU is used to realize artificial intelligence (Artificial Intelligence, AI) functions
  • the modem is used to process wireless communication. It can be understood that the foregoing modem may not be integrated into the processor 1910, but may be implemented by a single chip.
  • the memory 1920 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory).
  • the memory 1920 includes a non-transitory computer-readable storage medium.
  • the memory 1920 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • 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 and the like for realizing the following various method embodiments; the storage data area can store data created according to the use of the electronic device 1900 (such as audio data, phone book) and the like.
  • the communication module 1930 is used for transmitting and receiving signals, and the communication module may be a wireless fidelity (Wireless Fidelity, WIFI) module or the like.
  • WIFI wireless Fidelity
  • the terminal 1910 may also include a display screen, which is a display component for displaying a user interface.
  • the display screen is a display screen with a touch function. Through the touch function, the user can use any suitable object such as a finger or a touch pen to perform a touch operation on the display screen.
  • the display screen is usually arranged on the front panel of the electronic device 1900 .
  • the display screen can be designed as full screen, curved screen, special-shaped screen, double-sided screen or 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 are not limited in this embodiment.
  • 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 less components than those shown in the figure. Or combine certain components, or different component arrangements.
  • 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 will not be repeated here.
  • FIG. 20 shows a structural block diagram of a server 2000 provided by an exemplary embodiment of the present application.
  • the server 2000 may 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 than one processor (Central Processing Units, CPU) 2010 and one or more than one memory 2020, wherein the memory 2020 is stored with At least one instruction, the at least one instruction is loaded and executed by the processor 2010 to implement the cell handover method provided by each method embodiment above.
  • the server 2000 may also have components such as wired or wireless network interfaces, keyboards, and input/output interfaces for input and output, and the server 2000 may also include other components for implementing device functions, which will not be repeated here.
  • the embodiment of the present application also provides a computer-readable medium, the computer-readable medium 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.
  • the embodiment of the present application also provides a computer program product, the computer program product 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.
  • the functions described in the embodiments of the present application may be implemented by hardware, software, firmware or any combination thereof.
  • the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
  • Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage media may be any available media that can be accessed by a general purpose or special purpose computer.

Abstract

The present application relates to a multi-device connection method, apparatus and system, and a device and a storage medium; and belongs to the technical field of terminals. The method comprises: displaying a plurality of device groups on a connection management interface, wherein each device group comprises at least one electronic device, and the device group is used for representing the connection state of the electronic device (201); and in response to a first electronic device being dragged to a target device group, sending a connection establishment request to a server, so as to instruct the first electronic device to establish a connection with at least one second electronic device in the target device group, wherein the server is used for managing a connection relationship between the electronic devices (202). By using the solution provided in the embodiments of the present application, the flexibility of connection between devices can be improved.

Description

多设备连接方法、装置、系统、设备及存储介质Multi-device connection method, device, system, equipment and storage medium
本申请要求于2021年12月29日提交的申请号为202111641476.X、发明名称为“多设备连接方法、装置、系统、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111641476.X and the title of the invention "Multi-device connection method, device, system, equipment and storage medium" filed on December 29, 2021, the entire content of which is incorporated by reference incorporated in this application.
技术领域technical field
本申请实施例涉及终端技术领域,特别涉及一种多设备连接方法、装置、系统、设备及存储介质。The embodiments of the present application relate to the technical field of terminals, and in particular to a multi-device connection method, device, system, device, and storage medium.
背景技术Background technique
随着终端技术的发展,用户操作电子设备的方式越来越丰富。例如,通过构建设备连接,实现通过一个电子设备来控制其他的电子设备。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 be used to control other electronic devices.
相关技术中,通常由数据发送端向数据接收端发送连接建立请求,数据接收端基于该连接建立请求与数据发送端建立连接。例如,当需要将手机上播放的视频数据投影到电视机上时,可以将手机与电视机建立连接。手机与电视机建立连接的过程为:通过手机搜索当前局域网中的电视机,向搜索到的电视机发送连接建立请求,实现与电视机建立连接,将手机上的视频数据投屏到电视机上。In related technologies, usually, the data sending end sends a connection establishment request to the 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 the TV set, the mobile phone can be connected to the TV set. The process of establishing a connection between the mobile phone and the TV is as follows: search for TVs in the current local area network through the mobile phone, send a connection establishment request to the searched TV, realize the connection with the TV, and project the video data on the mobile phone to the TV.
发明内容Contents of the invention
本申请实施例提供了一种多设备连接方法、装置、系统、设备及存储介质,能够提高多设备连接的灵活性。所述技术方案如下:Embodiments of the present application provide a multi-device connection method, device, system, device, and storage medium, which can improve the flexibility of multi-device connection. Described technical scheme is as follows:
一方面,提供了一种设备连接方法,所述方法由登录同一账号的任一电子设备执行,所述方法包括:In one aspect, a device connection method is provided, the method is executed by any electronic device that logs into the same account, and the method includes:
在连接管理界面显示多个设备组,每个设备组包括至少一个电子设备,所述设备组用于表示电子设备的连接状态;Multiple device groups are displayed on the connection management interface, each device group includes at least one electronic device, and the device group is used to represent 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 to instruct the first electronic device to establish a connection with at least one second electronic device in the target device group, the server uses It is used to manage the connection relationship between electronic devices.
另一方面,提供了一种多设备连接方法,所述方法由服务器执行,所述方法包括:In another aspect, a multi-device connection method is provided, the method is executed by a server, and the method includes:
接收多设备连接系统中的任一电子设备发送的连接建立请求,所述连接建立请求用于指示第一电子设备与至少一个第二电子设备建立连接,所述第一电子设备为电子设备中被拖拽的电子设备,所述至少一个第二电子设备为所述第一电子设备被拖拽至的目标设备组中的电子设备;receiving a connection establishment request sent by any electronic device in the multi-device connection system, the connection establishment request is used to instruct the first electronic device to establish a connection with at least one second electronic device, and the first electronic device is The dragged electronic device, the at least one second electronic device is an electronic device in the target device group to which the first electronic device is dragged;
基于所述连接建立请求,控制所述第一电子设备和所述至少一个第二电子设备建立连接。Based on the connection establishment request, the first electronic device is controlled to establish a connection with the at least one second electronic device.
另一方面,提供了一种多设备连接系统,所述系统包括多个电子设备和服务器;In another aspect, a multi-device connection system is provided, the system includes a plurality of electronic devices and a server;
所述多个电子设备中的任一电子设备用于在连接管理界面显示多个设备组,每个设备组包括至少一个电子设备,所述设备组用于表示电子设备的连接状态;响应于第一电子设备被拖拽至目标设备组,向服务器发送连接建立请求;Any one of the multiple electronic devices is 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 represent the connection status of the electronic device; in response to the first An electronic device is dragged to the target device group, and a connection establishment request is sent to the server;
所述服务器用于接收所述连接建立请求,基于所述连接建立请求控制所述第一电子设备和所述目标设备组中的至少一个第二电子设备建立连接。The server is configured 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.
另一方面,提供了一种多设备连接装置,所述装置用于电子设备,所述电子设备为多设备连接系统中的任一电子设备,所述装置包括:In another aspect, a multi-device connection device is provided, the device is used for an electronic device, and the electronic device is any electronic device in a multi-device connection system, and the device includes:
显示模块,用于在连接管理界面显示多个设备组,每个设备组包括至少一个电子设备,所述设备组用于表示电子设备的连接状态;A display module, configured 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 represent the connection status of the electronic device;
发送模块,用于响应于第一电子设备被拖拽至目标设备组,向服务器发送连接建立请求,以指示所述第一电子设备与所述目标设备组内的至少一个第二电子设备建立连接,所述服务器用于管理电子设备之间的连接关系。A sending module, configured to send a connection establishment request to a server in response to the first electronic device being dragged to the 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.
另一方面,提供了一种多设备连接装置,所述用于服务器,所述装置包括:In another aspect, a multi-device connection device is provided, which is used for a server, and the device includes:
接收模块,用于接收多设备连接系统中的任一电子设备发送的连接建立请求,所述连接建立请求用于指示第一电子设备与至少一个第二电子设备建立连接,所述第一电子设备为电子设备中被拖拽的电子设备,所述至少一个第二电子设备为所述第一电子设备被拖拽至的目标设备组中的电子设备;A receiving module, configured to receive a connection establishment request sent by any electronic device in the multi-device connection system, the connection establishment request is used to instruct the first electronic device to establish a connection with at least one second electronic device, and 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;
控制模块,用于基于所述连接建立请求,控制所述第一电子设备和所述第二电子设备建立连接。A control module, configured to control the first electronic device to establish a connection with the second electronic device based on the connection establishment request.
另一方面,提供了一种电子设备,所述电子设备包括处理器和存储器;所述存储器存储有至少一条程序代码,所述至少一条程序代码用于被所述处理器执行以实现如上述方面所述的多设备连接方法。In another aspect, an electronic device is provided, 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 realize the above aspects The multi-device connection method described above.
另一方面,提供了一种服务器,所述服务器包括处理器和存储器;所述存储器存储有至少一条程序代码,所述至少一条程序代码用于被所述处理器执行以实现如上述方面所述的多设备连接方法。In another aspect, a server is provided, 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 above-mentioned multi-device connection method.
另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有至少一条程序代码,所述至少一条程序代码用于被处理器执行以实现如上述方面所述的多设备连接方法。In another aspect, a computer-readable storage medium is provided, the computer-readable storage medium stores at least one piece of program code, and the at least one piece of program code is used to be executed by a processor to implement the multi-device described in the above aspect connection method.
另一方面,提供了一种计算机程序产品,所述计算机程序产品存储有至少一条程序代码,所述至少一条程序代码由处理器加载并执行以实现如上述方面所述的多设备连接方法。In another aspect, a computer program product is provided, 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 aspect.
附图说明Description of drawings
图1出了本申请一个示例性实施例示出的多设备连接方法所涉及的实施环境的示意图;FIG. 1 shows a schematic diagram of an implementation environment involved in a multi-device connection method shown in an exemplary embodiment of the present application;
图2示出了本申请一个示例性实施例示出的多设备连接方法的流程图;FIG. 2 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application;
图3示出了本申请一个示例性实施例示出的连接管理界面的示意图;Fig. 3 shows a schematic diagram of a connection management interface shown in an exemplary embodiment of the present application;
图4示出了本申请一个示例性实施例示出的连接管理界面的示意图;Fig. 4 shows a schematic diagram of a connection management interface shown in an exemplary embodiment of the present application;
图5示出了本申请一个示例性实施例示出的连接管理界面的示意图;Fig. 5 shows a schematic diagram of a connection management interface shown in an exemplary embodiment of the present application;
图6示出了本申请一个示例性实施例示出的多设备连接方法的流程图;FIG. 6 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application;
图7示出了本申请一个示例性实施例示出的连接管理界面的示意图;Fig. 7 shows a schematic diagram of a connection management interface shown in an exemplary embodiment of the present application;
图8示出了本申请一个示例性实施例示出的多设备连接方法的流程图;FIG. 8 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application;
图9示出了本申请一个示例性实施例示出的多设备连接方法的流程图;FIG. 9 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application;
图10示出了本申请一个示例性实施例示出的多设备连接方法的流程图;FIG. 10 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application;
图11示出了本申请一个示例性实施例示出的多设备连接方法的流程图;FIG. 11 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application;
图12示出了本申请一个示例性实施例示出的多设备连接方法的流程图;Fig. 12 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application;
图13示出了本申请一个示例性实施例示出的多设备连接方法的流程图;Fig. 13 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application;
图14示出了本申请一个示例性实施例示出的多设备连接方法的流程图;Fig. 14 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application;
图15示出了本申请一个示例性实施例示出的多设备连接方法的流程图;Fig. 15 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application;
图16示出了本申请一个示例性实施例示出的多设备连接方法的流程图;Fig. 16 shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application;
图17示出了本申请一个示例性实施例示出的多设备连接装置的框图;Fig. 17 shows a block diagram of a multi-device connection device shown in an exemplary embodiment of the present application;
图18示出了本申请一个示例性实施例示出的多设备连接装置的框图;Fig. 18 shows a block diagram of a multi-device connection device shown in an exemplary embodiment of the present application;
图19示出了本申请一个示例性实施例示出的电子设备的结构框图;Fig. 19 shows a structural block diagram of an electronic device shown in an exemplary embodiment of the present application;
图20示出了本申请一个示例性实施例示出的服务器的结构框图。Fig. 20 shows a structural block diagram of a server shown in an exemplary embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。其中,本申请实施例中涉及到的目标账号和设备标识等信息可以为经用户或者经各方充分授权的信息。The "plurality" mentioned herein means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character "/" generally indicates that the contextual objects are an "or" relationship. Wherein, the target account number and device identification and other information involved in the embodiment of the present application may be information fully authorized by the user or by all parties.
请参考图1,其示出了本申请一个示例性实施例示出的多设备连接方法所涉及的实施环境的示意图。该实施环境包括:电子设备10和服务器20。其中,该电子设备10为登录同一账号的多个电子设备中的任一电子设备。电子设备10与服务器20之间通过网络连接。Please refer to FIG. 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. The implementation environment includes: an electronic device 10 and a server 20 . Wherein, the electronic device 10 is any one of multiple electronic devices logged in with the same account. The electronic device 10 is connected to the server 20 through a network.
在本申请实施例中,电子设备10中安装有目标应用程序,该服务器20为该目标应用程序的后台服务器。电子设备10用于通过目标应用程序登录该后台服务器,通过该后台服务器与安装有该目标应用程序的其他电子设备之间建立连接。该目标应用程序用于将登录该电子设备10的账号发送给服务器20,基于该服务器20将该目标应用程序中的电子设备进行关联,以便控制电子设备之间的连接。In the embodiment of the present application, a target application program is installed in the electronic device 10, and the server 20 is a background server of the target application program. The electronic device 10 is used to log in the background server through the target application program, and establish a connection with other electronic devices installed with the target application program through the background server. The target application program is used to send the account for logging in the electronic device 10 to the server 20, based on which the server 20 associates the electronic devices in the target application program so as to control the connection between the electronic devices.
当电子设备之间建立连接后,电子设备10可以基于建立连接的电子设备10的功能,向该电子设备10发送该功能对应的数据,从而通过连接的电子设备10对该数据进行处理或显示等。例如,电子设备10分别为手机和电视机,由于电视机有播放视频数据和音频数据的功能,因此,在手机和电视机建立连接后,手机将视频数据和音频数据均发送给电视机,通过电视机播放该视频数据和音频数据。After the connection between the electronic devices is established, the electronic device 10 can send data corresponding to the function to the electronic device 10 based on the function of the connected electronic device 10, so that the data can be processed or displayed by the connected electronic device 10, etc. . For example, the electronic equipment 10 is a mobile phone and a TV set respectively. Since the TV set has the function of playing video data and audio data, after the connection between the mobile phone and the TV set is established, the mobile phone sends both the video data and the audio data to the TV set. The television plays the video data and audio data.
其中,该电子设备10为可以为手机、平板电脑、具备无线通信功能的电脑或可穿戴设备、家居设备等。服务器20可以为一台服务器、由多台服务器组成的服务器集群、云服务器、云计算平台和虚拟化中心中的至少一种。在本申请实施例中,对此不作具体限定。Wherein, the electronic device 10 may be a mobile phone, a tablet computer, a computer with a wireless communication function, a wearable device, a household device, and the like. The server 20 may be at least one of a server, a server cluster composed of multiple servers, a cloud server, a cloud computing platform, and a virtualization center. In the embodiment of the present application, no specific limitation is made on this.
需要说明的一点是,在第一电子设备被拖拽至目标设备组中时,目标设备组中存在至少一个能够与该第一电子设备建立连接的第二电子设备。相应地,电子设备遍历目标设备组中的电子设备,从而确定出该至少一个第二电子设备。下面为了便于理解,以第一电子设备与目标设备组中的一个第二电子设备建立连接为例进行说明。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 capable of establishing a connection with the first electronic device in the target device group. Correspondingly, the electronic device traverses the electronic devices in the target device group, so as to determine the at least one second electronic device. For ease of understanding, an example of establishing a connection between the first electronic device and a second electronic device in the target device group will be described below.
请参考图2,其示出了本申请一个示例性实施例示出的多设备连接方法的流程图,该方法包括以下步骤:Please refer to FIG. 2, which shows a flow chart of a multi-device connection method shown in an exemplary embodiment of the present application. The method includes the following steps:
步骤S201:电子设备在连接管理界面显示多个设备组,每个设备组包括至少一个电子设备,设备组用于表示电子设备的连接状态。Step S201: The electronic device displays multiple device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to represent the connection status of the electronic device.
该连接管理界面可以为目标应用程序的界面。该连接管理界面用于显示多个设备组。The connection management interface may be an interface of a target application program. The connection management interface is used to display multiple device groups.
该连接状态包括已建立连接和未建立连接。在本申请实施例中,电子设备能够以不同的显示状态显示该多个设备组。相应地,电子设备以第一显示状态,显示包括至少两个电子设备的设备组,该第一显示状态指示该至少两个电子设备之间已建立连接;以第二显示状态,显示仅包括一个电子设备的设备组,该第二显示状态指示该一个电子设备处于未建立连接状态。The connection status includes established connection and unestablished connection. In the embodiment of the present application, the electronic device can display the multiple device groups in different display states. Correspondingly, 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; in a second display state, it displays a device group including only one For a device group of electronic devices, the second display state indicates that the one electronic device is in an unconnected state.
其中,第一显示状态和第二显示状态根据需要进行设置,在本申请实施例中,对此不作具体限定。例如,第一显示状态为彩色显示状态,第二显示状态为灰度显示状态。Wherein, the first display state and the second display state are set as required, which are not specifically limited in this 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.
在本申请实施例中,以不同的显示状态显示不同连接状态的设备组,使得用户能够更直观地了解每个设备组中电子设备的连接状态。In the embodiment of the present application, device groups with 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.
另外,每个设备组可以通过显示框的形式显示。相应地,设备组的至少一个电子设备显示在同一显示框中。In addition, each device group can be displayed in the form of a display box. Correspondingly, at least one electronic device of the device group is displayed in the same display frame.
在一些实施例中,电子设备在每个显示框中显示该设备组的所有电子设备。在本申请实施例中,用户能够通过显示框中电子设备来确定该设备组中的电子设备的数量,从而确定电子设备是否已建立连接,从而更加直观地了解每个设备组中的电子设备。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 by displaying the electronic devices in the frame, so as to determine whether the electronic devices have established a connection, so as to understand the electronic devices in each device group more intuitively.
例如,参见图3,设备标识A所在的显示框只包括该电子设备A,则该电子设备A未与其他电子设备建立连接。电子设备B和电子设备C在同一个显示框中,则表示电子设备B和电子设备C之间已建立连接。For example, referring to FIG. 3 , if the display frame where the device identifier A is located only includes the electronic device A, then the electronic device A has not established a connection with other electronic devices. If electronic device B and electronic device C are in the same display frame, it means that the connection between electronic device B and electronic device C has been established.
在一些实施例中,显示框中显示设备组中的一个电子设备,响应于对该显示框的点击操作,展开显示该显示框对应的设备组的至少一个电子设备。在本申请实施例中,每个显示框只显示设备组中的电子设备,节省了显示框在连接管理界面中占用的面积。In some embodiments, one electronic device in the device group is displayed in the display frame, 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 and displayed. In the embodiment of the present application, each display frame only displays the electronic devices in the device group, which saves the area occupied by the display frame in the connection management interface.
例如,参见图4,电子设备A显示在显示框中,若接收到对显示框的点击操作,在该显示框对应的设备组中还包括电子设备B的情况下,在显示框中展开显示该电子设备A和电子设备B。For example, referring to FIG. 4, electronic device A is displayed in the display frame. If a click operation on the display frame is received, and if the device group corresponding to the display frame also includes electronic device B, the display frame will be expanded and displayed. Electronic device A and electronic device B.
需要说明的一点是,当前显示该连接管理界面的电子设备可以为能够建立连接的多个电子设备中的任一具有显示功能的电子设备。在本申请实施例中,对该电子设备不作具体限定。It should be noted that the electronic device that currently displays the connection management interface may be any electronic device that has a display function among multiple electronic devices capable of establishing a connection. In the embodiment of the present application, the electronic device is not specifically limited.
需要说明的另一点是,同一账号对应的多个电子设备中可能只有部分电子设备处于可建立连接的状态。例如,多个电子设备中存在电子设备当前可能未登录目标应用程序、当前处于关机状态或者建立的连接的路径已满等。在这些情况下,该电子设备不能与其他电子设备建立连接。Another point that needs to be explained is that among multiple electronic devices corresponding to the same account, only some electronic devices may be in a state where a connection can be established. For example, among the multiple electronic devices, the electronic device may not be currently logged into the target application program, is currently in a power-off state, or the path of the established connection is full, and the like. In these cases, the electronic device cannot establish connections with other electronic devices.
在一些实施例中,该连接管理界面中不显示当前处于不可建立连接的电子设备。例如,同一账号对应的电子设备包括:电子设备A、电子设备B、电子设备C和电子设备D。其中,电子设备A中当前未登录该账号,电子设备B当前处于关机状态,则该连接管理界面中只显示电子设备C和电子设备D的设备组。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. Wherein, the account is not currently registered in the electronic device A, and the electronic device B is currently powered off, then only the device groups of the electronic device C and the electronic device D are displayed in the connection management interface.
在一些实施例中,该连接管理界面中显示账号对应的所有电子设备。其中,将当前处于不可建立连接的电子设备以特殊显示形式进行显示。例如,将当前处于不可建立连接的电子设备以灰度的形式显示。例如,同一账号对应的电子设备包括:电子设备A、电子设备B、电子设备C和电子设备D。其中,电子设备A当前未登录该账号,电子设备B当前处于关机状态,则该连接管理界面中显示电子设备A、电子设备B、电子设备C和电子设备D的设备组,其中,电子设备A和电子设备B的以灰度的形式显示。In some embodiments, all electronic devices corresponding to the account are displayed on the connection management interface. Wherein, the electronic device that is currently unable to establish a connection is displayed in a special display form. For example, electronic devices that are currently unable to establish a connection are 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. Wherein, electronic device A is not currently logged into the account, and electronic device B is currently powered off, then the connection management interface displays the device groups of electronic device A, electronic device B, electronic device C, and electronic device D, wherein electronic device A and that of electronic device B are displayed in grayscale.
需要说明的一点是,该设备组中的电子设备可以通过设备标识进行显示。该设备标识可以为电子设备的名称、编码或者图标等。It should be noted that the electronic devices in the device group can be displayed by means of device identifiers. The device identifier may be the name, code or icon of the electronic device.
步骤S202:响应于第一电子设备被拖拽至目标设备组,电子设备向服务器发送连接建立请求,以指示该第一电子设备与该目标设备组内的第二电子设备建立连接,该服务器用于在各个电子设备之间进行连接的管理。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 the server to instruct the first electronic device to establish a connection with the second electronic device in the target device group, and the server uses It is used to manage connections between various electronic devices.
该拖拽操作为用户在该连接管理界面中触发的拖拽操作。电子设备检测到在连接管理界面触发的长按操作,将多个电子设备由不可拖拽状态切换为可拖拽状态。在可拖拽状态下,电子设备显示第一电子设备基于该拖拽操作进行移动的过程。The drag operation is a drag operation triggered by the user in the connection management interface. The electronic device detects a long-press operation triggered on the connection management interface, and switches the multiple electronic devices from a non-dragable state to a draggable state. In the draggable state, the electronic device displays a moving process of the first electronic device based on the drag operation.
响应于第一电子设备的当前被拖拽到的位置与目标设备组的位置重合,电子设备确定第一电子设备被拖拽至目标设备组。参见图5,在该第一电子设备被拖拽至目标设备组后,电子设备确定设备组中的用于与第一电子设备建立连接的第二电子设备,基于该第一电子设备和第二电子设备生成连接建立请求,向服务器发送该连接建立请求。In response to that the current dragged position of the first electronic device coincides with the position of the target device group, the electronic device determines that the first electronic device is dragged to the target device group. Referring to FIG. 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, based on the first electronic device and the second electronic device The electronic device generates a connection establishment request, and sends the connection establishment request to the server.
步骤S203:服务器接收连接建立请求。Step S203: the server receives the connection establishment request.
步骤S204:服务器基于该连接建立请求控制该第一电子设备和该第二电子设备建立连接。Step S204: The server controls the first electronic device to establish a connection with the second electronic device based on the connection establishment request.
在本步骤中,服务器基于该连接建立请求,确定待建立连接的第一电子设备和第二电子设备,控制该第一电子设备和第二电子设备建立连接。In this step, based on the connection establishment request, the server determines the first electronic device and the second electronic device to be connected, and controls the first electronic device and the second electronic device to establish a connection.
其中,第一电子设备与第二电子设备建立连接可以为第一电子设备与第二电子设备建立短距离通信连 接,或者,服务器存储第一电子设备和第二电子设备的关联关系,以便在数据传输时,基于该关联关系为第一电子设备和第二电子设备传输数据。Wherein, establishing a connection between the first electronic device and the second electronic device may establish a short-distance 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 in the data During transmission, data is transmitted for the first electronic device and the second electronic device based on the association relationship.
相应地,在一些实施例中,服务器向该第二电子设备发送连接指示,该连接指示携带该第一电子设备的设备标识,该连接指示用于指示该第二电子设备与第一电子设备建立短距离通信连接。或者,服务器向该第一电子设备发送连接指示,该连接指示携带该第二电子设备的设备标识,该连接指示用于指示该第一电子设备与第二电子设备建立短距离通信连接。又或者,服务器向该第二电子设备发送连接指示,该连接指示携带该第一电子设备的设备标识,该连接指示用于指示该第二电子设备与第一电子设备建立短距离通信连接,该服务器向该第一电子设备发送连接指示,该连接指示携带该第二电子设备的设备标识,该连接指示用于指示该第一电子设备与第二电子设备建立短距离通信连接。通过这种连接方式,能够在设备之间距离较小的情况下实现快速的数据传输。Correspondingly, in some embodiments, the server sends a connection indication to the second electronic device, where the connection indication carries the device identifier of the first electronic device, and the connection indication is used to instruct the second electronic device to establish a connection with the first electronic device. Short distance communication link. Alternatively, the server sends a connection indication to the first electronic device, where the connection indication carries the device identifier 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 identifier 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, the The server sends a connection instruction to the first electronic device, the connection instruction carries the device identifier of the second electronic device, and the connection instruction is used to instruct the first electronic device to establish a short-distance communication connection with the second electronic device. This type of connection enables fast data transmission with a small distance between devices.
在一些实施例中,服务器存储该第一电子设备和该第二电子设备的关联关系,响应于接收到该第二电子设备发送的数据,服务器基于该关联关系向该第一电子设备发送该数据。通过这种连接方式,能够应用设备所接入的网络来进行数据传输,以实现快速的数据传输。In some embodiments, the server stores the association relationship between the first electronic device and the second electronic device, and in response to receiving the 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 mode, the network connected to the device can be used for data transmission, so as to realize fast data transmission.
上述连接的不同建立方式,能够适用于不同的网络环境下,从而扩展了本申请实施例的应用范围。The above connection establishment methods can be applied in different network environments, thereby expanding the scope of application of the embodiments of the present application.
需要说明的一点是,在第一电子设备与第二电子设备建立连接后,电子设备在该目标设备组中,显示该第一电子设备。相应地,在一些实施例中,电子设备在第一电子设备被拖拽至目标设备组时,将该第一电子设备显示在该目标设备组中。在一些实施例中,电子设备在第一电子设备被拖拽至目标设备组时,电子设备显示第一电子设备和第二电子设备处于正在建立连接状态,响应于第一电子设备和第二电子设备完成连接建立,服务器向电子设备发送连接建立完成通知,电子设备基于该连接建立完成通知将第一电子设备显示在目标设备组中。It should be noted that after the connection between the first electronic device and the second electronic device is established, the electronic device displays the first electronic device in the target device group. Correspondingly, in some embodiments, the electronic device displays the first electronic device in the target device group when the first electronic device is dragged to the target device group. In some embodiments, when the electronic device is dragging the first electronic device to the target device group, the electronic device displays that the first electronic device and the second electronic device are in the state of establishing a connection, and in response to the first electronic device and the second electronic device After the device completes 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.
需要说明的一点是,响应于该第一电子设备的原设备组中还包括其他电子设备,向该服务器发送第三连接断开请求,该第三连接断开请求用于指示断开该第一电子设备与该原设备组中电子设备的连接。这样能够保证第一电子设备在实现功能时,只基于一个电子设备发送的数据实现相应地功能,防止了第一电子设备接收来自多个其他电子设备的数据。It should be noted that, in response to other electronic devices being included in the original device group of the first electronic device, a third connection disconnection request is sent to the server, and the third connection disconnection request is used to indicate disconnection of the first electronic device. The connection of electronic equipment to electronic equipment in this original equipment group. In this way, it can be ensured that when the first electronic device realizes the function, it only realizes the corresponding function based on the data sent by one electronic device, and prevents the first electronic device from receiving data from multiple other electronic devices.
在一些实施例中,响应于该第一电子设备的原设备组中还包括其他电子设备,保持第一电子设备与原设备组中的其他电子设备的连接。这样第一电子设备能够与多个目标设备组中的电子设备建立连接,从而提高了第一电子设备的利用率,丰富了第一电子设备的使用场景。In some embodiments, in response to other electronic devices being included in the original device group of the first electronic device, the connection between the first electronic device and other electronic devices in the original device group is maintained. 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 usage scenarios of the first electronic device.
在本申请实施例中,通过显示连接管理界面,在连接管理界面中显示用于表示连接状态的多个设备组,从而通过向目标设备组中拖拽第一电子设备,来实现更改电子设备的连接状态的目的,从而无需设置中心电子设备,使得连接更加灵活。In the embodiment of the present application, by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group. The purpose of the connection state, so that there is no need to set up a central electronic device, making the connection more flexible.
需要说明的是,上述实施例中,以在登录同一账号的电子设备之间建立设备连接为例进行说明,在其他可能的实施方式中,登录不同账号的电子设备之间也可以采用上述方法建立设备连接,其中,不同账号可以为关联账号、授权账号、同一母账号下的不同子账号等等,本申请实施例对此不作限定。It should be noted that, in the above-mentioned embodiment, the establishment of a device connection between electronic devices that log in to the same account is taken as an example for illustration. In other possible implementations, the above method can also be used to establish For device connection, the different accounts may be associated accounts, authorized accounts, different sub-accounts under the same parent account, etc., which is not limited in this embodiment of the present application.
在本申请实施例中,连接管理界面中显示的多个设备组中的任一设备组均可以作为目标设备组,而对于每个设备组,该设备组中包括至少一个电子设备,在该目标设备组包括一个电子设备的情况下,电子设备通过步骤S201-S204实现将第一电子设备与目标设备组中的第二电子设备建立连接。In this embodiment of the application, any device group among multiple device groups displayed on the connection management interface can be used as the target device group, and for each device group, the device group includes at least one electronic device, and the target device group includes at least one electronic device. When the device group includes one electronic device, the electronic device implements steps S201-S204 to establish a connection between the first electronic device and the second electronic device in the target device group.
在该目标设备组还包括其他电子设备的情况下,电子设备基于目标设备组中第三电子设备的功能确定是否建立第一电子设备和第二电子设备的连接。If the target device group also 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 the function of the third electronic device in the target device group.
在第三电子设备的功能与第一电子设备的功能不同的情况下,第一电子设备通过上述步骤S201-S204与第二电子设备建立连接。在第三电子设备的功能与第一电子设备的功能相同的情况下,电子设备可以通过以下几种方式确定是否建立第一电子设备和第二电子设备的连接。In the case that 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. In the case that the function of the third electronic device is the same as that of the first electronic device, the electronic device may determine whether to establish a connection between the first electronic device and the second electronic device in the following ways.
参见图6,其示出了本申请一个示例性实施例示出的多设备连接方法的流程图,在本申请实施例中以目标设备组中包括多个电子设备为例进行说明,该方法包括以下步骤:Referring to FIG. 6 , it shows a flow chart 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. The method includes the following step:
步骤S601:电子设备在连接管理界面显示多个设备组,每个设备组包括至少一个电子设备,设备组用于表示电子设备的连接状态。Step S601: The electronic device displays multiple device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to represent the connection status of the electronic device.
本步骤与步骤S201的原理相同,在此不再赘述。The principle of this step is the same as that of step S201, and will not be repeated here.
步骤S602:响应于第一电子设备被拖拽至目标设备组,电子设备确定多个电子设备中是否存在与该第一电子设备的第一功能相同的第三电子设备。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 having the same first function as the first electronic device among the plurality of electronic devices.
其中,该第一功能为第一电子设备能够实现的功能。例如,该第一功能为音频播放功能、视频播放功能、控制功能等。Wherein, the first function is a function that can be realized by the first electronic device. For example, the first function is an audio playback function, a video playback function, a control function, and the like.
在目标设备组包括多个电子设备的情况下,电子设备从该目标设备组的多个设备标识中确定第二电子设备,其中,该第二电子设备为数据发送端。对于多个电子设备中除该第二电子设备以外的其他电子设备, 电子设备执行步骤S603。When the target device group includes multiple electronic devices, the electronic device determines the second electronic device from the multiple device identifiers of the target device group, where the second electronic device is a data sending end. For other electronic devices in the plurality of electronic devices except the second electronic device, the electronic device executes step S603.
步骤S603:在该目标设备组中包括第三电子设备的情况下,显示该第一电子设备和该第三电子设备的优先级,该优先级用于表示第一功能的能力强弱,该第三电子设备与该第一电子设备均具有该第一功能。Step S603: In the case that the target device group includes the third electronic device, display the priorities of the first electronic device and the third electronic device, the priority is used to represent the capability of the first function, and the priority of the first electronic device is displayed. Both the third electronic device and the first electronic device have the first function.
其中,每个功能对应的电子设备的优先级可以为系统默认的,也可以为用户基于连接管理界面设置的。在一些实施例中,连接管理界面显示设备优先级配置表,该设备优先级配置表中显示不同的电子设备对应的优先级。用户可以在该设备优先级配置表输入不同电子设备在不同功能下对应的优先级。Wherein, the priority of the electronic device corresponding to each function may be the default of the system, 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, and the device priority configuration table displays priorities corresponding to different electronic devices. The user can input the corresponding priorities of different electronic devices under different functions in the device priority configuration table.
例如,电视相对于平板电脑来说,可以显示更加高清的视频,因此,可以将播放视频的优先级设置为电视高于平板电脑。而音响相对于手机来说更适合音频的播放,因此,可以将播放音频的优先级设置为音响高于手机等。For example, a TV can display higher-definition videos than a tablet computer, so the video playback priority can be set so that the TV is higher than the tablet computer. The audio is more suitable for playing audio than the mobile phone. Therefore, the priority of playing audio can be set so that the audio is higher than that of the mobile phone.
其中,电子设备显示选择界面,该第一电子设备和该第三电子设备的优先级显示在该选择界面中,响应于针对任一电子设备的选择操作,基于该选择操作对应的电子设备确定与第二电子设备建立连接的电子设备。Wherein, the electronic device displays a selection interface, the priorities of the first electronic device and the third electronic device are displayed in the selection interface, and in response to a selection operation for any electronic device, the electronic device corresponding to the selection operation determines the The second electronic device establishes a connection with the electronic device.
步骤S604:响应于对该第一电子设备的选择操作,电子设备向该服务器发送第一连接建立请求,以指示该第一电子设备与该第二电子设备建立连接,以执行该第一功能。Step S604: In response to the selection operation of 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 perform the first function.
该选择操作可以为对第一电子设备的设备标识的点击操作等。The selection operation may be a click operation on the device identifier of the first electronic device or the like.
其中,电子设备通过第一连接建立请求指示建立该第一电子设备与该第二电子设备之间的连接的原理与步骤S202中电子设备通过连接建立请求指示建立该第一电子设备与该第二电子设备之间的连接的原理相同,在此不再赘述。Wherein, the principle that the electronic device indicates to establish the connection between the first electronic device and the second electronic device through the first connection establishment request is the same as that in step S202, the electronic device indicates to establish the connection between the first electronic device and the second electronic device through the connection establishment request. The principle of the connection between the electronic devices is the same and will not be repeated here.
需要说明的一点是,响应于对该第三电子设备的选择操作,电子设备保持第二电子设备与第三电子设备之间的连接,电子设备不将该第一电子设备加入该目标设备组。It should be noted that, in response to the selection operation 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.
步骤S605:服务器接收第一连接建立请求。Step S605: the server receives the first connection establishment request.
本步骤与步骤S203的原理相同,在此不再赘述。The principle of this step is the same as that of step S203, and will not be repeated here.
步骤S606:服务器基于该第一连接建立请求控制该第一电子设备和该第二电子设备建立连接。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.
本步骤与步骤S204的原理相同,在此不再赘述。The principle of this step is the same as that of step S204, and will not be repeated here.
需要说明的一点是,电子设备在该目标设备组中,显示该第一电子设备。该过程与步骤S204中,电子设备在目标设备组中,显示第一电子设备的原理相同,在此不再赘述。It should be noted that, the electronic device is in the target device group, and the first electronic device is displayed. This process is the same as the principle of displaying the first electronic device when the electronic device is in the target device group in step S204, and details are not repeated here.
另外,当该目标设备组还包括用于实现其他功能的电子设备的情况下,电子设备还在该目标设备组中显示该其他电子设备。参见图7,目标设备组包括电子设备A和电子设备B,连接管理界面中还包括电子设备C、电子设备D,通过拖拽操作将电子设备C拖拽至该目标设备组中,该目标电子设备中显示多个电子设备的方式与步骤S201中显示设备组中的多个电子设备的原理相同,在此不再赘述。In addition, when the target device group further includes electronic devices for realizing other functions, the electronic device also displays the other electronic devices in the target device group. Referring to Figure 7, the target device group includes electronic device A and electronic device B, and the connection management interface also includes electronic device C and electronic device D. Drag and drop electronic device C into the target device group, and the target electronic device The manner of displaying multiple electronic devices in the 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.
需要说明的另一点是,当该目标设备组还包括用于实现其他功能的电子设备的情况下,目标设备组中的第二电子设备分别基于不同电子设备对应的功能,向设备组中的多个电子设备发送该功能对应的类型的数据。Another point that needs to be explained is that when the target device group also includes electronic devices for realizing other functions, the second electronic device in the target device group sends multiple electronic devices in the device group based on the functions corresponding to different electronic devices An electronic device sends data of the type corresponding to the function.
在一些实施例中,第二电子设备和其他电子设备中设置有分布式服务,用于发送数据的第二电子设备可以基于该分布式服务对应的分布式服务调用模块向其他电子设备的分布服务代理模块发送对应的数据。参见图8,在第二电子设备连接有两个电子设备的情况下,其中两个其他电子设备分别用于播放视频数据和音频数据,则第二电子设备基于分布式服务调用模块向其他两个电子设备发送视频数据和音频数据,其中其他电子设备通过服务代理模块接收该视频数据和音频数据。In some embodiments, the second electronic device and other electronic devices are provided with a distributed service, and the second electronic device used to send data can call the distributed service module to other electronic devices based on the distributed service corresponding to the distributed service. The proxy module sends corresponding data. Referring to Fig. 8, when the second electronic device is connected with two electronic devices, where the two other electronic devices are respectively used to play video data and audio data, then the second electronic device calls the module to the other two based on the distributed service The electronic device sends video data and audio data, and other electronic devices receive the video data and audio data through the service agent module.
需要说明的一点是,第二电子设备还可以通过服务器向其他电子设备发送对应类型的数据。相应地,第二电子设备将多种功能对应的数据发送给服务器,服务器基于每个电子设备的功能向其他电子设备发送对应的数据。It should be noted that the second electronic device may also send corresponding types of data to other electronic devices through the server. Correspondingly, the second electronic device sends data corresponding to various functions to the server, and the server sends corresponding data to other electronic devices based on the function of each electronic device.
步骤S607:电子设备向该服务器发送第一连接断开请求,该第一连接断开请求用于指示断开该第二电子设备与该第三电子设备之间的连接。Step S607: the electronic device sends a first connection disconnection request to the server, and the first connection disconnection request is used to instruct to disconnect the connection between the second electronic device and the third electronic device.
其中,该第一连接断开请求包括第二电子设备和第三电子设备的设备标识。相应地,电子设备基于第二电子设备和第三电子设备的设备标识生成第一连接断开请求,向服务器发送该第一连接断开请求。Wherein, the first disconnection request includes device identifications of the second electronic device and the third electronic device. Correspondingly, the electronic device generates a first connection disconnection request based on the device identifiers of the second electronic device and the third electronic device, and sends the first connection disconnection request to the server.
步骤S608:服务器接收第一连接断开请求。Step S608: the server receives the first connection disconnection request.
步骤S609:服务器基于第一连接断开请求,控制第二电子设备和第三电子设备断开连接。Step S609: the server controls the second electronic device to disconnect from the third electronic device based on the first connection disconnection request.
在本步骤中,服务器基于该第一连接断开请求,确定待断开连接的第二电子设备和第三电子设备,控制该第二电子设备和第三电子设备断开连接。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 disconnect.
在一些实施例中,服务器向该第二电子设备发送断开指示,该断开指示携带该第三电子设备的设备标识,该断开指示用于指示该第二电子设备与第三电子设备断开短距离通信连接。或者,服务器向该第三电子设备发送断开指示,该断开指示携带该第二电子设备的设备标识,该断开指示用于指示该第三电子设备 与第二电子设备断开短距离通信连接。在一些实施例中,服务器将存储的该第二电子设备和该第三电子设备的关联关系删除。这样防止了第一电子设备与第三电子设备均实现第二电子设备对应的相同的功能,防止出现通过多个设备实现相同功能造成的设备间的相互影响。In some embodiments, the server sends a disconnection indication to the second electronic device, the disconnection indication carries the device identifier of the third electronic device, and the disconnection indication is used to indicate that the second electronic device is disconnected from the third electronic device. Open the short-distance communication connection. Or, the server sends a disconnection instruction to the third electronic device, the disconnection instruction carries the device identifier of the second electronic device, and the disconnection instruction is used to instruct the third electronic device to disconnect the short-distance communication with the second electronic device connect. In some embodiments, the server deletes the stored association relationship between the second electronic device and the third electronic device. This prevents both the first electronic device and the third electronic device from realizing the same function corresponding to the second electronic device, and prevents mutual influence between devices caused by realizing the same function through multiple devices.
在本申请实施例中,通过向用户展示第一电子设备和第三电子设备的第一功能的优先级,以便用户基于第一功能的优先级,从第一电子设备和第三电子设备中选择与第二电子设备连接的电子设备,这样为用户选择连接的电子设备提供依据,以便第二电子设备连接优先级较高的电子设备。In this embodiment of the present application, by presenting the priority of the first function of the first electronic device and the third electronic device to the user, the user can select from the first electronic device and the third electronic device based on the priority of the first function. The electronic device connected to the second electronic device provides a basis for the user to select the electronic device to be connected, so that the second electronic device is connected to an electronic device with a higher priority.
需要说明的一点是,步骤S604-S606和步骤S607-S609的先后顺序可以根据需要进行设置,在本申请实施例中,对步骤S604-S606和步骤S607-S609的先后顺序不作具体限定。It should be noted that the order of steps S604-S606 and steps S607-S609 can be set as required, and in this embodiment of the application, the order of steps S604-S606 and steps S607-S609 is not specifically limited.
在本申请实施例中,通过显示连接管理界面,在连接管理界面中显示用于表示连接状态的多个设备组,从而通过向目标设备组中拖拽第一电子设备,来实现更改电子设备的连接状态的目的,从而无需设置中心电子设备,使得连接更加灵活。In the embodiment of the present application, by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group. The purpose of the connection state, so that there is no need to set up a central electronic device, making the connection more flexible.
在本申请实施例中,电子设备还能够基于第一电子设备和第三电子设备的优先级,自动选择优先级高的电子设备建立连接。参见图9,其示出了本申请一个示例性实施例示出的多设备连接方法的流程图,在本申请实施例中以电子设备基于优先级自动选择电子设备建立连接为例进行说明,该方法包括以下步骤: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. Referring to FIG. 9 , it shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application. In this embodiment of the present application, an electronic device automatically selects an electronic device to establish a connection based on priority as an example for illustration. The method Include the following steps:
步骤S901:电子设备在连接管理界面显示多个设备组,每个设备组包括至少一个电子设备,设备组用于表示电子设备的连接状态。Step S901: the electronic device displays multiple device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to represent the connection status of the electronic device.
本步骤与步骤S201的原理相同,在此不再赘述。The principle of this step is the same as that of step S201, and will not be repeated here.
步骤S902:响应于第一电子设备被拖拽至目标设备组,电子设备确定多个电子设备中是否存在与该第一电子设备的第一功能相同的第三电子设备。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 having the same first function as the first electronic device among the plurality of electronic devices.
本步骤与步骤S602的原理相同,在此不再赘述。The principle of this step is the same as that of step S602, and will not be repeated here.
步骤S903:在该目标设备组中包括第三电子设备的情况下,电子设备确定该第一电子设备和第三电子设备的优先级。Step S903: If the target device group includes the third electronic device, the electronic device determines the priorities of the first electronic device and the third electronic device.
本步骤与步骤S603中电子设备确定第一电子设备和第三电子设备的优先级的原理相同,在此不再赘述。This step is the same as the principle of determining the priorities of the first electronic device and the third electronic device by the electronic device in step S603, and will not be repeated here.
步骤S904:在第一电子设备的优先级高于第三电子设备的优先级的情况下,电子设备向该服务器发送第一连接建立请求,以指示该第一电子设备与该第二电子设备建立连接,以执行该第一功能。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 connected to perform the first function.
本步骤与步骤S604中基于第一连接建立请求建立连接的原理相同,在此不再赘述。This step is the same as the principle of establishing a connection based on the first connection establishment request in step S604, and will not be repeated here.
另外,需要说明的一点是,在第一电子设备的优先级不高于第三电子设备的优先级的情况下,电子设备保持第二电子设备与第三电子设备之间的连接,电子设备不将该第一电子设备加入该目标设备组。In addition, it should be noted that when the priority of the first electronic device is not higher than the priority 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.
步骤S905:服务器接收第一连接建立请求。Step S905: the server receives the first connection establishment request.
本步骤与步骤S203的原理相同,在此不再赘述。The principle of this step is the same as that of step S203, and will not be repeated here.
步骤S906:服务器基于该第一连接建立请求控制该第一电子设备和该第二电子设备建立连接。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.
本步骤与步骤S204的原理相同,在此不再赘述。The principle of this step is the same as that of step S204, and will not be repeated here.
步骤S907:电子设备向该服务器发送第一连接断开请求,该第一连接断开请求用于指示断开该第二电子设备与该第三电子设备之间的连接。Step S907: the electronic device sends a first connection disconnection request to the server, and the first connection disconnection request is used to instruct to disconnect the connection between the second electronic device and the third electronic device.
本步骤与步骤S607的原理相同,在此不再赘述。The principle of this step is the same as that of step S607, and will not be repeated here.
步骤S908:服务器接收第一连接断开请求。Step S908: the server receives the first connection disconnection request.
本步骤与步骤S608的原理相同,在此不再赘述。The principle of this step is the same as that of step S608, and will not be repeated here.
步骤S909:服务器基于第一连接断开请求,控制第二电子设备和第三电子设备断开连接。Step S909: the server controls the second electronic device to disconnect from the third electronic device based on the first connection disconnection request.
本步骤与步骤S609的原理相同,在此不再赘述。The principle of this step is the same as that of step S609, and will not be repeated here.
在本申请实施例中,电子设备自动根据优先级从第一电子设备和第三电子设备中选择优先级较高的电子设备,这样能够选择优先级较高的电子设备实现第一功能,保证了实现第一功能的质量。In the 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 realize the first function, ensuring Achieving the quality of the first function.
在本申请实施例中,通过显示连接管理界面,在连接管理界面中显示用于表示连接状态的多个设备组,从而通过向目标设备组中拖拽第一电子设备,来实现更改电子设备的连接状态,从而无需设置中心电子设备,使得连接更加灵活。In the embodiment of the present application, by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group. Connection status, eliminating the need to set up central electronics, making connections more flexible.
在本申请实施例中,在该目标电子设备还包括其他电子设备的情况下,电子设备还可以结合第二电子设备对应的用于实现该第一功能的电子设备的最大数量来确定是否建立第一电子设备和第二电子设备的连接。参见图10,其示出了本申请一个示例性实施例示出的多设备连接方法的流程图,该方法包括以下步骤:In this embodiment of the present application, when the target electronic device also includes other electronic devices, the electronic device may also determine whether to establish the second electronic device based on the maximum number of electronic devices corresponding to the second electronic device for realizing the first function A connection between an electronic device and a second electronic device. Referring to FIG. 10 , it shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application, and the method includes the following steps:
步骤S1001:电子设备在连接管理界面显示多个设备组,每个设备组包括至少一个电子设备,设备组用于表示电子设备的连接状态。Step S1001: The electronic device displays multiple device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to represent the connection status of the electronic device.
本步骤与步骤S201的原理相同,在此不再赘述。The principle of this step is the same as that of step S201, and will not be repeated here.
步骤1002:电子设备响应于第一电子设备被拖拽至目标设备组,在该目标设备组中包括第三电子设备的情况下,确定该第二电子设备对应的目标路径数量,该目标路径数量表示用于实现该第一功能的电子设备的最大数量。Step 1002: The electronic device is dragged to the target device group in response to the first electronic device, and if the target device group includes the third electronic device, determine the target path quantity corresponding to the second electronic device, the target path quantity Indicates the maximum number of electronic devices used to implement the first function.
其中,该目标路径数量可以为系统默认的,也可以为用户基于连接管理界面设置的。在一些实施例中,连接管理界面显示通路约束表,该通路约束表中显示不同的功能对应的目标路径数量。用户可以在该通路约束表中输入不同功能对应的目标路径数量。Wherein, the number of target paths may be the default value of the system, or may be set by the user based on the connection management interface. In some embodiments, the connection management interface displays a path constraint table, and the path constraint table displays the number of target paths corresponding to different functions. The user can input the number of target paths corresponding to different functions in the path constraint table.
例如,该第一功能为音频播放功能,为了防止多个电子设备播放音频互相干扰,一般将音频播放功能的最大设备数量设置为1。在例如,该第一功能为视频播放功能,多个电子设备上播放视频,则电子设备之间不存在干扰,因此,视频播放功能对应的电子设备的数量可以为多个。例如,视频播放功能对应的电子设备的数量可以为3个、4个、5个或不限制等。For example, the first function is an audio playback function. In order to prevent multiple electronic devices from playing audio and interfering with each other, generally the maximum number of devices for the audio playback function is set to 1. For example, the first function is a video playing function, and if videos are played on multiple electronic devices, there is no interference between the electronic devices. Therefore, the number of electronic devices corresponding to the video playing function may be multiple. For example, the number of electronic devices corresponding to the video playing function may be 3, 4, 5 or unlimited.
其中,需要说明的另一点是,电子设备可以将每个功能对应的最大设备数量存储在本地。电子设备还可以基于服务器确定每个功能对应的最大设备数量等。在本申请实施例中,对此不作具体限定。Wherein, another point that needs to be explained is that the electronic device may locally store the maximum number of devices corresponding to each function. The electronic device may also determine the maximum number of devices corresponding to each function based on the server. In the embodiment of the present application, no specific limitation is made on this.
步骤S1003:电子设备确定第三电子设备的数量。Step S1003: the electronic device determines the quantity of the third electronic device.
在本步骤中,电子设备基于目标设备组中电子设备的数量,确定第三电子设备的数量。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.
步骤S1004:电子设备对第三电子设备的数量和目标路径数量进行对比。Step S1004: the electronic device compares the number of the third electronic device with the number of target paths.
步骤S1005:响应于该第三电子设备的数量小于该目标路径数量,电子设备向该服务器发送第二连接建立请求,以指示该第一电子设备与该第二电子设备建立连接,以执行该第一功能。Step S1005: In response to the number of the third electronic device being less than the number of 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 electronic device. a function.
本步骤与步骤S604中基于第一连接建立请求建立连接的原理相同,在此不再赘述。This step is the same as the principle of establishing a connection based on the first connection establishment request in step S604, and will not be repeated here.
步骤S1006:服务器接收第二连接建立请求。Step S1006: the server receives the second connection establishment request.
本步骤与步骤S203的原理相同,在此不再赘述。The principle of this step is the same as that of step S203, and will not be repeated here.
步骤S1007:服务器基于该第二连接建立请求控制该第一电子设备和该第二电子设备建立连接。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.
本步骤与步骤S204的原理相同,在此不再赘述。The principle of this step is the same as that of step S204, and will not be repeated here.
在本申请实施例中,在第二电子设备对应的目标路径数量小于当前连接的第三电子设备的数量的情况下,电子设备控制第一电子设备和第二电子设备建立连接,这样使得第二电子设备的功能能够被多个电子设备实现,丰富了连接的应用场景。In this 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 to establish a connection with the second electronic device, so that the second electronic device The functions of an electronic device can be realized by multiple electronic devices, which enriches the application scenarios of connection.
在本申请实施例中,通过显示连接管理界面,在连接管理界面中显示用于表示连接状态的多个设备组,从而通过向目标设备组中拖拽第一电子设备,来实现更改电子设备的连接状态,从而无需设置中心电子设备,使得连接更加灵活。In the embodiment of the present application, by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group. Connection status, eliminating the need to set up central electronics, making connections more flexible.
在本申请实施例中,响应于该第三电子设备的数量等于该目标路径数量,电子设备可以保持第一电子设备与多个第三电子设备的连接,不将该第一电子设备加入该目标设备组。电子设备也可以基于该第一电子设备和多个第三电子设备的优先级确定是否建立第一电子设备与第二电子设备之间的连接。参见图11,其示出了本申请一个示例性实施例示出的多设备连接方法的流程图,该方法包括以下步骤:In this embodiment of the present application, in response to the number of the third electronic device being equal to the number of target paths, the electronic device may maintain the connection between the first electronic device and multiple third electronic devices, and not add the first electronic device to the target path. 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 priorities of the first electronic device and multiple third electronic devices. Referring to FIG. 11 , it shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application, and the method includes the following steps:
步骤S1101:电子设备在连接管理界面显示多个设备组,每个设备组包括至少一个电子设备,设备组用于表示电子设备的连接状态。Step S1101: The electronic device displays multiple device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to represent the connection status of the electronic device.
本步骤与步骤S201的原理相同,在此不再赘述。The principle of this step is the same as that of step S201, and will not be repeated here.
步骤S1102:电子设备响应于第一电子设备被拖拽至目标设备组,在该目标设备组中包括第三电子设备的情况下,确定该第二电子设备对应的目标路径数量,该目标路径数量表示用于实现该第一功能的电子设备的最大数量。Step S1102: The electronic device is dragged to the target device group in response to the first electronic device, and if the target device group includes the third electronic device, determine the target path quantity corresponding to the second electronic device, the target path quantity Indicates the maximum number of electronic devices used to implement the first function.
本步骤与步骤S1002的原理相同,在此不再赘述。The principle of this step is the same as that of step S1002, and will not be repeated here.
步骤S1103:电子设备确定第三电子设备的数量。Step S1103: the electronic device determines the quantity of the third electronic device.
本步骤与步骤S1003的原理相同,在此不再赘述。The principle of this step is the same as that of step S1003, and will not be repeated here.
步骤S1104:电子设备对第三电子设备的数量和目标路径数量进行对比。Step S1104: the electronic device compares the number of the third electronic device with the number of target paths.
本步骤与步骤S1004的原理相同,在此不再赘述。The principle of this step is the same as that of step S1004, and will not be repeated here.
步骤S1105:响应于该第三电子设备的数量等于该目标路径数量,电子设备确定该第一电子设备和多个第三电子设备的优先级。Step S1105: In response to the number of the third electronic device being equal to the number of target paths, the electronic device determines priorities of the first electronic device and multiple third electronic devices.
本步骤与步骤S602中电子设备确定第一电子设备和第三电子设备的优先级的原理相同,在此不再赘述。This step is the same as the principle of determining the priorities of the first electronic device and the third electronic device by the electronic device in step S602, and will not be repeated here.
步骤S1106:在第一电子设备的优先级高于优先级最低的第三电子设备的优先级的情况下,电子设备向该服务器发送第二连接建立请求,以该第一电子设备与该第二电子设备建立连接,以执行该第一功能。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 connect the first electronic device with the second electronic device. The electronic device establishes a connection to perform the first function.
在本步骤中,参见图12,电子设备从多个电子设备中,确定优先级最低的第三电子设备,将该优先级最低的第三电子设备的优先级与第一电子设备的优先级进行对比,在该优先级最低的第四电子设备的优先级高于第一电子设备的优先级的情况下,电子设备保持目标设备组中的连接,不将第一电子设备加入到该 目标设备组中。In this step, referring to FIG. 12 , the electronic device determines the third electronic device with the lowest priority among the plurality of electronic devices, and compares the priority of the third electronic device with the lowest priority with the priority of the first electronic device. In contrast, when the priority of the fourth electronic device with the lowest priority is higher than that 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 middle.
本步骤与步骤S604中基于第一连接建立请求建立连接的原理相同,在此不再赘述。This step is the same as the principle of establishing a connection based on the first connection establishment request in step S604, and will not be repeated here.
步骤S1107:服务器接收第二连接建立请求。Step S1107: the server receives the second connection establishment request.
本步骤与步骤S203的原理相同,在此不再赘述。The principle of this step is the same as that of step S203, and will not be repeated here.
步骤S1108:服务器基于该第二连接建立请求控制该第一电子设备和该第二电子设备建立连接。Step S1108: the server controls the first electronic device to establish a connection with the second electronic device based on the second connection establishment request.
本步骤与步骤S204的原理相同,在此不再赘述。The principle of this step is the same as that of step S204, and will not be repeated here.
步骤S1109:电子设备向该服务器发送第一连接断开请求,该第一连接断开请求用于指示断开该第二电子设备与该第三电子设备之间的连接。Step S1109: the electronic device sends a first connection disconnection request to the server, and the first connection disconnection request is used to instruct disconnection of the connection between the second electronic device and the third electronic device.
本步骤与步骤S607的原理相同,在此不再赘述。The principle of this step is the same as that of step S607, and will not be repeated here.
步骤S1110:服务器接收第一连接断开请求。Step S1110: the server receives the first connection disconnection request.
本步骤与步骤S608的原理相同,在此不再赘述。The principle of this step is the same as that of step S608, and will not be repeated here.
步骤S1111:服务器基于第一连接断开请求,控制第二电子设备和第三电子设备断开连接。Step S1111: the server controls the second electronic device to disconnect from the third electronic device based on the first connection disconnection request.
本步骤与步骤S609的原理相同,在此不再赘述。The principle of this step is the same as that of step S609, and will not be repeated here.
在本申请实施例中,通过结合第二电子设备对应的目标路径数量和电子设备的优先级来确定与第二电子设备建立连接的电子设备,这样在多个电子设备中,选择优先级较高的电子设备,保证了实现第二电子设备的功能的质量。In the embodiment of the present application, the electronic device to establish 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, so that among multiple electronic devices, the selection priority is higher The electronic device guarantees the quality of realizing the functions of the second electronic device.
在本申请实施例中,通过显示连接管理界面,在连接管理界面中显示用于表示连接状态的多个设备组,从而通过向目标设备组中拖拽第一电子设备,来实现更改电子设备的连接状态,从而无需设置中心电子设备,使得连接更加灵活。In the embodiment of the present application, by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group. Connection status, eliminating the need to set up central electronics, making connections more flexible.
在本申请实施例中,电子设备还能够控制第一电子设备与目标设备组中功能匹配的第二电子设备连接,参见图13,其示出了本申请一个示例性实施例示出的多设备连接方法的流程图,该方法包括以下步骤:In the embodiment of the present application, the electronic device can also control the connection between the first electronic device and the second electronic device with matching functions in the target device group, see FIG. 13 , which shows a multi-device connection shown in an exemplary embodiment of the present application A flowchart of the method, the method comprising the steps of:
步骤S1301:电子设备在连接管理界面显示多个设备组,每个设备组包括至少一个电子设备,设备组用于表示电子设备的连接状态。Step S1301: The electronic device displays multiple device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to represent the connection status of the electronic device.
本步骤与步骤S201的原理相同,在此不再赘述。The principle of this step is the same as that of step S201, and will not be repeated here.
步骤S1302:响应于第一电子设备被拖拽至目标设备组,电子设备在该目标设备组中的第二电子设备的第二功能与该第一电子设备的第三功能匹配的情况下,向该服务器发送第三同连接建立请求,以指示该第一电子设备与该第二电子设备建立连接,以执行该第二功能。Step S1302: 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, the electronic device sends The server sends a third connection establishment request to instruct the first electronic device to establish a connection with the second electronic device to perform the second function.
在本申请实施例中,电子设备确定第一电子设备的第三功能,以及确定该目标设备组的多个电子设备的第二功能,从多个电子设备中,确定第二功能与第三功能匹配的第二电子设备,将该第二电子设备与第一电子设备建立连接。In the embodiment of the present application, the electronic device determines the third function of the first electronic device, and determines the second function of multiple electronic devices in the target device group, and determines the second function and the third function from the multiple electronic devices The matching second electronic device establishes a connection between the second electronic device and the first electronic device.
例如,目标设备组中包括手机和电视机,其中,手机向电视机发送视频数据和音频数据,第一电子设备为蓝牙耳机,则电子设备确定蓝牙耳机的第三功能为音频播放功能,当前实现音频播放功能的电子设备为电视机,则电子设备将该耳机与电视机建立连接。For example, the target device group includes a mobile phone and a TV set, where the mobile phone sends video data and audio data to the TV set, and the first electronic device is a Bluetooth headset, then the electronic device determines that the third function of the Bluetooth headset is an audio playback function, currently implemented The electronic device with the audio playback function is a TV set, and the electronic device establishes a connection between the earphone and the TV set.
步骤S1303:服务器接收第三连接建立请求。Step S1303: the server receives the third connection establishment request.
本步骤与步骤S203的原理相同,在此不再赘述。The principle of this step is the same as that of step S203, and will not be repeated here.
步骤S1304:服务器基于该第三连接建立请求控制该第一电子设备和该第二电子设备建立连接。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.
本步骤与步骤S204的原理相同,在此不再赘述。The principle of this step is the same as that of step S204, and will not be repeated here.
在本申请实施例中,第一电子设备可以与目标设备组中任一具有相同功能的电子设备建立连接,从而丰富了本申请实施例的使用场景。In the embodiment of the present application, the first electronic device may establish a connection with any electronic device having the same function in the target device group, thereby enriching the usage scenarios of the embodiment of the present application.
需要说明的一点是,在第一电子设备添加到目标设备组之前,目标设备组中的数据流向为:第四电子设备将多种功能对应的数据发送给第二电子设备,第二电子设备基于第二功能和其他功能展示该数据。在第一电子设备添加到目标设备组之后,目标设备组中的数据流向为:第四电子设备将多种功能对应的数据发送给第二电子设备,第二电子设备将第二功能对应的数据发送给第一电子设备,这样由第二电子设备的其他功能展示其他数据,由第一电子设备的第三功能展示该第二功能对应的数据。It should be noted that before the first electronic device is added to the target device group, the data flow in the target device group is as follows: the fourth electronic device sends data corresponding to various functions to the second electronic device, and the second electronic device based on The second and other functions display this data. After the first electronic device is added to the target device group, the data flow in the target device group is as follows: the fourth electronic device sends the data corresponding to various functions to the second electronic device, and the second electronic device sends the data corresponding to the second function Send it 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.
例如,多种功能对应的数据包括视频数据和音频数据;第四电子设备为手机,第二电子设备为电视机,第一电子设备为蓝牙耳机。在蓝牙耳机添加到目标设备组之前,手机将视频数据和音频数据发送给电视机,由电视机播放视频数据和音频数据。在蓝牙耳机添加到目标设备组后,蓝牙耳机与电视机建立连接,手机将视频数据和音频数据发送给电视机,电视机将音频数据发送给蓝牙耳机,这样由电视机播放视频数据,由蓝牙耳机播放音频数据。For example, data corresponding to multiple functions includes video data and audio data; the fourth electronic device is a mobile phone, the second electronic device is a TV set, 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 TV, and the TV 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 TV, the mobile phone sends the video data and audio data to the TV, and the TV sends the audio data to the Bluetooth headset, so that the TV plays the video data, and the Bluetooth Headphones play audio data.
在本申请实施例中,通过显示连接管理界面,在连接管理界面中显示用于表示连接状态的多个设备组,从而通过向目标设备组中拖拽第一电子设备,来实现更改电子设备的连接状态的目的,从而无需设置中心电子设备,使得连接更加灵活。In the embodiment of the present application, by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group. The purpose of the connection state, so that there is no need to set up a central electronic device, making the connection more flexible.
需要说明的一点是,上述的过程还可以通过服务器实现。相应地,服务器中存储多个设备组中电子设备对应的目标路径数量。在该目标设备组中包括第三电子设备的情况下,电子设备将第一电子设备和第二电子设备的设备标识发送给服务器,通过服务器执行上述步骤,来建立第一电子设备与第二电子设备之间的连接。It should be noted that the above-mentioned process can also be implemented through a server. Correspondingly, the server stores the number of target paths corresponding to the electronic devices in the multiple device groups. In the case that the target device group includes the third electronic device, the electronic device sends the device identifiers of the first electronic device and the second electronic device to the server, and the server executes the above steps to establish the connection between the first electronic device and the second electronic device. connection between devices.
这样通过服务器确定是否控制第一电子设备和第二电子设备建立连接,降低了对电子设备的要求,进而提高了本申请实施例的应用场景的广泛性。In this way, the server determines whether to control the first electronic device to establish a connection with the second electronic device, which reduces the requirements on the electronic device, and further improves the versatility of the application scenarios of the embodiments of the present application.
在本申请实施例中,电子设备上所实施的拖拽操作还能够触发将目标协同设备中的电子设备断开连接,参见图14,其示出了本申请一个示例性实施例示出的多设备连接方法的流程图,该方法包括以下步骤:In the embodiment of the present application, the dragging operation performed on the electronic device can also trigger the disconnection of the electronic device in the target coordination device. Refer to FIG. 14 , which shows a multi-device A flowchart of a method of connecting, the method comprising the following steps:
步骤S1401:电子设备在连接管理界面显示多个设备组,每个设备组包括至少一个电子设备,设备组用于表示电子设备的连接状态。Step S1401: The electronic device displays multiple device groups on the connection management interface, each device group includes at least one electronic device, and the device group is used to represent the connection status of the electronic device.
本步骤与步骤S201的原理相同,在此不再赘述。The principle of this step is the same as that of step S201, and will not be repeated here.
步骤S1402:响应于该目标设备组中第四电子设备被拖拽出该目标设备组,向该同服务器发送第二连接断开请求,该第二连接断开请求用于指示断开该第四电子设备与该目标设备组内的其他电子设备之间的连接。Step S1402: In response to the fourth electronic device in the target device group being dragged out of the target device group, send a second connection disconnection request to the server, where the second connection disconnection request is used to instruct disconnection of the fourth electronic device. Connections between the electronic device and other electronic devices within the target device group.
本步骤中,检测第四电子设备是否被拖拽出目标设备组的过程与步骤S202中电子设备检测第一电子设备是否被拖拽入目标设备组的原理相同,在此不再赘述。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, and will not be repeated here.
电子设备基于第二连接断开请求请求服务器控制第四电子设备与目标设备组内的其他电子设备断开连接的过程与步骤S607-步骤S609中请求断开连接的过程的原理相同,在此不再赘述。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 process of requesting disconnection in step S607-step S609. Let me repeat.
步骤S1403:电子设备在该目标设备组中,显示除该第四电子设备以外的其他电子设备。Step S1403: The electronic device displays other electronic devices except the fourth electronic device in the target device group.
在本步骤中,电子设备在第四电子设备显示在新的设备组中,在目标设备组中显示除第四电子设备以外的其他电子设备。In this step, the fourth electronic device is displayed in the new device group, and other electronic devices except the fourth electronic device are displayed in the target device group.
在本申请实施例中,通过显示连接管理界面,在连接管理界面中显示用于表示连接状态的多个设备组,从而通过向目标设备组中拖拽第一电子设备,来实现更改电子设备的连接状态,从而无需设置中心电子设备,使得连接更加灵活。In the embodiment of the present application, by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group. Connection status, eliminating the need to set up central electronics, making connections more flexible.
需要说明的一点是,电子设备在新接入到服务器时,还可以请求服务器同步当前多个电子设备的连接状态。参见图15,其示出了本申请一个示例性实施例示出的多设备连接方法的流程图,该方法包括以下步骤:It should be noted that when an electronic device is newly connected to the server, it may also request the server to synchronize the current connection states of multiple electronic devices. Referring to FIG. 15 , it shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application, and the method includes the following steps:
步骤S1501:电子设备向该服务器发送状态同步请求,该连接状态同步请求包括目标账号。Step S1501: the electronic device sends a state synchronization request to the server, and the connection state synchronization request includes a target account.
其中,电子设备在刚接入服务器时,向服务器发送同步请求。其中新接入服务器的电子设备指目标应用程序登录目标账号的电子设备。其中,电子设备可以通过输入账号密码来登录目标账号,或者,电子设备通过扫描目标账号对应的二维码来登录目标账号等。在本申请实施例中,对此不作具体限定。Wherein, when the electronic device just connects to the server, it sends a synchronization request to the server. The electronic device that is newly connected to the server refers to the electronic device that the target application program logs into the target account. Wherein, the electronic device may log in the target account by inputting the account password, or the electronic device may log in the target account by scanning a two-dimensional code corresponding to the target account. In the embodiment of the present application, no specific limitation is made on this.
步骤S1502:服务器接收电子设备发送的状态同步请求。Step S1502: the server receives the status synchronization request sent by the electronic device.
步骤S1503:服务器确定该目标账号对应的多个电子设备的连接状态。Step S1503: the server determines the connection statuses of the multiple electronic devices corresponding to the target account.
服务器中存储有多个账号以及每个账号对应的电子设备。参见图16,服务器包块账号管理模块和同步模块,其中,账号管理模块存储多个账号以及每个账号对应的电子设备,账号同步模块存储每个电子设备的连接状态。同步模块将接收到的目标账号发送给账号管理模块,账号管理模块基于该账号确定多个电子设备,将该多个电子设备发送给同步模块,同步模块确定该多个电子设备的连接状态。Multiple accounts and electronic devices corresponding to each account are stored in the server. Referring to FIG. 16 , the server includes 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 a plurality of electronic devices based on the account, sends the plurality of electronic devices to the synchronization module, and the synchronization module determines the connection status of the plurality of electronic devices.
步骤S1504:服务器向电子设备发送该目标账号对应的多个电子设备的连接状态。Step S1504: the server sends the connection statuses of the multiple electronic devices corresponding to the target account to the electronic device.
服务器将多个电子设备的设备标识和每个电子设备的连接状态发送给电子设备。The server sends the device identifiers of the multiple electronic devices and the connection status of each electronic device to the electronic device.
步骤S1505:电子设备接收该服务器发送的多个电子设备的连接状态。Step S1505: the electronic device receives the connection statuses of the multiple electronic devices sent by the server.
步骤S1506:电子设备基于该多个电子设备的连接状态,确定该多个设备组。Step S1506: the electronic device determines the multiple device groups based on the connection states of the multiple electronic devices.
需要说明的一点是,在任一电子设备的连接状态发生改变后,服务器还可以自动向该电子设备对应的同一账号发送更新后的连接状态,这样同一账号对应的多个电子设备存储的连接状态是一致的,从而保证了在任一电子设备上都能实现对其他电子设备的连接状态的控制。It should be noted 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 by multiple electronic devices corresponding to the same account is Consistent, thus ensuring that any electronic device can realize the control of the connection status of other electronic devices.
在本申请实施例中,通过显示连接管理界面,在连接管理界面中显示用于表示连接状态的多个设备组,从而通过向目标设备组中拖拽第一电子设备,来实现更改电子设备的连接状态,从而无需设置中心电子设备,使得连接更加灵活。In the embodiment of the present application, by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group. Connection status, eliminating the need to set up central electronics, making connections more flexible.
需要说明的一点是,对于第一电子设备与目标设备组中的至少一个第二电子设备建立连接的情况下,对于每个第二电子设备,均能够通过上述任一方案实现与第一电子设备的连接建立,在本申请实施例中,对此不再赘述。It should be noted that, in the case where the first electronic device establishes a connection with at least one second electronic device in the target device group, for each second electronic device, any of the above schemes can be used to realize the connection with the first electronic device. The establishment of the connection, in the embodiment of this application, this will not be repeated.
请参考图17,其示出了本申请一个实施例提供的多设备连接装置的结构框图。该多设备连接装置可以通过软件、硬件或者两者的结合实现成为处理器的全部或一部分。该装置包括: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 a part of the processor through software, hardware or a combination of the two. The unit includes:
显示模块1701,用于在连接管理界面显示多个设备组,每个设备组包括至少一个电子设备,该设备组用于表示电子设备的连接状态;A display module 1701, configured 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 represent the connection status of the electronic device;
第一发送模块1702,用于响应于第一电子设备被拖拽至目标设备组,向服务器发送连接建立请求,以指示该第一电子设备与该目标设备组内的至少一个第二电子设备建立连接,该服务器用于管理电子设备之间的连接关系。The first sending module 1702 is configured to send a connection establishment request to the server in response to the first electronic device being dragged to the target device group, to instruct the first electronic device to establish connection with at least one second electronic device in the target device group connection, the server is used to manage the connection relationship between electronic devices.
在一些实施例中,该显示模块1701包括:In some embodiments, the display module 1701 includes:
第一显示单元,用于以第一显示状态,显示包括至少两个电子设备的设备组,该第一显示状态指示该至少两个电子设备之间已建立连接;The first display unit is configured to display a device group including at least two electronic devices in a first display state, the first display state indicating that a connection has been established between the at least two electronic devices;
第二显示单元,用于以第二显示状态,显示仅包括一个电子设备的设备组,该第二显示状态指示该一个电子设备处于未建立连接状态。The second display unit is configured to display a device group including only one electronic device in a second display state, the second display state indicating that the one electronic device is in a state of not establishing a connection.
在一些实施例中,该第一发送模块1702包括:In some embodiments, the first sending module 1702 includes:
第三显示单元,用于对于该目标设备组中的任一第二电子设备,响应于第一电子设备被拖拽至目标设备组,在该目标设备组中包括第三电子设备的情况下,显示该第一电子设备和该第三电子设备的优先级,该优先级用于表示第一功能的能力强弱,该第三电子设备为该目标设备组中已与该第二电子设备建立连接的电子设备,该第三电子设备与该第一电子设备均具有该第一功能;The third display unit is 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, if the target device group includes a third electronic device, Displaying the priority of the first electronic device and the third electronic device, the priority is used to indicate the capability of the first function, and the third electronic device has established a connection with the second electronic device in the target device group electronic device, the third electronic device and the first electronic device both have the first function;
第一发送单元,用于响应于对该第一电子设备的选择操作,向该服务器发送第一连接建立请求,该第一连接建立请求用于指示该第一电子设备与该第二电子设备建立连接,以执行该第一功能;The first sending unit is configured to send a first connection establishment request to the server in response to the selection operation of the first electronic device, and the first connection establishment request is used to instruct the first electronic device to establish with the second electronic device connected to perform the first function;
该装置还包括:The unit also includes:
第二发送模块,用于向该服务器发送第一连接断开请求,该第一连接断开请求用于指示断开该第二电子设备与该第三电子设备之间的连接。The second sending module is configured to send a first connection disconnection request to the server, where the first connection disconnection request is used to instruct disconnection between the second electronic device and the third electronic device.
在一些实施例中,该显示模块1701还用于响应于对该第三电子设备的选择操作,不控制该第一电子设备与该至少一个第二电子设备建立连接。In some embodiments, the display module 1701 is further configured to not control the first electronic device to establish a connection with the at least one second electronic device in response to the selection operation of the third electronic device.
在一些实施例中,该第一发送模块1702包括:In some embodiments, the first sending module 1702 includes:
确定单元,用于对于该目标设备组中的任一第二电子设备,响应于第一电子设备被拖拽至目标设备组,在该目标设备组中包括第三电子设备的情况下,确定该第二电子设备对应的目标路径数量,该目标路径数量表示用于实现该第一功能的电子设备的最大数量;The determining unit is 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, if the target device group includes a third electronic device, determine the A target path number corresponding to the second electronic device, where the target path number represents the maximum number of electronic devices used to realize the first function;
第二发送单元,用于响应于该第三电子设备的数量小于该目标路径数量,向该服务器发送第二连接建立请求,以指示该第一电子设备与该第二电子设备建立连接,以执行该第一功能。The second sending unit is configured to send a second connection establishment request to the server in response to the number of the third electronic device being less than the target path number, to instruct the first electronic device to establish a connection with the second electronic device to perform The first function.
在一些实施例中,该显示模块1701还用于响应于该第三电子设备的数量等于该目标路径数量,不将该第一电子设备加入该目标设备组;或者,In some embodiments, the display module 1701 is further configured to not add the first electronic device to the target device group in response to the number of the third electronic device being equal to the target path number; or,
该第三显示单元,还用于响应于该第三电子设备的数量等于该目标路径数量,显示该第一电子设备和该第三电子设备的优先级。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 device being equal to the target path number.
在一些实施例中,该第一发送模块1702包括:In some embodiments, the first sending module 1702 includes:
第三发送单元,用于对于该目标设备组中的任一第二电子设备,响应于第一电子设备被拖拽至目标设备组,在该目标设备组中的第二电子设备的第二功能与该第一电子设备的第三功能匹配的情况下,向该服务器发送第三同连接建立请求,以指示该第一电子设备与该第二电子设备建立连接,以执行该第二功能。The third sending unit is 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, the second function of the second electronic device in the target device group If it matches the third function of the first electronic device, sending a third connection establishment request to the server to instruct the first electronic device to establish a connection with the second electronic device to execute the second function.
在一些实施例中,该装置还包括:In some embodiments, the device also includes:
第三发送模块,用于响应于该目标设备组中第四电子设备被拖拽出该目标设备组,向该同服务器发送第二连接断开请求,该第二连接断开请求用于指示断开该第四电子设备与该目标设备组内的其他电子设备之间的连接;The third sending module is configured to send a second connection disconnection request to the same server in response to the fourth electronic device in the target device group being dragged out of the target device group, and the second connection disconnection request is used to indicate disconnection opening the connection between the fourth electronic device and other electronic devices in the target device group;
该显示模块1701,还用于在该目标设备组中,显示除该第四电子设备以外的其他电子设备。The display module 1701 is further configured to display other electronic devices except the fourth electronic device in the target device group.
在一些实施例中,该装置还包括:In some embodiments, the device also includes:
第四发送模块,用于响应于该第一电子设备的原设备组中还包括其他电子设备,向该服务器发送第三连接断开请求,该第三连接断开请求用于指示断开该第一电子设备与该原设备组中电子设备的连接;或者,The fourth sending module is configured to send a third connection disconnection request to the server in response to other electronic devices included in the original device group of the first electronic device, and the third connection disconnection request is used to instruct disconnection of the first electronic device. the connection of an electronic device to the electronic device in the original equipment group; or,
保持模块,用于响应于该第一电子设备的原设备组中还包括其他电子设备,保持该第一电子设备与原设备组中的其他电子设备的连接。A maintaining module, configured to, in response to other electronic devices being included in the original equipment group of the first electronic device, maintain the connection between the first electronic device and other electronic devices in the original equipment group.
在一些实施例中,该装置还包括:In some embodiments, the device also includes:
第五发送模块,用于向该服务器发送状态同步请求,该连接状态同步请求包括目标账号,该状态同步请求用于请求该服务器返回该目标账号对应的多个电子设备的连接状态;The fifth sending module is configured to send a status synchronization request to the server, the connection 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;
第一接收模块,用于接收该服务器发送的多个电子设备的连接状态;The first receiving module is used to receive the connection status of multiple electronic devices sent by the server;
确定模块,用于基于该多个电子设备的连接状态,确定该多个设备组。A determining module, configured to determine the multiple device groups based on the connection status of the multiple electronic devices.
在本申请实施例中,通过显示连接管理界面,在连接管理界面中显示用于表示连接状态的多个设备组, 从而通过向目标设备组中拖拽第一电子设备,来实现更改电子设备的连接状态,从而无需设置中心电子设备,使得连接更加灵活。In the embodiment of the present application, by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group. Connection status, eliminating the need to set up central electronics, making connections more flexible.
请参考图18,其示出了本申请一个实施例提供的多设备连接装置的结构框图。该多设备连接装置可以通过软件、硬件或者两者的结合实现成为处理器的全部或一部分。该装置包括: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 a part of the processor through software, hardware or a combination of the two. The unit includes:
第二接收模块1801,用于接收多设备连接系统中的任一电子设备发送的连接建立请求,该连接建立请求用于指示第一电子设备与第二电子设备建立连接,该第一电子设备为电子设备中被拖拽的电子设备,该第二电子设备为该第一电子设备被拖拽至的目标设备组中的电子设备;The second receiving module 1801 is configured to receive a connection establishment request sent by any electronic device in the multi-device connection system, the connection establishment request is used to instruct the first electronic device to establish a connection with the second electronic device, and the first electronic device is The dragged electronic device among the electronic devices, the second electronic device is an electronic device in the target device group to which the first electronic device is dragged;
第一控制模块1802,用于基于该连接建立请求,控制该第一电子设备和该第二电子设备建立连接。The first control module 1802 is configured to control the first electronic device to establish a connection with the second electronic device based on the connection establishment request.
在一些实施例中,该装置还包括:In some embodiments, the device also includes:
第三接收模块,用于接收该电子设备发送的连接断开请求;a third receiving module, configured to receive a connection disconnection request sent by the electronic device;
第二控制模块,用于基于该连接断开请求控制该目标设备组中的电子设备断开连接。The second control module is configured to control the electronic devices in the target device group to disconnect based on the connection disconnection request.
在一些实施例中,该装置还包括:In some embodiments, the device also includes:
第四接收模块,用于接收该电子设备发送的状态同步请求,该状态同步请求携带目标账号;A fourth receiving module, configured to receive a state synchronization request sent by the electronic device, where the state synchronization request carries a target account;
获取模块,用于获取该目标账号对应的多个电子设备的连接状态;An acquisition module, configured to acquire the connection statuses of multiple electronic devices corresponding to the target account;
第六发送模块,用于向该电子设备发送该多个电子设备的连接状态。A sixth sending module, configured to send the connection states of the plurality of electronic devices to the electronic device.
在一些实施例中,该第一控制模块1802包括:In some embodiments, the first control module 1802 includes:
第四发送单元,用于向该第二电子设备发送连接指示,该连接指示携带该第一电子设备的设备标识,该连接指示用于指示该第二电子设备与第一电子设备建立短距离通信连接;或者,The fourth sending unit is configured to send a connection instruction to the second electronic device, the connection instruction carries the device identifier of the first electronic device, and the connection instruction is used to instruct the second electronic device to establish short-distance communication with the first electronic device connection; or,
存储单元,用于存储该第一电子设备和该第二电子设备的关联关系,响应于接收到该第二电子设备发送的数据,基于该关联关系向该第一电子设备发送该数据。The storage unit is configured to store the association relationship between the first electronic device and the second electronic device, and in response to receiving the data sent by the second electronic device, send the data to the first electronic device based on the association relationship.
在本申请实施例中,通过显示连接管理界面,在连接管理界面中显示用于表示连接状态的多个设备组,从而通过向目标设备组中拖拽第一电子设备,来实现更改电子设备的连接状态,从而无需设置中心电子设备,使得连接更加灵活。In the embodiment of the present application, by displaying the connection management interface, a plurality of device groups used to represent the connection status are displayed in the connection management interface, so that the first electronic device can be changed by dragging the first electronic device into the target device group. Connection status, eliminating the need to set up central electronics, making connections more flexible.
请参考图19,其示出了本申请一个示例性实施例提供的电子设备1900的结构方框图。电子设备1900可以是智能手机、平板电脑等具有图像处理功能的终端。本申请中的电子设备1900可以包括一个或多个如下部件:处理器1910、存储器1920、通信模块1930。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 an image processing function such as a smart phone and a tablet computer. The electronic device 1900 in this application may include one or more of the following components: a processor 1910 , a memory 1920 , and a communication module 1930 .
处理器1910可以包括一个或者多个处理核心。处理器1910利用各种接口和线路连接整个电子设备1900内的各个部分,通过运行或执行存储在存储器1920内的指令、程序、代码集或指令集,以及调用存储在存储器1920内的数据,执行终端1000的各种功能和处理数据。可选地,处理器1910可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1910可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)、神经网络处理器(Neural-network Processing Unit,NPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示屏所需要显示的内容的渲染和绘制;NPU用于实现人工智能(Artificial Intelligence,AI)功能;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1910中,单独通过一块芯片进行实现。 Processor 1910 may include one or more processing cores. The processor 1910 uses various interfaces and lines to connect various parts of the entire electronic device 1900, and by running or executing instructions, programs, code sets or instruction sets stored in the memory 1920, and calling data stored in the memory 1920, execute Various functions and processing data of the terminal 1000. Optionally, the processor 1910 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware. The processor 1910 can integrate one or more of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a neural network processor (Neural-network Processing Unit, NPU) and a modem, etc. The combination. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used to render and draw the content that needs to be displayed on the display screen; the NPU is used to realize artificial intelligence (Artificial Intelligence, AI) functions; the modem is used to process wireless communication. It can be understood that the foregoing modem may not be integrated into the processor 1910, but may be implemented by a single chip.
存储器1920可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。可选地,该存储器1920包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1920可用于存储指令、程序、代码、代码集或指令集。存储器1920可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等;存储数据区可存储根据电子设备1900的使用所创建的数据(比如音频数据、电话本)等。The memory 1920 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory). Optionally, the memory 1920 includes a non-transitory computer-readable storage medium. The memory 1920 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. 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 and the like for realizing the following various method embodiments; the storage data area can store data created according to the use of the electronic device 1900 (such as audio data, phone book) and the like.
通信模块1930用于发射和接收信号,该通信模块可以为无线保真(Wireless Fidelity,WIFI)模块等。The communication module 1930 is used for transmitting and receiving signals, and the communication module may be a wireless fidelity (Wireless Fidelity, WIFI) module or the like.
该终端1910还可以包括显示屏,显示屏是用于显示用户界面的显示组件。可选的,该显示屏为具有触控功能的显示屏,通过触控功能,用户可以使用手指、触摸笔等任何适合的物体在显示屏上进行触控操作。The terminal 1910 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 the touch function, the user can use any suitable object such as a finger or a touch pen to perform a touch operation on the display screen.
显示屏通常设置在电子设备1900的前面板。显示屏可被设计成为全面屏、曲面屏、异型屏、双面屏或折叠屏。显示屏还可被设计成为全面屏与曲面屏的结合,异型屏与曲面屏的结合等,本实施例对此不加以限定。The display screen is usually arranged on the front panel of the electronic device 1900 . The display screen can be designed as full screen, curved screen, special-shaped screen, double-sided screen or 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 are not limited in this embodiment.
除此之外,本领域技术人员可以理解,上述附图所示出的电子设备1900的结构并不构成对电子设备1900的限定,电子设备1900可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,电子设备1900中还包括麦克风、扬声器、射频电路、输入单元、传感器、音频电路、电源、 蓝牙模块等部件,在此不再赘述。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 less components than those shown in the figure. Or combine certain components, or different component arrangements. 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 will not be repeated here.
请参考图20,其示出了本申请一个示例性实施例提供的服务器2000的结构方框图。该服务器2000可以为第一网络设备也可以为第二网络设备。该服务器2000可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上处理器(Central Processing Units,CPU)2010和一个或一个以上的存储器2020,其中,所述存储器2020中存储有至少一条指令,所述至少一条指令由所述处理器2010加载并执行以实现上述各个方法实施例提供的小区切换方法。当然,该服务器2000还可以具有有线或无线网络接口、键盘以及输入输出接口等部件,以便进行输入输出,该服务器2000还可以包括其他用于实现设备功能的部件,在此不做赘述。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 may 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 than one processor (Central Processing Units, CPU) 2010 and one or more than one memory 2020, wherein the memory 2020 is stored with At least one instruction, the at least one instruction is loaded and executed by the processor 2010 to implement the cell handover method provided by each method embodiment above. Of course, the server 2000 may also have components such as wired or wireless network interfaces, keyboards, and input/output interfaces for input and output, and the server 2000 may also include other components for implementing device functions, which will not be repeated here.
本申请实施例还提供了一种计算机可读介质,该计算机可读介质存储有至少一条指令,该至少一条指令由该处理器加载并执行以实现如上各个实施例示出的多设备连接方法。The embodiment of the present application also provides a computer-readable medium, the computer-readable medium 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.
本申请实施例还提供了一种计算机程序产品,该计算机程序产品存储有至少一条指令,该至少一条指令由该处理器加载并执行以实现如上各个实施例示出的多设备连接方法。The embodiment of the present application also provides a computer program product, the computer program product 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.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that, in the foregoing one or more examples, the functions described in the embodiments of the present application may be implemented by hardware, software, firmware or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only optional embodiments of the application, and are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application shall be included in the protection of the application. within range.

Claims (29)

  1. 一种设备连接方法,所述方法由登录同一账号的任一电子设备执行,所述方法包括:A device connection method, the method is executed by any electronic device that logs into the same account, and the method includes:
    在连接管理界面显示多个设备组,每个设备组包括至少一个电子设备,所述设备组用于表示电子设备的连接状态;Multiple device groups are displayed on the connection management interface, each device group includes at least one electronic device, and the device group is used to represent 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 to instruct the first electronic device to establish a connection with at least one second electronic device in the target device group, the server uses It is used to manage the connection relationship between electronic devices.
  2. 根据权利要求1所述的方法,其中,所述在连接管理界面显示多个设备组包括:The method according to claim 1, wherein the displaying multiple device groups on the connection management interface comprises:
    以第一显示状态,显示包括至少两个电子设备的设备组,所述第一显示状态指示所述至少两个电子设备之间已建立连接;displaying a device group comprising at least two electronic devices in a first display state, the first display state indicating 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 indicating that the one electronic device is in an unestablished connection state.
  3. 根据权利要求1所述的方法,其中,所述响应于第一电子设备被拖拽至目标设备组,向服务器发送连接建立请求包括:The method according to claim 1, wherein in response to the first electronic device being dragged to the target device group, sending a connection establishment request to the server comprises:
    对于所述目标设备组中的任一第二电子设备,响应于第一电子设备被拖拽至目标设备组,在所述目标设备组中包括第三电子设备的情况下,显示所述第一电子设备和所述第三电子设备的优先级,所述优先级用于表示第一功能的能力强弱,所述第三电子设备为所述目标设备组中已与所述第二电子设备建立连接的电子设备,所述第三电子设备与所述第一电子设备均具有所述第一功能;For any second electronic device in the target device group, in response to the first electronic device being dragged to the target device group, if the target device group includes a third electronic device, the first electronic device is displayed. the priority of the electronic device and the third electronic device, the priority is used to indicate the capability of the first function, and the third electronic device is established with the second electronic device in the target device group A connected electronic device, the third electronic device and the first electronic device both have the first function;
    响应于对所述第一电子设备的选择操作,向所述服务器发送第一连接建立请求,以指示所述第一电子设备与所述第二电子设备建立连接,以执行所述第一功能;In response to the selection operation of 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 also includes:
    向所述服务器发送第一连接断开请求,所述第一连接断开请求用于指示断开所述至少一个第二电子设备与所述第三电子设备之间的连接。Sending a first disconnection request to the server, where the first disconnection request is used to instruct disconnection between the at least one second electronic device and the third electronic device.
  4. 根据权利要求3所述的方法,其中,所述方法还包括:The method according to claim 3, wherein 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. 根据权利要求3所述的方法,其中,所述响应于第一电子设备被拖拽至目标设备组,向服务器发送连接建立请求包括:The method according to claim 3, wherein in response to the first electronic device being dragged to the target device group, sending a connection establishment request to the server comprises:
    对于所述目标设备组中的任一第二电子设备,响应于第一电子设备被拖拽至目标设备组,在所述目标设备组中包括第三电子设备的情况下,确定所述第二电子设备对应的目标路径数量,所述目标路径数量表示用于实现所述第一功能的电子设备的最大数量;For any second electronic device in the target device group, in response to the first electronic device being dragged to the target device group, if the target device group includes a third electronic device, it is determined that the second The number of target paths corresponding to the electronic device, where the number of target paths represents the maximum number of electronic devices used to realize the first function;
    响应于所述第三电子设备的数量小于所述目标路径数量,向所述服务器发送第二连接建立请求,以指示所述第一电子设备与所述第二电子设备建立连接,以执行所述第一功能。In response to the number of the third electronic device being less than the number of target paths, sending a second 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.
  6. 根据权利要求5所述的方法,其中,所述方法还包括:The method according to claim 5, wherein the method further comprises:
    响应于所述第三电子设备的数量等于所述目标路径数量,不将所述第一电子设备加入所述目标设备组;或者,not adding the first electronic device to the target device group in response to the number of the third electronic devices being equal to the target path number; or,
    响应于所述第三电子设备的数量等于所述目标路径数量,执行显示所述第一电子设备和所述第三电子设备的优先级的步骤。The step of displaying priorities of the first electronic device and the third electronic device is performed in response to the number of the third electronic device being equal to the target path number.
  7. 根据权利要求1所述的方法,其中,所述响应于第一电子设备被拖拽至目标设备组,向服务器发送连接建立请求包括:The method according to claim 1, wherein in response to the first electronic device being dragged to the target device group, sending a connection establishment request to the server comprises:
    对于所述目标设备组中的任一第二电子设备,响应于第一电子设备被拖拽至目标设备组,在所述第二电子设备的第二功能与所述第一电子设备的第三功能匹配的情况下,向所述服务器发送第三同连接建立请求,以指示所述第一电子设备与所述第二电子设备建立连接,以执行所述第二功能。For any second electronic device in the target device group, in response to the first electronic device being dragged to the target device group, between the second function of the second electronic device and the third function of the first electronic device If the functions match, sending a third connection establishment request to the server to instruct the first electronic device to establish a connection with the second electronic device to execute the second function.
  8. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    响应于所述目标设备组中第四电子设备被拖拽出所述目标设备组,向所述同服务器发送第二连接断开请求,所述第二连接断开请求用于指示断开所述第四电子设备与所述目标设备组内的其他电子设备之间的连接。In response to the fourth electronic device in the target device group being dragged out of the target device group, sending a second connection disconnection request to the same server, the second connection disconnection request is used to indicate disconnection of the A connection between the fourth electronic device and other electronic devices in the target device group.
  9. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    响应于所述第一电子设备的原设备组中还包括其他电子设备,向所述服务器发送第三连接断开请求,所述第三连接断开请求用于指示断开所述第一电子设备与所述原设备组中电子设备的连接;或者,In response to other electronic devices being included in the original device group of the first electronic device, sending a third connection disconnection request to the server, where the third connection disconnection request is used to instruct disconnection of the first electronic device connection to electronic equipment in said original equipment group; or,
    响应于所述第一电子设备的原设备组中还包括其他电子设备,保持所述第一电子设备与原设备组中的 其他电子设备的连接。In response to other electronic devices being included in the original device group of the first electronic device, the connection between the first electronic device and other electronic devices in the original device group is maintained.
  10. 根据权利要求1-9任一项所述的方法,其中,在所述在连接管理界面显示多个设备组之前,所述方法还包括:The method according to any one of claims 1-9, wherein, before displaying a plurality of device groups on the connection management interface, the method further comprises:
    向所述服务器发送状态同步请求,所述连接状态同步请求包括目标账号,所述状态同步请求用于请求所述服务器返回所述目标账号对应的多个电子设备的连接状态;Sending a status synchronization request to the server, where the connection 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 the connection statuses of multiple electronic devices sent by the server;
    基于所述多个电子设备的连接状态,确定所述多个设备组。The plurality of device groups is determined based on connection states of the plurality of electronic devices.
  11. 一种多设备连接方法,所述方法由服务器执行,所述方法包括:A multi-device connection method, the method is executed by a server, and the method includes:
    接收多设备连接系统中的任一电子设备发送的连接建立请求,所述连接建立请求用于指示第一电子设备与至少一个第二电子设备建立连接,所述第一电子设备为电子设备中被拖拽的电子设备,所述至少一个第二电子设备为所述第一电子设备被拖拽至的目标设备组中的电子设备;receiving a connection establishment request sent by any electronic device in the multi-device connection system, the connection establishment request is used to instruct the first electronic device to establish a connection with at least one second electronic device, and the first electronic device is The dragged electronic device, the at least one second electronic device is an electronic device in the target device group to which the first electronic device is dragged;
    基于所述连接建立请求,控制所述第一电子设备和所述至少一个第二电子设备建立连接。Based on the connection establishment request, the first electronic device is controlled to establish a connection with the at least one second electronic device.
  12. 根据权利要求11所述的方法,其中,所述方法还包括:The method according to claim 11, wherein the method further comprises:
    接收所述电子设备发送的连接断开请求;receiving a connection disconnection request sent by the electronic device;
    基于所述连接断开请求控制所述目标设备组中的电子设备断开连接。Electronic devices in the target device group are controlled to be disconnected based on the connection disconnection request.
  13. 根据权利要求11所述的方法,其中,所述方法还包括:The method according to claim 11, wherein the method further comprises:
    接收所述电子设备发送的状态同步请求,所述状态同步请求携带目标账号;receiving a state synchronization request sent by the electronic device, where the state synchronization request carries a target account;
    获取所述目标账号对应的多个电子设备的连接状态;Obtain the connection status of multiple electronic devices corresponding to the target account;
    向所述电子设备发送所述多个电子设备的连接状态。Sending the connection states of the plurality of electronic devices to the electronic device.
  14. 根据权利要求11所述的方法,其中,所述基于所述连接建立请求,控制所述第一电子设备和所述第二电子设备建立连接,包括:The method according to claim 11, wherein the controlling the first electronic device to establish a connection with the second electronic device based on the connection establishment request comprises:
    向所述第二电子设备发送连接指示,所述连接指示携带所述第一电子设备的设备标识,所述连接指示用于指示所述第二电子设备与第一电子设备建立短距离通信连接;或者,sending a connection indication to the second electronic device, where the connection indication carries the device identifier 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; or,
    存储所述第一电子设备和所述第二电子设备的关联关系,响应于接收到所述第二电子设备发送的数据,基于所述关联关系向所述第一电子设备发送所述数据。storing the association relationship between the first electronic device and the second electronic device, and in response to receiving the data sent by the second electronic device, sending the data to the first electronic device based on the association relationship.
  15. 一种多设备连接系统,所述系统包括多个电子设备和服务器;A multi-device connection system, the system includes a plurality of electronic devices and a server;
    所述多个电子设备中的任一电子设备用于在连接管理界面显示多个设备组,每个设备组包括至少一个电子设备,所述设备组用于表示电子设备的连接状态;响应于第一电子设备被拖拽至目标设备组,向服务器发送连接建立请求;Any one of the multiple electronic devices is 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 represent the connection status of the electronic device; in response to the first An electronic device is dragged to the target device group, and a connection establishment request is sent to the server;
    所述服务器用于接收所述连接建立请求,基于所述连接建立请求控制所述第一电子设备和所述目标设备组中的至少一个第二电子设备建立连接。The server is configured 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.
  16. 根据权利要求15所述的系统,其中,所述电子设备用于以第一显示状态,显示包括至少两个电子设备的设备组,所述第一显示状态指示所述至少两个电子设备之间已建立连接;以第二显示状态,显示包括一个电子设备的设备组,所述第二显示状态指示所述一个电子设备处于未建立连接状态。The system according to claim 15, wherein the electronic device is configured to display a device group comprising at least two electronic devices in a first display state, the first display state indicating that between the at least two electronic devices A connection has been established; a device group including one electronic device is displayed in a second display state, and the second display state indicates that the one electronic device is in a state of not establishing a connection.
  17. 根据权利要求15所述的系统,其中,所述电子设备用于响应于第一电子设备被拖拽至目标设备组,在所述目标设备组中包括第三电子设备的情况下,对于所述目标设备组中的任一第二电子设备,显示所述第一电子设备和所述第三电子设备的优先级,所述优先级用于表示第一功能的能力强弱,所述第三电子设备与所述第一电子设备均具有所述第一功能;响应于对所述第一电子设备的选择操作,向所述服务器发送第一连接建立请求;The system according to claim 15, wherein the electronic device is configured to respond to the first electronic device being dragged to a target device group, and if the target device group includes a third electronic device, for the Any second electronic device in the target device group displays the priority of the first electronic device and the third electronic device, the priority is used to indicate the capability of the first function, and the third electronic device Both the 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;
    所述服务器用于接收所述第一连接建立请求,基于所述第一连接建立请求控制所述第一电子设备和所述至少一个第二电子设备建立连接;The server is configured 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 configured to send a first connection disconnection request to the server;
    所述服务器用于接收所述第一连接断开请求,基于所述第一连接断开请求控制所述至少一个第二电子设备与所述第三电子设备断开连接。The server is configured 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. 根据权利要求17所述的系统,其中,所述电子设备还用于响应于对所述第三电子设备的选择操作,不将所述第一电子设备加入所述目标设备组。The system according to claim 17, wherein the electronic device is further configured to not add the first electronic device to the target device group in response to a selection operation on the third electronic device.
  19. 根据权利要求17所述的系统,其中,所述电子设备还用于确定所述目标设备组中的任一第二电子设备对应的目标路径数量,所述目标路径数量表示用于实现所述第一功能的电子设备的最大数量;响应于所述第三电子设备的数量等于所述目标路径数量,执行显示所述第一电子设备和所述第三电子设备的优先级的步骤;响应于所述第三电子设备的数量小于所述目标路径数量,向所述服务器发送第二连接;The system according to claim 17, wherein the electronic device is further configured to determine the number of target paths corresponding to any second electronic device in the target device group, and the number of target paths indicates the number of paths used to achieve the first a maximum number of electronic devices of a function; in response to the number of said third electronic devices being equal to said target path number, performing the step of displaying the priorities of said first electronic device and said third electronic device; in response to said If the number of the third electronic devices is less than the number of target paths, send a second connection 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. 根据权利要求15所述的系统,其中,所述电子设备用于响应于第一电子设备被拖拽至目标设备组,对于所述目标设备组中的任一第二电子设备,在所述目标设备组中的任一第二电子设备的第二功能与所述第一电子设备的第三功能匹配的情况下,向所述服务器发送第三同连接建立请求;The system according to claim 15, wherein the electronic device is configured to respond to the first electronic device being dragged to a target device group, and for any second electronic device in the target device group, in the target When the second function of any second electronic device in the device group matches the third function of the first electronic device, sending a third connection establishment request to the server;
    所述服务器用于接收所述第三连接建立请求,基于所述第三连接建立请求控制所述第一电子设备与所述第二电子设备建立连接。The server is configured 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. 根据权利要求15所述的系统,其中,所述电子设备还用于响应于所述目标设备组中第四电子设备被拖拽出所述目标设备组,向所述同服务器发送第二连接断开请求;The system according to claim 15, wherein the electronic device is further configured to, in response to the fourth electronic device in the target device group being dragged out of the target device group, send a second disconnection message to the peer server. open request;
    所述服务器还用于接收所述第二连接断开请求,基于所述第二连接断开请求控制所述第四电子设备与所述目标设备组内的其他电子设备断开连接。The server is further configured to receive the second disconnection request, and control the fourth electronic device to disconnect from other electronic devices in the target device group based on the second disconnection request.
  22. 根据权利要求15所述的系统,其中,所述电子设备还用于响应于所述第一电子设备的原设备组中还包括其他电子设备,向所述服务器发送第三连接断开请求;The system according to claim 15, wherein the electronic device is further configured to send a third disconnection request to the server in response to other electronic devices being included in the original device group of the first electronic device;
    所述服务器还用于接收所述第三连接断开请求,基于所述第三连接断开请求控制所述第一电子设备与所述原设备组中电子设备断开连接。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. 根据权利要求15-22任一项所述的系统,其中,所述电子设备还用向所述服务器发送状态同步请求,所述状态同步请求包括目标账号;The system according to any one of claims 15-22, wherein the electronic device is further configured to send a status synchronization request to the server, and the status synchronization request includes a target account;
    所述服务器还用于接收所述状态同步请求,基于所述目标账号,获取所述目标账号对应的多个电子设备的连接状态,向所述电子设备发送所述多个电子设备的连接状态;The server is further configured to receive the state synchronization request, obtain the connection states of multiple electronic devices corresponding to the target account based on the target account, and send the connection states of the multiple electronic devices to the electronic device;
    所述电子设备还用于接收所述服务器发送的多个电子设备的连接状态,基于所述多个电子设备的连接状态,确定所述多个设备组。The electronic device is further configured to receive the connection statuses of the multiple electronic devices sent by the server, and determine the multiple device groups based on the connection statuses of the multiple electronic devices.
  24. 一种多设备连接装置,所述装置用于电子设备,所述电子设备为多设备连接系统中的任一电子设备,所述装置包括:A multi-device connection device, the device is used for an electronic device, the electronic device is any electronic device in a multi-device connection system, and the device includes:
    显示模块,用于在连接管理界面显示多个设备组,每个设备组包括至少一个电子设备,所述设备组用于表示电子设备的连接状态;A display module, configured 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 represent the connection status of the electronic device;
    发送模块,用于响应于第一电子设备被拖拽至目标设备组,向服务器发送连接建立请求,以指示所述第一电子设备与所述目标设备组内的至少一个第二电子设备建立连接,所述服务器用于管理电子设备之间的连接关系。A sending module, configured to send a connection establishment request to a server in response to the first electronic device being dragged to the 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.
  25. 一种多设备连接装置,所述装置用于服务器,所述装置包括:A multi-device connection device, the device is used for a server, the device includes:
    接收模块,用于接收多设备连接系统中的任一电子设备发送的连接建立请求,所述连接建立请求用于指示第一电子设备与至少一个第二电子设备建立连接,所述第一电子设备为电子设备中被拖拽的电子设备,所述至少一个第二电子设备为所述第一电子设备被拖拽至的目标设备组中的电子设备;A receiving module, configured to receive a connection establishment request sent by any electronic device in the multi-device connection system, the connection establishment request is used to instruct the first electronic device to establish a connection with at least one second electronic device, and 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;
    控制模块,用于基于所述连接建立请求,控制所述第一电子设备和所述第二电子设备建立连接。A control module, configured to control the first electronic device to establish a connection with the second electronic device based on the connection establishment request.
  26. 一种电子设备,所述电子设备包括处理器和存储器;所述存储器存储有至少一条程序代码,所述至少一条程序代码用于被所述处理器执行以实现如权利要求1至10任一项所述的多设备连接方法。An electronic device, the electronic device 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 realize any one of claims 1 to 10 The multi-device connection method described above.
  27. 一种服务器,所述服务器包括处理器和存储器;所述存储器存储有至少一条程序代码,所述至少一条程序代码用于被所述处理器执行以实现如权利要求11至14任一项所述的多设备连接方法。A server, 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 described method according to any one of claims 11 to 14 multi-device connection method.
  28. 一种计算机可读存储介质,所述计算机可读存储介质存储有至少一条程序代码,所述至少一条程序代码用于被处理器执行以实现如权利要求1至10任一项所述的多设备连接方法;或者,所述至少一条程序代码用于被处理器执行以实现如权利要求11至14任一项所述的多设备连接方法。A computer-readable storage medium, 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 realize the multi-device according to any one of claims 1 to 10 A connection method; or, the at least one program code is used to be executed by a processor to implement the multi-device connection method according to any one of claims 11 to 14.
  29. 一种计算机程序产品,所述计算机程序产品存储有至少一条程序代码,所述至少一条程序代码由处理器加载并执行以实现如权利要求1至10任一项所述的多设备连接方法;或者,所述至少一条程序代码由处理器加载并执行以实现如权利要求11至14任一项所述的多设备连接方法。A computer program product, 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 realize the multi-device connection method according to 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 according to any one of claims 11 to 14.
PCT/CN2022/140772 2021-12-29 2022-12-21 Multi-device connection method, apparatus and system, and device and storage medium WO2023125205A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111641476.XA CN114422566A (en) 2021-12-29 2021-12-29 Multi-device connection method, device, system, device and storage medium
CN202111641476.X 2021-12-29

Publications (1)

Publication Number Publication Date
WO2023125205A1 true WO2023125205A1 (en) 2023-07-06

Family

ID=81269495

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/140772 WO2023125205A1 (en) 2021-12-29 2022-12-21 Multi-device connection method, apparatus and system, and device and storage medium

Country Status (2)

Country Link
CN (1) CN114422566A (en)
WO (1) WO2023125205A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422566A (en) * 2021-12-29 2022-04-29 Oppo广东移动通信有限公司 Multi-device connection method, device, system, device and storage medium
WO2023240559A1 (en) * 2022-06-16 2023-12-21 北京小米移动软件有限公司 Cross-device network management method and apparatus, and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090235174A1 (en) * 2008-03-17 2009-09-17 Microsoft Corporation Virtualization of Groups of Devices
CN103959737A (en) * 2011-09-30 2014-07-30 三星电子株式会社 Group-wise device management system and method
CN105607499A (en) * 2016-01-05 2016-05-25 北京小米移动软件有限公司 Equipment grouping method and apparatus
CN114422566A (en) * 2021-12-29 2022-04-29 Oppo广东移动通信有限公司 Multi-device connection method, device, system, device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113311975A (en) * 2020-02-27 2021-08-27 华为技术有限公司 Application interaction method among multiple devices and related devices
CN112286618A (en) * 2020-11-16 2021-01-29 Oppo广东移动通信有限公司 Device cooperation method, device, system, electronic device and storage medium
CN113316131B (en) * 2021-05-27 2023-07-07 Oppo广东移动通信有限公司 Connection establishment method, device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090235174A1 (en) * 2008-03-17 2009-09-17 Microsoft Corporation Virtualization of Groups of Devices
CN103959737A (en) * 2011-09-30 2014-07-30 三星电子株式会社 Group-wise device management system and method
CN105607499A (en) * 2016-01-05 2016-05-25 北京小米移动软件有限公司 Equipment grouping method and apparatus
CN114422566A (en) * 2021-12-29 2022-04-29 Oppo广东移动通信有限公司 Multi-device connection method, device, system, device and storage medium

Also Published As

Publication number Publication date
CN114422566A (en) 2022-04-29

Similar Documents

Publication Publication Date Title
US10715567B2 (en) Method and apparatus for providing state information
WO2023125205A1 (en) Multi-device connection method, apparatus and system, and device and storage medium
US9893934B2 (en) System and method of controlling surrounding devices, based on topology
US11757950B2 (en) Method and system for sharing an output device between multimedia devices to transmit and receive data
US9749282B2 (en) Electronic device and methods of updating and managing application status information in the electronic device
US20110222466A1 (en) Dynamically adjustable communications services and communications links
CN102325144A (en) Method and system for interconnection between media equipment and multimedia equipment
JP5928148B2 (en) Transmission management system, transmission system, and program for transmission management system
KR102043641B1 (en) Operating Method For Nearby Function and Electronic Device supporting the same
EP2849420B1 (en) Counterpart terminal information management system, method and carrier means
WO2023116311A1 (en) Data interaction method and apparatus, and device and storage medium
JP6184589B2 (en) Voice talk control method for portable terminal
CN110430383A (en) Terminal, signal server, audio/video communication method and computer storage medium
WO2018096849A1 (en) Information processing device, information processing method, and program
WO2022001423A1 (en) Interaction control method and apparatus, and terminal and storage medium
CA3224322A1 (en) Video playing method and apparatus, and storage medium
CN114885261A (en) Earphone assembly, wireless audio playing system and communication method thereof
CN112104649A (en) Multimedia interaction method and device, electronic equipment, server and storage medium
JP6245371B2 (en) Control system, communication terminal, communication system, control method, and program
US11451407B1 (en) Managing a user's meeting across multiple client computing devices
US20230029382A1 (en) Services over wireless communication with high flexibility and efficiency
JP6269835B2 (en) Control system, communication terminal, communication system, control method, and program
WO2014133228A1 (en) Message service system, and apparatus and method for message service
JP2016187181A (en) System, management system, and management method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22914459

Country of ref document: EP

Kind code of ref document: A1