Device collaboration method and apparatus, chip, and computer readable storage medium

By sending detection requests and receiving responses by the first electronic device, intelligent devices in the same communication group are automatically discovered, solving the problem of limited device discovery range in the Hongmeng distributed operating system, achieving wider device selection and collaborative work, and improving user experience.

WO2025179817A1PCT designated stage Publication Date: 2025-09-04HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/116150
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-02-29
Filing Date
2024-08-30
Publication Date
2025-09-04

AI Technical Summary

Technical Problem

In the prior art, the HarmonyOS can only realize automatic discovery of smart devices under the same account, limiting the range of automatic discovery of smart devices and affecting user experience.

Method used

The first electronic device sends a detection request, receives a detection response, and automatically discovers at least one second electronic device in the same communication group, including the same account and a different account, expands the automatic discovery range, and displays the device through the controls, the user can select a collaborative working device.

Benefits of technology

It realizes self-discovery of smart devices in the same communication group, expands the range of device selection, improves the optional range of task collaboration and function flow, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024116150_04092025_PF_FP_ABST
    Figure CN2024116150_04092025_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a device collaboration method and apparatus, a chip, and a computer readable storage medium. The method comprises: in response to a first user operation, sending a detection request, wherein the first user operation is used for enabling a device collaboration function; on the basis of at least one received detection response for the detection request, determining at least one second electronic device, wherein a first electronic device and the at least one second electronic device belong to a same communication group; and displaying a first control representing the first electronic device and a second control representing the second electronic device. When the first electronic device enables the device collaboration function, the first electronic device can automatically find at least one second electronic device in the same communication group, for example, a second electronic device corresponding to a different account and a second electronic device corresponding to a same account, thereby expanding the automatic discovery range of the device, and enhancing the automatic discovery capability of the first electronic device. The present application solves the problem in the prior art of impacting the user experience as a result of the discovery range of the solution of automatically finding a device being limited.
Need to check novelty before this filing date? Find Prior Art

Description

Device collaboration method, device, chip, and computer-readable storage medium

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on February 29, 2024, with application number 202410231464.7 and application name “A device collaboration method, apparatus, chip and computer-readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of terminals, and in particular to a device collaboration method, apparatus, chip, and computer-readable storage medium. Background Art

[0003] With the rapid development of technology, smart devices, such as speakers, smart screens, and headphones, have become an integral part of our daily lives. HarmonyOS, a distributed operating system, uses distributed soft bus technology to automatically discover smart devices under the same account, allowing users to select the appropriate smart device from the automatically discovered devices for functional transfer based on their needs.

[0004] However, due to account privacy-related restrictions, automatic discovery can only be achieved for smart devices under the same account, which limits the scope of automatic discovery of smart devices and thus affects the user experience.

[0005] Summary of the Invention

[0006] The present application provides a device collaboration method, apparatus, chip and computer-readable storage medium, by which a first electronic device can automatically discover at least one second electronic device in the same communication group, thereby expanding the automatic discovery range of smart devices and improving user experience.

[0007] In a first aspect, a device collaboration method is provided, the method comprising sending a probe request in response to a first user operation, wherein the first user operation is used to initiate a device collaboration function; receiving at least one probe response to the probe request; determining at least one second electronic device based on the at least one probe response, wherein the first electronic device and the at least one second electronic device belong to the same communication group, and the account corresponding to some or all of the at least one second electronic device is different from the account corresponding to the first electronic device, and the probe response is used to indicate that the first electronic device and the second electronic device belong to the same communication group; and displaying a first control and at least one second control, wherein the first control represents the first electronic device and the second control represents the second electronic device. Different second controls represent different second electronic devices.

[0008] It should be understood that the device collaboration method provided in the first aspect can be applied to an electronic device, which is a first electronic device. The first electronic device can specifically be a terminal device with a device collaboration function, such as a mobile phone, tablet, computer and other devices.

[0009] In an embodiment of the present application, after the first electronic device starts the device collaboration function in response to the first user's operation, it can automatically discover at least one second electronic device corresponding to the same communication group (family group), such as the second electronic device corresponding to the same account and the second electronic device corresponding to different accounts, thereby expanding the scope of automatically discovered devices; subsequent users can select corresponding devices from the automatically discovered devices for collaborative work according to their needs, thereby increasing the optional range of devices required for task collaboration or function flow, and improving the user experience.

[0010] The second electronic device may be a smart device, such as a mobile phone, glasses, a tablet, a personal computer (PC), a smart screen, a watch, a speaker, a car computer, a headset, etc. The first electronic device and the at least one second electronic device are on the same network, such as the same local area network or the same wide area network. When the first electronic device and the at least one second electronic device are on the same network, they can communicate via Bluetooth or wireless fidelity (WiFi).

[0011] In a feasible implementation, a first electronic device may broadcast a probe request, which is used to detect a second electronic device that is in the same network as the first electronic device and in the same communication group as the first electronic device; the device that receives the probe request may determine whether it belongs to the same communication group as the first electronic device based on the group information stored in the device and the information carried in the probe request, and if it determines that it belongs to the same communication group as the first electronic device, it may send a probe response to the first electronic device, and the first electronic device may then determine that the device is the second electronic device based on the probe response. In this way, the first electronic device may self-discover at least one second electronic device based on at least one probe response, thereby achieving self-discovery of devices in the same communication group and expanding the scope of self-discovered devices.

[0012] Among them, at least one second electronic device can be all or part of the electronic devices in the communication group to which the first electronic device belongs, except the first electronic device. The account corresponding to at least one second electronic device does not exist in the account corresponding to the first electronic device, that is, at least one second electronic device is a device with a different account; the account corresponding to at least one second electronic device exists in the account corresponding to the first electronic device, that is, at least one second electronic device has both devices with the same account and devices with different accounts. Among them, a device with the same account refers to a second electronic device with the same account as the account corresponding to the first electronic device; a device with a different account refers to a second electronic device with an account different from the account corresponding to the first electronic device.

[0013] In a feasible implementation, the first control and the second control can both be presented in the form of icons. For example, the first control can be an icon representing the first electronic device, and the second control can be an icon representing the second electronic device. The user can drag the icon to select the corresponding device from the first electronic device and at least one second electronic device for task collaboration, thereby increasing the optional range of devices required for task collaboration or function flow, and further improving the user experience.

[0014] In a feasible implementation, the first control and the at least one second control may be obtained in at least one of the following ways:

[0015] Method 1: A first electronic device sends a control acquisition request to a server for acquiring a first control and at least one second control. The first electronic device then receives the first control and at least one second control sent by the server based on the control acquisition request. The first control and at least one second control may be generated by the server or sent to the server by another device.

[0016] Method 2: The first electronic device may send a request to the server, wherein the request is used to obtain the first device information and the second device information of at least one second electronic device. The first electronic device may receive the first device information and the second device information of at least one second electronic device from the server. The first device information represents the status and / or attributes of the first electronic device, and the second device information represents the status and / or attributes of the second electronic device. The request carries the identification information of the first electronic device and the identification information of the at least one second electronic device.

[0017] Method three: The first electronic device can determine the control corresponding to the identification information of the first electronic device from multiple pre-generated controls to obtain a first control, and determine the control corresponding to the identification information of the second electronic device from multiple pre-generated controls to obtain a second control.

[0018] Based on the above solution, the first electronic device can flexibly select different acquisition methods to acquire the first control and the at least one second control, thereby improving the flexibility of acquiring the first control and the at least one second control.

[0019] In a feasible implementation, the probe request carries relevant information of the first electronic device, which may be at least one of the identification information of the first electronic device, the account corresponding to the first electronic device, and the group identification information corresponding to the first electronic device. In this way, the device receiving the probe request can determine whether it is in the same communication group as the first electronic device based on the relevant information of the first electronic device. If it is determined that it is in the same communication group as the first electronic device, it sends a probe response to the first electronic device, so that the first electronic device can self-discover the device (the second electronic device) in the same communication group based on the probe response.

[0020] In a feasible implementation, the probe response is sent by the second electronic device when it determines that the second electronic device belongs to the same communication group as the first electronic device based on the probe request and the stored group information corresponding to the second electronic device.

[0021] The group information corresponding to the second electronic device originates from a server. The server maintains group information of multiple communication groups. For each communication group, the server can send the group information to multiple devices in the communication group (also referred to as multiple devices corresponding to the communication group) so that after the multiple devices receive the group information, they can achieve self-discovery between the devices.

[0022] In a feasible implementation, the detection response carries group identification information of the communication group and identification information of the second electronic device.

[0023] In a feasible implementation, the group information includes at least one of group identification information, accounts of group members, and identification information of electronic devices corresponding to the accounts of group members.

[0024] In a feasible implementation, after the first electronic device displays the first control and at least one second control, it can also perform the following steps: in response to the second user operation, send a processing request to the server, wherein the processing request is used to establish a device collaboration link between the collaborative device and the device to be collaborated, the collaborative device and the device to be collaborated are electronic devices in the first electronic device and at least one second electronic device, and the second user operation is used to associate the collaborative device and the device to be collaborated.

[0025] Among them, the first electronic device can determine the device to be coordinated and the collaborative device from the first electronic device and at least one second electronic device in response to the second user operation, and generate a processing request for establishing a device collaborative link between the collaborative device and the device to be coordinated. The first electronic device can serve as a device to be coordinated, a collaborative device, or a device that is only used to forward processing requests (that is, the first electronic device is neither a device to be coordinated nor a collaborative device, but is only a device used to trigger the establishment of a device collaborative link). The second user operation can be an operation in which the user drags a control to a designated area corresponding to another control.

[0026] Based on the above solution, a device collaboration link is established between devices in the communication group, so that devices can collaborate on tasks or transfer functions through the device collaboration link, improving the collaborative work capability and task execution efficiency, better serving users and application scenarios, and further improving the user experience.

[0027] The server receives a processing request from the first electronic device, wherein the processing request is used to establish a device collaborative link between the collaborative device and the device to be coordinated; the server can send a control instruction to the device to be coordinated based on the processing request, wherein the control instruction is used to control the device to be coordinated to establish the device collaborative link.

[0028] In a feasible implementation, the first electronic device, as a collaborative device, can perform the following operations: receive a verification request from the device to be coordinated, wherein the verification request is used to determine whether the device to be coordinated is a legal device, and the verification request is sent by the device to be coordinated based on a control instruction from the server, and the control instruction is sent by the server based on the processing request; in the case where it is determined that the device to be coordinated is a legal device based on the verification request, send a verification response to the device to be coordinated, and the verification response is used to determine whether the first electronic device is a legal device.

[0029] Among them, when it is determined based on the verification request that the device to be coordinated is a legal device, sending a verification response to the device to be coordinated can be achieved in the following way: parsing the verification request to obtain identification information and first encryption information of the device to be coordinated, wherein the first encryption information is obtained by encrypting the identification information of the device to be coordinated based on the group identification key corresponding to the device to be coordinated and the user identification key corresponding to the device to be coordinated; encrypting the identification information of the device to be coordinated based on the group identification key corresponding to the first electronic device and the user identification key corresponding to the first electronic device to obtain second encryption information; when the first encryption information and the second encryption information match, determining that the device to be coordinated is a legal device; sending a verification response to the device to be coordinated, the verification response carrying the identification information of the first electronic device and third encryption information, wherein the third encryption information is obtained by encrypting the identification information of the first electronic device based on the group identification key corresponding to the first electronic device and the user identification key corresponding to the first electronic device.

[0030] Based on the above scheme, when the device to be coordinated determines that the first electronic device is a legal device, a device coordination link is established between the device and the first electronic device, so that task coordination or function flow between the first electronic device and the device to be coordinated can be realized through the device coordination link, thereby improving the user experience.

[0031] In a feasible implementation, the first electronic device, as the device to be coordinated, can perform the following operations: receive a control instruction from the server, wherein the control instruction is used to control the first electronic device to establish a device coordinated link, and the control instruction is sent by the server based on a processing request; based on the control instruction, send a verification request to the coordinated device, wherein the verification request is used to determine whether the first electronic device is a legal device; establish a device coordinated link when the coordinated device is determined to be a legal device based on a verification response from the coordinated device, wherein the verification response is sent by the coordinated device when the first electronic device is determined to be a legal device.

[0032] Among them, when the collaborative device is determined to be a legal device based on the verification response from the collaborative device, the establishment of a device collaborative link can be achieved in the following ways: parsing the verification response to obtain the identification information and third encryption information of the collaborative device, wherein the third encryption information is obtained by encrypting the identification information of the collaborative device based on the group identification key corresponding to the collaborative device and the user identification key corresponding to the collaborative device; encrypting the identification information of the collaborative device based on the group identification key corresponding to the first electronic device and the user identification key corresponding to the first electronic device to obtain the fourth encryption information; when the third encryption information and the fourth encryption information match, determining that the collaborative device is a legal device; and establishing a device collaborative link.

[0033] Based on the above solution, when the first electronic device determines that the collaborative device is a legitimate device, it establishes a device collaborative link between it and the collaborative device, so that task collaboration or function flow between the first electronic device and the collaborative device can be realized through the device collaborative link, thereby improving the user experience.

[0034] In a second aspect, a device collaboration method is provided, which can be executed by a server, or by a component of a server, or by a logic module or software that can implement or partially implement the server functions.

[0035] The method includes: receiving an acquisition request from a first electronic device, wherein the acquisition request is used to acquire first device information of the first electronic device and second device information of at least one second electronic device, wherein the first device information represents the status and / or attributes of the first electronic device, and the second device information is used to represent the status and / or attributes of the second electronic device, the first electronic device and the at least one second electronic device belong to the same communication group, and the account corresponding to part or all of the at least one second electronic device is different from the account corresponding to the first electronic device; sending the first device information and the second device information of the at least one second electronic device to the first electronic device, wherein the first device information is used to display a first control representing the first electronic device, and the second device information is used to display a second control representing the second electronic device.

[0036] In one feasible implementation, the first device information includes at least one of model information, configuration information, status information, size information of the first electronic device, and an image of the first electronic device. The second device information may include at least one of model information, configuration information, status information, size information of the second electronic device, and an image of the second electronic device.

[0037] In a feasible implementation, the method also includes: receiving a processing request from the first electronic device, wherein the processing request is used to establish a device collaborative link between the collaborative device and the device to be coordinated; based on the processing request, sending a control instruction to the device to be coordinated, wherein the control instruction is used to control the device to be coordinated to establish the device collaborative link.

[0038] In a feasible implementation, the method further includes: sending group information of the communication group to multiple electronic devices in the communication group, wherein the group information is used by the electronic device to determine whether it is in the same communication group as other electronic devices, and the multiple electronic devices include a first electronic device and at least one second electronic device.

[0039] In a feasible implementation, the group information includes at least one of group identification information, accounts of group members, and identification information of electronic devices corresponding to the accounts of group members.

[0040] For the beneficial effects of each implementation method in the second aspect, please refer to the description of the first aspect and will not be repeated here.

[0041] On the third aspect, a device collaboration method is provided, which can be executed by a second electronic device, or by a component of the second electronic device (such as a processor, chip, or chip system, etc.), or by a logic module or software that can realize all or part of the functions of the second electronic device.

[0042] The method includes: receiving a probe request from a first electronic device; and sending a probe response to the first electronic device when it is determined based on the probe request that the first electronic device and the second electronic device belong to the same communication group, wherein the probe response is used to indicate that the first electronic device and the second electronic device belong to the same communication group, and that at least some of the electronic devices in the communication group correspond to different accounts.

[0043] The detection request carries relevant information of the first electronic device, which may be, for example, at least one of identification information of the first electronic device, an account corresponding to the first electronic device, and group identification information corresponding to the first electronic device.

[0044] In a feasible implementation, the method includes: determining whether the first electronic device and the second electronic device belong to the same communication group based on the detection request and the stored group information corresponding to the second electronic device; and sending a detection response to the first electronic device if the first electronic device and the second electronic device belong to the same communication group.

[0045] In a feasible implementation, the detection response carries group identification information of the communication group and identification information of the second electronic device.

[0046] In a feasible implementation, group information may be obtained by: receiving group information from a server, the group information including at least one of group identification information, group member accounts, and identification information of electronic devices corresponding to group member accounts.

[0047] In a feasible implementation, the second electronic device can serve as a collaborative device and can perform the following operations: receiving a verification request from the device to be coordinated, wherein the verification request is used to determine whether the device to be coordinated is a legal device, and the verification request is sent by the device to be coordinated based on a control instruction from a server; in the case where it is determined that the device to be coordinated is a legal device based on the verification request, sending a verification response to the device to be coordinated, wherein the verification response is used to determine whether the second electronic device is a legal device.

[0048] Among them, when it is determined based on the verification request that the device to be coordinated is a legal device, sending a verification response to the device to be coordinated can be achieved in the following way: parsing the verification request to obtain identification information and first encryption information of the device to be coordinated, wherein the first encryption information is obtained by encrypting the identification information of the device to be coordinated based on the group identification key corresponding to the device to be coordinated and the user identification key corresponding to the device to be coordinated; encrypting the identification information of the device to be coordinated based on the group identification key corresponding to the second electronic device and the user identification key corresponding to the second electronic device to obtain second encryption information; when the first encryption information and the second encryption information match, determining that the device to be coordinated is a legal device; sending a verification response to the device to be coordinated, wherein the verification response carries the identification information of the second electronic device and third encryption information, and the third encryption information is obtained by encrypting the identification information of the second electronic device based on the group identification key corresponding to the second electronic device and the user identification key corresponding to the second electronic device.

[0049] Based on the above solution, when the second electronic device acts as a collaborative device, the device to be coordinated can be the first electronic device or another second electronic device other than the second electronic device among at least one second electronic device. When the device to be coordinated determines that the second electronic device is a legitimate device, it can establish a device coordination link between it and the second electronic device. Subsequently, through the device coordination link, the second electronic device and the device to be coordinated can perform task coordination or function flow, thereby improving the user experience.

[0050] In a feasible implementation, the second electronic device can serve as a device to be coordinated and can perform the following operations: receive a control instruction from a server, wherein the control instruction is used to control the establishment of a device coordination link between the second electronic device and the coordinated device; based on the control instruction, send a verification request to the coordinated device, wherein the verification request is used to determine whether the second electronic device is a legal device; establish a device coordination link when the coordinated device is determined to be a legal device based on a verification response from the coordinated device, wherein the verification response is sent by the coordinated device when the second electronic device is determined to be a legal device.

[0051] Among them, when the collaborative device is determined to be a legal device based on the verification response from the collaborative device, the establishment of a device collaborative link can be achieved in the following ways: parsing the verification response to obtain the identification information and third encryption information of the collaborative device, wherein the third encryption information is obtained by encrypting the identification information of the collaborative device based on the group identification key corresponding to the collaborative device and the user identification key corresponding to the collaborative device; encrypting the identification information of the collaborative device based on the group identification key corresponding to the second electronic device and the user identification key corresponding to the second electronic device to obtain fourth encryption information; when the third encryption information and the fourth encryption information match, determining that the collaborative device is a legal device; and establishing a device collaborative link.

[0052] Based on the above solution, when the second electronic device is used as the device to be coordinated, the coordinated device can be the first electronic device or another second electronic device other than the first electronic device among at least one second electronic device. When the second electronic device determines that the coordinated device is a legitimate device, it can establish a device coordination link between it and the coordinated device. Subsequently, through the device coordination link, the second electronic device and the coordinated device can perform task coordination or function flow, thereby improving the user experience.

[0053] In a fourth aspect, a device collaboration system is provided, comprising a first electronic device, at least one second electronic device, and a server, wherein the server establishes communication connections with the first electronic device and the at least one second electronic device, respectively, and the first electronic device and the at least one second electronic device belong to the same communication group, wherein:

[0054] The server is used to send group information of a communication group to a first electronic device and at least one second electronic device; the first electronic device is used to send a probe request in response to a first user operation, and the first user operation is used to start a device collaboration function; the second electronic device is used to receive the probe request from the first electronic device; when it is determined that the first electronic device belongs to the same communication group as the first electronic device based on the probe request and the group information from the server, the second electronic device sends a probe response to the first electronic device, wherein the probe response is used to indicate that the first electronic device and the second electronic device belong to the same communication group; the first electronic device is further used to determine at least one second electronic device based on at least one probe response, wherein the account corresponding to some or all of the at least one second electronic device is different from the account corresponding to the first electronic device;

[0055] In the fifth aspect, a device collaboration device is provided, including a module or unit for executing the method in the first aspect or any possible implementation of the first aspect, a module or unit for executing the method in the second aspect or any possible implementation of the second aspect, or a module or unit for executing the method in the third aspect or any possible implementation of the third aspect.

[0056] In the sixth aspect, a device collaboration device is provided, including a processor for executing, the processor is coupled to a memory, the memory is used to store computer programs or instructions, and the processor is used to execute the computer programs or instructions stored in the memory to implement the method in the first aspect or any possible implementation of the first aspect, or implement the method in the second aspect or any possible implementation of the second aspect, or implement the method in the third aspect or any possible implementation of the third aspect.

[0057] In one possible implementation, the apparatus further includes a memory coupled to the processor.

[0058] In a possible implementation, there are one or more processors and / or one or more memories.

[0059] In a possible implementation, the memory may be integrated with the processor, or the memory may be provided separately from the processor.

[0060] In a possible implementation, the device further includes a communication interface, and the processor is coupled to the communication interface.

[0061] In one implementation, the apparatus is a network device. Exemplarily, the communication interface may be a transceiver, or an input / output interface.

[0062] In another implementation, the device is a chip in a device collaboration device. Exemplarily, the communication interface may be an input / output interface.

[0063] In the seventh aspect, an electronic device is provided, which includes a memory, one or more processors and one or more programs; wherein the one or more programs are stored in the memory; when the one or more processors execute the one or more programs, the electronic device implements the method in the first aspect or any possible implementation of the first aspect, or implements the method in the second aspect or any possible implementation of the second aspect, or implements the method in the third aspect or any possible implementation of the third aspect.

[0064] In an eighth aspect, a processor is provided, comprising: an input circuit, an output circuit, and a processing circuit. The processing circuit is configured to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the method of any of the above aspects or any possible implementation of any of the above aspects.

[0065] In a specific implementation, the processor may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be a transistor, a gate circuit, a trigger, or various logic circuits. The input signal received by the input circuit may be, for example, but not limited to, received and input by a receiver, and the signal output by the output circuit may be, for example, but not limited to, output to and transmitted by a transmitter. The input circuit and the output circuit may be the same circuit, which functions as an input circuit and an output circuit at different times. This application does not limit the specific implementation of the processor and various circuits.

[0066] In a ninth aspect, a chip is provided, comprising a processor for calling and running a computer program from a memory, so that a device equipped with the chip cooperates with a device to execute a method in any one of the above aspects or any possible implementation of any one of the aspects.

[0067] In the tenth aspect, a computer-readable storage medium is provided, which stores a computer program (also referred to as code, or instructions). When the computer program runs on a computer, the computer executes the method in any one of the above aspects or any possible implementation of any one of the aspects.

[0068] In the eleventh aspect, a computer program product is provided, which includes: a computer program (also referred to as code, or instructions), which, when executed, enables a computer to execute a method in any one of the above aspects or any possible implementation of any one of the aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] FIG1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0070] FIG2 is a software structure block diagram of an electronic device 100 provided in an embodiment of the present application;

[0071] FIG3 is a schematic diagram of a mobile phone hyperterminal interface in the related art provided in an embodiment of the present application;

[0072] FIG4 is a schematic diagram of mutual authentication between a mobile phone and a smart screen in the related art provided by an embodiment of the present application;

[0073] FIG5 is a schematic diagram of the main interface of a mobile phone in the device collaboration method provided in an embodiment of the present application;

[0074] FIG6 is a schematic diagram of a control center interface of a mobile phone in a device collaboration method provided in an embodiment of the present application;

[0075] FIG7 is a schematic diagram of a hyperterminal interface in the device collaboration method provided in an embodiment of the present application;

[0076] FIG8 is a schematic diagram of a server sending group information of a communication group in a device collaboration method according to an embodiment of the present application;

[0077] FIG9 is a schematic diagram of the structures of devices p1 and p2 in the device collaboration method provided in an embodiment of the present application;

[0078] FIG10 is a schematic diagram of a UI interface of a mobile phone in the device collaboration method provided in an embodiment of the present application;

[0079] FIG11 is a schematic diagram of an operation interface for adding a new member to a communication group (family group) in the device collaboration method provided in an embodiment of the present application;

[0080] FIG12 is a schematic diagram of a process of adding a new member to a communication group (family group) in a device collaboration method according to an embodiment of the present application;

[0081] FIG13 is a schematic diagram of a task collaboration scenario in the device collaboration method provided in an embodiment of the present application;

[0082] FIG14 is a schematic diagram of another task collaboration scenario in the device collaboration method provided in an embodiment of the present application;

[0083] FIG15 is a schematic diagram of a flow chart of a device collaboration method provided in an embodiment of the present application;

[0084] FIG16 is a flow chart of another device collaboration method provided in an embodiment of the present application;

[0085] FIG17 is a schematic diagram of another hyperterminal interface in the device collaboration method provided in an embodiment of the present application;

[0086] FIG18 is a flow chart of another device collaboration method provided in an embodiment of the present application;

[0087] FIG19 is a schematic diagram of another hyperterminal interface in the device collaboration method provided in an embodiment of the present application;

[0088] FIG20 is a schematic diagram of a flow chart of a device collaboration method provided in another embodiment of the present application;

[0089] FIG21 is a schematic diagram of a hyperterminal interface in a device collaboration method provided in another embodiment of the present application;

[0090] FIG22 is a schematic diagram of the structure of a device coordination apparatus provided in an embodiment of the present application;

[0091] FIG23 is a schematic diagram of the structure of another device coordination apparatus provided in an embodiment of the present application;

[0092] FIG24 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0093] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0094] In the description of the embodiments of this application, unless otherwise specified, " / " represents or; for example, A / B can represent A or B. "And / or" in this article is simply a description of the association relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, or B exists alone. In addition, in the description of the embodiments of this application, "a plurality" means two or more than two.

[0095] In the following, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the technical features indicated. Therefore, a feature specified as "first," "second," or "third" may explicitly or implicitly include one or more of the features.

[0096] An embodiment of the present application provides an electronic device for executing the device collaboration method provided in the present application. In some embodiments of the present application, the electronic device may be a mobile phone, a tablet computer, a wearable device, an in-vehicle device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc., or may be other devices or apparatuses capable of device collaboration. The embodiments of the present application do not impose any restrictions on the specific type of the electronic device.

[0097] For example, FIG1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.

[0098] As shown in Figure 1, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0099] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

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

[0101] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0102] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly retrieve it from the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0103] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0104] The processor 110 and the display screen 194 communicate via a DSI interface to implement the display function of the electronic device 100 .

[0105] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0106] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. The structures of Antenna 1 and Antenna 2 in Figure 1 are merely illustrative. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, Antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0107] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0108] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

[0109] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0110] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, an instruction to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, an instruction to create a new short message is executed.

[0111] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, in a location different from that of the display screen 194.

[0112] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

[0113] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.

[0114] FIG2 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.

[0115] It should be understood that the layered architecture can divide the software into several layers, each with a clear role and division of labor; the layers can communicate with each other through software interfaces.

[0116] As shown in Figure 2, the Android system can be divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer. The application layer can include a series of application packages.

[0117] As shown in FIG2 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.

[0118] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0119] As shown in FIG2 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.

[0120] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0121] Content providers are used to store and retrieve data and make it accessible to applications. Data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0122] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0123] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).

[0124] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0125] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically, without requiring user interaction. For example, the Notification Manager can be used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating the device, or flashing indicator lights.

[0126] The Android runtime includes the core library and the virtual machine. The Android runtime is responsible for scheduling and management of the Android system.

[0127] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0128] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0129] The system library can include multiple functional modules, such as a surface manager, a media library, a 3D graphics processing library (such as the open graphics library for embedded systems (OpenGL ES)) and a 2D graphics engine (such as the skia graphics library (SGL)).

[0130] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0131] The media library supports playback and recording of multiple audio and video formats, as well as still image files. It supports a variety of audio and video codecs, such as MPEG4, H.264, Moving Picture Experts Group Audio Layer III (MP3), Advanced Audio Coding (AAC), Adaptive Multi-Rate (AMR), Joint Photographic Experts Group (JPG), and Portable Network Graphics (PNG).

[0132] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0133] A 2D graphics engine is a drawing engine for 2D drawings.

[0134] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0135] A user interface (UI) is the medium for interaction and information exchange between an application (APP) or operating system (OS) and the user. It converts information between its internal form and a user-friendly format. A UI is source code written in a specific computer language, such as Java or Extensible Markup Language (XML); this source code is parsed and rendered on an electronic device, ultimately presenting it as user-readable content. A common form of UI is the graphical user interface (GUI), which refers to a user interface related to computer operations displayed graphically. It can be visual interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on an electronic device's display.

[0136] A control is an element in a user interface that is used to receive user input, display information, or perform a specific function.

[0137] Device collaboration refers to a multi-device collaborative working mode that can achieve cross-system and cross-device collaborative operations and resource sharing.

[0138] The electronic devices shown in Figures 1 and 2 above can be the first electronic device or the second electronic device in the following embodiments. The following is a detailed explanation of the device collaboration method provided in the embodiments of the present application in combination with the drawings and application scenarios.

[0139] The Hongmeng distributed operating system is a distributed operating system for the Internet of Things era. Based on the Hongmeng distributed operating system, collaborative work between devices can be achieved, especially inter-device communication and data sharing in various scenarios (such as smart homes, Internet of Vehicles, etc.). The distributed soft bus is a core feature of the Hongmeng distributed operating system, which aims to achieve seamless connection and collaborative work between different devices. Through the distributed soft bus, different devices can be connected together to form a virtual distributed bus network. This makes the connection between devices more flexible, thereby providing a richer and smarter device interaction experience.

[0140] Currently, with the distributed soft bus capabilities of the Hongmeng distributed operating system, automatic discovery and function flow of devices under the same account (i.e., the same account) can be achieved. When a function or task on a device under the same account requires the support of another device, data and functions can be seamlessly transferred between these devices. For example, a user starts listening to music on one device and can continue playing it on another device.

[0141] However, due to security and privacy concerns, each account typically has its own device list and configuration information, lacking effective communication mechanisms between accounts. Even if devices do have near-field communication capabilities, manual addition and complex configuration (authentication) are often required, making automatic discovery and functional transfer impossible.

[0142] For example, a user can click on the HyperTerminal function card in the phone's control center interface. The phone will respond to the user's click by displaying the HyperTerminal interface shown in Figure 3. As shown in Figure 3, the HyperTerminal interface displays icons 31, 32, and 33; icon 31 represents the phone (this device), icon 32 represents the watch, and icon 33 represents the speaker. The account corresponding to the watch and the speaker is the same as the account corresponding to the phone; obviously, the current phone can only automatically discover devices under the same account and display the icons representing these devices on the HyperTerminal interface.

[0143] When the user wants to transfer the content being displayed on the mobile phone to the smart screen corresponding to another account, the smart screen needs to be re-bound to the account corresponding to the mobile phone. Only after the binding is completed will the icon of the smart screen be displayed on the hyperterminal interface, so that the content being displayed on the mobile phone can be transferred to the smart screen for display by dragging the icon of the smart screen to the designated area. Among them, in the process of re-binding the smart screen to the account corresponding to the mobile phone, the user needs to follow the prompts to complete the mutual authentication between the mobile phone and the smart screen. For example, a prompt message as shown in (a) in Figure 4 will pop up on the smart screen. When the user selects "Trust within one week" or "Trust only this time", a connection code will be displayed on the smart screen, such as "710827". After that, a prompt box as shown in (b) in Figure 4 will pop up on the mobile phone. The user needs to manually enter the connection code in the prompt box shown in (b) in Figure 4. After entering the connection code, the mobile phone can re-bind the smart screen to the account corresponding to the mobile phone, and then the icon representing the smart screen can be displayed on the hyperterminal interface of the mobile phone. Obviously, this binding process is complicated, wastes a lot of time, and affects the user experience.

[0144] Therefore, how to achieve automatic discovery between devices corresponding to different accounts (i.e., automatic discovery between cross-account devices) is a problem that needs to be solved urgently.

[0145] Based on this, the present application provides a device collaboration method, which can be applied to a first electronic device in a device collaboration system. The device collaboration system may include a first electronic device, at least one second electronic device and a server, and the server establishes communication connections with the first electronic device and at least one second electronic device respectively.

[0146] In the device collaboration method, a first electronic device can send a detection request in response to a first user operation, the first user operation being used to activate the device collaboration function; receive at least one detection response to the detection request; determine at least one second electronic device based on the at least one detection response, the first electronic device and the at least one second electronic device belong to the same communication group, the account corresponding to some or all of the at least one second electronic device is different from the account corresponding to the first electronic device, and the detection response is used to indicate that the first electronic device and the second electronic device belong to the same communication group; display a first control and at least one second control, the first control representing the first electronic device and the second control representing the second electronic device. In this way, when the first electronic device (such as the mobile phone in the above example) activates the device collaboration function, the first electronic device can automatically discover the second electronic device corresponding to the different account (such as the smart screen of the other account in the above example) and the second electronic device corresponding to the same account (such as the watch and speaker belonging to the same account as the mobile phone in the above example), thereby expanding the scope of automatically discovered devices; subsequent users can select corresponding devices from the automatically discovered devices for collaborative work according to their needs, thereby increasing the range of optional devices required for task collaboration or function flow, and improving the user experience. The user does not need to manually bind the second electronic device with a different account on the first electronic device, which solves the problems of complex operation, waste of a lot of time and impact on user experience in the binding process.

[0147] The first electronic device may be a terminal device with a device collaboration function, such as a mobile phone, tablet, computer, or other device. The second electronic device is a device automatically discovered by the first electronic device and belongs to the same communication group as the first electronic device; the second electronic device may be a mobile phone, glasses, tablet, personal computer (PC), smart screen, watch, speaker, car machine, headset, or other device. The first electronic device and at least one second electronic device are in the same network, such as the same local area network or the same wide area network; when the first electronic device and at least one second electronic device are in the same network, they can communicate via Bluetooth or wireless fidelity (WiFi).

[0148] In the embodiments of the present application, the following example interfaces are provided, mainly using a mobile phone as the first electronic device to illustrate the relevant user interface, but this does not constitute a limitation of the present application. Among them, the hyperterminal interface is a user interface of a mobile phone for device collaboration. The hyperterminal interface can adopt different interface layouts and can include more or fewer controls.

[0149] Figure 5 is a schematic diagram of the main interface of a mobile phone. The user can call up the control center interface through a touch operation on the main interface of the mobile phone. The touch operation can be a downward swipe from the top of the main interface or an upward swipe from the bottom of the main interface. The touch operation shown in Figure 5 is a downward swipe from the top of the main interface. The control center interface can also be called up in response to a touch operation on other interfaces of the mobile phone. The embodiments of this application do not limit how to call up the control center interface.

[0150] FIG6 is a schematic diagram of the control center interface of a mobile phone. As shown in FIG6 , the control center interface can display multiple function controls, which can also be referred to as cards or modules. Among them, the multiple function controls include a hyperterminal function card 41. As shown in FIG6 , a user can click on a device collaboration icon 411 in the hyperterminal function card 41, and the mobile phone can activate the device collaboration function in response to the user's click operation on the device collaboration icon 411; the first user operation includes a click operation on the device collaboration icon 411. Of course, the first user operation can also be other triggering operations for activating the device collaboration function, and the embodiment of the present application does not specifically limit the first user operation.

[0151] Through the device collaboration method provided by this application, after starting the device collaboration function on the mobile phone, not only can task collaboration or function flow be realized between the mobile phone and other devices (i.e., devices discovered by the mobile phone in the same communication group as the mobile phone), but also task collaboration or function flow between other devices can be realized, which improves the selectivity and convenience of task collaboration or function flow. For example, the content displayed on the mobile phone can be transferred to the smart screen for display; wherein, the account corresponding to the mobile phone and the account corresponding to the smart screen can be the same or different. For example, the content displayed on the computer can be transferred to the smart screen for display; wherein, the account corresponding to the smart screen and the account corresponding to the computer can be the same or different.

[0152] In a feasible implementation, the mobile phone can start the device collaboration function in response to the user's click operation on the device collaboration icon; use the wireless communication function to broadcast a detection request to detect devices around the mobile phone that are in the same communication group as the mobile phone; wherein, at least one device around the mobile phone and in the same communication group as the mobile phone may include devices belonging to different accounts than the mobile phone (i.e., different account devices) and devices belonging to the same account as the mobile phone (i.e., same account devices). The detection request carries relevant information about the mobile phone, such as the relevant information about the mobile phone can be at least one of the information such as the identification information of the mobile phone, the account corresponding to the mobile phone, and the identification information of the communication group corresponding to the mobile phone. The identification information of the mobile phone is used to uniquely refer to the mobile phone, and the identification information of the communication group corresponding to the mobile phone is used to uniquely refer to the communication group corresponding to the mobile phone. When a nearby device (such as a smart screen) receives the detection request, it can determine whether the smart screen and the mobile phone belong to the same communication group based on the detection request. When it is determined that they belong to the same communication group as the mobile phone, a detection response can be generated and sent to the mobile phone. The detection response is used to indicate that the smart screen and the mobile phone belong to the same communication group. The identification information of the mobile phone may be a universally unique identifier (UUID) or a media storage control address (MAC) of the mobile phone. The identification information of the communication group may be a faction identifier (FID) of the communication group.

[0153] Among them, the wireless communication function includes but is not limited to wireless communication functions implemented by technologies such as WLAN, wireless radio frequency identification (REID), Wi-Fi, P2P, hotspot, infrared, ultrasound, Bluetooth, ZigBee, and ultra-wideband (UWB), and this embodiment does not impose any restrictions on this.

[0154] It is understandable that many wireless communication technologies support positioning functions. For example, the positioning function based on Wi-Fi, the positioning function based on Bluetooth iBeacon, the positioning function based on the signal arrival angle (arrival of angle, AOA) of Bluetooth 5.1 version, the positioning function based on UWB, etc., are not limited in this embodiment. Among them, the positioning function based on Wi-Fi and the positioning function based on Bluetooth iBeacon can measure the distance between the mobile phone and other electronic devices. The AOA positioning function based on Bluetooth 5.1 version and the positioning function based on UWB can measure the distance between the mobile phone and other electronic devices, as well as the direction of other electronic devices relative to the mobile phone.

[0155] After the mobile phone sends a probe request, for example, if multiple devices receive the probe request, each device can determine whether it and the mobile phone belong to the same communication group based on the information carried in the probe request. For each device, if it is determined that there is no group information in its own recording module, it is determined that it (the device) and the mobile phone do not belong to the same communication group; if it is determined that there is group information in its own recording module, the information carried in the probe request can be matched with the group information to obtain a matching result; if the matching result indicates that the information carried in the probe information matches the group information, it is determined that the device and the mobile phone belong to the same communication group, and then a probe response can be sent to the mobile phone, which indicates that the mobile phone and the device belong to the same communication group. If the device determines that it does not belong to the same communication group as the mobile phone, it may not send any information; if the device determines that it does not belong to the same communication group as the mobile phone, it may also send other probe responses different from the probe response to the mobile phone, for example, the other probe response may indicate that the mobile phone and the device belong to different communication groups.

[0156] The mobile phone can determine at least one device around the mobile phone and in the same communication group as the mobile phone based on the at least one received detection response, and display an icon representing the mobile phone and at least one icon representing the at least one device to the user on the hyperterminal interface.

[0157] For example, the number of at least one probe response received by the mobile phone can be four, and the number of at least one device in the mobile phone's surrounding communication group determined based on the four probe responses can also be four. The account corresponding to the mobile phone can be account m1; the four devices include devices with the same account and devices with different accounts. For example, a device with the same account can be a speaker and a watch, that is, the account corresponding to the speaker, the account corresponding to the watch, and the account corresponding to the mobile phone are all account m1. Devices with different accounts can be, for example, headphones and a smart screen; the accounts corresponding to the headphones, the account corresponding to the smart screen, and the account corresponding to the mobile phone can all be different. For example, the account corresponding to the headphones can be account m2, and the account corresponding to the smart screen can be account m3. As shown in Figure 7, the mobile phone can display an icon 51 representing the mobile phone, an icon 52 representing the watch, an icon 53 representing the speaker, an icon 54 representing the headphones, and an icon 55 representing the smart screen on the hyperterminal interface. The group member corresponding to the headphones can be "bb", and the group member corresponding to the smart screen can be "cc". In this way, the mobile phone can automatically discover devices with different accounts and devices with the same account, and icons representing devices with different accounts and icons representing devices with the same account can be displayed on the super terminal interface, so that subsequent users can establish a device collaboration link between at least two devices among mobile phones, speakers, headphones, smart screens and watches by operating (such as dragging) the icons shown in Figure 7, so as to realize task collaboration or function flow between at least two devices.

[0158] The group information stored in the recording module of the above-mentioned device is sent to the device by the server. Among them, the group information of multiple different communication groups is stored on the server, and the communication group can also be called a family group. The communication group can be created by the server based on receiving a creation request. Among them, an Internet of Things cloud (IOT) platform runs on the server, and the Internet of Things platform includes a group management module and a sending module. The group management module is used for creating, updating, and deleting communication groups, and the group management module is also called a family group management module. The group management module is also used to manage the addition and deletion of group members and maintain the group information of the communication group. Among them, maintaining the group information of the communication group can be, for example, maintaining the relationship between the communication group-the account of the group member-the device information corresponding to the account (such as the identification information of the device).

[0159] For each communication group, the sending module is connected to each device in the communication group to send the group information of the communication group to each device. In other words, the group information of the communication group is shared among multiple devices in the same communication group.

[0160] Among them, the server maintains group information of multiple communication groups. A communication group has multiple devices (that is, it can be understood that the first communication group corresponds to multiple devices), and the multiple devices are devices (electronic devices) corresponding to the accounts of multiple group members. Among them, a communication group has multiple group members, and the multiple group members include group management members and ordinary group members. A group member is used to uniquely refer to a user; a group member corresponds to an account, which can be called the account corresponding to the group member, the account of the group member, or the group member account. One account corresponds to at least one device.

[0161] One account corresponds to at least one device. When the number of the at least one device is one, the at least one device is the first device. When the number of the at least one device is multiple, the at least one device includes a first device and a second device. The first device can be a portable device with real-time communication capabilities, a user interface, push notification services, and device collaboration capabilities. For example, the first device can be the mobile phone or computer corresponding to the account. The second device can be a device different from the first device.

[0162] For example, depending on the usage scenario, the second device can be office equipment, home equipment, personal equipment, educational equipment, and other devices. Office equipment includes devices such as smart screens, printers, and projectors; home equipment includes devices such as TVs, speakers, and air conditioners; personal equipment includes devices such as mobile phones, tablets, and watches; and educational equipment includes devices such as electronic whiteboards and smart desks.

[0163] Here, taking a communication group q as an example, the communication group q corresponds to multiple devices, and the aforementioned first electronic device and at least one second electronic device, for example, both belong to the communication group q; the first electronic device and at least one second electronic device may be all the devices in the multiple devices in the communication group q, and of course, may also be part of the multiple devices. Exemplarily, the first electronic device may be the first device corresponding to the group management member among the multiple devices; of course, the first electronic device may also be the first device corresponding to the ordinary group member among the multiple devices. Specifically, the first device may be a mobile phone. The second electronic device may be a device other than the first electronic device among the multiple devices. The server may send the group information of the communication group q to multiple devices in the communication group q; wherein, the group information of the communication group q includes the identification information of the communication group q, the account of the group member, and the identification information of each device corresponding to the account. The server may obtain the group information of the communication group q in the following manner. The identification information of each device corresponding to the account may be presented through a device list.

[0164] In a feasible implementation, the server can send a first query request to the first device corresponding to the group management member of the communication group q, and the first query request is used to query the account of the group management member and the identification information of each device corresponding to the account; for each ordinary group member of the communication group q, the server can send a second query request to the first device corresponding to the ordinary group member, and the second query request is used to query the account of the ordinary group member and the identification information of each device corresponding to the account; thereafter, the server can combine the information sent by the first device corresponding to the group management member based on the first query request, the information sent by the first device corresponding to the ordinary group member based on the second query request, and the identification information of the communication group q to obtain the group information of the communication group q.

[0165] The first query request and the second query request may be sent periodically by the server. Alternatively, the first query request and the second query request may be sent when the server detects changes in group members of the communication group. This improves the timeliness and effectiveness of the server's acquisition of group information.

[0166] As shown in Figure 8, after the server obtains the group information of the communication group, it can send the group information to multiple devices in the communication group in real time or periodically through the sending module. Figure 8 is an example of a communication group with two devices, namely device p1 and device p2. As shown in Figure 8, device p1 includes a recording module and an authentication module. Device p1 can receive group information from the server and verify the group information through the device profile (DP) on device p1. When the group information meets the profile definition, the group information is transmitted to the recording module on device p1, and the recording module can store the group information. When device p1 receives a detection request from other devices, it can determine whether it is in the same communication group as other devices based on the detection request and the stored group information. Similarly, device p2 also includes a recording module and an authentication module. Device p2 can receive group information from the server and verify it through the DP on device p2. When the group information meets the profile definition, it is transmitted to the recording module on device p2, which stores it. When device p2 receives a probe request from another device, it can determine whether it is in the same communication group as the other device based on the probe request and the group information. This allows other devices to self-discover devices p1 and p2.

[0167] As shown in Figure 9, both devices p1 and p2 may also include a communication module. Devices p1 and p2 may be networked wirelessly, such as Bluetooth or WiFi. The authentication module of device p1 also stores authentication information corresponding to device p1, and the authentication module of device p2 also stores authentication information corresponding to device p2. When task collaboration or function transfer is required between devices p1 and p2, before establishing a device collaboration link between them, device p1 may determine whether device p2 is a legitimate device based on the stored authentication information corresponding to device p1. Similarly, device p2 may determine whether device p1 is a legitimate device based on the stored authentication information corresponding to device p2, and establish a device collaboration link if both devices are legitimate. The authentication information corresponding to device p1 may be key information corresponding to device p1, which includes a group identification key corresponding to device p1 and a user identification key corresponding to device p1. The authentication information corresponding to device p2 may be key information corresponding to device p2, which includes a group identification key corresponding to device p2 and a user identification key corresponding to device p2. Device p1 and device p2 belong to the same communication group, and the group identification key corresponding to device p1 and the group identification key corresponding to device p2 are the same.

[0168] When the group information stored in the server's group management module is updated, an update instruction is also sent to devices P1 and P2. The recording module in device P1 can update the group information stored in the recording module based on the update instruction, and the recording module in device P2 can update the group information stored in the recording module based on the update instruction. The update instruction carries the new group information.

[0169] In an embodiment of the present application, a device running the Smart Life app can send a creation request to a server to create a communication group. The server creates the communication group in response to the creation request. The device running the Smart Life app can be, for example, a mobile phone. The communication group can be referred to as a family group. After creating the communication group, the device running the Smart Life app can send a query command to the server to query the group information corresponding to the communication group, thereby obtaining the group information of the communication group from the server.

[0170] The Smart Life app icon is displayed on the mobile phone's UI, as shown in Figure 10. The user can click the Smart Life app icon, and the phone will run the Smart Life app in response to the user's click on the "Smart Life app icon." The user can click the "Create a New Family" card on the Smart Life app's UI. In response to the user's click on "Create a New Family," the phone generates a creation request and sends it to the server. The server can create a family group based on the creation request. After creating the family group, the server can return a creation response to the creation request to the phone, indicating that the family group was successfully created. The phone can then display the created family group to the user based on the creation response. Users can trigger operations to add or delete family members (i.e., group members) on the Smart Life UI.

[0171] The following is an exemplary explanation of adding new group members to a family group with reference to the accompanying drawings.

[0172] As shown in Figure 11 (a), the user can click the "Family Management" card on the Smart Life app's UI to enter the Family Management interface shown in Figure 11 (b). As shown in Figure 11 (b), the Family Management interface displays multiple family groups corresponding to the mobile phone account. There are three family groups: "AAA's Home," "BBB's Home," and "CCC's Home." The user can select any of these family groups to manage group members. As shown in Figure 11 (b), the user can click the "AAA's Home" card to enter the "AAA's Home" interface shown in Figure 11 (c). As shown in Figure 11 (c), the "AAA's Home" interface displays detailed information about "AAA's Home," such as the family name, home location, room and device management, and family members (group members). There are two family members in "AAA's Home," namely "aa," the family member corresponding to the mobile phone, and "bb," another family member. As shown in (c) in Figure 11, the user can click on the "Add member" card to enter the interface for selecting the "Add member" method shown in (d) in Figure 11. The user can select any one of the multiple adding methods displayed to add family members. As shown in (d) in Figure 11, the user can click on the "Add member through Huawei account" card to add a new member, such as "cc". After the members are successfully added, as shown in (e) in Figure 11, family members "aa", "bb" and the new family member "cc" can be displayed among the family members of "AAA's Home". When a group management member (ie, a family administrator such as aa) removes a family member, the consent of the family member is not required and the removal can be done directly. Each family member is used to uniquely refer to a user.

[0173] When a user (i.e., the user designated by the group management member) selects any of the add methods to add a member "cc" to "AAA's home," the first device corresponding to the group management member, such as a mobile phone, generates an add request to add family member "cc" in response to the user's add operation and sends the add request to the server to add member "cc" to "AAA's home." The account corresponding to the mobile phone can be account m1, and the account of member cc is account m3. As shown in Figure 12, the mobile phone can send the add request to the server. In response to the add request, the server can generate an invitation message inviting member cc to join "AAA's home" through the group management module (family group management module) and send the invitation message to the first device corresponding to the invited member cc (e.g., the terminal running the Smart Life app corresponding to the invited member cc) via a push notification service. After receiving the invitation message, the first device corresponding to the invited member cc displays the invitation message. Upon detecting a confirmation operation by the user designated by the invited member cc in response to the invitation message, a confirmation message can be generated, indicating consent to join "AAA's home," and sent to the server. After receiving the confirmation message, the server can add the invited member cc to "AAA's Home" based on the confirmation message and update the group information of "AAA's Home" stored in the group management module. The updated group information includes the identification information of "AAA's Home", the identification information of member aa's account m1 and each device corresponding to account m1, the identification information of member bb's account m2 and each device corresponding to account m2, and the identification information of member cc's account m3 and each device corresponding to account m3.

[0174] For example, the number of devices bound (corresponding) to member aa's account m1 is 2, the number of devices bound to member bb's account m2 is 1, and the number of devices bound to member cc's account m3 is 2, that is, the number of devices corresponding to "AAA's home" is 2+1+2=5; the server can send updated group information to each of the 5 devices; after each device receives the group information, it can store the group information in its own recording module, so that each device can subsequently determine whether it is in the same family group as other devices based on the stored group information and the detection requests sent from other devices, thereby realizing self-discovery of devices in the same family group.

[0175] In an embodiment of the present application, the first electronic device may be, for example, a mobile phone. The mobile phone may display to the user on the super terminal interface an icon representing the mobile phone and an icon representing at least one device around the mobile phone and in the same communication group as the mobile phone. The user may drag and drop the icons displayed on the super terminal interface to select the device to be coordinated and the coordinating device from the mobile phone and at least one device to establish a device coordination link between the device to be coordinated and the coordinating device.

[0176] The device to be coordinated may be a mobile phone, and the coordinating device may be a device in the at least one device. The device to be coordinated may be a device in the at least one device, and the coordinating device may be a mobile phone. When the number of at least one device is multiple, both the device to be coordinated and the coordinating device may be devices in the at least one device. The user may drag an icon n1 displayed on the hyperterminal interface to the designated area corresponding to the icon n2; or drag the icon n1 to partially or completely overlap with the icon n2. The device corresponding to the icon n1 may be the device to be coordinated, and the device corresponding to the icon n2 may be the coordinating device. In other words, the device corresponding to the dragged icon is the device to be coordinated.

[0177] In a feasible implementation, the mobile phone can generate a processing request for establishing a device collaborative link between the device to be coordinated and the collaborative device in response to the user's drag operation, and send the processing request to the server; after receiving the processing request, the server can generate a control instruction based on the processing request, and the control instruction is used to control the device to be coordinated to establish a device collaborative link, and send the control instruction to the device to be coordinated. Of course, the control instruction can also be an instruction for controlling the collaborative device to establish a device collaborative link, and then the server can send the control instruction to the collaborative device. The following explanation is given by taking the control instruction as an instruction for controlling the device to be coordinated to establish a device collaborative link, and the server sending the control instruction to the device to be coordinated as an example.

[0178] The server can send a control instruction to the device to be coordinated, and the control instruction is used to control the device to be coordinated to establish a device cooperative link. After receiving the control instruction, the device to be coordinated can respond to the control instruction and send a verification request to the cooperative device. The verification request is used by the cooperative device to determine whether the device to be coordinated is a legal device; after receiving the verification request, the cooperative device sends a verification response to the device to be coordinated if it determines that the device to be coordinated is a legal device based on the verification request. The verification response is used by the device to be coordinated to determine whether the cooperative device is a legal device; after receiving the verification response, the device to be coordinated can establish a device cooperative link between itself and the cooperative device through a distributed soft bus if it determines that the cooperative device is a legal device based on the verification response. Through the device cooperative link, the cooperative device can transfer the task flow to the device to be coordinated for processing with the help of the capabilities of the device to be coordinated, which can improve the user experience. The following, combined with the application scenario, provides an exemplary explanation of establishing a device cooperative link between cooperative devices and cooperative devices and performing task collaboration through the device cooperative link.

[0179] For the task collaboration scenario between the mobile phone and the speaker: the user can drag the icon 53 shown in Figure 7 to partially overlap or fully overlap with the icon 51 to establish a device collaboration link between the mobile phone and the speaker; wherein the speaker is the device to be collaborated, and the mobile phone is the collaborative device. As shown in Figure 13, the mobile phone is playing song f. After the device collaboration link between the mobile phone and the speaker is established, the song f played on the mobile phone can be streamed to the speaker for playback. Of course, the user can also drag the icon 51 shown in Figure 7 to partially overlap or fully overlap with the icon 53 in the super terminal interface of the mobile phone to establish a device collaboration link between the mobile phone and the speaker; wherein the mobile phone is the device to be collaborated, and the speaker is the collaborative device; for example, song g is playing on the speaker. After the device collaboration link between the mobile phone and the speaker is established, the song g played on the speaker can be streamed to the mobile phone for playback.

[0180] For the task collaboration scenario between the watch and the smart screen: the user can drag the icon 55 shown in Figure 7 to partially or completely overlap with the icon 52 to establish a device collaboration link between the watch and the smart screen; wherein the smart screen is the device to be collaborated, and the watch is the collaborative device. For example, when the watch determines that the user is in a running scene based on information such as the user's heart rate and blood pressure, the watch can transmit information such as heart rate and blood pressure to the smart screen for display. As shown in Figure 14, it can also be that when the watch determines that the user is in a running scene based on information such as the user's heart rate and blood pressure, the smart screen is linked to play videos related to the sports scene.

[0181] Of course, when the collaborative device does not support certain functions, the device collaborative link between the device to be coordinated and the collaborative device can be used to achieve the functions that the collaborative device cannot support with the support of the device to be coordinated, so as to better complete the corresponding business or tasks. This can not only improve life or work efficiency, but also enhance the user's comfort, sense of security and convenience. For example, in the task collaboration scenario between a mobile phone and a printer, the collaborative device is a mobile phone, the device to be coordinated is a printer, and the mobile phone does not support the printing function. When the hyperterminal interface shows a printer icon, the printer icon can be dragged to partially overlap or fully overlap with the mobile phone icon to establish a device collaborative link between the printer and the mobile phone. After that, the mobile phone can automatically transfer the file to the printer for printing, which improves the user experience.

[0182] This solution establishes a device collaboration link between devices in the same family group by dragging and dropping icons displayed on the HyperTerminal interface. This device collaboration link enables task collaboration or function transfer between devices, expanding the range of devices available for task collaboration, increasing device selectivity and flexibility, and improving the user experience. This addresses the issues of poor selectivity and user experience that exist in related technologies, which only allow task collaboration or function transfer between devices with the same account.

[0183] When the first electronic device is a collaborative device, the collaborative device can automatically discover the target device in the current environment. Then, based on user operations, it can use the target device as the device to be coordinated, thereby achieving task collaboration or function flow between the collaborative device and the device to be coordinated. The target device can handle the task better than the collaborative device, and the task can be the task that the collaborative device needs to handle.

[0184] Figure 15 is a flow chart of a device collaboration method provided in an embodiment of the present application. The method is applied to a device collaboration system. The following is a detailed explanation of the device collaboration method provided in an embodiment of the present application, assuming that the number of at least one second electronic device is 2. As shown in Figure 15, the device collaboration method includes S601 to S606; or the device collaboration method includes S601 to 605 and S607 to S611. The device collaboration method is explained in detail below.

[0185] S601: A first electronic device sends a detection request in response to a first user operation, where the first user operation is used to start a device collaboration function.

[0186] The first electronic device is a device with a device collaboration function; the detection request is used to discover devices around the first electronic device.

[0187] In the embodiment of the present application, the first user operation is an operation for starting a device cooperation function. When the first electronic device detects the first user operation, it can start the device cooperation function in response to the first user operation and then send the detection request.

[0188] For example, a hyperterminal function card is displayed on the display interface of the first electronic device, and the first user operation may be a click operation on the hyperterminal function card or a click operation on the device collaboration icon (card) in the hyperterminal function card.

[0189] The probe request may be sent via broadcast using wireless communication. Specifically, the probe request may be used to detect devices surrounding the first electronic device that are in the same communication group as the first electronic device. Devices surrounding the first electronic device may be understood as being in the same network as the first electronic device or being within a target distance threshold from the first electronic device. For example, the target distance threshold may be 10 meters.

[0190] Among them, the detection request carries relevant information of the first electronic device, and the relevant information includes at least one of the identification information of the first electronic device, the account corresponding to the first electronic device, and the group identification information corresponding to the first electronic device. The identification information of the first electronic device is used to uniquely refer to the first electronic device. For example, the identification information of the first electronic device can be the unique device identifier (UDID) or MAC of the first electronic device. The group identification information corresponding to the first electronic device can be understood as the identification information of the communication group corresponding to the first electronic device (that is, the communication group to which the first electronic device belongs), and the group identification information can be, for example, an FID.

[0191] Exemplarily, the first electronic device can be a mobile phone, glasses, tablet, PC, smart screen, watch, speaker, car computer, headset, printer, projector, sweeper and other devices.

[0192] S602: The second electronic device receives a detection request from the first electronic device.

[0193] In an embodiment of the present application, the second electronic device may receive the detection request through a monitoring interface. The second electronic device may perform the following operations based on the detection request:

[0194] In a feasible implementation, the second electronic device may determine whether to send a first probe response or a second probe response to the first electronic device based on the stored group information and the probe request. In the case where the second electronic device determines that it belongs to the same communication group as the first electronic device based on the probe request, it may send a first probe response to the first electronic device, and the first probe response indicates that the first electronic device and the second electronic device belong to the same communication group. In the case where the second electronic device determines that the first electronic device and the second electronic device do not belong to the same communication group based on the stored group information and the probe request, it may send a second probe response to the first electronic device, and the second probe response is used to indicate that the first electronic device and the second electronic device do not belong to the same communication group.

[0195] In another feasible implementation, the second electronic device may determine whether to send a probe response to the first electronic device based on the stored group information and the probe request. If the second electronic device determines that it belongs to the same communication group as the first electronic device based on the probe response, it may send a probe response to the first electronic device, where the probe response indicates that the first and second electronic devices belong to the same communication group; the probe response may be the first probe response described above. If the second electronic device determines that it does not belong to the same communication group as the first electronic device based on the stored group information and the probe request, it may not send any information to the first electronic device.

[0196] Among them, the information carried in the detection request and the stored group information can be matched to obtain a matching result; when the matching result indicates that the information carried in the detection request matches the stored group information, it is determined that the second electronic device and the first electronic device belong to the same communication group. The group information includes at least one of the identification information of the communication group corresponding to the second electronic device (i.e., the group identification information corresponding to the second electronic device), the account of the group member of the communication group corresponding to the second electronic device (i.e., the group member account), and the identification information of the electronic device corresponding to the group member's account. The identification information of the communication group corresponding to the second electronic device is used to uniquely refer to the communication group corresponding to the second electronic device. The identification information of the communication group corresponding to the second electronic device can be, for example, the FID of the communication group corresponding to the second electronic device. The identification information of the electronic device is used to uniquely refer to the electronic device. The identification information of the electronic device corresponding to the account of the group member can be the UDID of the electronic device. There are multiple group members, and each group member corresponds to an account.

[0197] Exemplarily, the group information stored by the second electronic device includes the FID of the communication group corresponding to the second electronic device, the account of the group member of the communication group corresponding to the second electronic device (such as a Huawei account), and the UDID of the electronic device corresponding to the account, and the number of accounts of the group member is multiple. The relevant information of the first electronic device carried in the detection request can be, for example, the UDID of the first electronic device; when the UDID of the first electronic device matches the UDID of the electronic device corresponding to the account of the group member stored in the second electronic device (that is, when the UDID of the first electronic device exists in the UDID of the electronic device corresponding to the group member), it is determined that the first electronic device and the second electronic device belong to the same communication group.

[0198] The group information stored in the second electronic device may be sent by the server to the second electronic device. The server may maintain the group information of each communication group. For each communication group, the server may send the group information of the communication group in real time or periodically to each electronic device corresponding to the account of the group member of the communication group (also referred to as each electronic device corresponding to the communication group). When a group member joins or leaves the communication group, or when an electronic device corresponding to the account of a group member joins or leaves, the server may update the group information of the communication group.

[0199] For example, a communication group s may have three group members, whose accounts are Huawei account u1, Huawei account u2, and Huawei account u3. The electronic devices corresponding to Huawei account u1 may be a mobile phone and a smart screen, the electronic devices corresponding to Huawei account u2 may be a watch and a speaker, and the electronic devices corresponding to Huawei account u3 may be headphones and a projector. The server may send group information corresponding to the communication group s to the mobile phone, smart screen, watch, speaker, headphones, and projector in real time or periodically. The group information corresponding to the communication group s includes the FID of the communication group s, Huawei account u1, Huawei account u2, Huawei account u3, the UDID of the mobile phone, the UDID of the smart screen, the UDID of the watch, the UDID of the speaker, the UDID of the headphones, and the UDID of the projector. When a new group member needs to be added, the new group member's account, such as Huawei account u4, can be added to the group information of the communication group s. The UDID of each electronic device corresponding to Huawei account u4 is also added to the group information of the communication group s to update the group information of the communication group s. When you need to delete a group member, for example, if the account of the group member is Huawei account u3, you can delete Huawei account u3, the UDID of the headset corresponding to Huawei account u3, and the UDID of the projector corresponding to Huawei account u3 from the group information corresponding to the communication group s to update the group information. The first electronic device can be a mobile phone, and the second electronic device can be a device such as a smart screen, a watch, a speaker, a headset, and a projector.

[0200] S603: When the second electronic device determines, based on the detection request, that it belongs to the same communication group as the first electronic device, the second electronic device sends a detection response to the first electronic device.

[0201] The detection response is used to indicate that the first electronic device and the second electronic device belong to the same communication group, and that at least some of the electronic devices in the communication group correspond to different accounts.

[0202] The detection response in S603 may be the first detection response in the specific implementation process of S602.

[0203] S604: The first electronic device receives at least one detection response to the detection request.

[0204] The detection response in S604 may be the first detection response in the specific implementation process of S602.

[0205] S605: The first electronic device determines at least one second electronic device based on the at least one detection response.

[0206] The first electronic device and at least one second electronic device belong to the same communication group, the account corresponding to some or all of the at least one second electronic device is different from the account corresponding to the first electronic device, and the detection response is used to indicate that the first electronic device and the second electronic device belong to the same communication group. The detection response in S605 can be the first detection response in the specific implementation process of S602.

[0207] In a feasible implementation, the account corresponding to the at least one second electronic device is different from the account of the first electronic device, that is, the at least one second electronic device is a different-account device.

[0208] In another feasible implementation, the account corresponding to at least one second electronic device has the account corresponding to the first electronic device, and has an account different from the account corresponding to the first electronic device, that is, at least one second electronic device has a device with a different account and a device with the same account.

[0209] In the embodiment of the present application, the number of at least one detection response is the same as the number of at least one second electronic device. The first electronic device can determine a corresponding second electronic device based on a received detection response.

[0210] In a feasible implementation, the detection response includes identification information of the same communication group to which the first electronic device and the second electronic device belong and identification information of the second electronic device.

[0211] Exemplarily, the first electronic device is a mobile phone. When the mobile phone starts the device collaboration function, the mobile phone will find devices within the Bluetooth or WiFi range that belong to the same family group as the mobile phone.

[0212] It should be noted that S606 or 607 to S611 may be executed after S605.

[0213] S606: The first electronic device displays a first control and at least one second control.

[0214] In an embodiment of the present application, a first electronic device may send a control acquisition request to a server for acquiring a first control and at least one second control; the server may acquire the first control and at least one second control based on the control acquisition request, and send the first control and at least one second control to the first electronic device. The first control and at least one second control may be generated by the server; of course, they may also be sent to the server by other devices. The first electronic device may also determine the control corresponding to the identification information of the first electronic device from a plurality of pre-stored controls to obtain the first control; and determine the control corresponding to the identification information of each second electronic device from a plurality of pre-stored controls to obtain at least one second control.

[0215] After obtaining the first control and the second control, the first electronic device can display the first control and at least one second control on the super terminal interface, so that subsequent users can select corresponding devices for task collaboration or function flow based on the displayed first control and second control, thereby increasing the range of selectable devices during task collaboration or function flow and further improving the user experience.

[0216] S607: Send an acquisition request to the server, where the acquisition request is used to acquire the first device information and second device information of at least one second electronic device.

[0217] The first device information represents the state and / or attributes of the first electronic device; the second device information represents the state and / or attributes of the second electronic device. The acquisition request carries identification information of the first electronic device and identification information of at least one second electronic device.

[0218] In one feasible implementation, the first device information includes at least one of model information, configuration information, status information, size information of the first electronic device, and an image of the first electronic device. The second device information may include at least one of model information, configuration information, status information, size information of the second electronic device, and an image of the second electronic device.

[0219] S608: The server receives an acquisition request from the first electronic device.

[0220] S609: The server sends the first device information and the second device information of at least one second electronic device to the first electronic device based on the acquisition request.

[0221] The first device information represents the state and / or attributes of the first electronic device; the second electronic information represents the state and / or attributes of the second electronic device.

[0222] In an embodiment of the present application, the server may retrieve first device information of the first electronic device and second device information of the at least one second electronic device from the stored plurality of device information based on the identification information of the first electronic device and the identification information of the at least one second electronic device in the acquisition request. The first device information and the second device information of the at least one second electronic device may be sent to the server by other devices or downloaded by the server via a network.

[0223] S610: The first electronic device receives first device information and second device information of at least one second electronic device from a server.

[0224] S611: The first electronic device displays a first control based on the first device information, and displays at least one second control based on the second device information of at least one second electronic device.

[0225] In an embodiment of the present application, a first electronic device may generate a first control based on the first device information, and for each second electronic device, a second control may be generated based on the second device information of the second electronic device. Of course, it is also possible to determine the first control corresponding to the first device information from pre-generated controls, and to determine the second control corresponding to each second device information from pre-generated controls. After obtaining the first control and at least one second control, the first control and at least one second control may be displayed on the hyperterminal interface.

[0226] For example, the first electronic device is a mobile phone. As shown in FIG7 , the first control may be icon 51 representing the mobile phone in FIG7 . The second control may be icons representing devices around the mobile phone that are in the same communication group as the mobile phone. The number of at least one second control may be four, and at least one second control may be icon 52 representing a watch, icon 53 representing a speaker, icon 54 representing headphones, and icon 55 representing a smart screen in FIG7 .

[0227] The embodiment of the present application provides a device collaboration method. After the first electronic device starts the device collaboration function, the first electronic device can automatically discover at least one second electronic device in the same family group, such as the second electronic device corresponding to a different account and the second electronic device corresponding to the same account, which expands the range of automatically discovered devices and improves the self-discovery ability of the first electronic device. Subsequent users can select corresponding devices from the automatically discovered devices for task collaboration or function transfer according to their needs, which improves the optional range of devices required for task collaboration or function transfer and the user experience. The user does not need to manually bind the second electronic device with a different account on the first electronic device, avoiding the problems of complicated operation, waste of a lot of time and impact on user experience in the binding process.

[0228] Figure 16 is a flow chart of a device collaboration method provided in an embodiment of the present application. The device collaboration method can be applied after displaying a first control and at least one second control. For example, the device collaboration method can be applied after S606 or S611 in the above embodiment. Of course, it can also be applied after the first control and at least one second control are displayed using other methods. It should be understood that the device collaboration method provided in Figure 16 is illustrated by taking the first electronic device as the collaborative device and any second electronic device of the at least one second electronic device as the device to be collaborated as an example. The device collaboration method may include S701 to S705. Each step is explained in detail below.

[0229] S701: The first electronic device sends a processing request to the server in response to a second user operation.

[0230] The processing request is used to establish a device collaboration link between the first electronic device and the second electronic device. The device collaboration link is used to perform task collaboration between the first electronic device and the second electronic device. The first electronic device is a collaborating device, and the second electronic device is a device to be collaborated. The second user operation is used to associate the first electronic device with the second electronic device.

[0231] In one feasible implementation, the second user operation may be a user operation acting on a second control, for example, a user pressing and holding a second control and dragging the second control toward a first control, and releasing the second control when the second control reaches a designated area corresponding to the first control. The first control represents a first electronic device, and the second control represents a second electronic device. The first control and the second control partially or completely overlap after being dragged.

[0232] The first electronic device may be a mobile phone, and the second electronic device may be a smart screen. As shown in FIG17 , the first control may be icon 81 representing the mobile phone; the second control may be icon 85 representing the smart screen. The second user operation may be the user pressing and dragging icon 85 until it partially overlaps icon 81. In response to the user's drag operation, the mobile phone may generate a processing request for establishing a device collaboration link between the mobile phone and the smart screen, and send the processing request to the server.

[0233] S702: The server processes a request from the first electronic device.

[0234] S703: The server sends a control instruction to the second electronic device based on the processing request.

[0235] The control instruction is used to control the second electronic device to establish a device cooperation link, and the second electronic device is a device to be cooperated.

[0236] Exemplarily, the first electronic device is a mobile phone, and the second electronic device is a smart screen. The server can generate control instructions for the smart screen, which are used to control the smart screen to establish a device collaborative link between the smart screen and the mobile phone.

[0237] S704: The second electronic device receives a control instruction from the server.

[0238] S705: The second electronic device establishes a device collaboration link between the first electronic device and the second electronic device based on the control instruction.

[0239] In an embodiment of the present application, the second electronic device can verify the identity of the first electronic device based on the control instruction. When the identity verification of the first electronic device passes, it is determined that the first electronic device is a legal device, and a device collaborative link can be established between the first electronic device and the second electronic device through a distributed soft bus.

[0240] Exemplarily, the first electronic device is a mobile phone, and the second electronic device is a smart screen. The smart screen can verify the identity of the mobile phone based on control instructions, and if the identity verification of the mobile phone passes, it is determined that the mobile phone is a legitimate device; the smart screen can establish a device collaborative link between the mobile phone and the smart screen through a distributed soft bus.

[0241] Among them, S705 can also be implemented through S7051~S7055:

[0242] S7051. The second electronic device sends a verification request to the first electronic device based on the control instruction.

[0243] The verification request is used to verify whether the second electronic device is a legitimate device.

[0244] In an embodiment of the present application, the second electronic device can generate a verification request based on the control instruction and send the verification request to the first electronic device, so that after the first electronic device receives the verification request, it can determine whether the second electronic device is a legitimate device based on the verification request.

[0245] In one possible implementation, the verification request carries the identification information of the second electronic device and first encrypted information. The first encrypted information is obtained by encrypting the identification information of the second electronic device using the stored first key information. The identification information of the second electronic device is used to uniquely identify the second electronic device. The identification information of the second electronic device may be, for example, the UDID or MAC address of the second electronic device.

[0246] The first key information may include a group identification key corresponding to the second electronic device and a user identification key corresponding to the second electronic device; the group identification key corresponding to the second electronic device may be generated based on the identification information of the communication group corresponding to the second electronic device, and the user identification key corresponding to the second electronic device may be generated based on the account corresponding to the second electronic device (i.e., the group member account). The first encrypted information may specifically be obtained by encrypting the identification information of the second electronic device using the group identification key corresponding to the second electronic device and the user identification key corresponding to the second electronic device. When the first electronic device and the second electronic device belong to the same communication group, the group identification key corresponding to the first electronic device and the group identification key corresponding to the second electronic device are the same.

[0247] Exemplarily, the first electronic device is a mobile phone, and the second electronic device is a smart screen; wherein, the smart screen can use the communication group key and user identification key corresponding to the smart screen to encrypt the UDID of the smart screen to obtain first encrypted information, generate a verification request based on the UDID of the smart screen and the first encrypted information, and send a verification request to the mobile phone, wherein the verification request carries the UDID of the smart screen and the first encrypted information.

[0248] S7052: The first electronic device receives a verification request.

[0249] S7053: When the first electronic device determines that the second electronic device is a legitimate device based on the verification request, the first electronic device sends a verification response to the second electronic device.

[0250] In an embodiment of the present application, the first electronic device can determine whether the second electronic device is a legitimate device based on the verification request; if the second electronic device is determined to be a legitimate device, the first electronic device can generate a verification response and send the verification response to the second electronic device. The verification response is used to determine whether the first electronic device is a legitimate device.

[0251] The first electronic device may determine whether the second electronic device is a legitimate device based on the verification request in the following manner:

[0252] The first electronic device can parse the verification request to obtain the first encrypted information and the identification information of the second electronic device. The first electronic device can encrypt the identification information of the second electronic device based on the stored second key information to obtain the second encrypted information. The first encrypted information and the second encrypted information can be matched to obtain a matching result. When the matching result indicates that the first encrypted information and the second encrypted information match, the second electronic device is determined to be a legitimate device. The second key information may include a group identification key corresponding to the first electronic device and a user identification key corresponding to the first electronic device; the group identification key corresponding to the first electronic device may be generated based on the identification information of the communication group corresponding to the first electronic device, and the user identification key corresponding to the first electronic device may be generated based on the account corresponding to the first electronic device (i.e., the group member account).

[0253] In this solution, the first electronic device verifies the legitimacy of the second electronic device, ensuring that only legitimate devices can establish a device collaboration link, ensuring the security and reliability of subsequent data transmission and operations. This helps prevent malicious devices from conducting illegal attacks and protects user privacy and data security.

[0254] Exemplarily, the first electronic device is a mobile phone, and the second electronic device is a smart screen; wherein, the mobile phone can parse the verification request sent by the smart screen to obtain the UDID and the first encrypted information of the smart screen. The first encrypted information is obtained by the smart screen using the communication group key corresponding to the smart screen and the user identification key corresponding to the smart screen to encrypt the UDID of the smart screen. The mobile phone can use the communication group key corresponding to the mobile phone and the user identification key corresponding to the mobile phone to encrypt the UDID of the smart screen to obtain the second encrypted information. The mobile phone can match the first encrypted information and the second encrypted information to obtain a matching result; when the matching result indicates that the first encrypted information and the second encrypted information match, the mobile phone can determine that the smart screen is a legitimate device. Exemplarily, the matching of the first encrypted information and the second encrypted information may mean that the first encrypted information and the second encrypted information are consistent.

[0255] In this embodiment of the present application, the verification response carries the identification information of the first electronic device and the third encrypted information. The identification information of the first electronic device is used to uniquely identify the first electronic device. For example, the identification information of the first electronic device may be the UDID of the first electronic device. The third encrypted information may be obtained by encrypting the identification information of the first electronic device based on the stored second key information.

[0256] S7054. The second electronic device receives a verification response.

[0257] S7055: When the second electronic device determines that the first electronic device is a legitimate device based on the verification response, the second electronic device establishes a device cooperation link between the first electronic device and the second electronic device.

[0258] In an embodiment of the present application, the second electronic device can determine whether the first electronic device is a legal device based on the verification response; if it is determined that the first electronic device is a legal device, the second electronic device can establish a device collaborative link between the first electronic device and the second electronic device through a distributed soft bus.

[0259] The second electronic device may determine whether the first electronic device is a legitimate device based on the verification response in the following manner:

[0260] In a feasible implementation, the second electronic device can parse the verification response to obtain the identification information of the first electronic device and the third encrypted information; the second electronic device can use the first key information (the first key information is, for example, the group identification key corresponding to the second electronic device and the user identification key corresponding to the second electronic device) to encrypt the identification information of the first electronic device to obtain the fourth encrypted information; the third encrypted information and the fourth encrypted information can be matched to obtain a matching result; when the matching result indicates that the third encrypted information and the fourth encrypted information match, the first electronic device is determined to be a legal device.

[0261] For example, the first electronic device is a mobile phone, and the second electronic device is a smart screen. The smart screen can receive a verification response from the mobile phone, parse the verification response, and obtain the mobile phone's UDID and third encrypted information. The third encrypted information can be obtained by encrypting the mobile phone's UDID using the mobile phone's corresponding communication group key and the mobile phone's corresponding user identification key. The smart screen can encrypt the mobile phone's UDID using the communication group key and the user identification key corresponding to the smart screen to obtain fourth encrypted information. If the third encrypted information and the fourth encrypted information match, the mobile phone is determined to be a legitimate device.

[0262] Based on the above solution, mutual verification is performed between the mobile phone and the smart screen. After the verification is passed, the smart screen can establish a device collaboration link between the mobile phone and the smart screen based on the distributed soft bus, thereby improving the security and reliability of the established device collaboration link and ensuring that the devices can communicate and exchange data safely and reliably.

[0263] An embodiment of the present application provides a device collaboration method, in which, after displaying a first control and at least one second control, a first electronic device sends a processing request to a server in response to a second user operation, and the server sends a control instruction to the second electronic device based on the processing request; the second electronic device establishes a device collaboration link between the first electronic device and the second electronic device based on the control instruction; in this way, it is achieved that, according to user needs, corresponding devices are selected from automatically discovered devices in the same family group for task collaboration or function flow, thereby improving the optional range of devices required for task collaboration or function flow and the user experience.

[0264] Moreover, before establishing the device collaborative link, the user is unaware of the mutual authentication between the first electronic device and the second electronic device. After the authentication is completed, the device collaborative link can be established, and task collaboration or function flow can be automatically performed through the device collaborative link, which simplifies user operations and improves user experience.

[0265] Figure 18 is a flowchart of another device collaboration method provided in an embodiment of the present application. The device collaboration method can be applied after displaying a first control and at least one second control. For example, the device collaboration method can be applied after S606 or S611 in the above embodiment. Of course, it can also be applied after the first control and at least one second control are displayed using other methods. It should be understood that the device collaboration method provided in Figure 18 is illustrated by taking the first electronic device as the device to be collaborated and one of the at least one second electronic device as the collaborating device as an example. The device collaboration method may include S901 to S905, and each step is explained in detail below.

[0266] S901. The first electronic device sends a processing request to the server in response to a second user operation.

[0267] The processing request is used to establish a device collaboration link between the first electronic device and the second electronic device. The device collaboration link is used to perform task collaboration between the first electronic device and the second electronic device. The first electronic device is the device to be collaborated with, and the second electronic device is the collaborating device. The second user operation is used to associate the first electronic device with the second electronic device.

[0268] In one feasible implementation, the second user operation may be a user operation acting on the first control, for example, the user presses and holds the first control and drags the first control toward the second control, and releases the first control when the first control reaches a designated area corresponding to the second control. The first control represents the first electronic device, and the second control represents the second electronic device. The first control and the second control partially or completely overlap after being dragged.

[0269] The first electronic device may be a mobile phone, and the second electronic device may be a smart screen. As shown in FIG19 , the first control may be icon 1001 representing the mobile phone; the second control may be icon 1005 representing the smart screen. The second user operation may be an operation in which the user drags icon 1001 to partially overlap icon 1005. In response to the user's drag operation, the mobile phone may generate a processing request for establishing a device collaboration link between the mobile phone and the smart screen, and send the processing request to the server.

[0270] S902: The server receives a processing request from the first electronic device.

[0271] S903: The server sends a control instruction to the first electronic device based on the processing request.

[0272] The control instruction is used to control the first electronic device to establish a device collaboration link between the first electronic device and the second electronic device. The first electronic device is a device to be collaborated.

[0273] Exemplarily, the first electronic device is a mobile phone, and the second electronic device is a smart screen. The server can generate control instructions for the mobile phone, and the control instructions are used to control the mobile phone to establish a device collaborative link between the smart screen and the mobile phone.

[0274] S904: The first electronic device receives a control instruction from the server.

[0275] S905: The first electronic device establishes a device collaboration link between the first electronic device and the second electronic device based on the control instruction.

[0276] In an embodiment of the present application, the first electronic device can verify the identity of the second electronic device based on the control instruction, and when the identity verification of the second electronic device passes, it is determined that the second electronic device is a legitimate device; the first electronic device can establish a device collaborative link between the first electronic device and the second electronic device through a distributed soft bus.

[0277] Exemplarily, the first electronic device is a mobile phone, and the second electronic device is a smart screen. The mobile phone can verify the identity of the smart screen based on control instructions. If the identity verification of the smart screen passes, the smart screen is determined to be a legitimate device; the mobile phone can establish a device collaborative link between the mobile phone and the smart screen through a distributed soft bus.

[0278] Among them, S905 can also be implemented through S9051~S9055:

[0279] S9051. The first electronic device sends a verification request to the second electronic device based on the control instruction.

[0280] The verification request is used to verify whether the first electronic device is a legitimate device.

[0281] In an embodiment of the present application, the first electronic device can generate a verification request based on the control instruction and send the verification request to the second electronic device, so that after the second electronic device receives the verification request, it can determine whether the first electronic device is a legitimate device based on the verification request.

[0282] In one feasible implementation, the verification request carries identification information of the first electronic device and first encrypted information. The first encrypted information is obtained by encrypting the identification information of the first electronic device using stored first key information. The identification information of the first electronic device is used to uniquely identify the first electronic device. For example, the identification information of the first electronic device may be the UDID or MAC address of the first electronic device.

[0283] The first key information may include a group identification key corresponding to the first electronic device and a user identification key corresponding to the first electronic device; the group identification key corresponding to the first electronic device may be generated based on the identification information of the communication group corresponding to the first electronic device, and the user identification key corresponding to the first electronic device may be generated based on the account corresponding to the first electronic device (i.e., the group member account). The first encrypted information may specifically be obtained by encrypting the identification information of the first electronic device using the group identification key corresponding to the first electronic device and the user identification key corresponding to the first electronic device. When the first electronic device and the second electronic device belong to the same communication group, the group identification key corresponding to the first electronic device and the group identification key corresponding to the second electronic device are the same.

[0284] Exemplarily, the first electronic device is a mobile phone, and the second electronic device is a smart screen; wherein, the mobile phone can use the communication group key and user identification key corresponding to the mobile phone to encrypt the UDID of the mobile phone to obtain the first encrypted information, generate a verification request based on the UDID of the mobile phone and the first encrypted information, and send the verification request to the smart screen, the verification request carrying the UDID of the mobile phone and the first encrypted information.

[0285] S9052. The second electronic device receives the verification request.

[0286] S9053. When the second electronic device determines that the first electronic device is a legitimate device based on the verification request, the second electronic device sends a verification response to the first electronic device.

[0287] In an embodiment of the present application, the second electronic device can determine whether the first electronic device is a legitimate device based on the verification request. If the first electronic device is determined to be a legitimate device, the second electronic device can generate a verification response and send the verification response to the first electronic device. The verification response is used to determine whether the second electronic device is a legitimate device.

[0288] The second electronic device may determine whether the first electronic device is a legitimate device based on the verification request in the following manner:

[0289] The second electronic device can parse the verification request to obtain the first encrypted information and the identification information of the first electronic device. The second electronic device can encrypt the identification information of the first electronic device based on the stored second key information to obtain the second encrypted information. The first encrypted information and the second encrypted information can be matched to obtain a matching result. When the matching result indicates that the first encrypted information and the second encrypted information match, the first electronic device is determined to be a legitimate device. The second key information may include a group identification key corresponding to the second electronic device and a user identification key corresponding to the second electronic device; the group identification key corresponding to the second electronic device may be generated based on the identification information of the communication group corresponding to the second electronic device, and the user identification key corresponding to the second electronic device may be generated based on the account corresponding to the second electronic device (i.e., the group member account).

[0290] In this solution, the first electronic device verifies the legitimacy of the second electronic device, ensuring that only legitimate devices can establish a device collaboration link, ensuring the security and reliability of subsequent data transmission and operations. This helps prevent malicious devices from conducting illegal attacks and protects user privacy and data security.

[0291] Exemplarily, the first electronic device is a mobile phone, and the second electronic device is a smart screen; wherein, the smart screen can parse the verification request sent by the mobile phone to obtain the UDID of the mobile phone and the first encrypted information. The first encrypted information is obtained by the mobile phone using the communication group key corresponding to the mobile phone and the user identification key corresponding to the mobile phone to encrypt the UDID of the mobile phone. The smart screen can use the communication group key corresponding to the smart screen and the user identification key corresponding to the smart screen to encrypt the UDID of the mobile phone to obtain the second encrypted information. The smart screen can match the first encrypted information and the second encrypted information to obtain a matching result; when the matching result indicates that the first encrypted information and the second encrypted information match, the smart screen can determine that the mobile phone is a legitimate device. The matching of the first encrypted information and the second encrypted information can mean that the first encrypted information and the second encrypted information are consistent, or the similarity between the first encrypted information and the second encrypted information is greater than a preset similarity threshold.

[0292] In this embodiment of the present application, the verification response carries the identification information of the second electronic device and the third encrypted information. The identification information of the second electronic device is used to uniquely identify the second electronic device. For example, the identification information of the second electronic device may be the UDID of the second electronic device. The third encrypted information may be obtained by encrypting the identification information of the second electronic device based on the stored second key information.

[0293] S9054. The first electronic device receives a verification response.

[0294] S9055. When the first electronic device determines that the second electronic device is a legitimate device based on the verification response, the first electronic device establishes a device cooperation link between the first electronic device and the second electronic device.

[0295] In an embodiment of the present application, the first electronic device can determine whether the second electronic device is a legal device based on the verification response; if the second electronic device is determined to be a legal device, the first electronic device can establish a device collaborative link between the first electronic device and the second electronic device through a distributed soft bus.

[0296] The first electronic device may determine whether the second electronic device is a legitimate device based on the verification response in the following manner:

[0297] In one feasible implementation, the first electronic device may parse the verification response to obtain the identification information and third encrypted information of the second electronic device; the first electronic device may use the first key information (the first key information is, for example, the group identification key corresponding to the first electronic device and the user identification key corresponding to the first electronic device) to encrypt the identification information of the second electronic device to obtain fourth encrypted information; the third encrypted information and the fourth encrypted information may be matched to obtain a matching result; if the matching result indicates that the third encrypted information and the fourth encrypted information match, the second electronic device is determined to be a legitimate device. The matching of the third encrypted information and the fourth encrypted information may mean that the third encrypted information and the fourth encrypted information are consistent, or the similarity between the third encrypted information and the fourth encrypted information is greater than a preset similarity threshold.

[0298] For example, the first electronic device is a mobile phone, and the second electronic device is a smart screen. The mobile phone can receive a verification response from the smart screen, parse the verification response, and obtain the smart screen's UDID and third encrypted information. The third encrypted information can be obtained by encrypting the smart screen's UDID using the communication group key and user identification key corresponding to the smart screen. The mobile phone can encrypt the smart screen's UDID using the communication group key and user identification key corresponding to the mobile phone to obtain fourth encrypted information. If the third encrypted information and the fourth encrypted information match, the mobile phone is determined to be a legitimate device.

[0299] Based on the above solution, mutual verification is performed between the mobile phone and the smart screen. After the verification is passed, the smart screen can establish a device collaboration link between the mobile phone and the smart screen based on the distributed soft bus, thereby improving the security and reliability of the established device collaboration link and ensuring that the devices can communicate and exchange data safely and reliably.

[0300] An embodiment of the present application provides a device collaboration method, in which, after displaying a first control and at least one second control, a first electronic device sends a processing request to a server in response to a second user operation, and the server sends a control instruction to the first electronic device based on the processing request; the first electronic device establishes a device collaboration link between the first electronic device and the second electronic device based on the control instruction; in this way, it is achieved that, according to user needs, corresponding devices are selected from automatically discovered devices in the same family group for task collaboration or function flow, thereby improving the optional range of devices required for task collaboration or function flow and the user experience.

[0301] Moreover, before establishing the device collaborative link, the user is unaware of the mutual authentication between the first electronic device and the second electronic device. After the authentication is completed, the device collaborative link can be established, and task collaboration or function flow can be automatically performed through the device collaborative link, which simplifies user operations and improves user experience.

[0302] Figure 20 is a flow chart of a device collaboration method provided in an embodiment of the present application. The device collaboration method can be applied after displaying a first control and at least one second control. For example, the device collaboration method can be applied after S606 or S611 in the above embodiment. Of course, it can also be applied after the first control and at least one second control are displayed using other methods. It should be understood that the device collaboration method provided in Figure 20 is illustrated by taking the number of at least one second electronic device as multiple and establishing a device collaboration link between two second electronic devices as an example. The first second electronic device of the two second electronic devices is the device to be collaborated, and the second second electronic device is the collaborative device. The device collaboration method can include S1101 to S1105. Each step is explained in detail below.

[0303] S1101. The first electronic device sends a processing request to the server in response to a second user operation.

[0304] The processing request is used to establish a device collaboration link between the first second electronic device and the second second electronic device. The device collaboration link is used to perform task collaboration between the first second electronic device and the second second electronic device. The first second electronic device is a device to be collaborated with, and the second second electronic device is a collaborating device. The second user operation is used to associate the first second electronic device with the second second electronic device.

[0305] In one feasible implementation, the second user operation may be a user operation acting on a second control, for example, a user pressing and holding a second control and dragging the second control toward another second control, and releasing the dragged second control when the dragged second control reaches a designated area corresponding to the other second control. Different second controls represent different second electronic devices. The two second controls partially or completely overlap after being dragged. The device corresponding to the second control dragged by the user is the first second electronic device.

[0306] For example, the first electronic device is a mobile phone, the first second electronic device may be a smart screen, and the second second electronic device may be a watch. As shown in FIG21 , the first control may be icon 1201 representing the mobile phone; the second control corresponding to the first second electronic device may be icon 1205 representing the smart screen, and the second control corresponding to the second second electronic device may be icon 1202 representing the watch. The second user operation may be the user pressing and dragging icon 1205 until it partially overlaps with icon 1202. In response to the user's drag operation, the mobile phone may generate a processing request for establishing a device collaborative link between the smart screen and the watch, and send the processing request to the server.

[0307] S1102: The server receives a processing request from the first electronic device.

[0308] S1103: The server sends a control instruction to the first second electronic device based on the processing request.

[0309] The control instruction is used to control the first second electronic device to establish a device cooperation link between the first second electronic device and the second second electronic device.

[0310] Exemplarily, the first electronic device is a mobile phone, the first second electronic device is a smart screen, and the second second electronic device is a watch; after the server receives the processing request sent by the mobile phone, it can generate a control instruction for the smart screen, which is used to control the smart screen to establish a device collaborative link between the smart screen and the watch.

[0311] S1104: The first second electronic device receives a control instruction from the server.

[0312] S1105: The first second electronic device establishes a device cooperation link between the first second electronic device and the second second electronic device based on the control instruction.

[0313] In an embodiment of the present application, the first second electronic device can verify the identity of the second second electronic device based on the control instruction, and when the identity verification of the second second electronic device passes, the second second electronic device is determined to be a legitimate device; the first second electronic device can establish a device collaborative link between the first second electronic device and the second second electronic device through a distributed soft bus.

[0314] Exemplarily, the first second electronic device is a smart screen, and the second second electronic device is a watch. The smart screen can verify the identity of the watch based on the control instructions, and if the identity verification of the watch passes, the watch is determined to be a legitimate device; the smart screen can establish a device collaborative link between the smart screen and the watch through a distributed soft bus.

[0315] Among them, S1105 can also be implemented through S11051~S11055:

[0316] S11051. The first second electronic device sends a verification request to the second second electronic device based on the control instruction.

[0317] The verification request is used to verify whether the first second electronic device is a legitimate device.

[0318] In an embodiment of the present application, the first second electronic device can generate a verification request based on the control instruction and send the verification request to the second second electronic device, so that after the second second electronic device receives the verification request, it can determine whether the first second electronic device is a legitimate device based on the verification request.

[0319] In one possible implementation, the verification request carries identification information of the first second electronic device and first encrypted information. The first encrypted information is obtained by encrypting the identification information of the first second electronic device based on stored first key information. The identification information of the first second electronic device is used to uniquely identify the first second electronic device. The identification information of the first second electronic device may be, for example, the UDID or MAC address of the first second electronic device.

[0320] Among them, the first key information may include a group identification key corresponding to the first second electronic device and a user identification key corresponding to the first second electronic device; the group identification key corresponding to the first second electronic device may be generated based on the identification information of the communication group corresponding to the first second electronic device, and the user identification key corresponding to the first second electronic device may be generated based on the account corresponding to the first second electronic device (i.e., the group member account). The first encrypted information may specifically be the first second electronic device, obtained by encrypting the identification information of the first second electronic device using the group identification key corresponding to the first second electronic device and the user identification key corresponding to the first second electronic device. When the first second electronic device and the second second electronic device belong to the same communication group, the group identification key corresponding to the first second electronic device and the group identification key corresponding to the second second electronic device are the same.

[0321] Exemplarily, the first second electronic device is a smart screen, and the second second electronic device is a watch; wherein, the smart screen can use the communication group key and user identification key corresponding to the smart screen to encrypt the UDID of the smart screen to obtain the first encrypted information, generate a verification request based on the UDID of the smart screen and the first encrypted information, and send the verification request to the watch, the verification request carrying the UDID of the smart screen and the first encrypted information.

[0322] S11052. The second electronic device receives the verification request.

[0323] S11053: When the second second electronic device determines that the first second electronic device is a legitimate device based on the verification request, the second second electronic device sends a verification response to the first second electronic device.

[0324] In an embodiment of the present application, the second electronic device may determine whether the first electronic device is a legitimate device based on the verification request; if the first electronic device is determined to be a legitimate device, the second electronic device may generate a verification response and send the verification response to the first electronic device. The verification response is used to determine whether the second electronic device is a legitimate device.

[0325] The second electronic device may determine whether the first electronic device is a legitimate device based on the verification request in the following manner:

[0326] The second second electronic device can parse the verification request to obtain the first encrypted information and the identification information of the first second electronic device. The second second electronic device can encrypt the identification information of the first second electronic device based on the stored second key information to obtain the second encrypted information. The second second electronic device can match the first encrypted information and the second encrypted information to obtain a matching result. When the matching result indicates that the first encrypted information and the second encrypted information match, the first second electronic device is determined to be a legitimate device. The second key information may include a group identification key corresponding to the second second electronic device and a user identification key corresponding to the second second electronic device; the group identification key corresponding to the second second electronic device may be generated based on the identification information of the communication group corresponding to the second second electronic device, and the user identification key corresponding to the second second electronic device may be generated based on the account corresponding to the second second electronic device (i.e., the group member account).

[0327] In this solution, the first electronic device verifies the legitimacy of the second electronic device, ensuring that only legitimate devices can establish a device collaboration link, ensuring the security and reliability of subsequent data transmission and operations. This helps prevent malicious devices from conducting illegal attacks and protects user privacy and data security.

[0328] Exemplarily, the first second electronic device is a smart screen, and the second second electronic device is a watch; wherein, the watch can parse the verification request sent by the smart screen to obtain the UDID and the first encrypted information of the smart screen. The first encrypted information is obtained by the smart screen using the communication group key corresponding to the smart screen and the user identification key corresponding to the smart screen to encrypt the UDID of the smart screen. The watch can use the communication group key corresponding to the watch and the user identification key corresponding to the watch to encrypt the UDID of the smart screen to obtain the second encrypted information. The watch can match the first encrypted information and the second encrypted information to obtain a matching result; when the matching result indicates that the first encrypted information and the second encrypted information match, the watch can determine that the smart screen is a legitimate device.

[0329] In an embodiment of the present application, the verification response carries the identification information of the second second electronic device and the third encrypted information. The identification information of the second second electronic device is used to uniquely identify the second second electronic device. For example, the identification information of the second second electronic device may be the UDID of the second second electronic device. The third encrypted information may be obtained by encrypting the identification information of the second second electronic device based on the stored second key information.

[0330] S11054. The first second electronic device receives a verification response.

[0331] S11055: When the first second electronic device determines that the second second electronic device is a legitimate device based on the verification response, the first second electronic device establishes a device cooperation link between the first second electronic device and the second second electronic device.

[0332] In an embodiment of the present application, the first second electronic device can determine whether the second second electronic device is a legitimate device based on the verification response; when it is determined that the second second electronic device is a legitimate device, the first second electronic device can establish a device collaborative link between the first second electronic device and the second second electronic device through a distributed soft bus.

[0333] The first second electronic device may determine whether the second second electronic device is a legitimate device based on the verification response in the following manner:

[0334] In a feasible implementation, the first second electronic device can parse the verification response to obtain the identification information and third encrypted information of the second second electronic device; the first second electronic device can use the first key information, such as the group identification key corresponding to the first second electronic device and the user identification key corresponding to the first second electronic device, to encrypt the identification information of the second second electronic device to obtain fourth encrypted information; the third encrypted information and the fourth encrypted information can be matched to obtain a matching result; when the matching result indicates that the third encrypted information and the fourth encrypted information match, the second second electronic device is determined to be a legal device.

[0335] For example, the first second electronic device is a smart screen, and the second second electronic device is a watch. The smart screen can receive a verification response from the watch, parse the verification response, and obtain the watch's UDID and third encrypted information. The third encrypted information can be obtained by encrypting the watch's UDID using the watch's corresponding communication group key and the watch's corresponding user identification key. The smart screen can encrypt the watch's UDID using the smart screen's corresponding communication group key and the smart screen's corresponding user identification key to obtain fourth encrypted information. If the third encrypted information and the fourth encrypted information match, the watch is determined to be a legitimate device.

[0336] Based on the above solution, mutual verification is performed between the smart screen and the watch. After the verification is passed, the smart screen can establish a device collaborative link between the smart screen and the watch based on the distributed soft bus, thereby improving the security and reliability of the established device collaborative link and ensuring that the devices can communicate and exchange data safely and reliably.

[0337] The first and second electronic devices can collaborate on tasks or transfer functions through an established device collaboration link. For example, if the first electronic device is a smart screen and the second electronic device is a watch, the watch can transfer the currently displayed content to the smart screen for display. Alternatively, the watch can determine that the user is running based on information such as the user's heart rate and blood pressure, and then link the smart screen to play videos related to the exercise scene. The account corresponding to the watch and the account corresponding to the display can be the same or different.

[0338] An embodiment of the present application provides a device collaboration method, wherein after a first electronic device displays a first control and at least one second control, the first electronic device sends a processing request to a server in response to a second user operation, wherein the second user operation is used to associate the first second electronic device with the second second electronic device; the server sends a control instruction to the first second electronic device based on the processing request; the first second electronic device establishes a device collaboration link between the first second electronic device and the second second electronic device based on the control instruction, so that the first second electronic device and the second second electronic device perform task collaboration or function flow through the device collaboration link. In this way, it is achieved that the corresponding device is selected from the automatically discovered devices in the same family group for task collaboration or function flow according to user needs, thereby improving the optional range of devices required for task collaboration or function flow and the user experience.

[0339] Moreover, before establishing the device collaborative link, the user is unaware of the mutual authentication between the first second electronic device and the second second electronic device. After the authentication is completed, the device collaborative link can be established, and task collaboration or function flow can be automatically performed through the device collaborative link, which simplifies user operations and improves user experience.

[0340] In the above embodiments, the first control and at least one second control displayed on the first electronic device may have different representations for the control corresponding to devices with the same account and the control corresponding to devices with different accounts. This makes it easier for users to distinguish between devices with the same account and devices with different accounts, thereby improving the user experience.

[0341] Exemplarily, the first electronic device is a mobile phone, and the number of at least one second electronic device is 4, and the at least one second electronic device is a watch, a speaker, a headset, and a smart screen; wherein, the account corresponding to the mobile phone can be account m1, the account corresponding to the speaker can be account m1, the account corresponding to the watch can be account m1, the account corresponding to the headset can be account m2, and the account corresponding to the smart screen can be account m3. The colors of the icon representing the mobile phone, the icon representing the watch, and the icon representing the speaker displayed by the first electronic device can be the same. However, they are different from the colors of the icon representing the headset and the icon representing the smart screen displayed by the first electronic device. For example, the colors of the icon representing the mobile phone, the icon representing the watch, and the icon representing the speaker can all be yellow, the color of the icon representing the headset can be green, and the color of the icon representing the headset can be blue.

[0342] The device collaboration method provided by the above-mentioned multiple embodiments realizes the automatic discovery of devices with the same account and devices with different accounts, and can establish a device collaboration link between devices across accounts (i.e., devices with different accounts). Through this device collaboration link, task collaboration or function flow can be performed between devices across accounts, which expands the range of devices that can be selected during task collaboration or function flow and improves the user experience. Moreover, before establishing a device collaboration link between devices across accounts, no user perception is required when performing mutual authentication between devices across accounts, which simplifies user operations and further improves the user experience.

[0343] Figure 22 is a schematic block diagram of a device collaboration device provided in an embodiment of the present application. As shown in Figure 22, the device collaboration device 13 may include a communication unit 1301 and a processing unit 1302. The communication unit 1301 can implement corresponding communication functions, and the communication can be internal communication of the device collaboration device 13 or communication between the device collaboration device 13 and other devices; the processing unit 1302 can implement corresponding processing functions. The communication unit 1301 can also be called a communication interface or a transceiver unit. Optionally, the device collaboration device 13 may also include a storage unit, which can be used to store instructions and / or data, and the processing unit 1302 can read the instructions and / or data in the storage unit, so that the device implements the aforementioned method embodiment.

[0344] In one possible design, the device collaboration device 13 can be the first electronic device in the aforementioned method embodiment, or a module or chip applied to the first electronic device. The device collaboration device 13 can be used in the steps or processes performed by the first electronic device in the aforementioned method embodiment.

[0345] Specifically, the communication unit 1301 is used to send a detection request in response to a first user operation, wherein the first user operation is used to start a device collaboration function; the communication unit 1301 is also used to receive at least one detection response to the detection request; the processing unit 1302 is used to determine at least one second electronic device based on the at least one detection response, wherein the first electronic device and the at least one second electronic device belong to the same communication group, and the account corresponding to part or all of the at least one second electronic device is different from the account corresponding to the first electronic device, and the detection response is used to indicate that the first electronic device and the second electronic device belong to the same communication group; the processing unit 1302 is also used to display a first control and at least one second control, wherein the first control represents the first electronic device and the second control represents the second electronic device.

[0346] Optionally, the detection request carries at least one of identification information of the first electronic device, an account corresponding to the first electronic device, and group identification information corresponding to the first electronic device.

[0347] Optionally, the probe response is sent by the second electronic device when it determines that it belongs to the same communication group as the first electronic device based on the probe request and stored group information corresponding to the second electronic device.

[0348] Optionally, the probe response carries group identification information of the communication group and identification information of the second electronic device.

[0349] Optionally, the communication unit 1301 is also used to send a processing request to the server in response to a second user operation, wherein the processing request is used to establish a device collaborative link between the collaborative device and the device to be coordinated, the collaborative device and the device to be coordinated are electronic devices in the first electronic device and at least one second electronic device, and the second user operation is used to associate the collaborative device and the device to be coordinated.

[0350] Optionally, the communication unit 1301 is also used to receive a verification request from the device to be coordinated, wherein the verification request is used to determine whether the device to be coordinated is a legal device, and the verification request is sent by the device to be coordinated based on a control instruction from the server, and the control instruction is sent by the server based on the processing request; in the case where it is determined that the device to be coordinated is a legal device based on the verification request, a verification response is sent to the device to be coordinated, and the verification response is used to determine whether the first electronic device is a legal device.

[0351] Optionally, the processing unit 1302 is also used to parse the verification request to obtain identification information of the device to be coordinated and first encryption information, wherein the first encryption information is obtained by encrypting the identification information of the device to be coordinated based on the group identification key corresponding to the device to be coordinated and the user identification key corresponding to the device to be coordinated; the processing unit 1302 is also used to encrypt the identification information of the device to be coordinated based on the group identification key corresponding to the first electronic device and the user identification key corresponding to the first electronic device to obtain second encryption information; the processing unit 1302 is also used to determine that the device to be coordinated is a legal device when the first encryption information and the second encryption information match; the communication unit 1301 is also used to send a verification response to the device to be coordinated, the verification response carries the identification information of the first electronic device and third encryption information, wherein the third encryption information is obtained by encrypting the identification information of the first electronic device based on the group identification key corresponding to the first electronic device and the user identification key corresponding to the first electronic device.

[0352] Optionally, the communication unit 1301 is also used to receive control instructions from the server, wherein the control instructions are used to control the first electronic device to establish a device collaborative link, and the control instructions are sent by the server based on the processing request; the communication unit 1301 is also used to send a verification request to the collaborative device based on the control instructions, wherein the verification request is used to determine whether the first electronic device is a legal device; the processing unit 1302 is also used to establish a device collaborative link when the collaborative device is determined to be a legal device based on a verification response from the collaborative device, wherein the verification response is sent by the collaborative device when the first electronic device is determined to be a legal device.

[0353] Optionally, the processing unit 1302 is specifically used to parse the verification response to obtain identification information and third encryption information of the collaborative device, wherein the third encryption information is obtained by encrypting the identification information of the collaborative device based on the group identification key corresponding to the collaborative device and the user identification key corresponding to the collaborative device; encrypting the identification information of the collaborative device based on the group identification key corresponding to the first electronic device and the user identification key corresponding to the first electronic device to obtain fourth encryption information; when the third encryption information and the fourth encryption information match, determining that the collaborative device is a legal device; and establishing a device collaborative link.

[0354] Optionally, the communication unit 1301 is also used to obtain first device information of the first electronic device and second device information of at least one second electronic device, wherein the first device information represents the status and / or attributes of the first electronic device, and the second device information represents the status and / or attributes of the second electronic device; the processing unit 1302 is specifically used to display a first control based on the first device information; and to display at least one second control based on the second device information of at least one second electronic device.

[0355] Optionally, the communication unit 1301 is specifically used to send an acquisition request to the server, wherein the acquisition request is used to obtain the first device information and the second device information of at least one second electronic device; and receive the first device information and the second device information of at least one second electronic device from the server.

[0356] In one possible design, the device collaboration device 13 may be the server in the aforementioned method embodiment, or may be a module or chip applied to the server. The device collaboration device 13 may be used in the steps or processes executed by the server in the aforementioned method embodiment.

[0357] Specifically, the communication unit 1301 is used to receive an acquisition request from a first electronic device, wherein the acquisition request is used to obtain first device information of the first electronic device and second device information of at least one second electronic device, the first device information represents the status and / or attributes of the first electronic device, the second device information is used to represent the status and / or attributes of the second electronic device, the first electronic device and the at least one second electronic device belong to the same communication group, and the account corresponding to part or all of the at least one second electronic device is different from the account corresponding to the first electronic device; the communication unit 1301 is also used to send the first device information and the second device information of at least one second electronic device to the first electronic device, wherein the first device information is used to display a first control representing the first electronic device, and the second device information is used to display a second control representing the second electronic device.

[0358] Optionally, the communication unit 1301 is also used to receive a processing request from the first electronic device, wherein the processing request is used to establish a device collaborative link between the collaborative device and the device to be coordinated; the processing unit 1302 is used to generate a control instruction based on the processing request; the communication unit 1301 is also used to send a control instruction to the device to be coordinated, wherein the control instruction is used to control the device to be coordinated to establish a device collaborative link.

[0359] Optionally, the communication unit 1301 is further used to send group information of the communication group to multiple electronic devices in the communication group, wherein the group information is used by the electronic device to determine whether it is in the same communication group with other electronic devices, and the multiple electronic devices include a first electronic device and at least one second electronic device.

[0360] Optionally, the group information includes at least one of group identification information, accounts of group members, and identification information of electronic devices corresponding to the accounts of group members.

[0361] In one possible design, the device collaboration device 13 can be the second electronic device in the aforementioned method embodiment, or a module or chip applied to the second electronic device. The device collaboration device 13 can be used in the steps or processes performed by the second electronic device in the aforementioned method embodiment.

[0362] Optionally, the communication unit 1301 is used to receive a probe request from the first electronic device; the communication unit 1301 is also used to send a probe response to the first electronic device when it is determined based on the probe request that the first electronic device and the second electronic device belong to the same communication group, wherein the probe response is used to indicate that the first electronic device and the second electronic device belong to the same communication group, and that at least some of the electronic devices in the communication group correspond to different accounts.

[0363] Optionally, the detection request carries at least one of identification information of the first electronic device, an account corresponding to the first electronic device, and group identification information corresponding to the first electronic device.

[0364] Optionally, the processing unit 1302 is used to determine whether the first electronic device and the second electronic device belong to the same communication group based on the detection request and the stored group information corresponding to the second electronic device; the communication unit 1301 is used to send a detection response to the first electronic device when the first electronic device and the second electronic device belong to the same communication group.

[0365] Optionally, the probe response carries group identification information of the communication group and identification information of the second electronic device.

[0366] Optionally, the communication unit 1301 is further configured to receive group information from a server, wherein the group information includes at least one of group identification information, accounts of group members, and identification information of electronic devices corresponding to the accounts of group members.

[0367] Optionally, the communication unit 1301 is also used to receive a verification request from the device to be coordinated, wherein the verification request is used to determine whether the device to be coordinated is a legal device, and the verification request is sent by the device to be coordinated based on a control instruction from the server; the communication unit 1301 is also used to send a verification response to the device to be coordinated when it is determined that the device to be coordinated is a legal device based on the verification request, wherein the verification response is used to determine whether the second electronic device is a legal device.

[0368] Optionally, the processing unit 1302 is used to parse the verification request to obtain identification information of the device to be coordinated and first encryption information, wherein the first encryption information is obtained by encrypting the identification information of the device to be coordinated based on the group identification key corresponding to the device to be coordinated and the user identification key corresponding to the device to be coordinated; the identification information of the device to be coordinated is encrypted based on the group identification key corresponding to the second electronic device and the user identification key corresponding to the second electronic device to obtain second encryption information; when the first encryption information and the second encryption information match, it is determined that the device to be coordinated is a legal device; the communication unit 1301 is also used to send a verification response to the device to be coordinated, wherein the verification response carries the identification information of the second electronic device and third encryption information, and the third encryption information is obtained by encrypting the identification information of the second electronic device based on the group identification key corresponding to the second electronic device and the user identification key corresponding to the second electronic device.

[0369] Optionally, the communication unit 1301 is also used to receive control instructions from the server, wherein the control instructions are used to control the second electronic device to establish a device collaborative link between the second electronic device and the collaborative device; based on the control instructions, a verification request is sent to the collaborative device, wherein the verification request is used to determine whether the second electronic device is a legal device; the processing unit 1302 establishes a device collaborative link when it is determined that the collaborative device is a legal device based on the verification response from the collaborative device, wherein the verification response is sent by the collaborative device when it is determined that the second electronic device is a legal device.

[0370] Optionally, the processing unit 1302 is also used to parse the verification response to obtain identification information of the collaborative device and third encryption information, wherein the third encryption information is obtained by encrypting the identification information of the collaborative device based on the group identification key corresponding to the collaborative device and the user identification key corresponding to the collaborative device; encrypting the identification information of the collaborative device based on the group identification key corresponding to the second electronic device and the user identification key corresponding to the second electronic device to obtain fourth encryption information; when the third encryption information and the fourth encryption information match, determining that the collaborative device is a legal device; and establishing a device collaborative link.

[0371] Regarding the steps or processes executed by each unit in the device collaboration device 13, please refer to the description in the corresponding method, which will not be described in detail here.

[0372] It should be understood that the "unit" in the device collaboration device 13 can be implemented by hardware, can be implemented by software, and can also be implemented by hardware executing the corresponding software implementation. For example, a "unit" can refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor or a group processor, etc.) and a memory for executing one or more software or firmware programs, a combined logic circuit and / or other suitable components that support the described functions. For another example, the communication unit 1301 can be replaced by a transceiver transceiver circuit (for example, it can include a receiving circuit and a transmitting circuit), and the processing unit 1302 can be replaced by a processor or a processing circuit.

[0373] Figure 23 shows a schematic block diagram of another device collaboration apparatus 14 provided in an embodiment of the present application. The device collaboration apparatus 14 can be a first electronic device, a second electronic device, or a server, or can be a chip, a chip system, or a processor that supports the first electronic device, the second electronic device, or the server in implementing the above-mentioned method. The device collaboration apparatus 14 can be used to implement the method described in the above-mentioned method embodiment. For details, please refer to the description of the above-mentioned method embodiment.

[0374] The device collaboration device 14 may include one or more processors 1401, which may also be referred to as a processing unit, and may implement certain control functions. The processor 1401 may be a general-purpose processor or a dedicated processor, etc. For example, it may be a baseband processor or a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, such as discrete gates, transistor logic devices, or discrete hardware components. The baseband processor may be used to process communication protocols and communication data, and the central processing unit may be used to control the device collaboration device (such as a base station, a baseband chip, a user chip, a DU or a CU, etc.), execute software programs, and process data of software programs.

[0375] In an optional design, the processor 1401 may also store instructions and / or data, and the instructions and / or data can be executed by the processor 1401, so that the device collaboration device 14 executes the method described in the above method embodiment.

[0376] In another optional design, the device coordination device 14 may include a communication interface 1402 for implementing receiving and transmitting functions. For example, the communication interface 1402 may be a transceiver circuit, an interface, an interface circuit, or a transceiver. The transceiver circuit, interface, interface circuit, or transceiver for implementing the receiving and transmitting functions may be separate or integrated. The transceiver circuit, interface, interface circuit, or transceiver may be used for reading and writing code / data, or the transceiver circuit, interface, interface circuit, or transceiver may be used for transmitting or delivering signals.

[0377] Optionally, the device collaboration device 14 may include one or more memories 1403, which may store instructions that can be executed on the processor 1401, causing the device collaboration device 14 to perform the method described in the above method embodiment. Optionally, the memory 1403 may also store data. Optionally, the processor 1401 may also store instructions and / or data. The processor 1401 and memory 1403 may be provided separately or integrated together.

[0378] Figure 24 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The above-mentioned device collaboration device 13 or device collaboration device 14 can be configured in the electronic device 15. Alternatively, the device collaboration device 13 or device collaboration device 14 itself can be an electronic device, and the electronic device can be the first electronic device, the second electronic device or the server in the above-mentioned method embodiment. The electronic device 15 can perform the actions performed by the first electronic device, the second electronic device or the server in the above-mentioned method embodiment. Optionally, for ease of explanation, Figure 24 only shows the main components of the electronic device.

[0379] In one implementation, the electronic device 15 is a first electronic device, configured to send a detection request in response to a first user operation, wherein the first user operation is used to start a device collaboration function; receive at least one detection response to the detection request; determine at least one second electronic device based on the at least one detection response, wherein the first electronic device and the at least one second electronic device belong to the same communication group, and the account corresponding to part or all of the at least one second electronic device is different from the account corresponding to the first electronic device, and the detection response is used to indicate that the first electronic device and the second electronic device belong to the same communication group; and display a first control and at least one second control, wherein the first control represents the first electronic device and the second control represents the second electronic device.

