Device cooperation method and electronic device
By recognizing user habits through the server, the system automatically triggers devices to collaboratively execute related tasks, solving the problem of complex operations in multi-device collaborative work and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2021-06-30
- Publication Date
- 2026-04-10
AI Technical Summary
In multi-device collaborative work scenarios, users need to manually start and switch between different devices, resulting in high operational complexity and a poor user experience.
By monitoring the working status of electronic devices through the server, recognizing user habits, and automatically triggering tasks in related task groups to be executed collaboratively on other devices, the manual operation of users is reduced.
It simplifies the operation process of multi-device collaborative work and improves the user experience.
Smart Images

Figure CN115550090B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the terminal field, and particularly to a device cooperation method and an electronic device. BACKGROUND
[0002] With the development of intelligent terminals and smart home technologies, a user or a family often has multiple electronic devices, which can work cooperatively to complete various businesses in a distributed scenario. Taking an office business as an example, when working, a user can use a tablet computer to watch a programming-related teaching video, and meanwhile, the user can use a programming application on a PC to write code.
[0003] In this multi-device cooperative working scenario, the user needs to start different devices and find and open specific tasks in related applications on different devices, so that the multi-device cooperative starting process is time-consuming and cumbersome to operate, and the user experience is not high. SUMMARY
[0004] The present application provides a device cooperation method and an electronic device, which can start other associated electronic devices to work cooperatively according to the user's usage habits when the electronic device is working, reduce the operation complexity of multi-device cooperative work, and improve the user experience.
[0005] To achieve the above purpose, the present application adopts the following technical solutions:
[0006] In a first aspect, the present application provides a device cooperation method, comprising: a server obtaining a working state that a first electronic device starts to execute a first working task; then, the server can determine a first associated task group corresponding to the first working task, the first associated task group including a second working task associated with the first working task, and the execution device of the second working task being a second electronic device; then, the server can send a cooperation message to the second electronic device, the cooperation message being used to instruct the second electronic device to execute the second working task.
[0007] That is, when the server monitors that a working task 1 in an associated task group is executed by a first electronic device, the server can control a related second electronic device to cooperatively execute a working task 2 associated with the working task 1. In this way, when a user uses the first electronic device to execute the working task 1, the working task 2 associated with the working task 1 can be automatically started to execute on the second electronic device, without the user manually finding the related device and opening the related working task, thereby reducing the operation complexity of multi-device cooperative work and improving the user experience.
[0008] In a possible implementation, the server determines the first associated task group corresponding to the first work task, including: when the first associated task group includes the first work task, and the first electronic device starts to execute the first work task at a time within a preset time period, the server determines that the first associated task group corresponds to the first work task. That is, the first associated task group can correspond to the preset time period, indicating that the work tasks in the first associated task group are usually executed within the preset time period.
[0009] In a possible implementation, the server determines the first associated task group corresponding to the first work task, including: when the first associated task group includes the first work task, and the distance between the first electronic device and the second electronic device is less than a preset distance, the server determines that the first associated task group corresponds to the first work task. That is, the first associated task group can correspond to the preset distance, indicating that the electronic devices are usually close to each other when executing the work tasks in the first associated task group. Alternatively, when the first associated task group includes the first work task, and the first electronic device and the second electronic device are located at a preset place, the server determines that the first associated task group corresponds to the first work task. That is, the first associated task group can correspond to the preset place, indicating that the electronic devices usually execute the work tasks in the first associated task group at the preset place.
[0010] In a possible implementation, before the server obtains the work state of the first electronic device starting to execute the first work task, the method further includes: when the server monitors that the first electronic device executing the first work task and the second electronic device executing the second work task satisfy a preset condition, the server determines that the first associated task group includes the first work task and the second work task; the preset condition includes: the first electronic device and the second electronic device log in the same account; and the first work task and the second work task are simultaneously executed for more than a time threshold. That is, the server can determine the associated task group matching the use habit of the user by monitoring the regularity of the electronic devices executing the work tasks.
[0011] In a possible implementation, the preset condition further includes: the first work task and the second work task are simultaneously executed for more than a preset value; and / or, the first work task and the second work task are simultaneously executed within a preset time period; and / or, the first work task and the second work task are simultaneously executed at a preset place; and / or, the distance between the first electronic device and the second electronic device is less than a preset distance.
[0012] In a possible implementation, the method further includes: when the number of times that the first work task and the second work task run simultaneously within a preset time period exceeds a preset value, the server can determine that the first associated task group corresponds to the preset time period; and / or when the number of times that the first work task and the second work task run simultaneously at a preset location exceeds a preset value, the server can determine that the first associated task group corresponds to the preset location; and / or when the number of times that the first work task and the second work task run simultaneously exceeds a preset value, and the distance between the first electronic device and the second electronic device is less than a preset distance, the server can determine that the first associated task group corresponds to the preset distance.
[0013] In a possible implementation, after the server sends the collaboration message to the second electronic device, the method further includes: in response to the collaboration message, the second electronic device starts to execute the second work task. In this way, the second electronic device can automatically collaborate with the first electronic device to execute the corresponding work task in the first associated task group.
[0014] For example, the second electronic device starts to execute the second work task, including: the second electronic device can start to execute the second work task according to the execution progress of the second work task, to realize the continuity of the work task during the collaboration; where the execution progress of the second work task can be saved in the second electronic device, or the execution progress of the second work task can be carried in the collaboration message.
[0015] In a possible implementation, after the server sends the collaboration message to the second electronic device, the method further includes: the second electronic device can display a prompt message, where the prompt message is used to prompt the user to agree to execute the second work task on the second electronic device; if it is detected that the user selects a confirmation button in the prompt message, the second electronic device starts to execute the second work task; and if it is detected that the user selects a cancel button in the prompt message, the second electronic device hides the prompt message. That is, the second electronic device can first obtain the authorization of the user by displaying the prompt message, and then starts to execute the second work task, to avoid the interference of directly executing the second work task on the second electronic device on the normal operation of the user.
[0016] In a possible implementation, if it is detected that the user selects the cancel button in the prompt message, the method further includes: after a preset time, if the first electronic device still executes the first work task, the second electronic device can display the prompt message again, to prompt the user to collaborate with multiple devices.
[0017] In a possible implementation, if it is detected that the user selects the cancel button in the prompt message, it indicates that the user does not need the second electronic device to perform the corresponding work task in cooperation with the first electronic device, and the method further includes: the second electronic device sends an update message to the server, so that the server can delete the first associated task group in response to the update message. That is, the server can update the associated task group in real time according to the use habit of the user.
[0018] In a possible implementation, the method further includes: the first electronic device reports a first work state to the server, and the first work state is used to indicate that the first electronic device starts or ends performing a work task.
[0019] In a possible implementation, the method further includes: the second electronic device reports a second work state to the server, and the second work state is used to indicate that the second electronic device starts or ends performing a work task. In this way, the server can analyze the use habit of the user by monitoring the work states of the first electronic device and the second electronic device, so as to determine the associated task group corresponding to the use habit of the user.
[0020] For example, the first work task and the second work task can be work tasks in different applications, or the first work task and the second work task can be different work tasks in the same application, and the present application does not make any limitation in this regard.
[0021] In a second aspect, the present application provides an electronic device (i.e., a first electronic device), which includes: one or more processors; a memory; a communication module; wherein the memory stores one or more computer programs including instructions, and when the instructions are executed by the first electronic device, the first electronic device performs the following steps: the first electronic device reports a first work state to the server, and the first work state is used to indicate that the first electronic device starts or ends performing a work task.
[0022] In a third aspect, the present application provides an electronic device (i.e., a second electronic device), which includes: a display screen; one or more processors; a memory; a communication module; wherein the memory stores one or more computer programs including instructions, and when the instructions are executed by the second electronic device, the second electronic device performs the following steps:
[0023] receive a coordination message sent by the server, the coordination message being used to instruct the second electronic device to perform a second work task in a first associated task group, the first associated task group further comprising a first work task, and the first work task being performed by the first electronic device; display a prompt message, the prompt message being used to prompt a user to agree to perform the second work task on the second electronic device; if it is detected that the user selects a confirmation button in the prompt message, start performing the second work task; and if it is detected that the user selects a cancel button in the prompt message, hide the prompt message.
[0024] In a possible implementation, the second electronic device starts performing the second work task, including: the second electronic device starts performing the second work task according to a performance progress of the second work task; and the performance progress of the second work task is saved in the second electronic device, or the performance progress of the second work task is carried in the coordination message.
[0025] In a possible implementation, if it is detected that the user selects the cancel button in the prompt message, the second electronic device further performs the following step: after a preset time, if the first electronic device is performing the first work task, the prompt message is displayed again.
[0026] In a possible implementation, if it is detected that the user selects the cancel button in the prompt message, the second electronic device further performs the following step: sends an update message to the server, so that the server deletes the first associated task group in response to the update message.
[0027] In a possible implementation, the second electronic device further performs the following step: reports a second work status to the server, the second work status being used to indicate that the second electronic device starts or ends performing a work task.
[0028] In a fourth aspect, the present application provides a server, including: one or more processors; a memory; and a communication module; wherein the memory stores one or more computer programs, and the one or more computer programs include instructions, which, when executed by the server, cause the server to perform the device coordination method of any of the above aspects.
[0029] In a fifth aspect, the present application provides a device coordination system, including the first electronic device, the second electronic device, and the server. The first electronic device, the second electronic device, and the server interact to implement the device coordination method of any of the above aspects.
[0030] In a sixth aspect, the present application provides a computer storage medium, including computer instructions, which, when executed on an electronic device (for example, the first electronic device or the second electronic device), cause the electronic device to perform the device coordination method of any of the above aspects.
[0031] In a seventh aspect, the present application provides a computer program product, which, when executed on an electronic device (e.g., the first electronic device or the second electronic device described above), causes the electronic device to perform the device cooperation method described above.
[0032] In an eighth aspect, the present application provides a computer storage medium, which includes computer instructions, which, when executed on a server, causes the server to perform the device cooperation method described above.
[0033] In a ninth aspect, the present application provides a computer program product, which, when executed on a server, causes the server to perform the device cooperation method described above.
[0034] It can be understood that the electronic device of the second aspect and the third aspect, the server of the fourth aspect, the device cooperation system of the fifth aspect, the computer storage medium of the sixth aspect and the eighth aspect, and the computer program product of the seventh aspect and the ninth aspect provided above are all used to perform the corresponding method provided above, and thus the beneficial effects achieved thereby can refer to the beneficial effects of the corresponding method provided above, which will not be described herein again. BRIEF DESCRIPTION OF DRAWINGS
[0035] Figure 1 A schematic diagram of an architecture of a communication system provided by an embodiment of the present application;
[0036] Figure 2 A schematic diagram of an interaction of a device cooperation method provided by an embodiment of the present application;
[0037] Figure 3 A schematic diagram of a structure of an electronic device provided by an embodiment of the present application Figure 1 ;
[0038] Figure 4 A schematic diagram of an application scenario of a device cooperation method provided by an embodiment of the present application Figure 1 ;
[0039] Figure 5 A schematic diagram of an application scenario of a device cooperation method provided by an embodiment of the present application Figure 2 ;
[0040] Figure 6 A schematic diagram of an application scenario of a device cooperation method provided by an embodiment of the present application Figure 3 ;
[0041] Figure 7A A schematic diagram of an application scenario of a device cooperation method provided by an embodiment of the present application Figure 4 ;
[0042] Figure 7B This application provides an illustration of an application scenario for a device collaboration method. Figure 5 ;
[0043] Figure 8 This application provides an illustration of an application scenario for a device collaboration method. Figure 6 ;
[0044] Figure 9 Schematic diagram seven illustrating an application scenario of a device collaboration method provided in this application embodiment;
[0045] Figure 10 This application provides an illustration of an application scenario for a device collaboration method. Figure 8 ;
[0046] Figure 11 This application provides an illustration of an application scenario for a device collaboration method. Figure 9 ;
[0047] Figure 12 This application provides an illustration of an application scenario for a device collaboration method. Figure 10 ;
[0048] Figure 13 This application provides an illustration of an application scenario for a device collaboration method. Figure 10 one;
[0049] Figure 14 A schematic diagram of the structure of an electronic device provided in this application embodiment. Figure 2 ;
[0050] Figure 15 This is a schematic diagram of the structure of a server provided in an embodiment of this application. Detailed Implementation
[0051] The implementation of this embodiment will now be described in detail with reference to the accompanying drawings.
[0052] The device collaboration method provided in this application embodiment can be applied to... Figure 1 The communication system 200 shown may include multiple electronic devices 101 and one or more network-side servers 102.
[0053] Specifically, the electronic device 101 can be a mobile phone, tablet computer, television (also known as a smart screen), laptop computer, smart home device (e.g., smart air conditioner, smart refrigerator, smart speaker, smart light or smart curtain, etc.), wearable electronic device, vehicle device (also known as vehicle system), virtual reality device, etc., and this application embodiment does not impose any restrictions on it.
[0054] For example, the electronic devices 101 can be connected with the server 102 through a wired network or a wireless network. In some embodiments, the electronic devices 101 in the communication system 200 can also be connected through a wired network or a wireless network.
[0055] For example, the wired network or the wireless network described above can be implemented using any known network communication protocol, such as Ethernet, universal serial bus (USB), FIREWIRE, global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), Bluetooth, wireless fidelity (Wi-Fi), NFC, voice over Internet protocol (VoIP), a communication protocol supporting a network slice architecture, or any other suitable communication protocol.
[0056] For example, the electronic devices 101 in the communication system 200 can be various electronic devices 101 in a user's home. These electronic devices 101 can establish a communication connection by accessing the same Wi-Fi network. In addition, these electronic devices 101 can also establish a communication connection with the server 102 by logging in the same account (for example, a Huawei account).
[0057] In the embodiments of the present application, as shown in Figure 2 For example, the electronic devices 101 can report their working states to the server 102 in real time, and the working states can include specific working tasks being performed by the electronic devices 101. Taking a mobile phone as an example, when the mobile phone starts an application (for example, a video APP), the mobile phone can report the current working state 1 to the server 102, that is, the video APP starts running. For another example, when the mobile phone kills the video APP, the mobile phone can report the current working state 2 to the server 102, that is, the video APP ends running. That is, the mobile phone can report the current working state to the server 102 in the granularity of an application.
[0058] Alternatively, still taking the mobile phone as an example of the electronic device 101, the mobile phone can report the current working state to the server 102 in the granularity of a specific service (also referred to as a function or a function) in an application in addition to reporting the current working state to the server 102 in the granularity of the application. For example, when the mobile phone starts playing a TV series A in a video APP, the mobile phone can report the current working state 3 to the server 102 as: starting to play the TV series A. For another example, when the mobile phone pauses playing the TV series A in the video APP, the mobile phone can report the current working state 4 to the server 102 as: pausing to play the TV series A.
[0059] Optionally, the mobile phone can further report the execution time, location, and the like of the corresponding working task in the working state reported to the server 102. Of course, in addition to the mobile phone, other electronic devices 101 in the communication system 200 can also report the working state of the electronic devices 101 to the server 102 in real time according to the above method, and the embodiments of the present application do not make any limitation in this regard.
[0060] Correspondingly, the server 102 can receive the working state reported by each electronic device 101 in the communication system 200 in real time. Further, as shown in Figure 2 The server 102 can determine whether there is an associated task group across devices, i.e., a plurality of working tasks that need to be cooperatively completed by a plurality of electronic devices 102, based on the working state reported by each electronic device 101. For example, if the first electronic device is executing a working task A and the second electronic device is executing a working task B for N consecutive times, the server 102 can determine that the working task A and the working task B are an associated task group, which indicates that the user's use habit is to use the first electronic device and the second electronic device to cooperatively complete the working task A and the working task B. The server 102 can specifically determine the associated task group by using a neural network algorithm, a data mining technology, or other implementation manners, and the embodiments of the present application do not make any limitation in this regard.
[0061] For example, the associated task group 1 can include the working task A and the working task B, the execution device of the working task A is the first electronic device, and the execution device of the working task B is the second electronic device. Optionally, the associated task group can further include a corresponding execution time (or an execution time period), for example, the associated task group 1 corresponds to the time period of 20:00-21:00 every day, which indicates that the user often uses different electronic devices to execute the working task in the associated task group 1 during the time period of 20:00-21:00 every day.
[0062] When the server 102 determines the associated task group 1, as shown in Figure 2If the server 102 receives the work state that the first electronic device reports starting to execute the work task A, the server 102 can send a collaboration message to the second electronic device according to the above-mentioned associated task group 1, to instruct the second electronic device to start executing the work task B associated with the work task A in the associated task group 1. In this way, the server 102 can automatically trigger the second electronic device to execute the associated work task B when the first electronic device executes the work task A based on the user's usage habits, reducing the operation complexity when the first electronic device and the second electronic device collaborate.
[0063] Alternatively, if the server 102 receives the work state that the second electronic device reports starting to execute the work task B, the server 102 can send a collaboration message 2 to the first electronic device according to the above-mentioned associated task group 1, to instruct the first electronic device to start executing the work task A associated with the work task B in the associated task group 1. In this way, the server 102 can automatically trigger the first electronic device to execute the associated work task A when the second electronic device executes the work task B based on the user's usage habits, also reducing the operation complexity when the first electronic device and the second electronic device collaborate.
[0064] Wherein, after the first electronic device (or the second electronic device) receives the collaboration message sent by the server 102, it can first display a corresponding prompt message to the user, prompting the user to authorize the first electronic device (or the second electronic device) to execute the corresponding work task. After obtaining the authorization of the user, the first electronic device (or the second electronic device) can start executing the corresponding work task. Alternatively, after the first electronic device (or the second electronic device) receives the collaboration message sent by the server 102, it can directly start executing the corresponding work task. In both scenarios, the user does not need to manually find the relevant device and the relevant work task to trigger the work task to automatically run on the first electronic device (or the second electronic device).
[0065] That is, the server 102 can determine the associated task group matching the user's usage habits by monitoring the work states of each electronic device 101 in the communication system 200. The multiple work tasks associated with each other in the associated task group usually involve multiple electronic devices, so when the server 102 subsequently monitors that the work task 1 in the associated task group is executed by the electronic device 1, the server 102 can control the relevant electronic device 2 to collaboratively execute the work task 2 associated with the work task 1. In this way, when the user uses the electronic device 1 to execute the work task 1, the work task 2 associated with the work task 1 can automatically start executing on the electronic device 2, without the user manually finding the relevant device and opening the relevant work task, thereby reducing the operation complexity when multiple devices collaborate and improving the user's experience.
[0066] The specific interaction process between the electronic device 101 and the server 102 in the communication system 200 will be described in detail in subsequent embodiments, and thus is not described here.
[0067] Taking a mobile phone as an example of the electronic device 101 in the communication system 200, Figure 3 A structural schematic diagram of the mobile phone is shown.
[0068] The mobile phone can 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 loudspeaker 170A, a receiver 170B, a microphone 170C, a headset interface 170D, a sensor module 180, and the like.
[0069] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the mobile phone. In other embodiments of the present application, the mobile phone can include more or fewer components than shown, or combine certain components, or split certain components, or different arrangement of components. The components shown can be implemented in hardware, software, or a combination of software and hardware.
[0070] The processor 110 can include one or more processing units, for example: the processor 110 can 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), etc. Different processing units can be independent devices, or can be integrated in one or more processors.
[0071] The memory in the processor 110 can also be provided for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can save instructions or data that the processor 110 has just used or repeatedly uses. If the processor 110 needs to use the instructions or data again, it can be directly called from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thereby improving the efficiency of the system.
[0072] In some embodiments, the processor 110 can include one or more interfaces. The interfaces can 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, etc.
[0073] The wireless communication function of the mobile phone can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc.
[0074] The antenna 1 and the antenna 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the mobile phone can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antennas can be used in combination with a tuning switch.
[0075] The mobile communication module 150 can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the mobile phone. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert the signals into electromagnetic waves radiated by the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be arranged in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 can be arranged in the same device.
[0076] The wireless communication module 160 can provide a wireless communication solution applied to a mobile phone, including wireless local area networks (WLAN) (such as a wireless fidelity (Wi-Fi) network), Bluetooth (BT), a global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), and the like. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 can also receive signals to be transmitted from the processor 110, frequency-modulate them, amplify them, and radiate them as electromagnetic waves via the antenna 2.
[0077] In some embodiments, the antennas 1 and the mobile communication module 150 are coupled, and the antennas 2 and the wireless communication module 160 are coupled, so that the mobile phone can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).
[0078] The mobile phone implements display functions through the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, connected with the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs that execute program instructions to generate or change display information.
[0079] The display screen 194 is configured to display images, videos, and the like. The 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 flex light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diodes (QLED), or the like. In some embodiments, the mobile phone can include one or N display screens 194, where N is a positive integer greater than 1.
[0080] The mobile phone can implement the photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, and the application processor, and the like.
[0081] The ISP is configured to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing to convert it into an image visible to the naked eye. The ISP can also optimize the algorithm for the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature, and other parameters of the shooting scene. In some embodiments, the ISP can be arranged in the camera 193.
[0082] The camera 193 is configured to capture still images or videos. An object generates an optical image through a lens and projects it onto a photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the mobile phone can include one or N cameras 193, where N is a positive integer greater than 1.
[0083] A digital signal processor is used to process digital signals, which can be digital image signals, but also other digital signals. For example, when a mobile phone selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point, etc.
[0084] A video codec is used to compress or decompress digital video. A mobile phone can support one or more video codecs. In this way, the mobile phone can play or record videos in multiple encoding formats, such as moving picture experts group (MPEG) 1, MPEG 2, MPEG 3, MPEG 4, etc.
[0085] 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 mobile phone. The external memory card communicates with the processor 110 through the external memory interface 120 to realize data storage functions. For example, music, video, and other files are saved in the external memory card.
[0086] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the mobile phone by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), etc. The data storage area can store data created during use of the mobile phone (such as audio data, a phonebook, etc.), etc. In addition, the internal memory 121 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0087] The mobile phone can realize audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset interface 170D, an application processor, etc. For example, music playing, recording, etc.
[0088] The audio module 170 is used to convert digital audio information into an analog audio signal output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be disposed in the processor 110, or part of the functions of the audio module 170 can be disposed in the processor 110.
[0089] The speaker 170A, also called a "loudspeaker", is used to convert an audio electrical signal into a sound signal. The mobile phone can listen to music or listen to a hands-free call through the speaker 170A.
[0090] The receiver 170B, also called a "earpiece", is used to convert an audio electrical signal into a sound signal. When the mobile phone answers a call or a voice message, the user can listen to the voice by holding the receiver 170B close to the ear.
[0091] The microphone 170C, also called a "microphone", "sound pickup", is used to convert a sound signal into an electrical signal. When making a call or sending a voice message, the user can make a sound by holding the mouth close to the microphone 170C, and input the sound signal into the microphone 170C. The mobile phone can be provided with at least one microphone 170C. In other embodiments, the mobile phone can be provided with two microphones 170C, in addition to collecting sound signals, it can also realize the function of noise reduction. In other embodiments, the mobile phone can also be provided with three, four or more microphones 170C, to realize the functions of collecting sound signals, noise reduction, identifying sound sources, realizing directional recording, etc.
[0092] The earphone interface 170D is used to connect a wired earphone. The earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0093] The sensor module 180 can include a pressure sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
[0094] Of course, the mobile phone can also include a charging management module, a power management module, a battery, a key, an indicator, and one or more SIM card interfaces, etc., which are not limited by the embodiments of the present application.
[0095] A device cooperation method provided by the embodiments of the present application will be described in detail below in conjunction with the drawings.
[0096] For example, Figure 4As shown, the user can log in the account A when using the notebook computer 401. After the notebook computer 401 successfully logs in the account A, the notebook computer 401 can establish a network connection with the server 102. At this time, the server 102 can record in the database that the notebook computer 401 is in a login state and the logged-in account is the account A.
[0097] Similarly, as shown in FIG. 4B, the user can also log in the account A when using the tablet computer 402. Similarly, after the tablet computer 402 successfully logs in the account A, the tablet computer 402 can establish a network connection with the server 102. At this time, the server 102 can record in the database that the tablet computer 402 is in a login state and the logged-in account is the account A. That is, the user can log in the same account (i.e., the account A) on the notebook computer 401 and the tablet computer 402 at the same time, thereby establishing a network connection with the server 102. Figure 4 In some embodiments, as shown in FIG. 4C, the user can also connect the notebook computer 401 and the tablet computer 402 to the same Wi-Fi network, for example, a Wi-Fi network in the user's home. In this way, the notebook computer 401 and the tablet computer 402 can communicate with each other through the above-mentioned Wi-Fi network. Optionally, after the notebook computer 401 (or the tablet computer 402) connects to the Wi-Fi network, it can also report a corresponding Wi-Fi network connection event to the server 102. For example, the notebook computer 401 can report the name of the connected Wi-Fi network, the connection time, and the like in the Wi-Fi network connection event to the server 102. Then, if the name of the Wi-Fi network in the Wi-Fi network connection event reported by the notebook computer 401 is the same as the name of the Wi-Fi network in the Wi-Fi network connection event reported by the tablet computer 402, the server 102 can confirm that the notebook computer 401 and the tablet computer 402 are connected to the same Wi-Fi network.
[0098] Figure 4 In the embodiments of the present application, each electronic device that establishes a network connection with the server 102 can report its working state to the server 102 when working. The working state can include information such as the specific working task being performed by the electronic device.
[0099] For example, after the notebook computer 401 establishes a network connection with the server 102 by logging in the account A, it can periodically report the current working state to the server 102. For example, every 5 minutes, the notebook computer 401 can report the name of the running application and the like to the server 102, so that the server 102 knows the current working state of the notebook computer 401.
[0100]
[0101] Alternatively, the notebook computer 401 can actively report the working task performed by the notebook computer 401 to the server 102 after the notebook computer 401 establishes a network connection with the server 102 by logging in the account A. For example, as shown in Figure 5 the notebook computer 401 can send a start event of the document 1 to the server 102, where the start event can include the name of the document 1, the time of opening the document 1, and the like. Subsequently, when the notebook computer 401 closes the document 1 in response to the operation of the user, the notebook computer 401 can send an end event of the document 1 to the server 102, where the end event can also include the name of the document 1, the time of closing the document 1, and the like. In this way, the server 102 can determine, according to the start event and the end event of the document 1, that the working task of the notebook computer 401 in a certain time period is running the document 1.
[0102] Similarly, as shown in Figure 5 the tablet computer 402 can also report its working state to the server 102 according to the above method. For example, the tablet computer 402 can send a start event of the video APP to the server 102 after detecting the operation of the user opening the video APP. Subsequently, the tablet computer 402 can send an end event of the video APP to the server 102 after detecting the operation of the user closing the video APP. Of course, the tablet computer 402 can also send the name and type of the specific program played by the video APP to the server 102.
[0103] In some other embodiments, the notebook computer 401 (or the tablet computer 402) can be preconfigured with a list of working tasks that need to be reported to the server 102. If the working task currently performed by the notebook computer 401 (or the tablet computer 402) is a working task in the preconfigured list of working tasks, the notebook computer 401 (or the tablet computer 402) can report the corresponding working task to the server 102 according to the above method.
[0104] Alternatively, the notebook computer 401 (or the tablet computer 402) can also report the corresponding working task to the server 102 according to the above method when working in a preconfigured time period (for example, the peak time period of going to work) or a preconfigured location (for example, home or office), and the embodiments of the present application do not make any limitation in this regard.
[0105] For the server 102, the server 102 can obtain the working states reported by each electronic device in a time period. These working states can reflect the usage habits of the user for different electronic devices. As shown in Figure 5 the server 102 can determine, according to the working states of each electronic device, a plurality of working tasks (i.e., an associated task group) that need to be cooperatively completed by a plurality of electronic devices.
[0106] For example, the server 102 can first filter the specific work tasks reported by the electronic devices logged into the same account, which are generally triggered by the same user. Then, the server 102 can query a plurality of work tasks having a certain regularity from the filtered work tasks, so as to determine the plurality of work tasks having the certain regularity as a group of associated task groups.
[0107] For example, if the notebook computer 401 runs the document 1 (i.e., work task 1) and the tablet computer 402 runs the video APP (i.e., work task 2) at the same time for more than a preset time (e.g., 15 minutes), it indicates that the user is used to performing the work task 1 on the notebook computer 401 and performing the work task 2 on the tablet computer 402 at the same time. At this time, the server 102 can determine that the work task 1 and the work task 2 are a group of associated task groups, wherein the execution device of the work task 1 is the notebook computer 401, and the execution device of the work task 2 is the tablet computer 402.
[0108] For example, if the notebook computer 401 runs the document 1 (i.e., work task 1) and the tablet computer 402 runs the video APP (i.e., work task 2) at the same time for more than a preset time (e.g., 15 minutes), the server 102 can query the number of times this scenario occurs. If the number of times this scenario occurs is greater than a preset value (e.g., 2 times), it indicates that the user is used to performing the work task 1 on the notebook computer 401 and performing the work task 2 on the tablet computer 402 at the same time. At this time, the server 102 can determine that the work task 1 and the work task 2 are a group of associated task groups.
[0109] For example, if the notebook computer 401 runs the document 1 (i.e., work task 1) and the tablet computer 402 runs the video APP (i.e., work task 2) at the same time for more than a preset time (e.g., 15 minutes), and the number of times this scenario occurs is greater than a preset value, the server 102 can further query whether the time of each occurrence of the above scenario is within the same time period. For example, each time the notebook computer 401 runs the document 1 and the tablet computer 402 runs the video APP is within the time period of 20:00-21:00, which indicates that the user is used to performing the work task 1 on the notebook computer 401 and performing the work task 2 on the tablet computer 402 at the same time within the time period of 20:00-21:00. At this time, the server 102 can determine that the work task 1 and the work task 2 are a group of associated task groups. In some embodiments, the server 102 can also establish a corresponding relationship between the group of associated task groups and the time period of 20:00-21:00. For example, the server 102 can set the corresponding preset time period in the group of associated task groups as 20:00-21:00.
[0110] For example, if the notebook computer 401 is running document 1 (i.e., work task 1) and the tablet computer 402 is running a video APP (i.e., work task 2) at the same time for more than a preset time (e.g., 15 minutes), the server 102 can further query whether the distance between the notebook computer 401 and the tablet computer 402 is within a preset distance. For example, if the notebook computer 401 and the tablet computer 402 are connected to the same Wi-Fi network, it indicates that the distance between the notebook computer 401 and the tablet computer 402 is within the preset distance, and the server 102 can determine that the work task 1 and the work task 2 are a group of associated task groups.
[0111] For example, a positioning device (e.g., a router) with a positioning function can be arranged in the user's home. The positioning device can perform indoor positioning on the electronic devices such as the notebook computer 401 and the tablet computer 402, and then send the positioning result to the server 102. In this way, the server 102 can determine whether the distance between the notebook computer 401 and the tablet computer 402 is within a preset distance (e.g., 10 meters) according to the positioning result of the notebook computer 401 and the tablet computer 402. If the distance between the notebook computer 401 and the tablet computer 402 is within the preset distance, the server 102 can determine that the work task 1 and the work task 2 are a group of associated task groups. At this time, the server 102 can also establish a corresponding relationship between the associated task group and the preset distance. For example, the server 102 can set the corresponding preset distance in the associated task group as 10 meters.
[0112] It can be seen that the associated task group determined by the server 102 based on the running state of each electronic device includes a plurality of work tasks and the execution device of each work task. Optionally, the associated task group can further include a time period for executing the plurality of work tasks. Alternatively, the associated task group can further include the distance, location, etc. between each execution device, which is not limited in the embodiments of the present application.
[0113] The above embodiments take the two work tasks of the notebook computer 401 running document 1 and the tablet computer 402 running a video APP as an example to illustrate an associated task group. It can be understood that the work task in the associated task group determined by the server 102 can be running an application (or software), can be a specific business (or function) in an application (or software), or can be a specific event (e.g., a ring event, a voice call event, etc.) executed by an electronic device, which is not limited in the embodiments of the present application.
[0114] For example, if the notebook computer 401 runs a software used by the document 1 is Word software, the server 102 can group the two work tasks of the notebook computer 401 running the Word software and the tablet computer 402 running the video APP as a group of associated tasks. For another example, if the tablet computer 402 runs a program of the variety show category in the video APP while the notebook computer 401 runs the document 1, the server 102 can group the two work tasks of the notebook computer 401 running the document 1 and the tablet computer 402 playing the program of the variety show category as a group of associated tasks.
[0115] In addition, the work tasks performed by other electronic devices can also be work tasks in a group of associated tasks in addition to the notebook computer 401 and the tablet computer 402. For example, the server 102 can acquire the work statuses reported by a television and a smart watch. When the television and the smart watch log in to the same account, if the server 102 monitors that the television is playing a teaching course in the sports APP (or referred to as the health APP) and the smart watch simultaneously starts a sports monitoring function to detect the heart rate, blood pressure and other health data of the user, the server 102 can group the two work tasks of playing the teaching course in the sports APP and starting the sports monitoring function as a group of associated tasks, wherein the execution device of playing the teaching course in the sports APP is the television, and the execution device of starting the sports monitoring function is the smart watch.
[0116] It should be noted that the multiple work tasks in a group of associated tasks can be performed by different applications or can be performed by the same application. For example, the work task 1 in the associated task group 1 is performed by the application A, and the work task 2 in the associated task group 1 is performed by the application B. For another example, the work task 1 and the work task 2 in the associated task group 1 can be performed by the application A. For example, the user can use the television to display the game interface of the game APP and use the tablet computer to display the control interface (such as the joystick, the equipment tool, etc.) of the game APP. At this time, the work task performed on the television and the work task performed on the tablet computer are a group of associated tasks, and the two work tasks are performed by the game APP.
[0117] In some embodiments, the association task group determined by the server 102 can be dynamically updated. The server 102 can update the corresponding association task group in real time according to the working status reported by each electronic device. For example, after the server 102 determines the notebook computer 401 running the document 1 and the tablet computer 402 running the video APP as the association task group 1 according to the method in the above embodiment, if it is detected that the notebook computer 401 is running the document 2 instead of the document 1 when the tablet computer 402 is running the video APP, it indicates that the user's current use habit has changed to running the document 2 on the notebook computer 401 and running the video APP on the tablet computer 402 at the same time. Then, the server 102 can update the above association task group 1, and determine the notebook computer 401 running the document 2 and the tablet computer 402 running the video APP as the updated association task group 1. In this way, the association task group stored in the server 102 can be matched with the user's current use habit to the greatest extent.
[0118] Still taking the notebook computer 401 running the document 1 and the tablet computer 402 running the video APP as the association task group 1 as an example, after the server 102 determines the association task group 1, if it is detected that any working task in the association task group 1 is executed, the server 102 can control the corresponding electronic device to execute the other working task in the association task group 1, so that the multiple associated working tasks in the association task group 1 can be completed on the corresponding electronic device, and the user's use experience in the multi-device collaboration scenario is improved.
[0119] For example, as shown in FIG. 4, after the server 102 determines the association task group 1, if it is detected that the notebook computer 401 is running the document 2, the server 102 can control the tablet computer 402 to run the video APP according to the association task group 1, so that the user can run the document 2 on the notebook computer 401 and run the video APP on the tablet computer 402 at the same time. Figure 6 For example, as shown in FIG. 4, after the server 102 determines the association task group 1, if it is detected that the notebook computer 401 is running the document 2, the server 102 can control the tablet computer 402 to run the video APP according to the association task group 1, so that the user can run the document 2 on the notebook computer 401 and run the video APP on the tablet computer 402 at the same time. Figure 6 For example, as shown in FIG. 4, after the server 102 determines the association task group 1, if it is detected that the notebook computer 401 is running the document 2, the server 102 can control the tablet computer 402 to run the video APP according to the association task group 1, so that the user can run the document 2 on the notebook computer 401 and run the video APP on the tablet computer 402 at the same time. Figure 6As shown, the server 102 can send a collaboration message 1 to the tablet 402, and the collaboration message 1 is used to instruct the tablet 402 to run the video APP. For example, the server 102 can send the identification of the video APP to the tablet 402 in the collaboration message 1. The identification of the video APP can be the package name of the video APP, etc. After receiving the collaboration message 1, the tablet 402 can start running the video APP in response to the collaboration message 1. In this way, after the user opens the document 1 on the notebook 401, the tablet 402 can automatically run the video APP associated with the document 1, without the user manually searching for the related device and opening the related work task, thereby reducing the operation complexity when multiple devices are collaboratively working and improving the user experience.
[0120] In some embodiments, after the server 102 receives the start event of the document 1 sent by the notebook 401, it is indicated that the notebook 401 is executing the work task A. At this time, if the server 102 queries that the work task A is included in the associated task group 1, the server 102 can further determine whether the notebook 401 executes the work task A within the preset time period (for example, 20:00-21:00) set by the associated task group 1. If it is within the preset time period of 20:00-21:00, it is indicated that the user is likely to run the work task B (i.e., run the video APP) associated with the work task A on the tablet 402, and the server 102 can send the above-mentioned collaboration message 1 to the tablet 402. In this way, the server 102 can more accurately control each device to execute the associated work tasks in the associated task group 1, thereby realizing the collaborative work of multiple devices.
[0121] Alternatively, after the server 102 receives the start event of the document 1 sent by the notebook 401, it is indicated that the notebook 401 is executing the work task A. At this time, if the server 102 queries that the work task A is included in the associated task group 1, the server 102 can further query whether the distance between the tablet 402 and the notebook 401 is within the preset distance (for example, 10 meters) set by the associated task group 1. If the distance between the tablet 402 and the notebook 401 is within the preset distance, it is indicated that the user is likely to run the work task B (i.e., run the video APP) associated with the work task A on the tablet 402, and the server 102 can send the corresponding collaboration message (for example, the collaboration message 1) to the tablet 402 according to the above-mentioned method, and trigger the tablet 402 to start running the video APP in response to the collaboration message 1. In this way, the server 102 can more accurately control each device to execute the associated work tasks in the associated task group 1, thereby realizing the collaborative work of multiple devices.
[0122] For example, the server 102 can query whether the tablet 402 and the notebook 401 are connected to the same Wi-Fi network, and if so, the server 102 can determine that the distance between the tablet 402 and the notebook 401 is within the preset distance. Otherwise, the server 102 can determine that the distance between the tablet 402 and the notebook 401 is not within the preset distance.
[0123] For another example, the server 102 can send a location query instruction of the tablet 402 to the notebook 401, so that the notebook 401 can start a positioning function (e.g., a UWB positioning function or a Wi-Fi positioning function) in response to the location query instruction, and position the distance between the notebook 401 and the tablet 402. Then, the notebook 401 can send the positioned distance between the notebook 401 and the tablet 402 to the server 102, so that the server 102 can determine whether the distance between the tablet 402 and the notebook 401 is within the preset distance. Alternatively, after the notebook 401 positions the distance between the notebook 401 and the tablet 402, the notebook 401 can determine whether the distance between the notebook 401 and the tablet 402 is within the preset distance. If so, the notebook 401 can send the corresponding collaboration message 1 to the tablet 402 through the Wi-Fi network, and in this case, the server 102 does not need to send the corresponding collaboration message 1 to the tablet 402.
[0124] In some other embodiments, there can be multiple associated task groups in which the notebook 401 runs the document 1 as the work task A. For example, the associated task group 1 includes the work task A and the work task B, and the associated task group 2 includes the work task A and the work task C. Then, when the server 102 receives the start event of the document 1 sent by the notebook 401, the server 102 can further determine which group of associated task groups the work task A is associated with.
[0125] For example, the preset time period set in the associated task group 1 is 20:00-21:00 on weekdays, and the preset time period set in the associated task group 2 is 20:00-21:00 on holidays. Then, if the server 102 obtains the work state of the notebook 401 performing the work task A within 20:00-21:00 on weekdays, it indicates that the work task A at this time is associated with the work task B in the associated task group 1, rather than the work task C in the associated task group 2, and the server 102 can send the above-mentioned collaboration message 1 to the tablet 402, instructing the tablet 402 to start performing the work task B (i.e., running the video APP).
[0126] Alternatively, still taking the example that the associated task group 1 includes the work task A and the work task B, and the associated task group 2 includes the work task A and the work task C. When the server 102 receives the start event of the document 1 sent by the notebook computer 401, since the work task A is included in both the associated task group 1 and the associated task group 2, the server 102 can detect the distance 1 between the execution device of the work task B (i.e., the tablet computer 402) and the notebook computer 401 (i.e., the execution device of the work task A), and the distance 2 between the execution device of the work task C (e.g., a sound box) and the notebook computer 401. If the distance 1 is less than the distance 2, the server 102 can send the corresponding collaboration message to the tablet computer 402; correspondingly, if the distance 1 is greater than the distance 2, the server 102 can send the corresponding collaboration message to the sound box. That is, the server 102 can send the corresponding collaboration message to the electronic device closer to the notebook computer 401, instructing the notebook computer 401 to collaboratively execute the work task in the associated task group with the electronic device closer.
[0127] In some embodiments, still taking the example that the server 102 sends the collaboration message 1 to the tablet computer 402, after the tablet computer 402 receives the above-mentioned collaboration message 1, the tablet computer 402 can first display a prompt message 701 running the video APP, as shown in FIG. 7A. The prompt message 701 can be used to prompt the user to agree that the tablet computer 402 starts running the video APP (i.e., executing the work task B). For example, the prompt message 701 can include a confirmation button 702. If it is detected that the user clicks the confirmation button 702, the tablet computer 402 can start the video APP and display the display interface of the video APP. That is, after the tablet computer 402 receives the collaboration message 1 sent by the server 102, instructing the tablet computer 402 to run the video APP, the tablet computer 402 can first get the authorization of the user by displaying the prompt message 701, and then start running the video APP, avoiding directly running the video APP in the tablet computer 402 to interfere with the normal operation of the user on the tablet computer 402. Figure 7A
[0128] Optionally, if the user does not agree to run the video APP on the tablet computer 402, for example, the user can click the cancel button 703 in the prompt message 701, the tablet computer 402 can temporarily not respond to the collaboration message 1 sent by the server 102 to run the video APP. For example, after detecting that the user clicks the cancel button 703 in the prompt message 701, the tablet computer 402 can display the above-mentioned prompt message 701 again after a period of time (e.g., 10 minutes) to prompt the user to agree that the tablet computer 402 starts running the video APP. For example, the tablet computer 402 can display the above-mentioned prompt message 701 in the notification center, the desktop, the negative one screen menu or the control center, and the present application does not make any limitation on this.
[0129] Alternatively, after the tablet 402 runs the video APP in response to the collaboration message 1 sent by the server 102, the tablet 402 can send a response message to the server 102 to indicate that the current device collaboration process is completed. If the server 102 does not receive the response message sent by the tablet 402 within a preset time, and the notebook 401 does not finish running the work task A of the document 1, the server 102 can send the collaboration message 1 to the tablet 402 again. At this time, the tablet 402 can display the prompt message 701 again in response to the received collaboration message 1 to prompt the user to agree that the tablet 402 starts running the video APP.
[0130] In addition, if the tablet 402 detects that the user cancels running the video APP on the tablet 402 for N (N is an integer greater than 0) times in succession, it indicates that the user's usage habit is not to run the video APP on the tablet 402 while running the document 1 on the notebook 401. At this time, the tablet 402 can send a notification message to the server 102 to notify the server 102 to delete the corresponding associated task group. Further, after receiving the notification message, the server 102 can delete the associated task group 1 containing the work task A and the work task B. In this way, when the server 102 receives the work state of the notebook 401 executing the work task A again in the future, the server 102 will not send the corresponding collaboration message 1 to the tablet 402 according to the associated task group 1.
[0131] In some scenarios, after the tablet 402 receives the collaboration message 1 sent by the server 102, if the tablet 402 is in a screen-off state, the tablet 402 can light up the screen and display the prompt message 701 in the lock screen interface. At this time, the prompt message 701 can not include operation buttons such as the confirmation button 702 or the cancel button 703, i.e., the user cannot operate the prompt message 701. If the user wants to operate the prompt message 701 to agree or refuse the tablet 402 to run the video APP, the user needs to unlock the screen of the tablet 402 first. For example, the user can unlock the screen of the tablet 402 by inputting a preset fingerprint, facial image, or digital password. If the screen is successfully unlocked, it indicates that the user using the tablet 402 is a legal user, and the tablet 402 can display the complete prompt message 701 on the unlocked screen to facilitate the user to operate the prompt message 701 to agree or refuse the tablet 402 to run the video APP.
[0132] In other scenarios, the server 102 can also send the above-mentioned collaboration message 1 to the notebook 401. At this time, as shown in FIG. 7B, the notebook 401 can display the prompt message 701 in the task bar 701 of the notebook 401. The prompt message 701 can not include operation buttons such as the confirmation button 702 or the cancel button 703, i.e., the user cannot operate the prompt message 701. If the user wants to operate the prompt message 701 to agree or refuse the notebook 401 to run the document 1, the user needs to unlock the screen of the notebook 401 first. For example, the user can unlock the screen of the notebook 401 by inputting a preset fingerprint, facial image, or digital password. If the screen is successfully unlocked, it indicates that the user using the notebook 401 is a legal user, and the notebook 401 can display the complete prompt message 701 on the unlocked screen to facilitate the user to operate the prompt message 701 to agree or refuse the notebook 401 to run the document 1. Figure 7BAs shown, the laptop 401 can display a prompt message 704 in response to collaboration message 1. Similarly, prompt message 704 prompts the user to agree to start running the video app (i.e., performing task B) on the tablet 402. Since the user is currently running document 1 on the laptop 401, displaying prompt message 704 on the laptop 401 promptly prompts the user to agree to run the video app on the tablet 402.
[0133] After the laptop computer 401 displays the aforementioned prompt message 704, if it detects that the user has selected the "Confirm" button in the prompt message 704, the laptop computer 401 can send a launch message carrying a video app identifier to the tablet computer 402, triggering the tablet computer 402 to launch the video app and display its interface. Conversely, if it detects that the user has selected the "Cancel" button in the prompt message 704, the laptop computer 401 can hide the prompt message 704. Of course, the laptop computer 401 can also send a notification message to the server 102 according to the method in the above embodiments, notifying the server 102 to delete the corresponding associated task group; this application embodiment does not impose any limitations on this.
[0134] The above embodiment illustrates how, after server 102 determines the associated task group 1, it first obtains the working status of the document 1 running on laptop 401. In other embodiments, after server 102 determines the aforementioned associated task group 1, such as... Figure 8 As shown, if tablet computer 402 starts running the video app, it can report the video app startup event to server 102. At this time, server 102 first obtains the working status of tablet computer 402 running the video app (i.e., task B).
[0135] Still Figure 8 As shown, after receiving the video app's launch event, server 102 can query whether there is an associated task group corresponding to task B, that is, whether there is an associated task group containing task B. If associated task group 1 contains task B, server 102 can determine that the task associated with task B is: laptop 401 running document 1 (i.e., task A). Furthermore, as... Figure 8As shown, the server 102 can send a collaboration message 2 to the notebook computer 401, and the collaboration message 2 is used to instruct the notebook computer 401 to run the document 1. For example, the server 102 can send the name of the document 1 to the notebook computer 401 in the collaboration message 2. After receiving the collaboration message 2, the notebook computer 401 can open the document 1 by using the software Word, etc. In this way, after the user opens the video APP on the tablet computer 402, the notebook computer 401 can automatically run the document 1 associated with the video APP, without the user manually searching for the related device and opening the related work task, thereby reducing the operation complexity when multiple devices are collaboratively working and improving the user experience.
[0136] The specific method that the server 102 controls the notebook computer 401 to run the document 1 is similar to the specific method that the server 102 controls the tablet computer 402 to run the video APP in the above embodiment, and thus is not described herein.
[0137] That is, when the server 102 determines multiple work tasks as the same associated task group, when any work task in the same associated task group is executed, the server 102 can control the related electronic device to execute the associated other work task in the associated task group, so that the multiple work tasks in the same associated task group can automatically start to collaboratively work.
[0138] Further, the notebook computer 401 receives the above-mentioned collaboration message 2, and after the notebook computer 401 opens the document 1 in response to the collaboration message 2, the notebook computer 401 can report a start event of the document 1 to the server 102. At this time, the notebook computer 401 runs the document 1, and the tablet computer 402 runs the video APP, that is, the notebook computer 401 and the tablet computer 402 collaboratively execute the work tasks in the associated task group 1. Subsequently, when the notebook computer 401 stops running the document 1 (i.e., stops executing the work task A), the notebook computer 401 can send an end event of the document 1 to the server 102. Further, the server 102 can send a collaboration end message to the tablet computer 402 according to the above-mentioned associated task group 1, and the collaboration end message is used to instruct the tablet computer 402 to stop running the video APP (i.e., stop executing the work task B). After the tablet computer 402 receives the above-mentioned collaboration end message, the tablet computer 402 can display a corresponding prompt message to prompt the user to close the running video APP, thereby prompting the user to end the execution of the work task in the associated task group 1.
[0139] Alternatively, when the tablet 402 stops running the video APP (i.e. stops executing the work task B), the tablet 402 can send an end event of the video APP to the server 102. Similarly, the server 102 can send a corresponding cooperation end message to the notebook 401 according to the above-mentioned associated task group 1, which is used to instruct the notebook 401 to stop running the document 1 (i.e. stop executing the work task A). After receiving the above-mentioned cooperation end message, the notebook 401 can display a corresponding prompt message to prompt the user to close the running document 1, thereby prompting the user to end the execution of the work task in the associated task group 1.
[0140] In this way, when the server 102 determines a plurality of work tasks as the same associated task group, when any work task in the same associated task group ends running, the server 102 can also control the related electronic device to end the execution of the associated other work tasks in the associated task group, so that the plurality of work tasks in the same associated task group can automatically end the cooperation work.
[0141] The above-mentioned embodiment is exemplified by the notebook 401 running the document 1 and the tablet 402 running the video APP in the associated task group 1, and it can be understood that for other associated task groups, the server 102 can also control different electronic devices to cooperatively execute different work tasks in the same associated task group according to the above-mentioned method.
[0142] For example, as shown in Figure 9 The associated task group 2 can include two work tasks: the television 901 plays a sports type course, and the smart watch 902 runs the sports monitoring function in the sports APP. Alternatively, the associated task group 2 can also include the course link of the last sports course played by the television 901 (i.e. the execution progress when the television 901 plays the course), and the associated task group 2 can also include the time period of 7:00-8:00.
[0143] When the television 901 and the smart watch 902 log in the same account, as shown in Figure 9As shown, if TV 901 starts playing an exercise-type course (such as a yoga course), TV 901 can report its current working status to server 102 as: playing a yoga course, and the playback time is 7:15. At this time, server 102 can determine the work task associated with playing the yoga course based on the aforementioned associated task group 2: smartwatch 902 running the exercise monitoring function in the exercise app. Then, server 102 can send a collaboration message 3 to smartwatch 902, which instructs smartwatch 902 to run the exercise monitoring function in the exercise app. After receiving collaboration message 3, smartwatch 902 can first display a corresponding prompt, indicating that the user agrees to run the exercise monitoring function in the exercise app. If smartwatch 902 detects that the user has agreed to run the exercise monitoring function in the exercise app, smartwatch 902 can then activate and run the exercise monitoring function in the exercise app, starting to monitor the user's heart rate, blood pressure, and other health data.
[0144] In this way, after a user plays a sports course on TV 901, the smartwatch 902 can automatically run the exercise monitoring function in the associated sports app, thereby helping the user monitor health data such as heart rate and blood pressure during exercise. This eliminates the need for the user to manually find the relevant devices and open related tasks, thus reducing the operational complexity when multiple devices work together and improving the user experience.
[0145] Alternatively, taking the aforementioned associated task group 2 as an example, when TV 901 and smartwatch 902 log in to the same account, such as Figure 10 As shown, if the smartwatch 902 starts running the sports monitoring function in the sports APP, the smartwatch 902 can report its current working status to the server 102 as: running the sports monitoring function in the sports APP, and the start time is 7:05.
[0146] At this point, server 102, based on the aforementioned associated task group 2, determines the task associated with the exercise monitoring function in the exercise app as: TV 901 plays exercise-related courses. Furthermore, as before... Figure 10 As shown, server 102 can send coordination message 4 to television 901, which instructs television 901 to start playing a sports-type course. For example, coordination message 4 may include a course link of the last sports course played by television 901.
[0147] Upon receiving the collaboration message 4, TV 901 can first display a corresponding prompt to indicate the user's consent to run the exercise monitoring function in the exercise app. For example, this prompt may include a link to the last exercise course played on TV 901. Subsequently, if TV 901 detects that the user has selected the course link in the prompt, TV 901 can continue playing the last exercise course played by the user using that link. Of course, TV 901 can also display other optional exercise courses in the prompt; this embodiment does not impose any limitations on this.
[0148] Alternatively, TV 901 can store the most recently played exercise course (i.e., the execution progress). In this case, the collaboration message 4 sent by server 102 to TV 901 may not include the course link. Then, after receiving collaboration message 4, TV 901 can continue playing the last exercise course played by the user based on its stored most recently played exercise course, thus achieving the continuation of work tasks when multiple devices collaborate.
[0149] In other embodiments, multiple tasks in the same associated task group determined by server 102 may include different functions in the same application (or software). For example, associated task group 3 may include two tasks: TV 901 displays the game screen in the game APP, and mobile phone 1001 displays operation buttons such as backpack, joystick, and equipment bar in the game APP.
[0150] When TV 901 and mobile phone 1001 are logged into the same account, such as Figure 11 As shown, if TV 901 starts running the game app and enters the game screen 1101 within the game app, TV 901 can report its current working status to server 102 as: displaying the game screen in the game app. At this time, server 102 can determine the work task associated with displaying the game screen in the game app based on the aforementioned associated task group 3 as: mobile phone 1001 displays the operation buttons in the game app. Furthermore, server 102 can send a collaboration message 5 to smartwatch 902. Collaboration message 5 is used to instruct mobile phone 1001 to start running the game app and display the control interface 1102 containing operation buttons such as backpack and equipment bar. After receiving collaboration message 5, mobile phone 1001, as follows... Figure 11As shown, the game APP can be started to run, and operation buttons such as a backpack in the game APP and the like are displayed in the control interface 1102 of the game APP. In this way, the user does not need to manually open the television 901 and the mobile phone 1001 respectively, and the television 901 and the mobile phone 1001 can be cooperated to complete the work of running the game APP, and the game screen 1101 of the game APP displayed in the television 901 is not disturbed by the equipment column and the operation buttons and the like, and the user can use the control interface 1102 displayed in the mobile phone 1001 to control the game APP.
[0151] Of course, if the server 102 detects the mobile phone 1001 displaying the control interface 1102 first, the server 102 can control the television 901 to display the game screen 1101 in the game APP according to the above method, and realize the automatic cooperation of the television 901 and the mobile phone 1001, and the embodiments of the present application do not make any limitation on this.
[0152] In addition, the game APP running on the television 901 and the game APP running on the mobile phone 1001 can be the same version, or can be different versions. For example, the version A of the game APP can be installed in the television 901, and the version A of the game APP is suitable for the electronic device of the television type; and the version B of the game APP can be installed in the mobile phone 1001, and the version B of the game APP is suitable for the electronic device of the mobile phone type. Or, the version 2.0 of the game APP can be installed in the television 901, and the version 3.0 of the game APP can be installed in the mobile phone 1001. The identification of the game APP of different versions can be the same, and the television 901 (or the mobile phone 1001) can start the corresponding version of the game APP according to the identification of the game APP in the cooperation message. In this way, even if the versions of the game APP installed in the television 901 and the mobile phone 1001 are not the same, the device cooperation method in the above embodiments can also be realized.
[0153] In other embodiments, the user can install a timing APP for timing on the mobile phone, smart watch and the like. For example, the tomato timing function can be set in the timing APP. Wherein, the tomato timing method refers to setting the tomato time as a preset time length (for example, 25 minutes) when completing a task, the user focuses on work during the tomato time, and does not allow to do anything irrelevant to the task, and after the tomato clock rings, a short rest (for example, 5 minutes) is performed, and then the next tomato time is started. When a plurality of (for example, 4) tomato times are accumulated, the rest time is increased.
[0154] In the aforementioned multi-device collaborative scenario, a user might use multiple electronic devices to perform multiple tasks to complete a task (such as learning programming or completing a work report). These multiple tasks can be part of a related task group. In other words, the user completes a task within the Pomodoro Technique at the level of a related task group. Therefore, when a user enables the Pomodoro Technique in the timer app, the timer app can calculate the Pomodoro time based on the related task group.
[0155] For example, such as Figure 12 As shown, a timer app is installed on mobile phone 1001. When the user activates the Pomodoro timer function in the timer app, the timer app can send a timer message to server 102. After receiving the timer message, server 102 can query the currently executing associated task group (e.g., associated task group 1). At this time, the execution time of multiple tasks in associated task group 1 can be recorded as Pomodoro time. Therefore, server 102 can monitor whether the execution time of multiple tasks in associated task group 1 on various electronic devices has reached a Pomodoro time (e.g., 25 minutes). When the Pomodoro time in 25-minute increments is reached, server 102 can send a Pomodoro clock ring message to the timer app on mobile phone 1001. Then, the timer app on mobile phone 1001 can respond to the ring message and display a notification to the user that the current Pomodoro time has ended and a break is in progress. In other words, in a multi-device collaborative work scenario, the Pomodoro timer function can count Pomodoro time according to the associated task group corresponding to the current collaborative scenario, thereby improving the accuracy of the Pomodoro timer method and the user experience of using the Pomodoro timer function.
[0156] Alternatively, taking the example of a phone with a timer app installed on it, users can pre-set a list of applications or tasks to be timed using the Pomodoro Technique. For example... Figure 13 As shown in (a), the user can select one or more applications for Pomodoro timers in the settings interface 1301 of the timer app, such as application 1 and application 2. Application 1 and application 2 can be applications installed on the mobile phone 1001, or applications installed on other electronic devices (such as the aforementioned laptop 401, tablet 402, etc.) that are logged into the same account as the mobile phone 1001. This application embodiment does not impose any restrictions on this.
[0157] Subsequently, when application 1 runs on mobile phone 1001 (or other electronic device), mobile phone 1001 (or other electronic device) can send a Pomodoro timer request to server 102, triggering server 102 to send a request to the timer app to enable the Pomodoro timer function. At this time, as follows Figure 13As shown in (b) of FIG. 13, the timing APP can display a prompt message 1302 to prompt the user to open the tomato timing function to start timing. If it is detected that the user agrees to open the tomato timing function, the timing APP can open the tomato timing function to count the running time of application 1, and calculate the tomato time according to the running time of application 1. Similarly, when application 2 is running on mobile phone 1001 (or other electronic devices), the timing APP can also automatically prompt the user to open the tomato timing function to start timing according to the above method. Alternatively, the timing APP can include the running time of application 1 and application 2 in the tomato time of the tomato timing function, and the embodiments of the present application do not make any limitation thereto.
[0158] It should be noted that the above embodiments are exemplified by taking an association task group (for example, association task groups 1-3) including two work tasks. It can be understood that an association task group can include three or more work tasks, and the embodiments of the present application do not make any limitation thereto.
[0159] For example, the association task group A can include work task 1, work task 2 and work task 3. Among them, the execution device of work task 1 is electronic device 1, the execution device of work task 2 is electronic device 2, and the execution device of work task 3 is electronic device 3. Alternatively, the execution device of work task 1 is electronic device 1, the execution device of work task 2 is electronic device 2, and the execution device of work task 3 can be electronic device 1 (or electronic device 2). Similarly to the above embodiments, when the server 102 detects that any work task in the association task group A is executed, the server 102 can control the related electronic device in the association task group A to execute other work tasks in the association task group A, which will not be described herein.
[0160] In addition, the above embodiments are exemplified by taking the server 102 as the control device connected to each electronic device in the communication system 200. Among them, the server 102 can be used to receive the working state of each electronic device, determine the association task group, and control the related electronic device in the association task group to execute the work task.
[0161] It can be understood that a person skilled in the art can also set a certain electronic device in the communication system 200 as a control device, at this time, the electronic device can be used to execute each step executed by the server 102 described above. For example, the sound box can be set as a control device, and other electronic devices in the communication system 200 can report their working states to the sound box, and the sound box can determine each association task group according to the received working states, and the sound box can control other electronic devices to execute the related work tasks in the association task group according to the received working states.
[0162] The electronic device provided by the embodiments of the present application can be any electronic device (for example, the first electronic device or the second electronic device) used for multi-device collaboration in the communication system 200. The electronic device can include a processor, a memory, a communication module, an input device and an output device connected to the processor. The input device and the output device can be integrated into one device, for example, the touch sensor can be used as the input device, the display screen can be used as the output device, and the touch sensor and the display screen can be integrated into a touch screen.
[0163] As shown in Figure 14 The electronic device provided by the embodiments of the present application can include a touch screen 1401, one or more processors 1402, a memory 1403, a communication module 1408, one or more application programs (not shown) and one or more computer programs 1404. The above devices can be connected through one or more communication buses 1405. The one or more computer programs 1404 are stored in the memory 1403 and configured to be executed by the one or more processors 1402. The one or more computer programs 1404 include instructions that can be used to perform various steps performed by the electronic device in the above embodiments.
[0164] The processor 1402 can be specifically a processor 110 as shown in Figure 3 The memory 1403 can be specifically an internal memory 121 as shown in Figure 3 The display screen 1407 can be specifically a display screen 144 as shown in Figure 3 The touch sensor 1406 can be specifically a touch sensor in a sensor module 180 as shown in Figure 3 The embodiments of the present application do not make any limitation in this regard.
[0165] The server provided by the embodiments of the present application can be the server 102 in the communication system 200. As shown in Figure 15 The server provided by the embodiments of the present application can include one or more processors 1502, a memory 1503, a communication module 1501 and one or more computer programs 1504. The above devices can be connected through one or more communication buses 1505. The one or more computer programs 1504 are stored in the memory 1503 and configured to be executed by the one or more processors 1502. The one or more computer programs 1504 include instructions that can be used to perform various steps performed by the server 102 in the above embodiments.
[0166] Those skilled in the art can clearly understand the technical solutions of the present application according to the above description of the embodiments, and for the convenience and brevity of description, only the division of the above functional modules is taken as an example, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0167] The functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware, or in the form of a software functional unit.
[0168] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application essentially or in other words, the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. The foregoing storage medium includes: a flash memory, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk, and various media that can store program codes.
[0169] The above description is only a specific implementation of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any change or replacement within the technical scope disclosed in the embodiments of the present application should be covered in the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application should be subject to the protection scope of the claims.
Claims
1. A device collaboration method, characterized by, The method comprises: When the server monitors that a first work task performed by a first electronic device and a second work task performed by a second electronic device satisfy a preset condition, the server determines that the first work task and the second work task are included in a first associated task group; wherein the preset condition comprises that the first electronic device and the second electronic device log in a same account; and a time when the first work task and the second work task run simultaneously exceeds a time threshold value; When the server obtains a working state that the first electronic device is performing the first work task, the server determines that an associated task group corresponding to the first work task is the first associated task group; wherein the associated task group is a combination of a plurality of work tasks that meet a preset rule; the preset rule comprises one or more of a time period in which the first electronic device and the second electronic device perform work tasks, a distance between the first electronic device and the second electronic device, and a location of the first electronic device and the second electronic device; The server sends a collaboration message to the second electronic device in the first associated task group, and the collaboration message is used to instruct the second electronic device to perform the second work task, and the first work task and the second work task run simultaneously.
2. The method of claim 1, wherein, The server determines that the associated task group corresponding to the first work task is the first associated task group, comprising: When the first associated task group includes the first work task, and a time when the first electronic device starts to perform the first work task is located in a preset time period, the server determines that the associated task group corresponding to the first work task is the first associated task group.
3. The method of claim 1, wherein, The server determines that the associated task group corresponding to the first work task is the first associated task group, comprising: When the first associated task group includes the first work task, and a distance between the first electronic device and the second electronic device is less than a preset distance, the server determines that the associated task group corresponding to the first work task is the first associated task group; or, When the first associated task group includes the first work task, and the first electronic device and the second electronic device are located in a preset location, the server determines that the associated task group corresponding to the first work task is the first associated task group.
4. The method of claim 1, wherein, The preset condition further comprises that a number of times when the first work task and the second work task run simultaneously exceeds a preset value; and / or, a time when the first work task and the second work task run simultaneously is within a preset time period; and / or, a location where the first work task and the second work task run simultaneously is a preset location; and / or, a distance between the first electronic device and the second electronic device is less than a preset distance.
5. The method of claim 4, wherein, The method further comprises: When the number of times when the first work task and the second work task run simultaneously within the preset time period exceeds the preset value, the server determines that the first associated task group corresponds to the preset time period; and / or, when the number of times that the first work task and the second work task run simultaneously at the preset location exceeds the preset value, the server determines that the first associated task group corresponds to the preset location; and / or, when the number of times that the first work task and the second work task run simultaneously exceeds the preset value, and the distance between the first electronic device and the second electronic device is less than the preset distance, the server determines that the first associated task group corresponds to the preset distance.
6. The method according to any one of claims 1-3, characterized in that, After the server sends the coordination message to the second electronic device, the method further includes: In response to the coordination message, the second electronic device starts to execute the second work task.
7. The method of claim 6, wherein, The second electronic device starts to execute the second work task, including: The second electronic device starts to execute the second work task according to the execution progress of the second work task; wherein the execution progress of the second work task is saved in the second electronic device, or the execution progress of the second work task is carried in the coordination message.
8. The method of any one of claims 1-3, wherein, After the server sends the coordination message to the second electronic device, the method further includes: The second electronic device displays a prompt message, the prompt message being used to prompt a user to agree to execute the second work task on the second electronic device; if it is detected that the user selects a confirmation button in the prompt message, the second electronic device starts to execute the second work task; if it is detected that the user selects a cancel button in the prompt message, the second electronic device hides the prompt message.
9. The method of claim 8, wherein, If it is detected that the user selects the cancel button in the prompt message, the method further includes: After a preset time, if the first electronic device is executing the first work task, the second electronic device displays the prompt message again.
10. The method of claim 8, wherein, If it is detected that the user selects the cancel button in the prompt message, the method further includes: The second electronic device sends an update message to the server, so that the server deletes the first associated task group in response to the update message.
11. The method of any one of claims 1-3, wherein, The method further includes: The first electronic device reports a first work state to the server, the first work state being used to indicate that the first electronic device starts or ends to execute a work task.
12. The method of any one of claims 1-3, wherein, The method further includes: The second electronic device reports a second work state to the server, the second work state being used to indicate that the second electronic device starts or ends to execute a work task.
13. The method of any one of claims 1-3, wherein, The first work task and the second work task are work tasks in different applications; or the first work task and the second work task are different work tasks in the same application.
14. The method of any one of claims 1-3, wherein, The method further includes: The first electronic device reports a third work state to the server, the third work state being used to indicate that the first electronic device is executing the first work task. 15.An electronic device, the electronic device being a second electronic device, comprising: The second electronic device includes: a display screen; one or more processors; a memory; a communication module; The memory stores one or more computer programs, and the one or more computer programs include instructions that, when executed by the second electronic device, cause the second electronic device to perform the following steps: When the server monitors that the first electronic device executes a first work task; Receiving a collaboration message sent by the server, the collaboration message being used to instruct the second electronic device to execute a second work task in a first associated task group, the first associated task group further including the first work task, and the first work task being executed by the first electronic device; wherein the first associated task group is a combination of a plurality of work tasks that meet a preset rule; the preset rule includes one or more of the following: a time period in which the first electronic device and the second electronic device execute work tasks, a distance between the first electronic device and the second electronic device, and locations of the first electronic device and the second electronic device; wherein the first associated task group is determined when the server monitors that the first electronic device executes the first work task, and a preset condition is met between the second electronic device executing the second work task; the preset condition includes that the first electronic device and the second electronic device log in to the same account, and a time in which the first work task and the second work task run simultaneously exceeds a time threshold; Displaying a prompt message, the prompt message being used to prompt a user to agree to execute the second work task on the second electronic device; If it is detected that the user selects a confirmation button in the prompt message, the second work task is started to be executed; wherein the first work task executed by the first electronic device and the second work task run simultaneously; If it is detected that the user selects a cancel button in the prompt message, the prompt message is hidden.
16. The electronic device of claim 15, wherein, The second electronic device starts to execute the second work task, including: The second electronic device starts to execute the second work task according to an execution progress of the second work task; Wherein the execution progress of the second work task is saved in the second electronic device, or the execution progress of the second work task is carried in the collaboration message.
17. The electronic device of claim 15 or 16, wherein, If it is detected that the user selects the cancel button in the prompt message, the second electronic device is further used to perform the following steps: After a preset time, if the first electronic device executes the first work task, the prompt message is displayed again.
18. The electronic device of claim 15 or 16, wherein, If it is detected that the user selects the cancel button in the prompt message, the second electronic device is further used to perform the following steps: Sending an update message to the server, so that the server deletes the first associated task group in response to the update message.
19. The electronic device of claim 15 or 16, wherein, The second electronic device is further used to perform the following steps: Reporting a second work state to the server, the second work state being used to indicate that the second electronic device starts or ends to execute a work task.
20. A server, comprising: including: one or more processors; a memory; a communication module; The server has one or more computer programs stored in the memory, the one or more computer programs comprising instructions that, when executed on the server, cause the server to perform the device collaboration method of any one of claims 1-4.
21. A device coordination system, comprising: The system includes: a second electronic device as claimed in any one of claims 15-19; and a server as claimed in claim 20.
22. A computer-readable storage medium having stored therein instructions, the computer-readable storage medium comprising: The instructions, when executed on the first electronic device, cause the first electronic device to perform the device collaboration method of claim 11.
23. A computer-readable storage medium having stored therein instructions, the computer-readable storage medium being characterized by, The instructions, when executed on the second electronic device, cause the second electronic device to perform the device collaboration method of any one of claims 6-10, 12.
24. A computer-readable storage medium having stored therein instructions, the computer-readable storage medium comprising: The instructions, when executed on the server, cause the server to perform the device collaboration method of any one of claims 1-5.
Citation Information
Patent Citations
Equipment linkage control method, device and system, gateway and storage medium
CN110071855A
Method for cooperation of intelligent sound box and electronic device and electronic device
CN111628916A