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

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

Info

Publication number
CN114422566A
CN114422566A CN202111641476.XA CN202111641476A CN114422566A CN 114422566 A CN114422566 A CN 114422566A CN 202111641476 A CN202111641476 A CN 202111641476A CN 114422566 A CN114422566 A CN 114422566A
Authority
CN
China
Prior art keywords
electronic device
connection
electronic
target
server
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111641476.XA
Other languages
Chinese (zh)
Inventor
杨俊拯
何�轩
梁羽平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202111641476.XA priority Critical patent/CN114422566A/en
Publication of CN114422566A publication Critical patent/CN114422566A/en
Priority to PCT/CN2022/140772 priority patent/WO2023125205A1/en
Pending legal-status Critical Current

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application relates to a multi-device connection method, device, system, device and storage medium, and belongs to the technical field of terminals. The method comprises the following steps: displaying a plurality of equipment groups on a connection management interface, wherein each equipment group comprises at least one electronic equipment and is used for representing the connection state of the electronic equipment; and in response to the first electronic device being dragged to the target device group, sending a connection establishment request to a server to indicate the first electronic device to establish connection with at least one second electronic device in the target device group, wherein the server is used for managing the connection relationship between the electronic devices. Therefore, the central electronic equipment does not need to be arranged, and the connection is more flexible.

Description