[0380] In one implementation, the electronic device 15 is a server, configured to receive an acquisition request from a first electronic device, wherein the acquisition request is used to acquire first device information of the first electronic device and second device information of at least one second electronic device, the first device information characterizing a state and / or attribute of the first electronic device, the second device information being used to characterize a state and / or attribute of the second electronic device, the first electronic device and the at least one second electronic device belonging to the same communication group, and the account corresponding to part or all of the at least one second electronic device is different from the account corresponding to the first electronic device; the first device information and the second device information of the at least one second electronic device are sent to the first electronic device, wherein the first device information is used to display a first control characterizing the first electronic device, and the second device information is used to display a second control characterizing the second electronic device.

[0381] In another implementation, the electronic device 15 is a second electronic device, which is used to receive a detection request from a first electronic device; when it is determined based on the detection request that the second electronic device belongs to the same communication group as the first electronic device, a detection response is sent to the first electronic device, wherein the detection response is used to indicate that the first electronic device and the second electronic device belong to the same communication group, and that at least some of the electronic devices in the communication group correspond to different accounts.

[0382] As shown in FIG24 , the electronic device 15 includes one or more processors 1501, which can support the device collaboration method in the embodiment of the method implemented by the electronic device 15. The processor 1501 can be a general-purpose processor or a special-purpose processor. For example, the processor 1501 can be a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, such as discrete gates, transistor logic devices, or discrete hardware components.

[0383] The processor 1501 can be used to control the electronic device 15, execute software programs, and process data of the software programs. The electronic device 15 can also include a communication unit 1505 to implement signal input (reception) and output (transmission).

[0384] For example, the electronic device 15 may be a chip, the communication unit 1505 may be an input and / or output circuit of the chip, or the communication unit 1505 may be a communication interface of the chip, and the chip may be a component of a terminal device or other electronic device.

[0385] For another example, the electronic device 15 may be a terminal device, and the communication unit 1505 may be a transceiver of the terminal device, or the communication unit 1505 may be a transceiver circuit of the terminal device.

[0386] The electronic device 15 may include one or more memories 1502, on which one or more programs 1504 are stored. The program 1504 can be executed by the processor 1501 to generate instructions 1503, so that the processor 1501 executes the device collaboration method executed by the first electronic device, the device collaboration method executed by the server, and the device collaboration method executed by the second electronic device described in the above method embodiment according to the instructions 1503.

[0387] Optionally, data may also be stored in the memory 1502 .

[0388] Optionally, the processor 1501 may also read data stored in the memory 1502 . The data may be stored at the same storage address as the program 1504 , or may be stored at a different storage address than the program 1504 .

[0389] The processor 1501 and the memory 1502 may be provided separately or integrated together, for example, integrated on a system on chip (SOC) of a terminal device.

[0390] The present application also provides a computer program product, which, when executed by the processor 1501, implements the device collaboration method of any method embodiment in the present application.

[0391] The computer program product may be stored in the memory 1502 , for example, a program 1504 . The program 1504 is converted into an executable target file that can be executed by the processor 1501 after undergoing preprocessing, compilation, assembly, and linking.

[0392] The present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer, implements the device collaboration method of any method embodiment of the present application. The computer program can be a high-level language program or an executable target program.

[0393] The computer-readable storage medium is, for example, memory 1502. Memory 1502 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).

[0394] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and equipment and the technical effects produced can refer to the corresponding processes and technical effects in the aforementioned method embodiments, and will not be repeated here.

[0395] In the several embodiments provided in this application, the disclosed systems, devices and methods can be implemented in other ways. For example, some features of the method embodiments described above can be ignored or not executed. The device embodiments described above are merely schematic, and the division of units is only a logical function division. There may be other division methods in actual implementation, and multiple units or components may be combined or integrated into another system. In addition, the coupling between the units or the coupling between the components may be direct coupling or indirect coupling, and the above coupling includes electrical, mechanical or other forms of connection.

[0396] It should be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0397] Additionally, the terms "system" and "network" are often used interchangeably. The term "and / or" in this document simply describes a relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates an "or" relationship between the related objects.

[0398] In short, the above is only a preferred embodiment of the technical solution of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application should be included in the scope of protection of this application.

[0399] The above content is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A device collaboration method, characterized in that: Applied to a first electronic device, the method includes: In response to a first user operation, sending a detection request, wherein the first user operation is used to start a device collaboration function; receiving at least one probe response to the probe request; Determining at least one second electronic device based on the at least one probe response, wherein the first electronic device and the at least one second electronic device belong to the same communication group, the account corresponding to some or all of the at least one second electronic device is different from the account corresponding to the first electronic device, and the probe response is used to indicate that the first electronic device and the second electronic device belong to the same communication group; A first control and at least one second control are displayed, wherein the first control represents the first electronic device and the second control represents the second electronic device.

2. The method according to claim 1, characterized in that The detection request carries at least one of identification information of the first electronic device, an account corresponding to the first electronic device, and group identification information corresponding to the first electronic device.

3. The method according to any one of claims 1 to 2, characterized in that: The probe response is sent by the second electronic device when it is determined, based on the probe request and the stored group information corresponding to the second electronic device, that the second electronic device belongs to the same communication group as the first electronic device.

4. The method according to any one of claims 1 to 3, characterized in that: The detection response carries the group identification information of the communication group and the identification information of the second electronic device.

5. The method according to claim 3, characterized in that The group information comes from a server, and includes at least one of group identification information, accounts of group members, and identification information of electronic devices corresponding to the accounts of the group members.

6. The method according to any one of claims 1 to 5, characterized in that: After displaying the first control and at least one second control, the method further includes: In response to a second user operation, a processing request is sent to the server, wherein the processing request is used to establish a device collaborative link between the collaborative device and the device to be coordinated, the collaborative device and the device to be coordinated are electronic devices among the first electronic device and the at least one second electronic device, and the second user operation is used to associate the collaborative device and the device to be coordinated.

7. The method according to claim 6, characterized in that The collaborative device is the first electronic device, and after sending the processing request to the server in response to the second user operation, the method further includes: receiving a verification request from the device to be coordinated, wherein the verification request is used to determine whether the device to be coordinated is a legitimate device, the verification request is sent by the device to be coordinated based on a control instruction from the server, and the control instruction is sent by the server based on the processing request; In the case that it is determined based on the verification request that the device to be coordinated is a legitimate device, a verification response is sent to the device to be coordinated, where the verification response is used to determine whether the first electronic device is a legitimate device.

8. The method according to claim 7, characterized in that The step of sending a verification response to the device to be coordinated when it is determined based on the verification request that the device to be coordinated is a legitimate device includes: Parsing the verification request to obtain identification information of the device to be coordinated and first encrypted information, wherein the first encrypted information is obtained by encrypting the identification information of the device to be coordinated based on a group identification key corresponding to the device to be coordinated and a user identification key corresponding to the device to be coordinated; Encrypting the identification information of the device to be coordinated based on the group identification key corresponding to the first electronic device and the user identification key corresponding to the first electronic device to obtain second encrypted information; If the first encryption information and the second encryption information match, determining that the device to be coordinated is a legitimate device; The verification response is sent to the device to be coordinated, and the verification response carries the identification information of the first electronic device and the third encrypted information, wherein the third encrypted information is obtained by encrypting the identification information of the first electronic device based on the group identification key corresponding to the first electronic device and the user identification key corresponding to the first electronic device.

9. The method according to claim 6, characterized in that The device to be coordinated is the first electronic device. After sending the processing request to the server in response to the second user operation, the method further includes: Receive a control instruction from the server, wherein the control instruction is used to control the first electronic device to establish the The device collaborative link, the control instruction is sent by the server based on the processing request; Based on the control instruction, sending a verification request to the collaborative device, wherein the verification request is used to determine whether the first electronic device is a legitimate device; The device cooperation link is established when it is determined that the cooperation device is a legitimate device based on a verification response from the cooperation device, wherein the verification response is sent by the cooperation device when it is determined that the first electronic device is a legitimate device.

10. The method according to claim 9, characterized in that The establishing of the device cooperation link when it is determined that the cooperation device is a legitimate device based on the verification response from the cooperation device includes: Parsing the verification response to obtain identification information of the collaborative device and third encrypted information, wherein the third encrypted information is obtained by encrypting the identification information of the collaborative device based on a group identification key corresponding to the collaborative device and a user identification key corresponding to the collaborative device; encrypting the identification information of the collaborative device based on the group identification key corresponding to the first electronic device and the user identification key corresponding to the first electronic device to obtain fourth encrypted information; If the third encryption information and the fourth encryption information match, determining that the collaborative device is a legitimate device; The device collaboration link is established.

11. The method according to claim 1, wherein The displaying of the first control and at least one second control includes: Acquire first device information of the first electronic device and second device information of the at least one second electronic device, wherein the first device information represents a state and / or attribute of the first electronic device, and the second device information represents a state and / or attribute of the second electronic device; displaying the first control based on the first device information; The at least one second control is displayed based on the second device information of the at least one second electronic device.

12. The method according to claim 11, characterized in that The acquiring the first device information of the first electronic device and the second device information of the at least one second electronic device includes: Sending an acquisition request to a server, wherein the acquisition request is used to acquire the first device information and the second device information of the at least one second electronic device; The first device information and the second device information of the at least one second electronic device are received from the server.

13. A device collaboration method, characterized in that: Applied to a server, the method includes: Receiving an acquisition request from a first electronic device, wherein the acquisition request is used to acquire first device information of the first electronic device and second device information of at least one second electronic device, the first device information representing a status and / or attribute of the first electronic device, the second device information representing a status and / or attribute of the second electronic device, the first electronic device and the at least one second electronic device belonging to the same communication group, and the account corresponding to some or all of the at least one second electronic device is different from the account corresponding to the first electronic device; The first device information and the second device information of the at least one second electronic device are sent to the first electronic device, wherein the first device information is used to display a first control representing the first electronic device, and the second device information is used to display a second control representing the second electronic device.

14. The method according to claim 13, wherein: After sending the first device information and the second device information of the at least one second electronic device to the first electronic device, the method further includes: receiving a processing request from the first electronic device, wherein the processing request is used to establish a device cooperation link between the cooperation device and the device to be cooperated; Based on the processing request, a control instruction is sent to the device to be coordinated, wherein the control instruction is used to control the device to be coordinated to establish the device coordination link.

15. The method according to claim 13, characterized in that Before receiving the acquisition request from the first electronic device, the method further includes: Group information of the communication group is sent to multiple electronic devices in the communication group, wherein the group information is used by the electronic device to determine whether it is in the same communication group as other electronic devices, and the multiple electronic devices include the first electronic device and the at least one second electronic device.

16. The method according to claim 15, characterized in that The group information includes at least one of group identification information, accounts of group members, and identification information of electronic devices corresponding to the accounts of the group members.

17. A device collaboration method, characterized in that: Applied to a second electronic device, the method includes: receiving a detection request from a first electronic device; In the case where it is determined based on the probe request that the first electronic device and the second electronic device belong to the same communication group, a probe response is sent to the first electronic device, wherein the probe response is used to indicate that the first electronic device and the second electronic device belong to the same communication group, and at least some of the electronic devices in the communication group correspond to different accounts.

18. The method according to claim 17, characterized in that The detection request carries at least one of identification information of the first electronic device, an account corresponding to the first electronic device, and group identification information corresponding to the first electronic device.

19. The method according to any one of claims 17 to 18, characterized in that: The sending a probe response to the first electronic device when it is determined based on the probe request that the first electronic device and the first electronic device belong to the same communication group includes: determining, based on the detection request and the stored group information corresponding to the second electronic device, whether the first electronic device and the second electronic device belong to the same communication group; In a case where the first electronic device and the second electronic device belong to the same communication group, the probe response is sent to the first electronic device.

20. The method according to any one of claims 17 to 19, characterized in that: The detection response carries the group identification information of the communication group and the identification information of the second electronic device.

21. The method according to claim 19, wherein The group information can be obtained in the following ways: The group information is received from a server, where the group information includes at least one of group identification information, accounts of group members, and identification information of electronic devices corresponding to the accounts of the group members.

22. The method according to any one of claims 17 to 21, characterized in that: The second electronic device is a collaborative device, and after determining that the second electronic device belongs to the same communication group as the first electronic device based on the probe request, sending a probe response to the first electronic device, the method further includes: receiving a verification request from a device to be coordinated, wherein the verification request is used to determine whether the device to be coordinated is a legitimate device, and the verification request is sent by the device to be coordinated based on a control instruction from a server; In the case that it is determined based on the verification request that the device to be coordinated is a legitimate device, a verification response is sent to the device to be coordinated, where the verification response is used to determine whether the second electronic device is a legitimate device.

23. The method according to claim 22, characterized in that The step of sending a verification response to the device to be coordinated when it is determined based on the verification request that the device to be coordinated is a legitimate device includes: Parsing the verification request to obtain identification information of the device to be coordinated and first encrypted information, wherein the first encrypted information is obtained by encrypting the identification information of the device to be coordinated based on a group identification key corresponding to the device to be coordinated and a user identification key corresponding to the device to be coordinated; Encrypting the identification information of the device to be coordinated based on the group identification key corresponding to the second electronic device and the user identification key corresponding to the second electronic device to obtain second encrypted information; If the first encryption information and the second encryption information match, determining that the device to be coordinated is a legitimate device; The verification response is sent to the device to be coordinated, and the verification response carries the identification information of the second electronic device and the third encrypted information, wherein the third encrypted information is obtained by encrypting the identification information of the second electronic device based on the group identification key corresponding to the second electronic device and the user identification key corresponding to the second electronic device.

24. The method according to any one of claims 17 to 21, characterized in that: The second electronic device is a device to be coordinated, and after determining that the second electronic device belongs to the same communication group as the first electronic device based on the probe request, sending a probe response to the first electronic device, the method further includes: receiving a control instruction from a server, wherein the control instruction is used to control establishment of a device cooperation link between the second electronic device and the cooperation device; Based on the control instruction, sending a verification request to the collaborative device, wherein the verification request is used to determine whether the second electronic device is a legitimate device; The device cooperative link is established when the cooperative device is determined to be a legitimate device based on a verification response from the cooperative device, wherein the verification response is the result of the cooperative device determining that the second electronic device is a legitimate device. Sent below.

25. The method according to claim 24, characterized in that The establishing of the device cooperation link when it is determined that the cooperation device is a legitimate device based on the verification response from the cooperation device includes: Parsing the verification response to obtain identification information of the collaborative device and third encrypted information, wherein the third encrypted information is obtained by encrypting the identification information of the collaborative device based on a group identification key corresponding to the collaborative device and a user identification key corresponding to the collaborative device; encrypting the identification information of the collaborative device based on the group identification key corresponding to the second electronic device and the user identification key corresponding to the second electronic device to obtain fourth encrypted information; If the third encryption information and the fourth encryption information match, determining that the collaborative device is a legitimate device; The device collaboration link is established.

26. A device coordination apparatus, characterized in that: A unit comprising a unit for performing each step of the method according to any one of claims 1 to 12, or a unit comprising a unit for performing each step of the method according to any one of claims 13 to 16, or a unit comprising each step of the method according to any one of claims 17 to 25.

27. A device coordination apparatus, characterized in that: include: A processor, the processor being coupled to a memory, the memory being used to store programs or instructions, and when the programs or instructions are executed by the processor, the device collaborative device performs the method of any one of claims 1 to 12, any one of 13 to 16, or any one of 17 to 25.

28. An electronic device, characterized in that: include: a memory, one or more processors, and one or more programs; wherein the one or more programs are stored in the memory; When the one or more processors execute the one or more programs, the electronic device executes the method of any one of claims 1 to 12, any one of 13 to 16, or any one of 17 to 25.

29. A chip, characterized in that: include: A processor, configured to call and run a computer program from a memory, so that an electronic device equipped with the chip executes the method of any one of claims 1 to 12, any one of 13 to 16, or any one of 17 to 25.

30. A computer-readable storage medium having computer programs or instructions stored thereon, characterized in that: When the computer program or instructions are executed, the computer is caused to perform the method according to any one of claims 1 to 12, any one of 13 to 16, or any one of 17 to 25.

31. A computer program product, characterized in that The method comprises computer program instructions, wherein the computer program instructions cause the computer to execute the method according to any one of claims 1 to 12, any one of 13 to 16, or any one of 17 to 25.

Citation Information

Patent Citations

  • Equipment collaboration method and device, chip and computer readable storage medium

    CN120568282A

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

    CN112286618A

  • Method and device for cooperative work of applications between devices

    CN115147056A

  • Equipment collaboration method and related device

    CN116156044A

  • Cooperation techniques for low-power devices

    US20230379664A1