Multi-device connection method, device, system, device and storage medium
Technical Field
The embodiment of the application relates to the technical field of terminals, in particular to a multi-device connection method, a multi-device connection device, a multi-device connection system, a multi-device connection device and a storage medium.
Background
With the development of terminal technology, the way of operating the electronic equipment by the user is more and more abundant. For example, by constructing device connections, it is achieved that one electronic device controls the other electronic devices.
In the related art, a data transmitting end generally transmits a connection establishment request to a data receiving end, and the data receiving end establishes a connection with the data transmitting end based on the connection establishment request. For example, when video data played on a mobile phone needs to be projected onto a television, the mobile phone may be connected to the television. The process of establishing connection between the mobile phone and the television is as follows: searching the television in the current local area network through the mobile phone, sending a connection establishment request to the searched television, realizing the establishment of the connection with the television, and projecting video data on the mobile phone to the television.
Disclosure of Invention
The embodiment of the application provides a multi-device connection method, a multi-device connection device, a multi-device connection system, a multi-device connection device and a storage medium, and can improve the flexibility of multi-device connection. The technical scheme is as follows:
in one aspect, a device connection method is provided, where the method is performed by any electronic device that logs in to the same account, and the method includes:
displaying a plurality of equipment groups on a connection management interface, wherein each equipment group comprises at least one electronic device and is used for representing the connection state of the electronic device;
the method comprises the steps of responding to the fact that a first electronic device is dragged to a target device group, sending a connection establishment request to a server to indicate the first electronic device to establish connection with at least one second electronic device in the target device group, wherein the server is used for managing the connection relation between the electronic devices.
In another aspect, a multi-device connection method is provided, the method being performed by a server, the method including:
receiving a connection establishment request sent by any electronic device in a multi-device connection system, wherein the connection establishment request is used for indicating a first electronic device to establish connection with at least one second electronic device, the first electronic device is a dragged electronic device in 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;
and controlling the first electronic equipment and the at least one second electronic equipment to establish connection based on the connection establishment request.
In another aspect, a multi-device connection system is provided, the system comprising a plurality of electronic devices and a server;
any one of the plurality of electronic devices is used for displaying a plurality of device groups on a connection management interface, each device group comprises at least one electronic device, and the device groups are used for representing the connection states of the electronic devices; responding to the first electronic equipment dragged to the target equipment group, and sending a connection establishment request to a server;
the server is configured to receive the connection establishment request, and control the first electronic device and at least one second electronic device in the target device group to establish a connection based on the connection establishment request.
In another aspect, an apparatus for multi-device connection is provided, where the apparatus is executed by an electronic device, and the electronic device is any one of electronic devices in a multi-device connection system, and the apparatus includes:
the display module is used for displaying a plurality of equipment groups on the connection management interface, each equipment group comprises at least one piece of electronic equipment, and the equipment groups are used for representing the connection state of the electronic equipment;
the sending module is used for responding to the fact that the first electronic equipment is dragged to the target equipment group, sending a connection establishment request to a server to indicate the first electronic equipment to establish connection with at least one second electronic equipment in the target equipment group, and the server is used for managing the connection relation between the electronic equipment.
In another aspect, there is provided a multi-device connection apparatus, the apparatus being executed by a server, the apparatus comprising:
a receiving module, configured to receive a connection establishment request sent by any electronic device in a multi-device connection system, where the connection establishment request is used to indicate that a first electronic device is connected to at least one second electronic device, the first electronic device is a dragged electronic device in 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;
and the control module is used for controlling the first electronic equipment and the second electronic equipment to establish connection based on the connection establishment request.
In another aspect, an electronic device is provided, the electronic device comprising a processor and a memory; the memory stores at least one program code for execution by the processor to implement the multi-device connection method as described in the above aspect.
In another aspect, a server is provided, the server comprising a processor and a memory; the memory stores at least one program code for execution by the processor to implement the multi-device connection method as described in the above aspect.
In another aspect, a computer-readable storage medium is provided, which stores at least one program code for execution by a processor to implement the multi-device connecting method as described in the above aspect.
In another aspect, a computer program product is provided, which stores at least one program code, which is loaded and executed by a processor to implement the multi-device connecting method according to the above aspect.
In the embodiment of the application, the connection management interface is displayed, and the plurality of equipment groups used for representing the connection state are displayed in the connection management interface, so that the purpose of changing the connection state of the electronic equipment is realized by dragging the first electronic equipment to the target equipment group, the central electronic equipment does not need to be arranged, and the connection is more flexible.
Drawings
Fig. 1 is a schematic diagram of an implementation environment related to a multi-device connection method according to an exemplary embodiment of the present application;
FIG. 2 illustrates a flow chart of a multi-device connection method shown in an exemplary embodiment of the present application;
FIG. 3 illustrates a schematic diagram of a connection management interface shown in an exemplary embodiment of the present application;
FIG. 4 illustrates a schematic diagram of a connection management interface shown in an exemplary embodiment of the present application;
FIG. 5 illustrates a schematic diagram of a connection management interface shown in an exemplary embodiment of the present application;
FIG. 6 illustrates a flow chart of a multi-device connection method shown in an exemplary embodiment of the present application;
FIG. 7 illustrates a schematic diagram of a connection management interface shown in an exemplary embodiment of the present application;
FIG. 8 illustrates a flow chart of a multi-device connection method shown in an exemplary embodiment of the present application;
FIG. 9 illustrates a flow chart of a multi-device connection method shown in an exemplary embodiment of the present application;
FIG. 10 illustrates a flow chart of a multi-device connection method shown in an exemplary embodiment of the present application;
FIG. 11 illustrates a flow chart of a multi-device connection method shown in an exemplary embodiment of the present application;
FIG. 12 illustrates a flow chart of a multi-device connection method shown in an exemplary embodiment of the present application;
FIG. 13 illustrates a flow chart of a multi-device connection method shown in an exemplary embodiment of the present application;
FIG. 14 illustrates a flow chart of a multi-device connection method shown in an exemplary embodiment of the present application;
FIG. 15 illustrates a flow chart of a multi-device connection method shown in an exemplary embodiment of the present application;
FIG. 16 illustrates a flow chart of a multi-device connection method shown in an exemplary embodiment of the present application;
FIG. 17 illustrates a block diagram of a multi-device connection apparatus shown in an exemplary embodiment of the present application;
FIG. 18 illustrates a block diagram of a multi-device connection apparatus shown in an exemplary embodiment of the present application;
FIG. 19 illustrates a block diagram of an electronic device shown in an exemplary embodiment of the present application;
fig. 20 is a block diagram illustrating a server according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Reference herein to "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. The information such as the target account and the device identifier related in the embodiment of the present application may be information sufficiently authorized by the user or by each party.
Referring to fig. 1, a schematic diagram of an implementation environment related to a multi-device connection method according to an exemplary embodiment of the present application is shown. Referring to fig. 1, the implementation environment includes: electronic device 10 and server 20. The electronic device 10 is any one of a plurality of electronic devices that log in to the same account. The electronic device 10 and the server 20 are connected via a network.
In the embodiment of the present application, a target application is installed in the electronic device 10, and the server 20 is a background server of the target application. The electronic device 10 is configured to log in the backend server through the target application, and establish a connection with another electronic device installed with the target application through the backend server. The target application is used for sending an account number for logging in the electronic device 10 to the server 20, and associating the electronic devices in the target application based on the server 20 so as to control connection between the electronic devices.
After the connection between the electronic devices is established, the electronic device 10 may transmit data corresponding to the function to the electronic device 10 based on the function of the connected electronic device 10, so as to process or display the data through the connected electronic device 10. For example, the electronic device 10 is a mobile phone and a television, and since the television has a function of playing video data and audio data, after the mobile phone and the television are connected, the mobile phone sends both the video data and the audio data to the television, and the video data and the audio data are played through the television.
The electronic device 10 may be a mobile phone, a tablet computer, a computer with a wireless communication function, or a wearable device, a home device, or the like. The server 20 may be at least one of a server, a server cluster composed of a plurality of servers, a cloud server, a cloud computing platform, and a virtualization center. In the embodiments of the present application, this is not particularly limited.
It should be noted that, when a first electronic device is dragged into a target device group, at least one second electronic device capable of establishing a connection with the first electronic device exists in the target device group. Accordingly, the electronic device traverses the electronic devices in the target device group, thereby determining the at least one second electronic device. For the sake of understanding, the following description will be made by taking an example in which the first electronic device establishes a connection with one second electronic device in the target device group.
Referring to fig. 2, a flowchart of a multi-device connection method according to an exemplary embodiment of the present application is shown, the method including the following steps:
step S201: the electronic equipment displays a plurality of equipment groups on a connection management interface, each equipment group comprises at least one electronic equipment, and the equipment groups are used for representing the connection state of the electronic equipment.
The connection management interface may be an interface of the target application. The connection management interface is used for displaying a plurality of device groups.
The connection status includes established and non-established connections. In the embodiment of the application, the electronic device can display the plurality of device groups in different display states. Correspondingly, the electronic equipment displays a device group comprising at least two electronic equipment in a first display state, wherein the first display state indicates that the connection between the at least two electronic equipment is established; the device group including only one electronic device is displayed in a second display state indicating that the one electronic device is in a non-connection established state.
The first display state and the second display state are set as needed, and this is not particularly limited in the embodiment of the present application. For example, the first display state is a color display state, and the second display state is a gray scale display state.
In the embodiment of the application, the device groups with different connection states are displayed in different display states, so that a user can more intuitively know the connection state of the electronic devices in each device group.
In addition, each device group may be displayed in the form of a display frame. Accordingly, at least one electronic device of the device group is displayed in the same display frame.
In some embodiments, the electronic device displays all electronic devices of the device group in each display box. In the embodiment of the application, the user can determine the number of the electronic devices in the device group by displaying the electronic devices in the frame, so as to determine whether the electronic devices have established connection, and thus, the user can more intuitively know the electronic devices in each device group.
For example, referring to fig. 3, if the display frame in which the device identifier a is located only includes the electronic device a, the electronic device a does not establish a connection with another electronic device. If the electronic device B and the electronic device C are in the same display frame, it indicates that the connection between the electronic device B and the electronic device C is 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 application, each display frame only displays the electronic equipment in the equipment group, so that the area occupied by the display frame in the connection management interface is saved.
For example, referring to fig. 4, the electronic device a is displayed in the display frame, and if the click operation on the display frame is received and the electronic device B is included in the device group corresponding to the display frame, the electronic device a and the electronic device B are expanded and displayed in the display frame.
It should be noted that the electronic device currently displaying the connection management interface may be any one of a plurality of electronic devices capable of establishing a connection, which has a display function. In the embodiment of the present application, the electronic device is not particularly limited.
Another point to be noted is that only some of the electronic devices corresponding to the same account may be in a state where connection can be established. For example, there may be a plurality of electronic devices in which the electronic device may not currently log in to the target application, is currently in a power-off state, or is full of established connection paths, etc. In these cases, the electronic device cannot establish a connection with other electronic devices.
In some embodiments, the electronic device currently in a non-establishable connection is not displayed in the connection management interface. For example, electronic devices corresponding to the same account include: electronic device a, electronic device B, electronic device C, and electronic device D. If the account is not currently logged in the electronic device a and the electronic device B is currently in a power-off state, only the device group of the electronic device C and the device group of the electronic device D are displayed in the connection management interface.
In some embodiments, all electronic devices corresponding to the account are displayed in the connection management interface. The electronic equipment which is not connected currently is displayed in a special display form. For example, the electronic device currently in a connection that cannot be established is displayed in a grayscale form. For example, electronic devices corresponding to the same account include: electronic device a, electronic device B, electronic device C, and electronic device D. If the electronic device a is not currently logged in the account, and the electronic device B is currently in a power-off state, a device group of the electronic device a, the electronic device B, the electronic device C, and the electronic device D is displayed in the connection management interface, wherein the electronic device a and the electronic device B are displayed in a gray scale mode.
It should be noted that the electronic devices in the device group may be displayed through the device identifiers. The device identification may be a name, code, icon, or the like 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 a server to instruct the first electronic device to establish a connection with a second electronic device in the target device group, and the server is used for managing the connection between the electronic devices.
The dragging operation is a dragging operation triggered by a user in the connection management interface. The electronic equipment detects the long press operation triggered on the connection management interface, and switches the electronic equipment from the non-draggable state to the draggable state. In the draggable state, the electronic device displays a process of the first electronic device moving based on the drag operation.
In response to the currently dragged position of the first electronic device coinciding with the position of the target device group, the electronic device determines that the first electronic device is dragged to the target device group. 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, generates a connection establishment request based on the first electronic device and the second electronic device, and sends the connection establishment request to the server.
Step S203: the server receives a connection establishment request.
Step S204: the server controls the first electronic device and the second electronic device to establish connection based on the connection establishment request.
In this step, the server determines, based on the connection establishment request, a first electronic device and a second electronic device to be connected, and controls the first electronic device and the second electronic device to establish a connection.
The first electronic device and the second electronic device may be connected to establish a short-distance communication connection therebetween, or the server stores an association relationship between the first electronic device and the second electronic device, so that data is transmitted to the first electronic device and the second electronic device based on the association relationship during data transmission.
Accordingly, in some embodiments, the server sends a connection indication to the second electronic device, the connection indication carrying the device identifier of the first electronic device, the connection indication being used to indicate that the second electronic device establishes a short-range communication connection with the first electronic device. Or 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 for instructing the first electronic device to establish short-distance communication connection with the second electronic device. Or the server sends a connection instruction to the second electronic device, where the connection instruction carries the device identifier of the first electronic device, the connection instruction is used to instruct the second electronic device to establish short-range communication connection with the first electronic device, 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 short-range communication connection with the second electronic device. By the connection mode, rapid data transmission can be realized under the condition that the distance between the devices is small.
In some embodiments, the server stores an 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 the connection mode, the data transmission can be carried out by using the network accessed by the equipment, so that the rapid data transmission is realized.
The different establishing modes of the connection can be suitable for different network environments, so that the application range of the embodiment of the application is expanded.
It should be noted that, after the first electronic device establishes a connection with the second electronic device, the electronic device displays the first electronic device in the target device group. Accordingly, in some embodiments, an electronic device displays a first electronic device in a target device group when the first electronic device is dragged to the target device group. In some embodiments, when the electronic device is dragged to the target device group, the electronic device displays that the first electronic device and the second electronic device are in a connection establishment state, and in response to completion of connection establishment of 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.
It should be noted that, in response to that the original device group of the first electronic device further includes other electronic devices, a third disconnection request is sent to the server, where the third disconnection request is used to instruct to disconnect the first electronic device from the electronic devices in the original device group. Therefore, when the first electronic equipment realizes the functions, the corresponding functions can be realized only based on the data sent by one electronic equipment, and the first electronic equipment is prevented from receiving the data from a plurality of other electronic equipment.
In some embodiments, in response to the first electronic device further including other electronic devices in the original device group, the first electronic device maintains a connection with the other electronic devices in the original device group. Therefore, the first electronic equipment can be connected with the electronic equipment in the target equipment groups, so that the utilization rate of the first electronic equipment is improved, and the use scenes of the first electronic equipment are enriched.
In the embodiment of the application, the connection management interface is displayed, and the plurality of equipment groups used for representing the connection state are displayed in the connection management interface, so that the purpose of changing the connection state of the electronic equipment is realized by dragging the first electronic equipment to the target equipment group, the central electronic equipment does not need to be arranged, and the connection is more flexible.
In this embodiment of the application, any one of a plurality of device groups displayed in a connection management interface may be a target device group, and for each device group, the device group includes at least one electronic device, and in a case that the target device group includes one electronic device, the electronic device realizes, through steps S201 to S204, that the first electronic device is connected to a second electronic device in the target device group.
In a case where the target device group further includes other electronic devices, the electronic device determines whether to establish connection of the first electronic device and the second electronic device based on a function of a third electronic device in the target device group.
In case the function of the third electronic device is different from the function of the first electronic device, the first electronic device establishes a connection with the second electronic device through the above-mentioned steps S201 to S204. In the case where 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 the connection between the first electronic device and the second electronic device in the following several ways.
Referring to fig. 6, which shows a flowchart of a multi-device connection method according to an exemplary embodiment of the present application, in the embodiment of the present application, taking an example that a target device group includes a plurality of electronic devices as an example, the method includes the following steps:
step S601: the electronic equipment displays a plurality of equipment groups on a connection management interface, each equipment group comprises at least one electronic equipment, and the equipment groups are used for representing the connection state of the electronic equipment.
This step is the same as the principle of step S201, and is not described herein again.
Step S602: in response to the first electronic device being dragged to the target device group, the electronic device determines whether a third electronic device having the same function as the first electronic device exists among the plurality of electronic devices.
The first function is a function that can be realized by the first electronic device. For example, the first function is an audio playing function, a video playing function, a control function, and the like.
When the target device group comprises a plurality of electronic devices, the electronic device determines a second electronic device from a plurality of device identifiers of the target device group, wherein the second electronic device is a data sending end. For the other electronic devices of the plurality of electronic devices except the second electronic device, the electronic device performs step S603.
Step S603: and displaying the priority of the first electronic equipment and the priority of the third electronic equipment under the condition that the third electronic equipment is included in the target equipment group, wherein the priority is used for indicating the capability of the first function, and the third electronic equipment and the first electronic equipment both have the first function.
The priority of the electronic device corresponding to each function may be default to 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, where priorities corresponding to different electronic devices are displayed in the device priority configuration table. The user can input the corresponding priorities of different electronic devices under different functions in the device priority configuration table.
For example, a television may display a higher definition video than a tablet, and thus, the priority of playing the video may be set to be higher for the television than for the tablet. And the sound is more suitable for the playing of the audio than the mobile phone, so the priority of playing the audio can be set to be higher than that of the mobile phone.
The electronic equipment displays a selection interface, the priorities of the first electronic equipment and the third electronic equipment are displayed in the selection interface, and in response to selection operation for any one electronic equipment, the electronic equipment which is connected with the second electronic equipment is determined based on the electronic equipment corresponding to the selection operation.
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 indicate the first electronic device to establish connection with the second electronic device so as to execute the first function.
The selection operation may be a click operation on a device identification of the first electronic device, or the like.
The principle that the electronic device establishes the connection between the first electronic device and the second electronic device through the first connection establishment request instruction is the same as the principle that the electronic device establishes the connection between the first electronic device and the second electronic device through the connection establishment request instruction in step S202, and details are not 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 join the first electronic device in the target device group.
Step S605: the server receives a first connection establishment request.
The principle of this step is the same as that of step S203, and is not described herein again.
Step S606: the server controls the first electronic device and the second electronic device to establish connection based on the first connection establishment request.
The principle of this step is the same as that of step S204, and is not described herein again.
It should be noted that the electronic device displays the first electronic device in the target device group. The process is the same as the principle of displaying the first electronic device in the target device group by the electronic device in step S204, and is not described herein again.
In addition, in the case where the target device group further includes an electronic device for implementing another function, the electronic device further displays the other electronic device in the target device group. Referring to fig. 7, the target device group includes an electronic device a and an electronic device B, the connection management interface further includes an electronic device C and an electronic device D, the electronic device C is dragged to the target device group through a dragging operation, and a manner of displaying the plurality of electronic devices in the target electronic device is the same as a principle of displaying the plurality of electronic devices in the device group in step S201, which is not described herein again.
Another point to be noted is that, when the target device group further includes an electronic device for implementing another function, the second electronic device in the target device group transmits data of a type corresponding to the function to the plurality of electronic devices in the device group based on the functions corresponding to the different electronic devices, respectively.
In some embodiments, distributed services are provided in the second electronic device and the other electronic devices, and the second electronic device for sending data may send corresponding data to the distributed service proxy module of the other electronic device based on the distributed service call module corresponding to the distributed service. Referring to fig. 8, in a case that the second electronic device is connected to two electronic devices, where two other electronic devices are respectively used for playing video data and audio data, the second electronic device sends the video data and the audio data to the two other electronic devices based on the distributed service invoking module, and the other electronic devices receive the video data and the audio data through the service agent module.
It should be noted that the second electronic device may also send data of a corresponding type to other electronic devices through the server. Accordingly, the second electronic device sends data corresponding to the plurality of 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 equipment sends a first connection disconnection request to the server, wherein the first connection disconnection request is used for indicating that the second electronic equipment and the third electronic equipment are disconnected.
Wherein the first connection disconnection request includes device identifications of the second electronic device and the third electronic device. Accordingly, the electronic device generates a first connection and disconnection request based on the device identifiers of the second electronic device and the third electronic device, and sends the first connection and disconnection request to the server.
Step S608: the server receives a first connection disconnection request.
Step S609: and the server controls the second electronic equipment and the third electronic equipment to be disconnected 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 be disconnected.
In some embodiments, the server sends a disconnection indication to the second electronic device, the disconnection indication carrying the device identifier of the third electronic device, the disconnection indication instructing the second electronic device to disconnect the short-range communication connection from the third electronic device. Or the server sends a disconnection instruction to the third electronic device, wherein the disconnection instruction carries the device identifier of the second electronic device, and the disconnection instruction is used for instructing the third electronic device to disconnect the short-distance communication connection with the second electronic device. In some embodiments, the server deletes the stored association relationship between the second electronic device and the third electronic device. Therefore, the first electronic device and the third electronic device are prevented from achieving the same function corresponding to the second electronic device, and mutual influence among devices caused by the fact that the same function is achieved through a plurality of devices is prevented.
In the embodiment of the application, the priority of the first function of the first electronic device and the priority of the first function of the third electronic device are displayed to a user, so that the user can select the electronic device connected with the second electronic device from the first electronic device and the third electronic device based on the priority of the first function, and thus, a basis is provided for the user to select the connected electronic device, and the second electronic device can be connected with the electronic device with higher priority.
It should be noted that the sequence of steps S604 to S606 and steps S607 to S609 may be set as needed, and in this embodiment, the sequence of steps S604 to S606 and steps S607 to S609 is not specifically limited.
In the embodiment of the application, the connection management interface is displayed, and the plurality of equipment groups used for representing the connection state are displayed in the connection management interface, so that the purpose of changing the connection state of the electronic equipment is realized by dragging the first electronic equipment to the target equipment group, the central electronic equipment does not need to be arranged, and the connection is more flexible.
In the embodiment of the application, the electronic device can also automatically select the electronic device with high priority to establish connection based on the priorities of the first electronic device and the third electronic device. Referring to fig. 9, which shows a flowchart of a multi-device connection method according to an exemplary embodiment of the present application, in the embodiment of the present application, taking an example that an electronic device automatically selects an electronic device to establish a connection based on priority, the method includes the following steps:
step S901: the electronic equipment displays a plurality of equipment groups on a connection management interface, each equipment group comprises at least one electronic equipment, and the equipment groups are used for representing the connection state of the electronic equipment.
This step is the same as the principle of step S201, and is not described herein again.
Step S902: in response to the first electronic device being dragged to the target device group, the electronic device determines whether a third electronic device having the same function as the first electronic device exists among the plurality of electronic devices.
The principle of this step is the same as that of step S602, and is not described herein again.
Step S903: in a case where a third electronic device is included in the target device group, the electronic device determines priorities of the first electronic device and the third electronic device.
The principle of this step is the same as that of the electronic device determining the priorities of the first electronic device and the third electronic device in step S603, and details are not repeated here.
Step S904: and under the condition that the priority of the first electronic equipment is higher than that of the third electronic equipment, the electronic equipment sends a first connection establishment request to the server to indicate the first electronic equipment to establish connection with the second electronic equipment so as to execute the first function.
This step is the same as the principle of establishing the connection based on the first connection establishment request in step S604, and is not described herein again.
In addition, it should be noted that, in a case where 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 join the first electronic device in the target device group.
Step S905: the server receives a first connection establishment request.
The principle of this step is the same as that of step S203, and is not described herein again.
Step S906: the server controls the first electronic device and the second electronic device to establish connection based on the first connection establishment request.
The principle of this step is the same as that of step S204, and is not described herein again.
Step S907: the electronic equipment sends a first connection disconnection request to the server, wherein the first connection disconnection request is used for indicating that the second electronic equipment and the third electronic equipment are disconnected.
The principle of this step is the same as that of step S607, and is not described herein again.
Step S908: the server receives a first connection disconnection request.
The principle of this step is the same as that of step S608, and is not described herein again.
Step S909: and the server controls the second electronic equipment and the third electronic equipment to be disconnected based on the first connection disconnection request.
This step is the same as the principle of step S609, and is not described herein again.
In the embodiment of the application, the electronic device automatically selects the electronic device with higher priority from the first electronic device and the third electronic device according to the priority, so that the electronic device with higher priority can be selected to realize the first function, and the quality of realizing the first function is ensured.
In the embodiment of the application, the connection management interface is displayed, and the plurality of equipment groups used for representing the connection state are displayed in the connection management interface, so that the connection state of the electronic equipment is changed by dragging the first electronic equipment to the target equipment group, the central electronic equipment does not need to be arranged, and the connection is more flexible.
In this embodiment of the application, in a case that the target electronic device further includes other electronic devices, the electronic device may further determine whether to establish a connection between the first electronic device and the second electronic device in combination with a maximum number of electronic devices corresponding to the second electronic device and used for implementing the first function. Referring to fig. 10, a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application is shown, the method comprising the steps of:
step S1001: the electronic equipment displays a plurality of equipment groups on a connection management interface, each equipment group comprises at least one electronic equipment, and the equipment groups are used for representing the connection state of the electronic equipment.
This step is the same as the principle of step S201, and is not described herein again.
Step 1002: the electronic device, in response to the first electronic device being dragged to a target device group, determines a target path number corresponding to the second electronic device when a third electronic device is included in the target device group, where the target path number represents a maximum number of electronic devices for implementing the first function.
The target path number may be default to 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, in which the number of target paths corresponding to different functions is displayed. The user can input the target path number corresponding to different functions in the path constraint table.
For example, the first function is an audio playing function, and in order to prevent the playing audio of the electronic devices from interfering with each other, the maximum number of devices of the audio playing function is generally set to 1. For example, if the first function is a video playing function, and videos are played on a plurality of electronic devices, there is no interference between the electronic devices, and therefore, the number of the 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 without limitation.
The electronic device may store the maximum number of devices corresponding to each function locally. The electronic device may also determine a maximum number of devices for each function based on the server, and so on. In the embodiments of the present application, this is not particularly limited.
Step S1003: the electronic device determines a number of third electronic devices.
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.
Step S1004: the electronic device compares the number of the third electronic devices with the number of the target paths.
Step S1005: in response to the number of the third electronic devices being less than the target path number, the electronic devices send a second connection establishment request to the server to instruct the first electronic device to establish a connection with the second electronic device to execute the first function.
This step is the same as the principle of establishing the connection based on the first connection establishment request in step S604, and is not described herein again.
Step S1006: the server receives a second connection establishment request.
The principle of this step is the same as that of step S203, and is not described herein again.
Step S1007: the server controls the first electronic device and the second electronic device to establish connection based on the second connection establishment request.
The principle of this step is the same as that of step S204, and is not described herein again.
In the embodiment of the application, under the condition that the number of the target paths corresponding to the second electronic device is smaller than the number of the currently connected third electronic devices, the electronic devices control the first electronic device and the second electronic device to establish connection, so that the functions of the second electronic device can be realized by a plurality of electronic devices, and the application scenarios of the connection are enriched.
In the embodiment of the application, the connection management interface is displayed, and the plurality of equipment groups used for representing the connection state are displayed in the connection management interface, so that the connection state of the electronic equipment is changed by dragging the first electronic equipment to the target equipment group, the central electronic equipment does not need to be arranged, and the connection is more flexible.
In this embodiment, in response to the number of the third electronic devices being equal to the target path number, the electronic device may maintain the connection of the first electronic device with the plurality of third electronic devices without joining the first electronic device to the target device group. The electronic device may also determine whether to establish a connection between the first electronic device and the second electronic device based on the priorities of the first electronic device and the plurality of third electronic devices. Referring to fig. 11, a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application is shown, the method comprising the steps of:
step S1101: the electronic equipment displays a plurality of equipment groups on a connection management interface, each equipment group comprises at least one electronic equipment, and the equipment groups are used for representing the connection state of the electronic equipment.
This step is the same as the principle of step S201, and is not described herein again.
Step S1102: the electronic device, in response to the first electronic device being dragged to a target device group, determines a target path number corresponding to the second electronic device when a third electronic device is included in the target device group, where the target path number represents a maximum number of electronic devices for implementing the first function.
The principle of this step is the same as that of step S1002, and is not described herein again.
Step S1103: the electronic device determines a number of third electronic devices.
This step is the same as the principle of step S1003, and is not described herein again.
Step S1104: the electronic device compares the number of the third electronic devices with the number of the target paths.
This step is the same as the principle of step S1004, and is not described herein again.
Step S1105: in response to the number of third electronic devices being equal to the target number of paths, the electronic device determines priorities of the first electronic device and a plurality of third electronic devices.
The principle of this step is the same as that of the electronic device determining the priorities of the first electronic device and the third electronic device in step S602, and is not described herein again.
Step S1106: and under the condition that the priority of the first electronic equipment is higher than that of the third electronic equipment with the lowest priority, the electronic equipment sends a second connection establishment request to the server so that the first electronic equipment and the second electronic equipment can be connected to execute the first function.
In this step, referring to fig. 12, the electronic device determines a third electronic device having the lowest priority from among the plurality of electronic devices, compares the priority of the third electronic device having the lowest priority with the priority of the first electronic device, and in the case where the priority of the fourth electronic device having the lowest priority is higher than the priority of the first electronic device, the electronic device maintains the connection in the target device group without adding the first electronic device to the target device group.
This step is the same as the principle of establishing the connection based on the first connection establishment request in step S604, and is not described herein again.
Step S1107: the server receives a second connection establishment request.
The principle of this step is the same as that of step S203, and is not described herein again.
Step S1108: the server controls the first electronic device and the second electronic device to establish connection based on the second connection establishment request.
The principle of this step is the same as that of step S204, and is not described herein again.
Step S1109: the electronic equipment sends a first connection disconnection request to the server, wherein the first connection disconnection request is used for indicating that the second electronic equipment and the third electronic equipment are disconnected.
The principle of this step is the same as that of step S607, and is not described herein again.
Step S1110: the server receives a first connection disconnection request.
The principle of this step is the same as that of step S608, and is not described herein again.
Step S1111: and the server controls the second electronic equipment and the third electronic equipment to be disconnected based on the first connection disconnection request.
This step is the same as the principle of step S609, and is not described herein again.
In the embodiment of the application, the electronic device connected with the second electronic device is determined by combining the number of the target paths corresponding to the second electronic device and the priority of the electronic device, so that the electronic device with higher priority is selected from the plurality of electronic devices, and the quality of realizing the function of the second electronic device is ensured.
In the embodiment of the application, the connection management interface is displayed, and the plurality of equipment groups used for representing the connection state are displayed in the connection management interface, so that the connection state of the electronic equipment is changed by dragging the first electronic equipment to the target equipment group, the central electronic equipment does not need to be arranged, and the connection is more flexible.
In the embodiment of the present application, the electronic device is further capable of controlling the first electronic device to connect with a second electronic device with a function matched with that in the target device group, referring to fig. 13, which shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application, the method includes the following steps:
step S1301: the electronic equipment displays a plurality of equipment groups on a connection management interface, each equipment group comprises at least one electronic equipment, and the equipment groups are used for representing the connection state of the electronic equipment.
This step is the same as the principle of step S201, and is not described herein again.
Step S1302: in response to the first electronic device being dragged to the target device group, the electronic device sends a third connection establishment request to the server to instruct the first electronic device to establish a connection with the second electronic device to execute the second function when the second function of the second electronic device in the target device group is matched with the third function of the first electronic device.
In the embodiment of the application, the electronic device determines a third function of the first electronic device and a second function of the plurality of electronic devices of the target device group, determines a second electronic device with the second function matching the third function from the plurality of electronic devices, and 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 television, where the mobile phone sends video data and audio data to the television, the first electronic device is a bluetooth headset, the electronic device determines that the third function of the bluetooth headset is an audio playing function, and the electronic device that currently implements the audio playing function is the television, and establishes a connection between the bluetooth headset and the television.
Step S1303: the server receives a third connection establishment request.
The principle of this step is the same as that of step S203, and is not described herein again.
Step S1304: the server controls the first electronic device and the second electronic device to establish connection based on the third connection establishment request.
The principle of this step is the same as that of step S204, and is not described herein again.
In the embodiment of the application, the first electronic device can establish connection with any electronic device in the target device group, which has the same function, so that the use scenarios of the embodiment of the application are enriched.
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: and the fourth electronic equipment sends the data corresponding to the multiple functions to the second electronic equipment, and the second electronic equipment displays the data based on the second function and other functions. After the first electronic device is added to the target device group, the data flow in the target device group is as follows: the fourth electronic device sends the data corresponding to the multiple functions to the second electronic device, and the second electronic device sends the data corresponding to the second function to the first electronic device, so that other functions of the second electronic device display other data, and the third function of the first electronic device displays the data corresponding to the second function.
For example, the data corresponding to the plurality of functions includes video data and audio data; the fourth electronic device is a mobile phone, the second electronic device is a television, and the first electronic device is a Bluetooth headset. Before the Bluetooth headset is added to the target device group, the mobile phone sends the video data and the audio data to the television, and the television plays the video data and the audio data. After the Bluetooth earphone is added to the target equipment group, the Bluetooth earphone is connected with the television, the mobile phone sends video data and audio data to the television, the television sends the audio data to the Bluetooth earphone, and therefore the television plays the video data and the Bluetooth earphone plays the audio data.
In the embodiment of the application, the connection management interface is displayed, and the plurality of equipment groups used for representing the connection state are displayed in the connection management interface, so that the purpose of changing the connection state of the electronic equipment is realized by dragging the first electronic equipment to the target equipment group, the central electronic equipment does not need to be arranged, and the connection is more flexible.
It should be noted that the above process may also be implemented by a server. Correspondingly, the server stores the target path number corresponding to the electronic equipment in the plurality of equipment groups. And under the condition that the target device group comprises a third electronic device, the electronic device sends the device identifications of the first electronic device and the second electronic device to the server, and the server executes the steps to establish the connection between the first electronic device and the second electronic device.
Therefore, whether the first electronic device and the second electronic device are controlled to be connected or not is determined through the server, the requirements on the electronic devices are reduced, and the universality of application scenes of the embodiment of the application is further improved.
In the embodiment of the present application, the drag operation performed on the electronic device can also trigger disconnection of the electronic device in the target cooperative device, and referring to fig. 14, which shows a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application, the method includes the following steps:
step S1401: the electronic equipment displays a plurality of equipment groups on a connection management interface, each equipment group comprises at least one electronic equipment, and the equipment groups are used for representing the connection state of the electronic equipment.
This step is the same as the principle of step S201, and is not described herein again.
Step S1402: and sending a second 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, wherein the second disconnection request is used for indicating that the connection between the fourth electronic device and other electronic devices in the target device group is disconnected.
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 detecting whether the first electronic device is dragged into the target device group by the electronic device in step S202, and details are not repeated herein.
The principle of the process of the electronic device requesting the server to control the fourth electronic device to disconnect from the other electronic devices in the target device group based on the second disconnection request is the same as that of the process of requesting disconnection in steps S607 to S609, and details are not described here.
Step S1403: and the electronic equipment displays other electronic equipment except the fourth electronic equipment in the target equipment group.
In this step, the electronic device displays the fourth electronic device in the new device group, and displays other electronic devices except the fourth electronic device in the target device group.
In the embodiment of the application, the connection management interface is displayed, and the plurality of equipment groups used for representing the connection state are displayed in the connection management interface, so that the connection state of the electronic equipment is changed by dragging the first electronic equipment to the target equipment group, the central electronic equipment does not need to be arranged, and the connection is more flexible.
It should be noted that, when the electronic device newly accesses the server, the electronic device may also request the server to synchronize the connection states of the current electronic devices. Referring to fig. 15, a flowchart of a multi-device connection method shown in an exemplary embodiment of the present application is shown, the method comprising the steps of:
step S1501: and the electronic equipment sends a state synchronization request to the server, wherein the connection state synchronization request comprises a target account.
The electronic equipment sends a synchronization request to the server when just accessing the server. The electronic device newly accessed to the server refers to the electronic device of the target application program for logging in the target account. The electronic device may log in the target account by inputting an 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 embodiments of the present application, this is not particularly limited.
Step S1502: the server receives a state synchronization request sent by the electronic equipment.
Step S1503: the server determines the connection states of the electronic devices corresponding to the target account.
A plurality of account numbers and electronic equipment corresponding to each account number are stored in the server. Referring to fig. 16, the server packages an account management module and a synchronization module, where the account management module stores a plurality of accounts and electronic devices corresponding to each account, and the account synchronization module stores a connection status of each electronic device. The synchronization module sends the received target account to the account management module, the account management module determines a plurality of electronic devices based on the account and sends the electronic devices to the synchronization module, and the synchronization module determines the connection states of the electronic devices.
Step S1504: and the server sends the connection states of the electronic equipment corresponding to the target account to the electronic equipment.
The server transmits the device identifications of the plurality of electronic devices and the connection state of each electronic device to the electronic devices.
Step S1505: the electronic equipment receives the connection states of the plurality of electronic equipment sent by the server.
Step S1506: the electronic device determines the plurality of device groups based on connection states of the plurality of electronic devices.
It should be noted that, after the connection state of any electronic device is changed, the server may also automatically send the updated connection state to the same account corresponding to the electronic device, so that the connection states stored in a plurality of electronic devices corresponding to the same account are consistent, thereby ensuring that the connection states of other electronic devices can be controlled on any electronic device.
In the embodiment of the application, the connection management interface is displayed, and the plurality of equipment groups used for representing the connection state are displayed in the connection management interface, so that the connection state of the electronic equipment is changed by dragging the first electronic equipment to the target equipment group, the central electronic equipment does not need to be arranged, and the connection is more flexible.
It should be noted that, in the case that the first electronic device establishes a connection with at least one second electronic device in the target device group, for each second electronic device, the connection with the first electronic device can be established through any of the above schemes, and details of this are not described in this embodiment of the application.
Referring to fig. 17, a block diagram of a multi-device connection apparatus according to an embodiment of the present application is shown. The multi-device connection means may be implemented as all or part of the processor in software, hardware or a combination of both. The device includes:
a display module 1701 for displaying a plurality of device groups on the connection management interface, each device group including at least one electronic device, the device group being used for representing a connection state of the electronic device;
a first sending module 1702, configured to send, in response to that a first electronic device is dragged to a target device group, a connection establishment request to a server to instruct the first electronic device to establish a connection with at least one second electronic device in the target device group, where the server is configured to manage a connection relationship between the electronic devices.
In some embodiments, the display module 1701 includes:
a first display unit configured to display a device group including at least two electronic devices in a first display state indicating that a connection has been established between the at least two electronic devices;
and the second display unit is used for displaying the equipment group only comprising one piece of electronic equipment in a second display state, and the second display state indicates that the electronic equipment is in a non-connection establishment state.
In some embodiments, the first sending module 1702 includes:
a third display unit, configured to, in response to a first electronic device being dragged to a target device group, display, for any second electronic device in the target device group, a priority of the first electronic device and a priority of a third electronic device in the target device group, where the priority is used to indicate a strength of a capability of a first function, the third electronic device is an electronic device in the target device group that has established a connection with the second electronic device, and the third electronic device and the first electronic device both have the first function;
a first sending unit, configured to send, in response to a selection operation on the first electronic device, a first connection establishment request to the server, where the first connection establishment request is used to instruct the first electronic device to establish a connection with the second electronic device so as to execute the first function;
the device also includes:
and the second sending module is used for sending a first connection disconnection request to the server, wherein the first connection disconnection request is used for indicating that the connection between the second electronic equipment and the third electronic equipment is disconnected.
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 a selection operation of the third electronic device.
In some embodiments, the first sending module 1702 includes:
a determining unit, configured to determine, for any second electronic device in the target device group, a target path number corresponding to the second electronic device in response to the first electronic device being dragged to the target device group, where the target device group includes a third electronic device, where the target path number indicates a maximum number of electronic devices for implementing the first function;
and the second sending unit is used for sending a second connection establishment request to the server in response to the fact that the number of the third electronic equipment is smaller than the target path number so as to indicate the first electronic equipment to establish connection with the second electronic equipment to execute the first function.
In some embodiments, the display module 1701 is further configured to not join the first electronic device to the target device group in response to the number of third electronic devices being equal to the target path number; or,
the third display unit is further used for responding to the fact that the number of the third electronic equipment is equal to the target path number, and displaying the priority of the first electronic equipment and the priority of the third electronic equipment.
In some embodiments, the first sending module 1702 includes:
a third sending unit, configured to, for any second electronic device in the target device group, send, in response to the first electronic device being dragged to the target device group, 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 when the second function of the second electronic device in the target device group matches the third function of the first electronic device.
In some embodiments, the apparatus further comprises:
a third sending module, configured to send a second connection disconnection request to the same server in response to that a fourth electronic device in the target device group is dragged out of the target device group, where the second connection disconnection request is used to instruct to disconnect the fourth electronic device from 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.
In some embodiments, the apparatus further comprises:
a fourth sending module, configured to send, in response to that the original device group of the first electronic device further includes other electronic devices, a third disconnection request to the server, where the third disconnection request is used to instruct to disconnect the first electronic device from the electronic devices in the original device group; or,
and the maintaining module is used for responding to the original equipment group of the first electronic equipment and also comprises other electronic equipment, and maintaining the connection between the first electronic equipment and the other electronic equipment in the original equipment group.
In some embodiments, the apparatus further comprises:
a fifth sending module, configured to send a state synchronization request to the server, where the connection state synchronization request includes a target account, and the state synchronization request is used to request the server to return connection states of multiple electronic devices corresponding to the target account;
the first receiving module is used for receiving the connection states of the plurality of electronic devices sent by the server;
a determining module to determine the plurality of device groups based on connection states of the plurality of electronic devices.
In the embodiment of the application, the connection management interface is displayed, and the plurality of equipment groups used for representing the connection state are displayed in the connection management interface, so that the connection state of the electronic equipment is changed by dragging the first electronic equipment to the target equipment group, the central electronic equipment does not need to be arranged, and the connection is more flexible.
Referring to fig. 18, a block diagram of a multi-device connection apparatus according to an embodiment of the present application is shown. The multi-device connection means may be implemented as all or part of the processor in software, hardware or a combination of both. The device includes:
a second receiving module 1801, configured to receive a connection establishment request sent by any electronic device in the multi-device connection system, where the connection establishment request is used to indicate that a first electronic device is connected to a second electronic device, where the first electronic device is an electronic device dragged in the electronic devices, and the second electronic device is an electronic device in a target device group to which the first electronic device is dragged;
a first control module 1802, configured to control the first electronic device and the second electronic device to establish a connection based on the connection establishment request.
In some embodiments, the apparatus further comprises:
a third receiving module, configured to receive a disconnection request sent by the electronic device;
and the second control module is used for controlling the electronic equipment in the target equipment group to disconnect based on the disconnection request.
In some embodiments, the apparatus further comprises:
a fourth receiving module, configured to receive a status synchronization request sent by the electronic device, where the status synchronization request carries a target account;
the acquisition module is used for acquiring the connection states of a plurality of electronic devices corresponding to the target account;
and the sixth sending module is used for sending the connection states of the plurality of electronic devices to the electronic devices.
In some embodiments, the first control module 1802 includes:
a fourth sending unit, configured to send a connection instruction to the second electronic device, where the connection instruction carries a device identifier of the first electronic device, and the connection instruction is used to instruct the second electronic device to establish short-range communication connection with the first electronic device; or,
and the storage unit is used for storing the association relationship between the first electronic equipment and the second electronic equipment, responding to the received data sent by the second electronic equipment, and sending the data to the first electronic equipment based on the association relationship.
In the embodiment of the application, the connection management interface is displayed, and the plurality of equipment groups used for representing the connection state are displayed in the connection management interface, so that the connection state of the electronic equipment is changed by dragging the first electronic equipment to the target equipment group, the central electronic equipment does not need to be arranged, and the connection is more flexible.
Referring to fig. 19, a block diagram of an electronic device 1900 according to an exemplary embodiment of the disclosure is shown. The electronic device 1900 may be a terminal having an image processing function, such as a smartphone or a tablet computer. The electronic device 1900 in the present application may include one or more of the following components: a processor 1910, a memory 1920, a communication module 1930.
Processor 1910 may include one or more processing cores. The processor 1910 connects various portions throughout the electronic device 1900 using various interfaces and lines, and performs various functions of the terminal 1000 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1920, as well as invoking data stored in the memory 1920. Alternatively, processor 1910 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). Processor 1910 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Neural-Network Processing Unit (NPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the NPU is used for realizing an Artificial Intelligence (AI) function; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 1910, but may be implemented by a single chip.
The Memory 1920 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1920 includes a non-transitory computer-readable medium. The memory 1920 may be used to store instructions, programs, code sets, or instruction sets. The memory 1920 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like; the storage data area may store data (e.g., audio data, a phonebook) created according to the use of the electronic device 1900, and the like.
The communication module 1930 is used for transmitting and receiving signals, and may be a Wireless Fidelity (WIFI) module or the like.
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, and through the touch function, a user may 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 typically disposed on the front panel of the electronic device 1900. The display screen may be designed as a full-face screen, curved screen, odd-shaped screen, double-face screen, or folding screen. The display screen may also be designed as a combination of a full screen and a curved screen, a combination of a special screen and a curved screen, and the like, which is not limited in this embodiment.
In addition, those skilled in the art will appreciate that the configuration of the electronic device 1900 illustrated in the above figures does not constitute a limitation of the electronic device 1900, and that the electronic device 1900 may include more or fewer components than illustrated, or some components may be combined, or a different arrangement of components. For example, the electronic device 1900 further includes a microphone, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a power supply, a bluetooth module, and other components, which are not described herein again.
Referring to fig. 20, a block diagram of a server 2000 according to an exemplary embodiment of the present application is shown. The server 2000 may be a first network device or a second network device. The server 2000 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 2010 and one or more memories 2020, where the memory 2020 stores at least one instruction, and the at least one instruction is loaded and executed by the processor 2010 to implement the cell switching method provided by the foregoing method embodiments. Of course, the server 2000 may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input and output, and the server 2000 may also include other components for implementing device functions, which are not described herein again.
The embodiment of the present application further provides a computer-readable medium, where at least one instruction is stored, and the at least one instruction is loaded and executed by the processor to implement the multi-device connection method as shown in the above embodiments.
The embodiment of the present application further provides a computer program product, where 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 as shown in the above embodiments.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented in 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 description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (29)

1. A device connection method is executed by any electronic device logging in the same account, and comprises the following steps:
displaying a plurality of equipment groups on a connection management interface, wherein each equipment group comprises at least one electronic device and is used for representing the connection state of the electronic device;
the method comprises the steps of responding to the fact that a first electronic device is dragged to a target device group, sending a connection establishment request to a server to indicate the first electronic device to establish connection with at least one second electronic device in the target device group, wherein the server is used for managing the connection relation between the electronic devices.
2. The method of claim 1, wherein displaying the plurality of 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;
displaying a device group including one electronic device in a second display state indicating that the one electronic device is in a non-connection established state.
3. The method of claim 1, wherein sending a connection establishment request to a server in response to the first electronic device being dragged to the target device group 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, displaying priorities of the first electronic device and a third electronic device in the target device group when the third electronic device is included in the target device group, where the priorities are used to indicate the strength of a first function, the third electronic device is an electronic device in the target device group that has established a connection with the second electronic device, and the third electronic device and the first electronic device both have the first function;
in response to a 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 execute the first function;
the method further comprises the following steps:
sending a first connection disconnection request to the server, wherein the first connection disconnection request is used for indicating that the connection between the at least one second electronic device and the third electronic device is disconnected.
4. The method of claim 3, further comprising:
and in response to the selection operation of the third electronic device, not controlling the first electronic device to establish connection with the at least one second electronic device.
5. The method of claim 3, wherein sending a connection establishment request to a server in response to the first electronic device being dragged to the target device group 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, determining a target path number corresponding to the second electronic device in the case that the target device group includes a third electronic device, where the target path number represents a maximum number of electronic devices for implementing the first function;
and responding to the number of the third electronic equipment smaller than the target path number, and sending a second connection establishment request to the server to indicate the first electronic equipment to establish connection with the second electronic equipment so as to execute the first function.
6. The method of claim 5, further comprising:
responsive to the number of third electronic devices being equal to the target number of paths, not joining the first electronic device to the target device group; or,
in response to the number of the third electronic devices being equal to the target number of paths, performing a step of displaying the priorities of the first electronic device and the third electronic devices.
7. The method of claim 1, wherein sending a connection establishment request to a server in response to the first electronic device being dragged to the target device group 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, 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 when the second function of the second electronic device matches the third function of the first electronic device.
8. The method of claim 1, further comprising:
and sending a second connection disconnection request to the same server in response to that a fourth electronic device in the target device group is dragged out of the target device group, wherein the second connection disconnection request is used for indicating that the connection between the fourth electronic device and other electronic devices in the target device group is disconnected.
9. The method of claim 1, further comprising:
responding to other electronic equipment in an original equipment group of the first electronic equipment, and sending a third disconnection request to the server, wherein the third disconnection request is used for indicating to disconnect the first electronic equipment from the electronic equipment in the original equipment group; or,
and responding to the original equipment group of the first electronic equipment also comprising other electronic equipment, and keeping the connection of the first electronic equipment and the other electronic equipment in the original equipment group.
10. The method of any of claims 1-9, wherein prior to said displaying a plurality of device groups at a connection management interface, the method further comprises:
sending a state synchronization request to the server, wherein the connection state synchronization request comprises a target account number, and the state synchronization request is used for requesting the server to return connection states of a plurality of electronic devices corresponding to the target account number;
receiving connection states of a plurality of electronic devices sent by the server;
determining the plurality of device groups based on connection states of the plurality of electronic devices.
11. A multi-device connection method, the method being performed by a server, the method comprising:
receiving a connection establishment request sent by any electronic device in a multi-device connection system, wherein the connection establishment request is used for indicating a first electronic device to establish connection with at least one second electronic device, the first electronic device is a dragged electronic device in 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;
and controlling the first electronic equipment and the at least one second electronic equipment to establish connection based on the connection establishment request.
12. The method of claim 11, further comprising:
receiving a connection disconnection request sent by the electronic equipment;
and controlling the electronic equipment in the target equipment group to disconnect based on the disconnection request.
13. The method of claim 11, further comprising:
receiving a state synchronization request sent by the electronic equipment, wherein the state synchronization request carries a target account;
acquiring connection states of a plurality of electronic devices corresponding to the target account;
transmitting the connection status of the plurality of electronic devices to the electronic device.
14. The method of claim 11, wherein the controlling the first electronic device and the second electronic device to establish a connection based on the connection establishment request comprises:
sending a connection instruction to the second electronic device, wherein the connection instruction carries the device identifier of the first electronic device, and the connection instruction is used for indicating the second electronic device to establish short-distance communication connection with the first electronic device; or,
and storing the association relation between the first electronic equipment and the second electronic equipment, and responding to the received data sent by the second electronic equipment, and sending the data to the first electronic equipment based on the association relation.
15. A multi-device connection system, the system comprising a plurality of electronic devices and a server;
any one of the plurality of electronic devices is used for displaying a plurality of device groups on a connection management interface, each device group comprises at least one electronic device, and the device groups are used for representing the connection states of the electronic devices; responding to the first electronic equipment dragged to the target equipment group, and sending a connection establishment request to a server;
the server is configured to receive the connection establishment request, and control the first electronic device and at least one second electronic device in the target device group to establish a connection based on the connection establishment request.
16. The system of 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 a connection has been established between the at least two electronic devices; displaying a device group including one electronic device in a second display state indicating that the one electronic device is in a non-connection established state.
17. The system according to claim 15, wherein the electronic device is configured to, in response to a first electronic device being dragged to a target device group, in a case where a third electronic device is included in the target device group, display, for any second electronic device in the target device group, a priority of the first electronic device and the third electronic device, the priority being used to indicate a capability of a first function, and the third electronic device and the first electronic device both have the first function; sending a first connection establishment request to the server in response to a selection operation of the first electronic device;
the server is used for receiving the first connection establishment request and controlling the first electronic equipment and the at least one second electronic equipment to establish connection based on the first connection establishment request;
the electronic equipment is also used for sending a first connection disconnection request to the server;
the server is used for receiving the first connection disconnection request and controlling the at least one second electronic device to be disconnected with the third electronic device based on the first connection disconnection request.
18. The system of claim 17, wherein the electronic device is further configured to not join the first electronic device to the target device group in response to a selection operation of the third electronic device.
19. The system of claim 17, wherein the electronic device is further configured to determine a target path number corresponding to any second electronic device in the target device group, where the target path number represents a maximum number of electronic devices for implementing the first function; in response to the number of the third electronic devices being equal to the target path number, performing a step of displaying priorities of the first electronic device and the third electronic devices; in response to the number of third electronic devices being less than the target number of paths, sending 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. The system according to claim 15, wherein the electronic device is configured to, in response to a first electronic device being dragged to a target device group, send, for any second electronic device in the target device group, a third peer connection establishment request to the server if a second function of any second electronic device in the target device group matches a third function of the first electronic device;
the server is used for receiving the third connection establishment request and controlling the first electronic equipment to establish connection with the second electronic equipment based on the third connection establishment request.
21. The system of claim 15, wherein the electronic device is further configured to send a second disconnect request to the co-server in response to a fourth electronic device in the target device group being dragged out of the target device group;
the server is further configured to receive the second disconnection request, and control the fourth electronic device to disconnect from other electronic devices in the target device group based on the second disconnection request.
22. The system of claim 15, wherein the electronic device is further configured to send a third disconnection request to the server in response to the first electronic device further comprising other electronic devices in the original device group;
the server is further configured to receive the third disconnection request, and control the first electronic device to disconnect from the electronic devices in the original device group based on the third disconnection request.
23. The system of any one of claims 15-22, wherein the electronic device is further configured to send a status synchronization request to the server, the status synchronization request including a target account number;
the server is further configured to receive the state synchronization request, acquire connection states of a plurality of electronic devices corresponding to the target account based on the target account, and send the connection states of the plurality of electronic devices to the electronic devices;
the electronic device is further configured to receive connection statuses of the plurality of electronic devices sent by the server, and determine the plurality of device groups based on the connection statuses of the plurality of electronic devices.
24. An apparatus for multi-device connection, the apparatus being implemented by an electronic device, the electronic device being any one of a plurality of electronic devices in a multi-device connection system, the apparatus comprising:
the display module is used for displaying a plurality of equipment groups on the connection management interface, each equipment group comprises at least one piece of electronic equipment, and the equipment groups are used for representing the connection state of the electronic equipment;
the sending module is used for responding to the fact that the first electronic equipment is dragged to the target equipment group, sending a connection establishment request to a server to indicate the first electronic equipment to establish connection with at least one second electronic equipment in the target equipment group, and the server is used for managing the connection relation between the electronic equipment.
25. A multi-device connection apparatus, the apparatus being executed by a server, the apparatus comprising:
a receiving module, configured to receive a connection establishment request sent by any electronic device in a multi-device connection system, where the connection establishment request is used to indicate that a first electronic device is connected to at least one second electronic device, the first electronic device is a dragged electronic device in 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;
and the control module is used for controlling the first electronic equipment and the second electronic equipment to establish connection based on the connection establishment request.
26. An electronic device, comprising a processor and a memory; the memory stores at least one program code for execution by the processor to implement the multi-device connection method of any of claims 1 to 10.
27. A server, comprising a processor and a memory; the memory stores at least one program code for execution by the processor to implement the multi-device connection method of any of claims 11 to 14.
28. A computer-readable storage medium, characterized in that the computer-readable storage medium stores at least one program code for execution by a processor to implement the multi-device connecting method according to any one of claims 1 to 10; alternatively, the at least one program code is for execution by a processor to implement the multi-device connection method of any of claims 11 to 14.
29. A computer program product, characterized in that it stores at least one program code which is loaded and executed by a processor to implement the multi-device connection method according to any one of claims 1 to 10; alternatively, the at least one program code is loaded and executed by a processor to implement the multi-device connection method according to any of claims 11 to 14.
CN202111641476.XA 2021-12-29 2021-12-29 Multi-device connection method, device, system, device and storage medium Pending CN114422566A (en)

Priority Applications (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
PCT/CN2022/140772 WO2023125205A1 (en) 2021-12-29 2022-12-21 Multi-device connection method, apparatus and system, and device and storage medium

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN114422566A true CN114422566A (en) 2022-04-29

Family

ID=81269495

Family Applications (1)

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

Country Status (2)

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

Cited By (2)

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

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607499A (en) * 2016-01-05 2016-05-25 北京小米移动软件有限公司 Equipment grouping method and apparatus
CN110598441A (en) * 2019-09-06 2019-12-20 腾讯科技(深圳)有限公司 User privacy protection method and device
US20200322355A1 (en) * 2019-04-02 2020-10-08 Connectwise, Llc Fraudulent host device connection detection
CN112286618A (en) * 2020-11-16 2021-01-29 Oppo广东移动通信有限公司 Device cooperation method, device, system, electronic device and storage medium
CN113316131A (en) * 2021-05-27 2021-08-27 Oppo广东移动通信有限公司 Connection establishing method and device, electronic equipment and storage medium
CN113311975A (en) * 2020-02-27 2021-08-27 华为技术有限公司 Application interaction method among multiple devices and related devices

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8954551B2 (en) * 2008-03-17 2015-02-10 Microsoft Corporation Virtualization of groups of devices
KR101958902B1 (en) * 2011-09-30 2019-07-03 삼성전자주식회사 Method for group controlling of electronic devices and electronic device management system therefor
CN114422566A (en) * 2021-12-29 2022-04-29 Oppo广东移动通信有限公司 Multi-device connection method, device, system, device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607499A (en) * 2016-01-05 2016-05-25 北京小米移动软件有限公司 Equipment grouping method and apparatus
US20200322355A1 (en) * 2019-04-02 2020-10-08 Connectwise, Llc Fraudulent host device connection detection
CN110598441A (en) * 2019-09-06 2019-12-20 腾讯科技(深圳)有限公司 User privacy protection method and device
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
CN113316131A (en) * 2021-05-27 2021-08-27 Oppo广东移动通信有限公司 Connection establishing method and device, electronic equipment and storage medium

Cited By (2)

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

Also Published As

Publication number Publication date
WO2023125205A1 (en) 2023-07-06

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
US11757950B2 (en) Method and system for sharing an output device between multimedia devices to transmit and receive data
US20110222466A1 (en) Dynamically adjustable communications services and communications links
CN102821150B (en) Based on application management method and the Cloud Server of cloud service
EP2930898B1 (en) Method for sharing file and handheld device
CN104702665A (en) Information sharing method and information sharing device
US10064118B2 (en) Method for operating communication function and electronic device supporting the same
CN110708694A (en) Method, system, storage medium and electronic device for realizing simultaneous online public and private networks
CN114629932B (en) Cooperative method between electronic devices, electronic device and storage medium
CN114666864A (en) Multi-network communication method, terminal device, storage medium, and program product
CN113727289A (en) Electronic equipment and communication method
CN114679752A (en) Method for sharing wireless communication capacity by dual systems and terminal equipment
CN114222003A (en) Service calling method, system, device, equipment and storage medium
CN114666395B (en) Dual-system network sharing method and device
CN113543366B (en) Mobile terminal and call method, call server and call system thereof
CN114071652A (en) Method for establishing binding relationship and related equipment
CN112954622A (en) Mobile terminal and short message sending method thereof
CN115002820B (en) Call state monitoring method, device, equipment and storage medium
CN110213319B (en) Access method and device, terminal, server and storage medium
CN116668582B (en) Audio file sharing method and electronic equipment
CN116661955B (en) Hardware access method, device, electronic equipment and storage medium
CN114416011B (en) Terminal, audio control method and storage medium
EP4383924A1 (en) Communication method, data channel establishment method, device, and storage medium
CN118250506A (en) Screen projection method, electronic equipment and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination