WO2023274329A1 - 一种设备协同方法及电子设备 - Google Patents

一种设备协同方法及电子设备 Download PDF

Info

Publication number
WO2023274329A1
WO2023274329A1 PCT/CN2022/102535 CN2022102535W WO2023274329A1 WO 2023274329 A1 WO2023274329 A1 WO 2023274329A1 CN 2022102535 W CN2022102535 W CN 2022102535W WO 2023274329 A1 WO2023274329 A1 WO 2023274329A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
task
server
work
work task
Prior art date
Application number
PCT/CN2022/102535
Other languages
English (en)
French (fr)
Inventor
梁好为
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023274329A1 publication Critical patent/WO2023274329A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72427User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting games or graphical animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • H04N21/43637Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]

Definitions

  • the present application relates to the field of terminals, and in particular to a device coordination method and electronic devices.
  • the present application provides a device collaboration method and an electronic device, which can start other associated electronic devices to work together according to the user's usage habits when the electronic device is working, reduce the operational complexity of multi-device collaborative work, and improve the user experience.
  • the present application provides a device coordination method, including: the server obtains the working status of the first electronic device starting to execute the first work task; furthermore, the server can determine the first associated task group corresponding to the first work task, The first associated task group includes a second work task associated with the first work task, and the execution device of the second work task is a second electronic device; furthermore, the server may send a coordination message to the second electronic device, and the coordination message is used to The second electronic device is instructed to perform a second work task.
  • the server when the server detects that the work task 1 in the associated task group is executed by the first electronic device, the server may control the related second electronic device to coordinately execute the work task 2 associated with the work task 1 .
  • the server when the user uses the first electronic device to perform task 1, task 2 associated with task 1 can be automatically executed on the second electronic device, without the need for the user to manually search for the relevant device and open the relevant task, thereby reducing The operation complexity when multiple devices work together improves the user experience.
  • the server determining the first associated task group corresponding to the first work task includes: when the first associated task group includes the first work task, and the first electronic device starts to execute the first work task is within the preset time period, the server determines that the first associated task group corresponds to the first work task. That is to say, the first associated task group may correspond to the preset time period, indicating that the work tasks in the first associated task group usually run within the preset time period.
  • the server determining the first associated task group corresponding to the first work task includes: when the first associated task group includes the first work task, and the relationship between the first electronic device and the second electronic device If the distance between them is less than the preset distance, the server determines that the first associated task group corresponds to the first work task; that is, the first associated task group may correspond to the preset distance, indicating that the electronic device is performing the first associated task group
  • the work tasks are usually relatively close.
  • the server determines that the first associated task group corresponds to the first work task. That is to say, the first associated task group may correspond to a preset location, indicating that the electronic device usually executes work tasks in the first associated task group at the preset location.
  • the server before the server obtains the working status of the first electronic device starting to perform the first work task, it further includes: when the server monitors that the first electronic device performs the first work task, contacting the second electronic device
  • 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 to the same account; Moreover, the time during which the first work task and the second work task run simultaneously exceeds a time threshold. That is to say, the server can determine the associated task group that matches the usage habits of the user by monitoring the regularity of each electronic device when performing work tasks.
  • the above preset conditions further include: the number of times the first work task and the second work task are run simultaneously exceeds a preset value; and/or, the number of times the first work task and the second work task are run simultaneously The time is within a preset time period; and/or, the place where the first work task and the second work task run simultaneously is a preset place; and/or, the distance between the first electronic device and the second electronic device is less than a preset distance.
  • the above method further includes: when the number of simultaneous executions of the first work task and the second work task within a preset time period exceeds a preset value, the server may determine that the first associated task group and the preset Set the corresponding time period; and/or, when the number of times the first working task and the second working task are simultaneously run at the 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 simultaneous executions of the first task and the second task exceeds a preset value, and the distance between the first electronic device and the second electronic device is smaller than the preset distance, the server may determine that the first associated task group is related to the preset Let the distance correspond.
  • the method further includes: in response to the coordination message, the second electronic device starts to execute the second work task.
  • the second electronic device can automatically cooperate with the first electronic device to execute corresponding work tasks in the first associated task group.
  • 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, so as to realize the continuation of the work task during collaborative work; wherein, the second The execution progress of the work task may be stored in the second electronic device, or the execution progress of the second work task may be carried in the aforementioned coordination message.
  • the server after the server sends the coordination message to the second electronic device, it further includes: the second electronic device may display a prompt message, and the prompt message is used to prompt the user to agree to perform the second task on the second electronic device task; if it is detected that the user selects the confirmation button in the prompt message, the second electronic device starts to execute the second task; if it is detected that the user selects the cancel button in the prompt message, the second electronic device hides the prompt message. That is to say, the second electronic device can first obtain the user's authorization by displaying a prompt message, and then start to perform the second work task, so as to avoid interfering with the user's normal operation by directly performing the second work task on the second electronic device.
  • the above method further includes: after a preset time, if the first electronic device is still performing the first work task, the second electronic device The device may display a prompt message again to prompt the user to perform multi-device collaboration.
  • the above method further includes: the second electronic device An update message is sent to the server, so that the server can delete the first associated task group in response to the update message. That is to say, the server can update the associated task group in real time according to the usage habits of the user.
  • the above method further includes: the first electronic device reports a first working state to the server, where the first working state is used to instruct the first electronic device to start or end execution of a work task.
  • the above method further includes: the second electronic device reports a second working state to the server, and the second working state is used to instruct the second electronic device to start or finish executing a work task.
  • the server can analyze the user's usage habits by monitoring the working status of the first electronic device and the second electronic device, so as to determine the associated task group corresponding to the user's usage habits.
  • the above-mentioned first work task and the second work task may be work tasks in different applications; or, the above-mentioned first work task and the second work task are different work tasks in the same application, which is not made in this application any restrictions.
  • the present application provides an electronic device (that is, a first electronic device), including: one or more processors; a memory; a communication module; wherein, one or more computer programs are stored in the memory, and one or more
  • the computer program includes an instruction.
  • the instruction is executed by the first electronic device, the first electronic device performs the following steps: the first electronic device reports the first working status to the server, and the first working status is used to instruct the first electronic device to start or end Perform a work task.
  • the present application provides an electronic device (that is, a second electronic device), including: a display screen; one or more processors; a memory; a communication module; wherein, one or more computer programs are stored in the memory, and a or a plurality of computer programs comprising instructions which, when executed by the second electronic device, cause the second electronic device to perform the following steps:
  • the coordination message is used to instruct the second electronic device to execute the second work task in the first associated task group, the first associated task group also includes the first work task, and the execution device of the first work task It is the first electronic device; a prompt message is displayed, and the prompt message is used to prompt the user to agree to perform the second work task on the second electronic device; if it is detected that the user selects the confirmation button in the prompt message, the second work task is started; if When it is detected that the user selects the Cancel button in the prompt message, the prompt message is hidden.
  • 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 It is stored in the second electronic device, or, the execution progress of the second work task is carried in the coordination message.
  • the second electronic device if it is detected that the user selects the cancel button in the prompt message, the second electronic device is further configured to perform the following steps: after a preset time, if the first electronic device is performing the first task , the prompt message is displayed again.
  • the second electronic device is further configured to perform the following step: send an update message to the server, so that the server deletes the first associated task in response to the update message Group.
  • the second electronic device is further configured to perform the following step: reporting a second working state to the server, where the second working state is used to instruct the second electronic device to start or end execution of a work task.
  • the present application provides a server, including: one or more processors; a memory; a communication module; wherein, one or more computer programs are stored in the memory, and the one or more computer programs include instructions.
  • the server executes, the server is made to execute the device coordination method executed by the server in any aspect above.
  • the present application provides a device coordination system, including the above-mentioned first electronic device, the above-mentioned second electronic device, and the above-mentioned server.
  • a device coordination system including the above-mentioned first electronic device, the above-mentioned second electronic device, and the above-mentioned server.
  • the present application provides a computer storage medium, including computer instructions.
  • the computer instructions are run on an electronic device (such as the above-mentioned first electronic device or second electronic device), the electronic device is made to perform any of the above-mentioned device coordination method.
  • the present application provides a computer program product.
  • the computer program product is run on an electronic device (such as the above-mentioned first electronic device or the second electronic device)
  • the electronic device is made to perform the device coordination described in any one of the above-mentioned method.
  • the present application provides a computer storage medium, including computer instructions.
  • the server is made to execute the device coordination method described in any one of the above.
  • the present application provides a computer program product, which, when the computer program product runs on a server, causes the server to execute the device coordination method described in any one of the above.
  • the second aspect provided above the electronic device described in the third aspect, the server described in the fourth aspect, the device cooperation system described in the fifth aspect, the computer storage described in the sixth aspect and the eighth aspect
  • the medium, and the computer program product described in the seventh aspect and the ninth aspect are all used to execute the corresponding method provided above, therefore, the beneficial effects that can be achieved can refer to the corresponding method provided above Beneficial effects are not repeated here.
  • FIG. 1 is a schematic structural diagram of a communication system provided by an embodiment of the present application.
  • FIG. 2 is an interactive schematic diagram of a device coordination method provided by an embodiment of the present application
  • FIG. 3 is a first structural schematic diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 4 is a first schematic diagram of an application scenario of a device coordination method provided by an embodiment of the present application
  • FIG. 5 is a second schematic diagram of an application scenario of a device coordination method provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram 3 of an application scenario of a device coordination method provided by an embodiment of the present application.
  • FIG. 7A is a schematic diagram 4 of an application scenario of a device coordination method provided by an embodiment of the present application.
  • FIG. 7B is a schematic diagram of an application scenario five of a device coordination method provided by an embodiment of the present application.
  • FIG. 8 is a sixth schematic diagram of an application scenario of a device coordination method provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of an application scenario VII of a device coordination method provided by an embodiment of the present application.
  • FIG. 10 is an eighth schematic diagram of an application scenario of a device coordination method provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of an application scenario 9 of a device coordination method provided by an embodiment of the present application.
  • FIG. 12 is a tenth schematic diagram of an application scenario of a device coordination method provided by an embodiment of the present application.
  • FIG. 13 is an eleventh schematic diagram of an application scenario of a device coordination method provided by an embodiment of the present application.
  • FIG. 14 is a second structural schematic diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • a device coordination method provided in an embodiment of the present application may be applied to the communication system 200 shown in FIG. 1 .
  • the communication system 200 may include multiple electronic devices 101 and one or more servers 102 on the network side.
  • the electronic device 101 specifically may be a mobile phone, a tablet computer, a TV (also called a smart screen), a notebook computer, a smart home device (for example, a smart air conditioner, a smart refrigerator, a smart speaker, a smart light or a smart curtain, etc.), Wearable electronic devices, vehicle-mounted devices (also referred to as car machines), virtual reality devices, etc., are not limited in this embodiment of the present application.
  • the electronic device 101 may be connected to the server 102 through a wired network or a wireless network.
  • the electronic devices 101 in the communication system 200 may also be connected through a wired network or a wireless network.
  • the above-mentioned wired network or wireless network can be implemented using any known network communication protocol, such as Ethernet, universal serial bus (universal serial bus, USB), fire wire (FIREWIRE), global system for mobile communication (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 (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), Bluetooth, wireless fidelity (wireless fidelity, Wi-Fi), NFC, voice calls based on Internet protocol ( voice over Internet protocol, VoIP), a communication protocol that supports network slicing architecture, or any other suitable communication protocol.
  • network communication protocol such as Ethernet, universal serial bus (universal serial bus, USB), fire wire (FIREWIRE), global system for mobile communication (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
  • the electronic devices 101 in the communication system 200 may be various electronic devices 101 in the 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 with the same account (for example, a Huawei account).
  • the electronic device 101 may report its own working status to the server 102 in real time, and the working status may include specific work tasks being performed by the electronic device 101 .
  • the mobile phone when the mobile phone starts an application (such as a video APP), it can report the current working status 1 to the server 102 as: the video APP starts running.
  • the mobile phone kills the video APP, it may report to the server 102 that the current working status 2 is: the video APP has finished running. That is to say, the mobile phone can report the current working status to the server 102 at the granularity of the application.
  • the mobile phone in addition to reporting the current working status to the server 102 at the granularity of the application, the mobile phone can also report to the server 102 at the granularity of specific services (also called services or functions) in the application.
  • current job status For example, when the mobile phone starts to play TV series A in the video APP, the current working status 3 may be reported to the server 102 as: start playing TV series A. For another example, when the mobile phone suspends playing TV series A in the video APP, the current working status 4 may be reported to the server 102 as: playing TV series A is suspended.
  • the work status reported by the mobile phone to the server 102 may also include information such as execution time and location of corresponding work tasks.
  • other electronic devices 101 in the communication system 200 can also report their working status to the server 102 in real time according to the above method, which is not limited in this embodiment of the present application.
  • the server 102 can receive the working status reported by each electronic device 101 in the communication system 200 in real time. Furthermore, as shown in FIG. 2 , the server 102 can determine whether there is a cross-device associated task group based on the work status reported by each electronic device 101 , that is, multiple work tasks that require multiple electronic devices 101 to work together to complete. For example, if the first electronic device is performing work task A while the second electronic device is performing work task B for N consecutive times, the server 102 can determine that work task A and work task B are a set of associated task groups, indicating that the user The usage habit of the user is to use the first electronic device and the second electronic device to cooperate to complete work task A and work task B. Wherein, the server 102 may specifically use a neural network algorithm, a data mining technology, or other implementation manners to determine the associated task group, which is not limited in this embodiment of the present application.
  • the above-mentioned associated task group may include a plurality of work tasks associated with each other, and an execution device for each work task.
  • associated task group 1 may include work task A and work task B, the execution device of work task A is the first electronic device, and the execution device of work task B is the second electronic device.
  • the associated task group may also include the corresponding execution time (or execution time period).
  • the associated task group 1 corresponds to the time period of 20:00-21:00 every day, indicating that users often During the period of 20:00-21:00, different electronic devices are used to perform the work tasks in the associated task group 1.
  • the two electronic devices After the server 102 determines the associated task group 1, as shown in FIG.
  • the two electronic devices send a coordination message to instruct the second electronic device to start executing work task B associated with work task A in associated task group 1 .
  • the server 102 can automatically trigger the second electronic device to perform the associated task B when the first electronic device performs task A, reducing the operational complexity when the first electronic device and the second electronic device work together. Spend.
  • the server 102 may send a coordination 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 Associate work task A associated with work task B in task group 1.
  • the server 102 can automatically trigger the first electronic device to perform the associated work task A when the second electronic device performs the task B, which can also reduce the time when the first electronic device and the second electronic device work together. Operational complexity.
  • the first electronic device may 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 tasks. After being authorized by the user, the first electronic device (or the second electronic device) can start to execute the corresponding work task. Alternatively, after receiving the coordination message sent by the server 102, the first electronic device (or the second electronic device) may directly start to execute the corresponding work task. In these two scenarios, the user does not need to manually search for related equipment and related work tasks, and can trigger the work tasks to automatically run on the first electronic device (or the second electronic device).
  • the server 102 can determine an associated task group that matches the usage habits of the user. Multiple work tasks associated with each other in the associated task group usually involve multiple electronic devices. Then, when the subsequent server 102 detects that the work task 1 in the associated task group is executed by the electronic device 1, the server 102 can control the related electronic device 2 Coordinated execution of work task 2 associated with work task 1. In this way, when the user uses the electronic device 1 to perform the work task 1, the work task 2 associated with the work task 1 can be automatically started on the electronic device 2, and the user does not need to manually search for the relevant equipment and open the relevant work task, thereby reducing the number of multiple devices. The complexity of the operation when working together improves the user experience.
  • FIG. 3 shows a schematic structural diagram of the mobile phone.
  • the mobile phone may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (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, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180 and so on.
  • a processor 110 an external memory interface 120, an internal memory 121, a universal serial bus (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, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180 and so on.
  • a universal serial bus universal serial bus
  • USB universal serial bus
  • the structure shown in the embodiment of the present invention does not constitute a specific limitation on the mobile phone.
  • the mobile phone may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the wireless communication function of the mobile phone can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in a mobile phone can be used to cover single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied to mobile phones.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • the wireless communication module 160 can provide applications on mobile phones including wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system ( Global navigation satellite system (GNSS), frequency modulation (frequency modulation, FM), near field communication (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating 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 sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the mobile phone is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the mobile phone can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • LTE long term evolution
  • BT GNSS
  • WLAN NFC
  • FM
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou navigation satellite system beidou navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the mobile phone realizes the display function through the GPU, the display screen 194, and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used 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 or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the mobile phone may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the mobile phone can realize shooting function through ISP, camera 193 , video codec, GPU, display screen 194 and application processor.
  • the ISP is used for processing the data fed back by the camera 193 .
  • the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be located in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • 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.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the mobile phone may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the mobile phone selects the frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • Video codecs are used to compress or decompress digital video.
  • a mobile phone can support one or more video codecs.
  • the mobile phone can play or record videos in multiple encoding formats, such as: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • 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 implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the processor 110 executes various functional applications and data processing of the mobile phone by executing instructions stored in the internal memory 121 .
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the stored program 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.) and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the mobile phone.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the mobile phone can realize the audio function through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • the cell phone can listen to music through speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the receiver 170B can be placed close to the human ear to listen to the voice.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C.
  • the mobile phone may be provided with at least one microphone 170C.
  • the mobile phone can be provided with two microphones 170C, which can also implement a noise reduction function in addition to collecting sound signals.
  • the mobile phone can also be equipped with three, four or more microphones 170C to realize the collection of sound signals, noise reduction, identification of sound sources, and realization of directional recording functions, etc.
  • the earphone interface 170D is used for connecting wired earphones.
  • the earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air 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, and the like.
  • the mobile phone may also include a charging management module, a power management module, a battery, buttons, an indicator, and one or more SIM card interfaces, etc., which are not limited in this embodiment of the present application.
  • the user can log in to his own account A when using the laptop computer 401 .
  • the notebook computer 401 can establish a network connection with the server 102 .
  • the server 102 may record in the database that the notebook computer 401 is in the login state, and the login account is account A.
  • the user can also log in account A when using the tablet computer 402 .
  • the tablet computer 402 can establish a network connection with the server 102 .
  • the server 102 may record in the database that the tablet computer 402 is in a login state, and the login account is account A. That is to say, the user can log in the same account (namely account A) on the notebook computer 401 and the tablet computer 402 at the same time, so as to establish a network connection with the server 102 .
  • the user can also connect the notebook computer 401 and the tablet computer 402 to the same Wi-Fi network, for example, to a Wi-Fi network at the user's home.
  • the notebook computer 401 and the tablet computer 402 can communicate through the aforementioned Wi-Fi network.
  • the notebook computer 401 accesses the Wi-Fi network, it may also report a corresponding Wi-Fi network access event to the server 102 .
  • the notebook computer 401 may include information such as the name and access time of the accessed Wi-Fi network in the Wi-Fi network access event and report it to the server 102 .
  • the server 102 can confirm that The notebook computer 401 and the tablet computer 402 are connected to the same Wi-Fi network.
  • each electronic device that establishes a network connection with the server 102 may report its own working status to the server 102 when working, and the working status may include information such as specific work tasks being performed by the electronic device.
  • the notebook computer 401 can periodically report the current working status to the server 102 . For example, every 5 minutes, the notebook computer 401 can report work tasks such as the name of the running application to the server 102, so that the server 102 can know the current working status of the notebook computer 401.
  • the notebook computer 401 can actively report the work tasks performed by the notebook computer 401 to the server 102 .
  • the notebook computer 401 can send the start event of the document 1 to the server 102, which can include the name of the document 1 and the time when the document 1 was opened and other information.
  • the notebook computer 401 may send an end event of the document 1 to the server 102, and the end event may also include information such as the name of the document 1 and the time when the document 1 was closed.
  • the server 102 can determine that the work task of the notebook computer 401 within a certain period of time is to run the document 1 according to the start event and the end event of the document 1 .
  • the tablet computer 402 may also report its own working status to the server 102 according to the above method. For example, after the tablet computer 402 detects the user's operation of opening the video APP, it may send a video APP start event to the server 102 . Subsequently, when the tablet computer 402 detects the operation of closing the video APP by the user, it may send an end event of the video APP to the server 102 . Certainly, the tablet computer 402 may also send information such as the name and type of the specific program played when the video APP is running to the server 102 .
  • the notebook computer 401 may preset a work task list that needs to be reported to the server 102 . If the current work task performed by the notebook computer 401 (or tablet computer 402) is a work task in the preset work task list, the notebook computer 401 (or tablet computer 402) can report the corresponding work task to the server 102 according to the above method.
  • the notebook computer 401 (or tablet computer 402) can also report the corresponding information to the server 102 according to the above method when working in a preset time period (such as a rush hour) or a preset location (such as home or office).
  • a preset time period such as a rush hour
  • a preset location such as home or office.
  • the working tasks are not limited in this embodiment of the present application.
  • the server 102 can obtain the working status reported by each electronic device within a period of time. These working states may reflect the user's usage habits of different electronic devices. Still as shown in FIG. 5 , the server 102 may determine multiple work tasks (that is, associated task groups) that require multiple electronic devices to work together to complete according to the working status of each electronic device.
  • the server 102 may first filter out specific work tasks reported by electronic devices logged into the same account, and these work tasks are generally triggered by the same user. Furthermore, the server 102 may search for a plurality of work tasks with a certain pattern among the filtered work tasks, so as to determine the plurality of work tasks with a certain pattern as a set of associated task groups.
  • the tablet computer 402 is running the video APP (i.e. the work task 2) at the same time for more than the preset time (for example, 15 minutes), which shows that the user is used to working on the notebook computer at the same time.
  • Work task 1 is performed on tablet 401 while work task 2 is performed on tablet 402 .
  • the server 102 may determine that the work task 1 and the work task 2 are an associated task group, wherein the execution device of the work task 1 is a laptop 401 , and the execution device of the work task 2 is a tablet computer 402 .
  • the server 102 can query The number of times this scene occurs. If it is found that the number of occurrences of this scene is greater than the preset value (for example, 2 times), it indicates that the user is accustomed to performing task 1 on the notebook computer 401 while performing task 2 on the tablet computer 402 . At this point, the server 102 may determine that the work task 1 and the work task 2 are an associated task group.
  • the server 102 may also inquire whether the time when the above scene occurs each time 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 within the time period of 20:00-21:00, it shows that the user is used to being on the notebook computer at 20:00-21:00. Work task 1 is performed on tablet 401 while work task 2 is performed on tablet 402 .
  • the server 102 may determine that the work task 1 and the work task 2 are an associated task group. In some embodiments, the server 102 may also establish a corresponding relationship between the associated task group and the time period of 20:00-21:00. For example, the server 102 may set the corresponding preset time period in the associated task group as 20:00-21:00.
  • the server 102 can also 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 means that the distance between the notebook computer 401 and the tablet computer 402 is within a preset distance, and the server 102 can determine that the work task 1 and the work task 2 are A set of associated task groups.
  • a positioning device (such as a router, etc.) with a positioning function may be set in the user's home.
  • the positioning device can perform indoor positioning on electronic devices such as the notebook computer 401 and the tablet computer 402 , and then send the positioning results to the server 102 .
  • the server 102 can determine whether the distance between the notebook computer 401 and the tablet computer 402 is within a preset distance (for example, 10 meters) according to the positioning results 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 a preset distance, the server 102 may determine that the work task 1 and the work task 2 are a set of associated task groups. At this time, the server 102 may also establish a corresponding relationship between the associated task group and the aforementioned preset distance. For example, the server 102 may set the corresponding preset distance in the associated task group as 10 meters.
  • the associated task group determined by the server 102 based on the running status of each electronic device includes multiple work tasks and the execution device of each work task.
  • the above-mentioned associated task group may also include a time period for performing the above-mentioned multiple work tasks.
  • the foregoing associated task group may also include distances and locations between execution devices, which are not limited in this embodiment of the present application.
  • the two work tasks of running the document 1 on the laptop computer 401 and running the video APP on the tablet computer 402 are used as an example to illustrate as a set of associated task groups.
  • the work tasks in the associated task group determined by the server 102 may be running a certain application (or software), or running a specific business (or function) in a certain application (or software), or It is a specific event (such as an alarm event, a voice call event, etc.) executed by the electronic device, which is not limited in this embodiment of the present application.
  • the server 102 can regard the two work tasks of running the Word software on the notebook computer 401 and running the video APP on the tablet computer 402 as a set of associated task groups.
  • the server 102 can regard the notebook computer 401 running document 1 and the tablet computer 402 playing variety show programs as one.
  • a group is associated with a task group.
  • the work tasks performed by other electronic devices may also be the work tasks in the associated task group.
  • the server 102 may acquire the working status reported by the TV and the smart watch. When the TV and the smart watch log in to the same account, if the server 102 monitors that the TV is playing the teaching courses in the sports APP (or health APP), the smart watch will start the sports monitoring function at the same time to detect the user's heart rate, blood pressure and other health data.
  • the server 102 can play the teaching courses in the sports APP and start the sports monitoring function as a set of associated task groups, wherein the execution device for playing the teaching courses in the sports APP is a TV, and the execution device for starting the sports monitoring function is a smart watch .
  • work tasks in a set of associated task groups may be performed by different applications, or may be performed by the same application.
  • work task 1 in associated task group 1 is executed by application A
  • work task 2 in associated task group 1 is executed by application B.
  • both work task 1 and work task 2 in associated task group 1 can be executed by application A.
  • a user may use a TV to display a game interface of a game APP, and simultaneously use a tablet computer to display a control interface (such as a joystick, an equipment tool, etc.) of the game APP.
  • the work tasks performed on the TV and the work tasks performed on the tablet are a set of associated task groups, and both of these two work tasks are performed by the game APP.
  • the associated task group determined by the server 102 can be dynamically updated.
  • the server 102 can update the corresponding associated task group in real time according to the working status reported by each electronic device. For example, after the server 102 determines that the notebook computer 401 running the document 1 and the tablet computer 402 running the video APP as associated task group 1 according to the method in the above-mentioned embodiment, if it detects that the tablet computer 402 is running the video APP, the notebook computer 401 runs the Document 2 is no longer Document 1, indicating that the user's current usage habits have changed to running Document 2 on the notebook computer 401 while running the video APP on the tablet computer 402, then the server 102 can update the above-mentioned associated task group 1, and the notebook computer 401 The running document 2 and the tablet computer 402 running the video APP are determined as the updated associated task group 1 . In this way, the associated task group stored in the server 102 can match the user's current usage habits to the greatest extent.
  • the server 102 determines the associated task group 1, if any task in the associated task group 1 is detected to be executed, the server 102
  • the corresponding electronic device can be controlled to perform other work tasks in the associated task group 1, so that multiple associated work tasks in the associated task group 1 can be completed collaboratively on the corresponding electronic device, improving the user experience in multi-device collaboration scenarios .
  • the server 102 determines the associated task group 1, as shown in FIG. 6
  • the laptop 401 can report the working status of the laptop 401 to the server 102 .
  • the notebook computer 401 may send a start event of document 1 to the server 102 , indicating that the notebook computer 401 starts to execute task A of running document 1 .
  • the server 102 may query whether there is an associated task group corresponding to task A, that is, whether any associated task group includes the task A.
  • the server 102 can determine the task associated with task A according to associated task group 1 as follows: the tablet computer 402 runs the video APP (ie, task B). Furthermore, as still shown in FIG. 6 , the server 102 may send a collaboration message 1 to the tablet computer 402 , where the collaboration message 1 is used to instruct the tablet computer 402 to run the video APP. For example, the server 102 may include the identification of the video APP in the collaboration message 1 and send it to the tablet computer 402 . Wherein, the identifier of the video APP may be a package name (package name) of the video APP or the like. After receiving the collaboration message 1, the tablet computer 402 may respond to the collaboration message 1 and start running the video APP.
  • the tablet 402 can automatically run the video APP associated with the document 1, eliminating the need for the user to manually search for related devices and open related tasks, thereby reducing the complexity of operations when multiple devices work together to improve user experience.
  • the server 102 after the server 102 receives the start event of the document 1 sent by the notebook computer 401 , it indicates that the notebook computer 401 is executing task A. At this time, if the server 102 inquires that the associated task group 1 contains task A, the server 102 can further determine whether the time for the notebook computer 401 to execute the task A is within the preset time period set by the associated task group 1 (for example, 20: 00-21:00). If within the preset time period of 20:00-21:00, it means that the user probably needs to run the task B associated with the task A on the tablet computer 402 (i.e. run the video APP), then the server 102 can send a request to the tablet The computer 402 sends the cooperation message 1 above. In this way, the server 102 can more accurately control each device to execute the associated work tasks in the associated task group 1, so as to realize the cooperative work of multiple devices.
  • the preset time period set by the associated task group 1 for example, 20: 00-21:00. If within the preset time period of 20:00-21:00
  • the server 102 After the server 102 receives the start event of the document 1 sent by the notebook computer 401 , it indicates that the notebook computer 401 is executing task A. At this time, if the server 102 inquires that the task A is included in the associated task group 1, the server 102 can further inquire whether the distance between the tablet computer 402 and the notebook computer 401 is within the preset distance set by the associated task group 1 (for example, 10 meters).
  • the server 102 can follow the The method above sends a corresponding collaboration message (for example, collaboration message 1) to the tablet computer 402, and triggers the tablet computer 402 to start running the video APP in response to the collaboration message 1.
  • a corresponding collaboration message for example, collaboration message 1
  • the server 102 can more accurately control each device to execute the associated work tasks in the associated task group 1, so as to realize the cooperative work of multiple devices.
  • the server 102 can query whether the tablet computer 402 and the notebook computer 401 are connected to the same Wi-Fi network, and if they are connected to the same Wi-Fi network, the server 102 can confirm that the distance between the tablet computer 402 and the notebook computer 401 is within within a preset distance. Otherwise, the server 102 may confirm that the distance between the tablet computer 402 and the notebook computer 401 is not within the preset distance.
  • the server 102 can send a location query command of the tablet computer 402 to the notebook computer 401, so that the notebook computer 401 can respond to the location query command to enable a positioning function (such as a UWB positioning function or a Wi-Fi positioning function), and locate itself and the tablet computer 402. the distance between.
  • the notebook computer 401 can send the determined distance between itself and the tablet computer 402 to the server 102, so that the server 102 can confirm whether the distance between the tablet computer 402 and the notebook computer 401 is within a preset distance.
  • the notebook computer 401 may determine whether the distance between itself and the tablet computer 402 is within a preset distance. If within the preset distance, the notebook computer 401 can send the corresponding coordination message 1 to the tablet computer 402 through the Wi-Fi network, and at this time, there is no need for the server 102 to send the corresponding coordination message 1 to the tablet computer 402 .
  • associated task group 1 includes work task A and work task B
  • associated task group 2 includes work task A and work task C. Then, after the server 102 receives the start event of the document 1 sent by the laptop 401, the server 102 may further determine which task group associated with the task A in the associated task group is triggered.
  • the preset time period set in associated task group 1 is 20:00-21:00 on weekdays, while the preset time period set in associated task group 2 is 20:00-21:00 on rest days. Then, if the server 102 obtains the working status of the notebook computer 401 executing task A during 20:00-21:00 on a working day, it means that the task A at this time is associated with the task B in the associated task group 1, and If it is not associated with work task C in the associated task group 2, the server 102 may send the above-mentioned collaboration message 1 to the tablet computer 402, instructing the tablet computer 402 to start executing work task B (that is, to run the video APP).
  • associated task group 1 includes work task A and work task B
  • associated task group 2 includes work task A and work task C.
  • the server 102 can detect the execution device of the task B (i.e., the tablet The distance 1 between the computer 402) and the notebook computer 401 (ie, the execution device of task A), and the distance 2 between the execution device of work task C (such as a speaker) and the notebook computer 401 .
  • the server 102 may send a corresponding coordination message to the tablet computer 402; correspondingly, if the distance 1 is greater than the distance 2, the server 102 may send a corresponding coordination message to the speaker. That is to say, the server 102 may send a corresponding coordination message to the electronic device closer to the notebook computer 401, instructing the notebook computer 401 to cooperate with the electronic device closer to execute the work tasks in the associated task group.
  • the server 102 still sends the collaboration message 1 to the tablet computer 402 as an example.
  • the prompt message 701 may be used to prompt the user to agree that the tablet computer 402 starts to run the video APP (that is, execute the work task B).
  • the prompt message 701 may 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.
  • the tablet computer 402 can first obtain the authorization of the user by displaying the prompt message 701, and then start running the video APP, avoiding directly Running the video APP on the tablet computer 402 interferes with the user's normal operation on the tablet computer 402 .
  • the tablet computer 402 may temporarily not respond to the collaboration message 1 sent by the server 102 to run the video APP.
  • the tablet computer 402 may display the above prompt message 701 again after a period of time (for example, 10 minutes), prompting the user to agree that the tablet computer 402 starts running the video APP.
  • the tablet computer 402 may display the above-mentioned prompt message 701 in the notification center, the desktop, the negative one-screen menu, or the control center, etc., which is not limited in this embodiment of the present application.
  • the tablet computer 402 may send a response message to the server 102 to indicate that the current device cooperation process is completed. If the server 102 does not receive the response message sent by the tablet computer 402 within the preset time, and the task A of running the document 1 on the notebook computer 401 is not finished, the server 102 may send the collaboration message 1 to the tablet computer 402 again. At this time, the tablet computer 402 may display the above prompt message 701 again in response to the received collaboration message 1, to prompt the user to agree to the tablet computer 402 starting to run the video APP.
  • the tablet computer 402 may send a notification message to the server 102 to notify the server 102 to delete the corresponding associated task group. Further, the server 102 may delete the associated task group 1 including the work task A and the work task B after receiving the above notification message. In this way, after the subsequent server 102 receives the work status of the execution task A reported by the notebook computer 401 again, the server 102 will not send the corresponding coordination message 1 to the tablet computer 402 according to the associated task group 1 .
  • the tablet computer 402 may light up the screen and display the above prompt message 701 on the lock screen interface.
  • the prompt message 701 may not include operation buttons such as the confirmation button 702 or the cancel button 703 , that is, the user cannot operate the prompt message 701 .
  • the user wants to operate the prompt message 701 to agree or deny the tablet computer 402 to run the video APP the user needs to unlock the tablet computer 402 first. For example, the user can unlock the screen of the tablet computer 402 by inputting a preset fingerprint, facial image or digital password.
  • unlocking the screen it means that the user using the tablet computer 402 is a legal user, and the tablet computer 402 can display a complete prompt message 701 on the screen after unlocking, so that the user can operate the prompt message 701 to agree or reject the tablet computer 402 to run the video APP.
  • the server 102 may also send the aforementioned collaboration message 1 to the laptop 401 .
  • the notebook computer 401 may display a prompt message 704 in response to the coordination message 1 .
  • the prompt message 704 is used to prompt the user to agree to start running the video APP on the tablet computer 402 (that is, to perform the work task B). Since the user is currently using the laptop computer 401 to run the document 1, displaying the prompt message 704 on the laptop computer 401 can prompt the user to agree to run the video APP on the tablet computer 402 in time.
  • the notebook computer 401 After the notebook computer 401 displays the above prompt message 704, if it is detected that the user selects the confirmation button in the prompt message 704, the notebook computer 401 can send a start message carrying the video APP logo to the tablet computer 402, triggering the tablet computer 402 to start the video APP And display the display interface of the video APP. Correspondingly, if it is detected that the user selects the cancel button in the prompt message 704, the notebook computer 401 may hide the above prompt message 704. Of course, the notebook computer 401 can also send a notification message to the server 102 according to the method in the above-mentioned embodiment, informing the server 102 to delete the corresponding associated task group, which is not limited in this embodiment of the present application.
  • the above embodiment is illustrated by taking the server 102 as an example to obtain the working status of the running document 1 on the laptop 401 after determining the associated task group 1 .
  • the server 102 determines the associated task group 1, as shown in FIG. 8 , if the tablet computer 402 starts to run the video APP, the tablet computer 402 can report the start event of the video APP to the server 102 .
  • what the server 102 acquires first is the working status of the tablet computer 402 running the video APP (ie, task B).
  • the server 102 may inquire whether there is an associated task group corresponding to task B, that is, whether there is an associated task group including the task B. If task B is found in associated task group 1, the server 102 can determine, according to associated task group 1, that the task associated with task B is: laptop 401 runs document 1 (ie, task A). Furthermore, as still shown in FIG. 8 , the server 102 may 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 may carry the name of the document 1 in the collaboration message 2 and send it to the laptop 401 .
  • the notebook computer 401 can respond to the collaboration message 2 to open the document 1 through Word and other software. 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 need for the user to manually search for related devices and open related work tasks, thereby reducing the complexity of operations when multiple devices work together to improve user experience.
  • the specific method for the server 102 to control the notebook computer 401 to run the document 1 is similar to the specific method for the server 102 to control the tablet computer 402 to run the video APP in the above embodiment, so it will not be repeated here.
  • the server 102 can control the related electronic equipment to execute the associated tasks in the associated task group. Other work tasks, enabling multiple work tasks in the same associated task group to automatically start working together.
  • the notebook computer 401 receives the aforementioned collaboration message 2 as an example, and after the notebook computer 401 opens the document 1 in response to the collaboration message 2, it can report the start event of the document 1 to the server 102.
  • the tablet computer 402 is running the video APP, that is, the notebook computer 401 and the tablet computer 402 are cooperatively executing the work tasks in the associated task group 1 .
  • the notebook computer 401 stops running the document 1 (that is, stops executing the work task A)
  • the notebook computer 401 may send an end event of the document 1 to the server 102 .
  • the server 102 may 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 (that is, to stop executing task B).
  • the tablet computer 402 may display a corresponding prompt message to prompt the user to close the running video APP, thereby prompting the user to finish executing the work tasks in the associated task group 1 .
  • the tablet computer 402 may send an end event of the video APP to the server 102 .
  • the server 102 may send a corresponding coordination end message to the notebook computer 401 according to the above-mentioned associated task group 1, and the coordination end message is used to instruct the notebook computer 401 to stop running the document 1 (that is, to stop executing the work task A).
  • the notebook computer 401 may display a corresponding prompt message to prompt the user to close the running document 1 , thereby prompting the user to end execution of the work tasks in the associated task group 1 .
  • the server 102 determines that multiple work tasks are in the same associated task group, when any work task in the same associated task group finishes running, the server 102 can also control the related electronic equipment to finish executing other tasks associated in the associated task group. Work tasks, so that multiple work tasks in the same associated task group can automatically end the collaborative work.
  • the above-mentioned embodiment is illustrated by taking the associated task group 1 including the notebook computer 401 running the document 1 and the tablet computer 402 running the video APP as an example. It can be understood that for other associated task groups, the server 102 can also control different tasks according to the above method. Electronic devices cooperate to perform different work tasks in the same associated task group.
  • associated task group 2 may include two work tasks: a TV 901 plays sports-type courses, and a smart watch 902 runs a sports monitoring function in a sports APP.
  • associated task group 2 may also include the course link of the exercise course played last time on TV 901 (that is, the execution progress when TV 901 broadcasts the course), and associated task group 2 may also include 7:00-8:00 this time period.
  • the TV 901 and the smart watch 902 log into the same account, as shown in Figure 9, if the TV 901 starts to play sports-type courses (such as yoga courses), the TV 901 can report the current working status to the server 102 as: play yoga Lesson, and play time is 7:15. At this time, the server 102 can determine the work task associated with playing the yoga course according to the above-mentioned associated task group 2 as: the smart watch 902 runs the exercise monitoring function in the exercise APP. Furthermore, the server 102 may send a coordination message 3 to the smart watch 902, and the coordination message 3 is used to instruct the smart watch 902 to run the exercise monitoring function in the exercise APP.
  • the server 102 may send a coordination message 3 to the smart watch 902, and the coordination message 3 is used to instruct the smart watch 902 to run the exercise monitoring function in the exercise APP.
  • the smart watch 902 may first display the corresponding prompt information, prompting the user to agree to the smart watch 902 running the exercise monitoring function in the exercise APP. If the smart watch 902 detects that the user agrees to run the exercise monitoring function in the exercise APP, the smart watch 902 can open the exercise monitoring function in the exercise APP and start monitoring the user's heart rate, blood pressure and other health data.
  • the smart watch 902 can automatically run the exercise monitoring function in the exercise APP associated with it, thereby helping the user to monitor health data such as heart rate and blood pressure during the exercise without the user manually Find related devices and open related tasks, thereby reducing the complexity of operations when multiple devices work together and improving user experience.
  • the smart watch 902 can send a request to the server 102 reports that the current working status is: running the motion monitoring function in the motion APP, and the start time is 7:05.
  • the server 102 can determine, according to the above-mentioned associated task group 2, that the work task associated with running the exercise monitoring function in the exercise APP is: the TV 901 plays exercise-type courses. Furthermore, as still shown in FIG. 10 , the server 102 may send a coordination message 4 to the TV 901 , and the coordination message 4 is used to instruct the TV 901 to start playing sports-type courses.
  • the collaborative message 4 may include a course link of the last exercise course played on TV 901 .
  • the TV 901 may first display the corresponding prompt information to prompt the user to agree to the TV 901 running the exercise monitoring function in the exercise APP.
  • the prompt information may include a course link of the last exercise course played on TV 901 .
  • the TV 901 may continue to play the last exercise course played by the user according to the above-mentioned course link.
  • the TV 901 may also display other optional exercise courses in the prompt information, which is not limited in this embodiment of the present application.
  • the TV 901 itself may store the last played exercise-type course (ie, execution progress).
  • the collaboration message 4 sent by the server 102 to the TV 901 may not include the course link. Then, after the TV 901 receives the collaboration message 4, it can continue to play the last exercise course played by the user according to the last exercise type course stored by itself, and also realize the continuation of work tasks during multi-device collaboration.
  • the multiple work tasks in the same associated task group determined by the server 102 may include different functions in the same application (or software).
  • the associated task group 3 may include two work tasks: the TV 901 displays the game screen in the game APP, and the mobile phone 1001 displays operation buttons such as backpacks, joysticks, and equipment bars in the game APP.
  • the TV 901 and the mobile phone 1001 log in to the same account, as shown in Figure 11, if the TV 901 starts running the game APP and enters the game screen 1101 in the game APP, the TV 901 can report the current working status to the server 102 as: display The game screen in the game APP.
  • the server 102 can determine the work task associated with displaying the game screen in the game APP according to the above-mentioned associated task group 3 as: the mobile phone 1001 displays the operation buttons in the game APP.
  • the server 102 can send a coordination message 5 to the smart watch 902, the coordination message 5 is used to instruct the mobile phone 1001 to start running the game APP, and display a control interface 1102 including operation buttons such as a backpack and an equipment bar.
  • the mobile phone 1001 After the mobile phone 1001 receives the cooperation message 5, as shown in FIG. 11 , it can start running the game APP, and display the backpack and other operation buttons in the game APP on the control interface 1102 of the game APP. In this way, the user does not need to manually turn on the TV 901 and the mobile phone 1001, and the TV 901 and the mobile phone 1001 can cooperate to complete the work of running the game APP. Control interference, the user can use the control interface 1102 displayed on the mobile phone 1001 to control the game APP.
  • the server 102 can control the TV 901 to display the game screen 1101 in the game APP according to the above method, so as to realize the automatic coordination between the TV 901 and the mobile phone 1001. This does not make any restrictions.
  • the game APP running on the TV 901 and the game APP running on the mobile phone 1001 may be of the same version or different versions.
  • a game APP of version A can be installed in the TV 901, and the game APP of version A is suitable for electronic devices of the TV type; while a game APP of version B can be installed in the mobile phone 1001, and the game APP of version B is suitable for electronic devices of the mobile phone type .
  • the game APP of version 2.0 can be installed in the TV 901
  • the game APP of version 3.0 can be installed in the mobile phone 1001 .
  • the identifiers of different versions of the game APP can be the same, and the TV 901 (or mobile phone 1001 ) can start the corresponding version of the game APP according to the identifier of the game APP in the coordination message. In this way, even if the versions of the game APP installed on the TV 901 and the mobile phone 1001 are different, the device coordination method in the above-mentioned embodiments can also be implemented.
  • the user can install a timing APP for timing on electronic devices such as mobile phones and smart watches.
  • the Pomodoro timer function can be set in the timing APP.
  • the Pomodoro method means that when completing a task, the Pomodoro time is set to a preset duration (for example, 25 minutes), and the user concentrates on the work during the Pomodoro time, and is not allowed to do anything unrelated to the task until the Pomodoro time is completed. Take a short break (such as a 5-minute break) after the clock rings before starting the next Pomodoro. After accumulating multiple (for example, 4) Pomodoros, you can increase the rest time and take a longer break.
  • the user may use multiple electronic devices to perform multiple work tasks to complete a task (such as learning programming, completing work reports, etc.), and these multiple work tasks can be classified as one associated task group. work tasks.
  • the user completes a task in the Pomodoro function at the granularity of the associated task group.
  • the Timing app can associate the task group as a unit to count the Pomodoro time in the Pomodoro function.
  • a timing APP is installed in the mobile phone 1001 .
  • the timing APP can send a timing message to the server 102 .
  • the server 102 may query the currently executing associated task group (for example, associated task group 1).
  • the server 102 can monitor whether the execution time of multiple work tasks in the associated task group 1 on each electronic device reaches a Pomodoro (for example, 25 minutes).
  • the server 102 may send a Pomodoro ringing message to the timing APP in the mobile phone 1001 . Furthermore, the timing APP in the mobile phone 1001 can respond to the ringing message, prompting the user on the display interface that the Pomodoro of the current round is over and entering the rest time. That is to say, in the scenario of multi-device collaborative work, the Pomodoro function can count the Pomodoro according to the associated task group corresponding to the current collaborative scenario, thereby improving the accuracy of the Pomodoro method and the user experience of using the Pomodoro function.
  • the user can pre-set the application list or task list in the timing APP that requires Pomodoro timing.
  • the user can select one or more applications, such as Application 1 and Application 2, that need to perform Pomodoro Time in the setting interface 1301 of the timing APP.
  • application 1 and application 2 may be applications installed in the mobile phone 1001, or may be applications installed in other electronic devices (such as the above-mentioned notebook computer 401, tablet computer 402, etc.) that log in to the same account as the mobile phone 1001. There are no restrictions on this.
  • the mobile phone 1001 (or other electronic device) can send a Pomodoro timer request to the server 102, triggering the server 102 to send a request to enable the Pomodoro timer function to the timing APP.
  • the timing APP may display a prompt message 1302 to prompt the user to turn on the Pomodoro function and start timing. If it is detected that the user agrees to enable the Pomodoro function, the Timing APP can enable the Pomodoro function to count the running time of App 1, and calculate the Pomodoro according to the running time of App 1.
  • the timing APP can also automatically prompt the user to turn on the Pomodoro function to start timing according to the above method.
  • the timing APP can include both the running time of App 1 and App 2 into the Pomodoro function of the Pomodoro function, which is not limited in this embodiment of the present application.
  • an associated task group for example, associated task group 1-3
  • an associated task group may include three or more tasks. There are multiple work tasks, which are not limited in this embodiment of the present application.
  • associated task group A may include work task 1 , work task 2 and work task 3 .
  • the execution device of work task 1 is electronic device 1
  • the execution device of work task 2 is electronic device 2
  • the execution device of work task 3 is electronic device 3 .
  • the execution device of work task 1 is electronic device 1
  • the execution device of work task 2 is electronic device 2
  • the execution device of work task 3 may be electronic device 1 (or electronic device 2 ).
  • the server 102 may control the related electronic devices in the associated task group A to execute other work tasks in the associated task group A, I won't repeat them here.
  • the server 102 is used as an example to illustrate the control device connected to each electronic device in the communication system 200 .
  • the server 102 can be used to receive the working status of each electronic device, determine an associated task group, and control related electronic devices in the associated task group to perform work tasks, and the like.
  • an electronic device in the communication system 200 may also set as a control device, and at this time, the electronic device may be used to execute the steps performed by the server 102 above.
  • a speaker can be set as a control device, and other electronic devices in the communication system 200 can report their working status to the speaker, and the speaker can determine each associated task group according to the received working status, and the speaker can The state controls other electronic devices to perform related work tasks in the associated task group.
  • an embodiment of the present application provides an electronic device, and the electronic device may be any electronic device (for example, the first electronic device or the second electronic device) used for multi-device coordination in the above-mentioned communication system 200 .
  • the electronic device may include a processor, a memory connected to the processor, a communication module, an input device, and an output device.
  • the input device and the output device can be integrated into one device, for example, a touch sensor can be used as an input device, a display screen can be used as an output device, and the touch sensor and the display screen can be integrated into a touch screen.
  • the electronic device may include: a touch screen 1401, the touch screen 1401 including a touch sensor 1406 and a display screen 1407; one or more processors 1402; memory 1403; communication module 1408; one or more application programs (not shown); and one or more computer programs 1404, each of which may be connected via one or more communication buses 1405.
  • the one or more computer programs 1404 are stored in the above-mentioned memory 1403 and are configured to be executed by the one or more processors 1402, the one or more computer programs 1404 include instructions, and the instructions can be used to perform the above-mentioned implementation Each step performed by the electronic device in the example.
  • the above-mentioned processor 1402 may specifically be the processor 110 shown in FIG. 3
  • the above-mentioned memory 1403 may specifically be the internal memory 121 shown in FIG. 3
  • the above-mentioned display screen 1407 may specifically be the display screen 144 shown in FIG. 3
  • the above-mentioned touch sensor 1406 may specifically be the touch sensor in the sensor module 180 shown in FIG. 3 , which is not limited in this embodiment of the present application.
  • the embodiment of the present application provides a server, and the server may be the server 102 in the above-mentioned communication system 200.
  • the server provided by the embodiment of the present application may include: one or more processors 1502; memory 1503; communication module 1501; bus 1505 connection.
  • the one or more computer programs 1504 are stored in the above-mentioned memory 1503 and are configured to be executed by the one or more processors 1502, the one or more computer programs 1504 include instructions, and the instructions can be used to perform the above-mentioned implementation Each step performed by the server 102 in the example.
  • Each functional unit in each embodiment of the embodiment of the present application may be integrated into one processing unit, or each unit may physically exist separately, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage
  • the medium includes several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk, and other various media capable of storing program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Automation & Control Theory (AREA)
  • Telephone Function (AREA)

Abstract

本申请提供一种设备协同方法及电子设备,涉及终端领域,可在电子设备工作时根据用户的使用习惯启动相关联的其他电子设备协同工作,减少多设备协同工作时的操作复杂度,提高用户的使用体验。该方法包括:服务器获取到第一电子设备开始执行第一工作任务的工作状态;服务器可确定与第一工作任务对应的第一关联任务组,第一关联任务组中包括与第一工作任务关联的第二工作任务,第二工作任务的执行设备为第二电子设备;服务器可向第二电子设备发送协同消息,该协同消息用于指示第二电子设备执行第二工作任务。

Description

一种设备协同方法及电子设备
本申请要求于2021年06月30日提交国家知识产权局、申请号为202110741420.5、申请名称为“一种设备协同方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端领域,尤其涉及一种设备协同方法及电子设备。
背景技术
随着智能终端和智能家居技术的发展,一个用户或家庭中往往具备多个电子设备,这些电子设备可以协同工作完成分布式场景中的各项业务。以办公业务举例,用户在办公时可以使用平板电脑观看编程相关的教学视频,同时,用户可以使用PC上的编程应用编写代码。
在这种多设备协同工作的场景下,用户需要启动不同的设备,并在不同的设备上查找、打开相关应用中的具体任务,使得多设备协同的启动过程耗时较长、操作较为繁琐,用户的使用体验不高。
发明内容
本申请提供一种设备协同方法及电子设备,可在电子设备工作时根据用户的使用习惯启动相关联的其他电子设备协同工作,减少多设备协同工作时的操作复杂度,提高用户的使用体验。
为达到上述目的,本申请采用如下技术方案:
第一方面,本申请提供一种设备协同方法,包括:服务器获取到第一电子设备开始执行第一工作任务的工作状态;进而,服务器可确定与第一工作任务对应的第一关联任务组,第一关联任务组中包括与第一工作任务关联的第二工作任务,第二工作任务的执行设备为第二电子设备;进而,服务器可向第二电子设备发送协同消息,该协同消息用于指示第二电子设备执行第二工作任务。
也就是说,当服务器监测到关联任务组中的工作任务1被第一电子设备执行时,服务器可控制相关的第二电子设备协同执行与工作任务1关联的工作任务2。这样,用户使用第一电子设备执行工作任务1时,与工作任务1相关联的工作任务2可自动在第二电子设备上开始执行,无需用户手动查找相关设备并打开相关的工作任务,从而减少多设备协同工作时的操作复杂度,提高用户的使用体验。
在一种可能的实现方式中,服务器确定与第一工作任务对应的第一关联任务组,包括:当第一关联任务组中包括第一工作任务,且第一电子设备开始执行第一工作任务的时间位于预设时间段,则服务器确定第一关联任务组与第一工作任务对应。也就是说,第一关联任务组可与预设时间段对应,说明第一关联任务组中的工作任务通常在预设时间段内运行。
在一种可能的实现方式中,服务器确定与第一工作任务对应的第一关联任务组,包括:当第一关联任务组中包括第一工作任务,且第一电子设备与第二电子设备之间 的距离小于预设距离,则服务器确定第一关联任务组与第一工作任务对应;也就是说,第一关联任务组可与预设距离对应,说明电子设备在执行第一关联任务组中的工作任务时通常距离较近。或者,当第一关联任务组中包括第一工作任务,且第一电子设备与第二电子设备位于预设地点,则服务器确定第一关联任务组与第一工作任务对应。也就是说,第一关联任务组可与预设地点对应,说明电子设备通常在预设地点执行第一关联任务组中的工作任务。
在一种可能的实现方式中,在服务器获取到第一电子设备开始执行第一工作任务的工作状态之前,还包括:当服务器监测到第一电子设备执行第一工作任务,与第二电子设备执行第二工作任务之间满足预设条件时,服务器确定第一关联任务组中包括第一工作任务和第二工作任务;预设条件包括:第一电子设备和第二电子设备登陆同一账号;并且,第一工作任务与第二工作任务同时运行的时间超过时间阈值。也就是说,服务器通过监测各个电子设备执行工作任务时的规律,可确定出与用户的使用习惯相匹配的关联任务组。
在一种可能的实现方式中,上述预设条件还包括:第一工作任务与第二工作任务同时运行的次数超过预设值;和/或,第一工作任务与第二工作任务同时运行的时间处于预设时间段内;和/或,第一工作任务与第二工作任务同时运行的地点为预设地点;和/或,第一电子设备和第二电子设备之间的距离小于预设距离。
在一种可能的实现方式中,上述方法还包括:当第一工作任务与第二工作任务在预设时间段内同时运行的次数超过预设值时,服务器可确定第一关联任务组与预设时间段对应;和/或,当第一工作任务与第二工作任务在预设地点同时运行的次数超过预设值时,服务器可确定第一关联任务组与预设地点对应;和/或,当第一工作任务与第二工作任务同时运行的次数超过预设值,且第一电子设备和第二电子设备之间的距离小于预设距离时,服务器可确定第一关联任务组与预设距离对应。
在一种可能的实现方式中,在服务器向第二电子设备发送协同消息之后,还包括:响应于协同消息,第二电子设备开始执行第二工作任务。这样,第二电子设备可自动协同第一电子设备执行第一关联任务组中相应的工作任务。
示例性的,第二电子设备开始执行第二工作任务,包括:第二电子设备可按照第二工作任务的执行进度开始执行第二工作任务,实现协同工作时工作任务的接续;其中,第二工作任务的执行进度可保存在第二电子设备中,或者,第二工作任务的执行进度可携带在上述协同消息中。
在一种可能的实现方式中,在服务器向第二电子设备发送协同消息之后,还包括:第二电子设备可显示提示消息,提示消息用于提示用户同意在第二电子设备上执行第二工作任务;若检测到用户选择提示消息中的确认按钮,则第二电子设备开始执行第二工作任务;若检测到用户选择提示消息中的取消按钮,则第二电子设备隐藏提示消息。也就是说,第二电子设备可以先通过显示提示消息得到用户的授权,再开始执行第二工作任务,避免直接在第二电子设备中执行第二工作任务干扰用户的正常操作。
在一种可能的实现方式中,若检测到用户选择提示消息中的取消按钮,则上述方法还包括:在预设时间后,若第一电子设备仍然在执行第一工作任务,则第二电子设备可再次显示提示消息,提示用户进行多设备协同。
在一种可能的实现方式中,若检测到用户选择提示消息中的取消按钮,说明用户不需要第二电子设备协同第一电子设备执行相应的工作任务,则上述方法还包括:第二电子设备向服务器发送更新消息,以使得服务器可响应该更新消息删除第一关联任务组。也就是说,服务器可根据用户的使用习惯实时更新关联任务组。
在一种可能的实现方式中,上述方法还包括:第一电子设备向服务器上报第一工作状态,第一工作状态用于指示第一电子设备开始或结束执行一项工作任务。
在一种可能的实现方式中,上述方法还包括:述第二电子设备向服务器上报第二工作状态,第二工作状态用于指示第二电子设备开始或结束执行一项工作任务。这样,服务器可通过监测第一电子设备和第二电子设备的工作状态分析用户的使用习惯,从而确定与用户的使用习惯对应的关联任务组。
示例性的,上述第一工作任务和第二工作任务可以为不同应用中的工作任务;或者,上述第一工作任务和第二工作任务为同一应用中的不同工作任务,本申请对此不做任何限制。
第二方面,本申请提供一种电子设备(即第一电子设备),包括:一个或多个处理器;存储器;通信模块;其中,存储器中存储有一个或多个计算机程序,一个或多个计算机程序包括指令,当指令被第一电子设备执行时,使得第一电子设备执行以下步骤:第一电子设备向服务器上报第一工作状态,第一工作状态用于指示第一电子设备开始或结束执行一项工作任务。
第三方面,本申请提供一种电子设备(即第二电子设备),包括:显示屏;一个或多个处理器;存储器;通信模块;其中,存储器中存储有一个或多个计算机程序,一个或多个计算机程序包括指令,当指令被第二电子设备执行时,使得第二电子设备执行以下步骤:
接收服务器发送的协同消息,该协同消息用于指示第二电子设备执行第一关联任务组中的第二工作任务,第一关联任务组中还包括第一工作任务,第一工作任务的执行设备为第一电子设备;显示提示消息,提示消息用于提示用户同意在第二电子设备上执行第二工作任务;若检测到用户选择提示消息中的确认按钮,则开始执行第二工作任务;若检测到用户选择提示消息中的取消按钮,则隐藏提示消息。
在一种可能的实现方式中,第二电子设备开始执行第二工作任务,包括:第二电子设备按照第二工作任务的执行进度开始执行第二工作任务;其中,第二工作任务的执行进度保存在第二电子设备中,或者,第二工作任务的执行进度携带在协同消息中。
在一种可能的实现方式中,若检测到用户选择提示消息中的取消按钮,则第二电子设备还用于执行以下步骤:在预设时间后,若第一电子设备在执行第一工作任务,则再次显示提示消息。
在一种可能的实现方式中,若检测到用户选择提示消息中的取消按钮,则第二电子设备还用于执行以下步骤:向服务器发送更新消息,以使得服务器响应更新消息删除第一关联任务组。
在一种可能的实现方式中,第二电子设备还用于执行以下步骤:向服务器上报第二工作状态,第二工作状态用于指示第二电子设备开始或结束执行一项工作任务。
第四方面,本申请提供一种服务器,包括:一个或多个处理器;存储器;通信模 块;其中,存储器中存储有一个或多个计算机程序,一个或多个计算机程序包括指令,当指令被服务器执行时,使得服务器执行上述任一方面中服务器执行的设备协同方法。
第五方面,本申请提供一种设备协同系统,包括上述第一电子设备、上述第二电子设备以及上述服务器。第一电子设备、第二电子设备以及服务器交互时可实现上述任一方面中所述的设备协同方法。
第六方面,本申请提供一种计算机存储介质,包括计算机指令,当计算机指令在电子设备(例如上述第一电子设备或第二电子设备)上运行时,使得电子设备执行上述任一项所述的设备协同方法。
第七方面,本申请提供一种计算机程序产品,当计算机程序产品在电子设备(例如上述第一电子设备或第二电子设备)上运行时,使得电子设备执行上述任一项所述的设备协同方法。
第八方面,本申请提供一种计算机存储介质,包括计算机指令,当计算机指令在服务器上运行时,使得服务器执行上述任一项所述的设备协同方法。
第九方面,本申请提供一种计算机程序产品,当计算机程序产品在服务器上运行时,使得服务器执行上述任一项所述的设备协同方法。
可以理解地,上述提供的第二方面、第三方面所述的电子设备、第四方面所述的服务器、第五方面所述的设备协同系统、第六方面和第八方面所述的计算机存储介质,以及第七方面和第九方面所述的计算机程序产品均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
附图说明
图1为本申请实施例提供的一种通信系统的架构示意图;
图2为本申请实施例提供的一种设备协同方法的交互示意图;
图3为本申请实施例提供的一种电子设备的结构示意图一;
图4为本申请实施例提供的一种设备协同方法的应用场景示意图一;
图5为本申请实施例提供的一种设备协同方法的应用场景示意图二;
图6为本申请实施例提供的一种设备协同方法的应用场景示意图三;
图7A为本申请实施例提供的一种设备协同方法的应用场景示意图四;
图7B为本申请实施例提供的一种设备协同方法的应用场景示意图五;
图8为本申请实施例提供的一种设备协同方法的应用场景示意图六;
图9为本申请实施例提供的一种设备协同方法的应用场景示意图七;
图10为本申请实施例提供的一种设备协同方法的应用场景示意图八;
图11为本申请实施例提供的一种设备协同方法的应用场景示意图九;
图12为本申请实施例提供的一种设备协同方法的应用场景示意图十;
图13为本申请实施例提供的一种设备协同方法的应用场景示意图十一;
图14为本申请实施例提供的一种电子设备的结构示意图二;
图15为本申请实施例提供的一种服务器的结构示意图。
具体实施方式
下面将结合附图对本实施例的实施方式进行详细描述。
本申请实施例提供的一种设备协同方法,可应用于图1所示的通信系统200中。通信系统200中可以包括多个电子设备101以及一个或多个网络侧的服务器102。
其中,电子设备101具体可以是手机、平板电脑、电视(也可称为智慧屏)、笔记本电脑、智能家居设备(例如,智能空调、智能冰箱、智能音箱、智能电灯或智能窗帘等)、可穿戴电子设备、车载设备(也可称为车机)、虚拟现实设备等,本申请实施例对此不做任何限制。
示例性的,电子设备101可通过有线网络或无线网络与服务器102连接。在一些实施例中,通信系统200内的各个电子设备101之间也可通过有线网络或无线网络连接。
例如,上述有线网络或无线网络可使用任何已知的网络通信协议来实现,诸如以太网、通用串行总线(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)、蓝牙、无线保真(wireless fidelity,Wi-Fi)、NFC、基于互联网协议的语音通话(voice over Internet protocol,VoIP)、支持网络切片架构的通信协议或任何其他合适的通信协议。
示例性的,通信系统200内的电子设备101可以是用户家中的各个电子设备101。这些电子设备101可以通过接入同一Wi-Fi网络建立通信连接。另外,这些电子设备101也可以通过登陆同一账号(例如华为账号)与服务器102建立通信连接。
在本申请实施例中,如图2所示,电子设备101可实时将自身的工作状态上报给服务器102,该工作状态中可包括电子设备101正在执行的具体工作任务。以手机为电子设备101举例,当手机启动某一应用(例如视频APP)时,可向服务器102上报当前的工作状态1为:视频APP开始运行。又例如,当手机将视频APP杀掉(kill)时,可向服务器102上报当前的工作状态2为:视频APP结束运行。也就是说,手机可以以应用为粒度向服务器102上报当前的工作状态。
或者,仍以手机为电子设备101举例,手机除了以应用为粒度向服务器102上报当前的工作状态外,也可以以应用中的具体业务(也可称为服务或功能)为粒度向服务器102上报当前的工作状态。例如,当手机开始播放视频APP中的电视剧A时,可向服务器102上报当前的工作状态3为:开始播放电视剧A。又例如,当手机暂停播放视频APP中的电视剧A时,可向服务器102上报当前的工作状态4为:暂停播放电视剧A。
可选的,手机向服务器102上报的工作状态中还可以包括相应工作任务的执行时间、位置等信息。当然,除了手机外,通信系统200中的其他电子设备101也可以按照上述方法将自身的工作状态实时上报给服务器102,本申请实施例对此不做任何限制。
相应的,服务器102可接收通信系统200内各个电子设备101实时上报的工作状态。进而,仍如图2所示,服务器102可基于各个电子设备101上报的工作状态,确定是否存在跨设备的关联任务组,即需要多个电子设备101协同工作完成的多个工作 任务。例如,如果连续N次出现第一电子设备在执行工作任务A的同时,第二电子设备在执行工作任务B,则服务器102可确定工作任务A和工作任务B为一组关联任务组,说明用户的使用习惯是使用第一电子设备和第二电子设备协同完成工作任务A和工作任务B。其中,服务器102具体可使用神经网络算法、数据挖掘技术或其他的实现方式确定关联任务组,本申请实施例对此不做任何限制。
示例性的,上述关联任务组中可以包括互相关联的多个工作任务,以及每个工作任务的执行设备。例如,关联任务组1中可以包括工作任务A和工作任务B,工作任务A的执行设备为第一电子设备,工作任务B的执行设备为第二电子设备。可选的,关联任务组中还可以包括对应的执行时间(或执行时间段),例如,关联任务组1与每天的20:00-21:00这一时间段对应,说明用户经常在每天的20:00-21:00这一时间段使用不同的电子设备执行关联任务组1中的工作任务。
当服务器102确定出关联任务组1后,仍如图2所示,如果服务器102接收到第一电子设备上报的开始执行工作任务A的工作状态,则服务器102可根据上述关联任务组1向第二电子设备发送协同消息,以指示第二电子设备开始执行关联任务组1中与工作任务A关联的工作任务B。这样,服务器102可基于用户的使用习惯,在第一电子设备执行工作任务A时自动触发第二电子设备执行关联的工作任务B,减少第一电子设备和第二电子设备协同工作时的操作复杂度。
或者,如果服务器102接收到第二电子设备上报的开始执行工作任务B的工作状态,则服务器102可根据上述关联任务组1向第一电子设备发送协同消息2,以指示第一电子设备开始执行关联任务组1中与工作任务B关联的工作任务A。这样,服务器102可基于用户的使用习惯,在第二电子设备执行工作任务B时自动触发第一电子设备执行关联的工作任务A,同样可减少第一电子设备和第二电子设备协同工作时的操作复杂度。
其中,第一电子设备(或第二电子设备)接收到服务器102发送的协同消息后,可先向用户显示对应的提示消息,提示用户授权第一电子设备(或第二电子设备)执行对应的工作任务。在得到用户的授权后,第一电子设备(或第二电子设备)可开始执行对应的工作任务。或者,第一电子设备(或第二电子设备)接收到服务器102发送的协同消息后,可直接开始执行对应的工作任务。这两种场景下,用户均不需要手动查找相关设备和相关的工作任务,便可触发该工作任务自动在第一电子设备(或第二电子设备)上运行。
也就是说,服务器102通过监测通信系统200中各个电子设备101的工作状态,可确定出与用户的使用习惯相匹配的关联任务组。关联任务组中互相关联的多个工作任务通常涉及多个电子设备,那么,当后续服务器102监测到关联任务组中的工作任务1被电子设备1执行时,服务器102可控制相关的电子设备2协同执行与工作任务1关联的工作任务2。这样,用户使用电子设备1执行工作任务1时,与工作任务1相关联的工作任务2可自动在电子设备2上开始执行,无需用户手动查找相关设备并打开相关的工作任务,从而减少多设备协同工作时的操作复杂度,提高用户的使用体验。
其中,通信系统200内电子设备101与服务器102之间的具体交互过程将在后续实施例中详细阐述,故此处不予赘述。
以手机作为上述通信系统200中的电子设备101举例,图3示出了手机的结构示意图。
手机可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180等。
可以理解的是,本发明实施例示意的结构并不构成对手机的具体限定。在本申请另一些实施例中,手机可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
手机的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。手机中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在手机上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。 在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
无线通信模块160可以提供应用在手机上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,手机的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得手机可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(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,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
手机通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,手机可以包括1个或N个显示屏194,N为大于1的正整数。
手机可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元 件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,手机可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当手机在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。手机可以支持一种或多种视频编解码器。这样,手机可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行手机的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储手机使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
手机可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。手机可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当手机接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。手机可以设置至少一个麦克风170C。在另一些实施例中,手机可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,手机还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
传感器模块180中可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。
当然,手机还可以包括充电管理模块、电源管理模块、电池、按键、指示器以及1个或多个SIM卡接口等,本申请实施例对此不做任何限制。
以下将结合附图详细阐述本申请实施例提供的一种设备协同方法。
示例性的,如图4所示,用户使用笔记本电脑401时可登陆自身的账号A。笔记本电脑401成功登陆账号A后,笔记本电脑401可与服务器102建立网络连接。此时,服务器102可在数据库中记录笔记本电脑401为登陆状态,登陆的账号为账号A。
类似的,仍如图4所示,用户使用平板电脑402时也可登陆账号A。同样,平板电脑402成功登陆账号A后,平板电脑402可与服务器102建立网络连接。此时,服务器102可在数据库中记录平板电脑402为登陆状态,登陆的账号为账号A。也就是说,用户可以同时在笔记本电脑401和平板电脑402上登陆同一账号(即账号A),从而与服务器102建立网络连接。
在一些实施例中,仍如图4所示,用户还可以将笔记本电脑401和平板电脑402接入同一Wi-Fi网络,例如,接入用户家中的Wi-Fi网络。这样,笔记本电脑401和平板电脑402之间可通过上述Wi-Fi网络进行通信。可选的,笔记本电脑401(或平板电脑402)接入Wi-Fi网络后,还可以向服务器102上报对应的Wi-Fi网络接入事件。例如,笔记本电脑401可将接入的Wi-Fi网络的名称、接入时间等信息携带在Wi-Fi网络接入事件中上报给服务器102。那么,如果笔记本电脑401上报的Wi-Fi网络接入事件中Wi-Fi网络的名称,与平板电脑402上报的Wi-Fi网络接入事件中Wi-Fi网络的名称相同,则服务器102可确认笔记本电脑401和平板电脑402接入同一Wi-Fi网络。
在本申请实施例中,与服务器102建立网络连接的各个电子设备在工作时可向服务器102上报自身的工作状态,该工作状态中可包括电子设备正在执行的具体工作任务等信息。
示例性的,笔记本电脑401通过登录账号A与服务器102建立网络连接后,可周期性的向服务器102上报当前的工作状态。例如,每隔5分钟,笔记本电脑401可向服务器102上报正在运行的应用的名称等工作任务,从而使服务器102获知当前笔记本电脑401的工作状态。
或者,笔记本电脑401通过登录账号A与服务器102建立网络连接后,可主动向服务器102上报笔记本电脑401执行的工作任务。例如,如图5所示,笔记本电脑401响应用户的操作打开文档1后,笔记本电脑401可向服务器102发送文档1的启动事件,该启动事件中可以包括文档1的名称、打开文档1的时间等信息。后续,当笔记本电脑401响应用户的操作关闭文档1后,笔记本电脑401可向服务器102发送文档 1的结束事件,该结束事件中也可以包括文档1的名称、关闭文档1的时间等信息。这样,服务器102根据文档1的启动事件和结束事件可确定笔记本电脑401在某一时间段内的工作任务为运行文档1。
类似的,如图5所示,平板电脑402也可以按照上述方法向服务器102上报自身的工作状态。例如,平板电脑402检测到用户打开视频APP的操作后,可向服务器102发送视频APP的启动事件。后续,当平板电脑402检测到用户关闭视频APP的操作后,可向服务器102发送视频APP的结束事件。当然,平板电脑402还可以将视频APP运行时播放的具体节目的名称、类型等信息发送给服务器102。
在另一些实施例中,笔记本电脑401(或平板电脑402)中可以预设需要向服务器102上报的工作任务清单。如果当前笔记本电脑401(或平板电脑402)执行的工作任务为预设的工作任务清单中的工作任务,则笔记本电脑401(或平板电脑402)可按照上述方法向服务器102上报对应的工作任务。
或者,笔记本电脑401(或平板电脑402)也可以在预设的时间段(例如上下班高峰时间段)或预设的地点(例如家中或办公室)工作时,按照上述方法向服务器102上报对应的工作任务,本申请实施例对此不做任何限制。
对服务器102而言,服务器102可获取到各个电子设备在一段时间内上报的工作状态。这些工作状态可反映出用户对不同电子设备的使用习惯。仍如图5所示,服务器102可根据各个电子设备的工作状态确定需要多个电子设备协同工作完成的多个工作任务(即关联任务组)。
例如,服务器102可先筛选出登陆同一账号的电子设备上报的具体工作任务,这些工作任务一般是由同一用户触发的。进而,服务器102可在筛选出的工作任务中查询具有一定规律的多个工作任务,从而将具有一定规律的多个工作任务确定为一组关联任务组。
例如,笔记本电脑401在运行文档1(即工作任务1)时,平板电脑402同时在运行视频APP(即工作任务2)的时间超过预设时间(例如15分钟),说明用户习惯一边在笔记本电脑401上执行工作任务1一边在平板电脑402上执行工作任务2。此时,服务器102可确定工作任务1与工作任务2为一组关联任务组,其中,工作任务1的执行设备为笔记本电脑401,工作任务2的执行设备为平板电脑402。
又例如,如果笔记本电脑401在运行文档1(即工作任务1)时,平板电脑402同时在运行视频APP(即工作任务2)的时间超过预设时间(例如15分钟),则服务器102可查询这一场景出现的次数。如果查询到这一场景出现的次数大于预设值(例如2次),说明用户习惯一边在笔记本电脑401上执行工作任务1一边在平板电脑402上执行工作任务2。此时,服务器102可确定工作任务1与工作任务2为一组关联任务组。
又例如,如果笔记本电脑401在运行文档1(即工作任务1)时,平板电脑402同时在运行视频APP(即工作任务2)的时间超过预设时间(例如15分钟),并且,这一场景出现的次数大于预设值,则服务器102还可以查询每次出现上述场景时的时间是否在同一时间段内。例如,每次笔记本电脑401运行文档1和平板电脑402运行视频APP的时间均在20:00-21:00这一时间段内,说明用户习惯在在20:00-21:00一边在 笔记本电脑401上执行工作任务1一边在平板电脑402上执行工作任务2。此时,服务器102可确定工作任务1与工作任务2为一组关联任务组。在一些实施例中,服务器102还可以建立该关联任务组与20:00-21:00这一时间段的对应关系。例如,服务器102可在该关联任务组中设置对应的预设时间段为20:00-21:00。
又例如,如果笔记本电脑401在运行文档1(即工作任务1)时,平板电脑402同时在运行视频APP(即工作任务2)的时间超过预设时间(例如15分钟),则服务器102还可以查询笔记本电脑401与平板电脑402之间的距离是否在预设距离内。例如,如果笔记本电脑401与平板电脑402接入同一Wi-Fi网络,则说明笔记本电脑401与平板电脑402之间的距离在预设距离内,则服务器102可确定工作任务1与工作任务2为一组关联任务组。
又例如,用户家中可设置具有定位功能的定位设备(例如路由器等)。该定位设备可对笔记本电脑401和平板电脑402等电子设备进行室内定位,进而将定位结果发送至服务器102。这样,服务器102可根据笔记本电脑401和平板电脑402的定位结果,确定笔记本电脑401与平板电脑402之间的距离是否在预设距离(例如10米)内。如果笔记本电脑401与平板电脑402之间的距离在预设距离内,则服务器102可确定工作任务1与工作任务2为一组关联任务组。此时,服务器102还可以建立该关联任务组与上述预设距离的对应关系。例如,服务器102可在该关联任务组中设置对应的预设距离为10米。
可以看出,服务器102基于各个电子设备的运行状态确定出的关联任务组中包括多个工作任务,以及每个工作任务的执行设备。可选的,上述关联任务组中还可以包括执行上述多个工作任务的时间段。或者,上述关联任务组中还可以包括各个执行设备之间的距离、地点等,本申请实施例对此不做任何限制。
上述实施例中是以笔记本电脑401运行文档1和平板电脑402运行视频APP这两个工作任务作为一组关联任务组举例说明的。可以理解的是,服务器102确定出的关联任务组中的工作任务可以是运行某一应用(或软件),也可以是运行某一应用(或软件)中的具体业务(或功能),也可以是电子设备执行的某一具体事件(例如闹铃事件、语音通话事件等),本申请实施例对此不做任何限制。
例如,如果笔记本电脑401运行文档1使用的软件为Word软件,则服务器102可将笔记本电脑401运行Word软件和平板电脑402运行视频APP这两个工作任务作为一组关联任务组。又例如,如果在笔记本电脑401运行文档1的同时,平板电脑402运行的是视频APP中综艺类的节目,则服务器102可将笔记本电脑401运行文档1和平板电脑402播放综艺类的节目作为一组关联任务组。
另外,除了笔记本电脑401和平板电脑402外,其他电子设备执行的工作任务也可以为关联任务组中的工作任务。例如,服务器102可以获取电视和智能手表上报的工作状态。当电视和智能手表登陆同一账号后,如果服务器102监测到电视在播放运动APP(或称为健康APP)中的教学课程时,智能手表同时启动了运动监控功能检测用户的心率、血压等健康数据,则服务器102可将播放运动APP中的教学课程和启动运动监控功能作为一组关联任务组,其中,播放运动APP中的教学课程的执行设备为电视,启动运动监控功能的执行设备为智能手表。
需要说明的是,一组关联任务组中的多个工作任务可以是由不同应用执行的,也可以是由同一应用执行的。例如,关联任务组1中的工作任务1由应用A执行,关联任务组1中的工作任务2由应用B执行。又例如,关联任务组1中的工作任务1和工作任务2均可由应用A执行。比如,用户可以使用电视显示游戏APP的游戏界面,同时使用平板电脑显示游戏APP的控制界面(例如操纵杆、装备工具等)。此时,电视上执行的工作任务和平板电脑上执行的工作任务为一组关联任务组,且这两个工作任务均由游戏APP执行。
在一些实施例中,服务器102确定出的关联任务组是可以动态更新的。服务器102可以根据各个电子设备上报的工作状态实时更新相应的关联任务组。例如,服务器102按照上述实施例中的方法将笔记本电脑401运行文档1和平板电脑402运行视频APP确定为关联任务组1后,如果检测到平板电脑402运行视频APP时,笔记本电脑401运行的是文档2不再是文档1,说明用户当前的使用习惯转变为一边在笔记本电脑401上运行文档2一边在平板电脑402上运行视频APP,则服务器102可更新上述关联任务组1,将笔记本电脑401运行文档2和平板电脑402运行视频APP确定为更新后的关联任务组1。这样,服务器102中存储的关联任务组可与用户当前的使用习惯保持最大程度的匹配。
仍以笔记本电脑401运行文档1和平板电脑402运行视频APP为关联任务组1举例,服务器102确定出关联任务组1后,如果检测到关联任务组1中的任意工作任务被执行,则服务器102可控制相应的电子设备执行关联任务组1中的其他工作任务,使得关联任务组1中多个关联的工作任务可以在对应的电子设备上协同完成,提升用户在多设备协同场景下的使用体验。
示例性的,服务器102确定出关联任务组1后,如图6所示,当用户使用笔记本电脑401打开文档1时,笔记本电脑401可向服务器102上报笔记本电脑401的工作状态。例如,笔记本电脑401可向服务器102发送文档1的启动事件,说明笔记本电脑401开始执行运行文档1的工作任务A。仍如图6所示,服务器102接收到文档1的启动事件后,可查询是否存在与工作任务A对应的关联任务组,即是否有关联任务组中包含该工作任务A。如果查询到关联任务组1中包含工作任务A,则服务器102根据关联任务组1可确定与工作任务A关联的工作任务为:平板电脑402运行视频APP(即工作任务B)。进而,仍如图6所示,服务器102可向平板电脑402发送协同消息1,协同消息1用于指示平板电脑402运行视频APP。例如,服务器102可将视频APP的标识携带在协同消息1中发送至平板电脑402。其中,视频APP的标识可以为视频APP的包名(package name)等。平板电脑402接收到协同消息1后,可响应协同消息1开始运行视频APP。这样,用户在笔记本电脑401上打开文档1后,平板电脑402可自动运行与文档1关联的视频APP,无需用户手动查找相关设备并打开相关的工作任务,从而减少多设备协同工作时的操作复杂度,提高用户的使用体验。
在一些实施例中,服务器102接收到笔记本电脑401发送的文档1的启动事件后,说明笔记本电脑401在执行工作任务A。此时,如果服务器102查询到关联任务组1中包含工作任务A,则服务器102还可以进一步判断笔记本电脑401执行工作任务A的时间是否在关联任务组1设置的预设时间段(例如20:00-21:00)内。如果在 20:00-21:00这一预设时间段内,说明用户很可能需要在平板电脑402上运行与工作任务A关联的工作任务B(即运行视频APP),则服务器102可向平板电脑402发送上述协同消息1。这样,服务器102可更加准确的控制各个设备执行关联任务组1中关联的工作任务,实现多设备的协同工作。
或者,服务器102接收到笔记本电脑401发送的文档1的启动事件后,说明笔记本电脑401在执行工作任务A。此时,如果服务器102查询到关联任务组1中包含工作任务A,则服务器102还可以进一步查询平板电脑402与笔记本电脑401之间的距离是否在关联任务组1设置的预设距离(例如10米)内。如果平板电脑402与笔记本电脑401之间的距离在预设距离内,说明用户很可能需要在平板电脑402上运行与工作任务A关联的工作任务B(即运行视频APP),则服务器102可按照上述方法向平板电脑402发送对应的协同消息(例如协同消息1),触发平板电脑402响应该协同消息1开始运行视频APP。这样,服务器102可更加准确的控制各个设备执行关联任务组1中关联的工作任务,实现多设备的协同工作。
示例性的,服务器102可查询平板电脑402与笔记本电脑401是否接入同一Wi-Fi网络,如果接入同一Wi-Fi网络,则服务器102可确认平板电脑402与笔记本电脑401之间的距离在预设距离内。否则,服务器102可确认平板电脑402与笔记本电脑401之间的距离不在预设距离内。
又例如,服务器102可向笔记本电脑401发送平板电脑402的位置查询指令,使笔记本电脑401响应该位置查询指令开启定位功能(例如UWB定位功能或Wi-Fi定位功能),定位自身与平板电脑402之间的距离。进而,笔记本电脑401可将定位出的自身与平板电脑402之间的距离发送给服务器102,以便服务器102确认平板电脑402与笔记本电脑401之间的距离是否在预设距离内。或者,笔记本电脑401定位出自身与平板电脑402之间的距离后,可确定出自身与平板电脑402之间的距离是否在预设距离内。如果在预设距离内,则笔记本电脑401可通过Wi-Fi网络向平板电脑402发送对应的协同消息1,此时,无需服务器102向平板电脑402发送对应的协同消息1。
在另一些实施例中,可能存在多个关联任务组中包括笔记本电脑401运行文档1这一工作任务A。例如,关联任务组1中包括工作任务A和工作任务B,关联任务组2中包括工作任务A和工作任务C。那么,当服务器102接收到笔记本电脑401发送的文档1的启动事件后,服务器102可进一步确定触发哪一组关联任务组中与工作任务A关联的工作任务。
例如,关联任务组1中设置的预设时间段为工作日的20:00-21:00,而关联任务组2中设置的预设时间段为休息日的20:00-21:00。那么,如果服务器102在工作日的20:00-21:00内获取到笔记本电脑401执行工作任务A的工作状态,说明此时的工作任务A与关联任务组1中的工作任务B关联,而不是与关联任务组2中的工作任务C关联,则服务器102可向平板电脑402发送上述协同消息1,指示平板电脑402开始执行工作任务B(即运行视频APP)。
或者,仍以关联任务组1中包括工作任务A和工作任务B,关联任务组2中包括工作任务A和工作任务C举例。当服务器102接收到笔记本电脑401发送的文档1的启动事件后,由于关联任务组1和关联任务组2中均包括工作任务A,此时,服务器 102可检测工作任务B的执行设备(即平板电脑402)与笔记本电脑401(即工作任务A的执行设备)之间的距离1,以及工作任务C的执行设备(例如音箱)与笔记本电脑401之间的距离2。如果距离1小于距离2,则服务器102可向平板电脑402发送对应的协同消息;相应的,如果距离1大于距离2,则服务器102可向音箱发送对应的协同消息。也就是说,服务器102可向距离笔记本电脑401更近的电子设备发送相应的协同消息,指示笔记本电脑401与距离更近的电子设备协同执行关联任务组中的工作任务。
在另一些实施例中,仍以服务器102向平板电脑402发送协同消息1举例,平板电脑402接收到上述协同消息1后,如图7A所示,平板电脑402可以先显示运行视频APP的提示消息701。其中,提示消息701可用于提示用户同意平板电脑402开始运行视频APP(即执行工作任务B)。例如,提示消息701中可以包括确认按钮702。如果检测到用户点击确认按钮702,则平板电脑402可启动视频APP并显示视频APP的显示界面。也就是说,平板电脑402接收到服务器102发送的指示平板电脑402运行视频APP的协同消息1后,平板电脑402可以先通过显示提示消息701得到用户的授权,再开始运行视频APP,避免直接在平板电脑402中运行视频APP干扰用户对平板电脑402的正常操作。
可选的,如果用户不同意在平板电脑402上运行视频APP,例如,用户可点击提示消息701中的取消按钮703,则平板电脑402可暂时不响应服务器102发送的协同消息1运行视频APP。例如,检测到用户点击提示消息701中的取消按钮703后,平板电脑402可以在一段时间(例如10分钟)后再次显示上述提示消息701,提示用户同意平板电脑402开始运行视频APP。例如,平板电脑402可以在通知中心、桌面、负一屏菜单或控制中心等位置显示上述提示消息701,本申请实施例对此不做任何限制。
又或者,平板电脑402响应服务器102发送的协同消息1运行视频APP后,可向服务器102发送响应消息以指示本次设备协同过程完成。如果服务器102在预设时间内没有接收到平板电脑402发送的响应消息,且笔记本电脑401运行文档1的工作任务A没有结束,则服务器102可再次向平板电脑402发送协同消息1。此时,平板电脑402可再次响应接收到的协同消息1显示上述提示消息701,以提示用户同意平板电脑402开始运行视频APP。
另外,如果平板电脑402检测到用户连续N(N为大于0的整数)次取消在平板电脑402运行视频APP,说明用户的使用习惯并不是在笔记本电脑401运行文档1的同时在平板电脑402运行视频APP。此时,平板电脑402可向服务器102发送通知消息,通知服务器102删除对应的关联任务组。进而,服务器102接收到上述通知消息后可删除包含工作任务A和工作任务B的关联任务组1。这样,后续服务器102再次接收到笔记本电脑401上报的执行工作任务A的工作状态后,服务器102不会再根据关联任务组1向平板电脑402发送对应的协同消息1。
在一些场景中,平板电脑402接收到服务器102发送的协同消息1后,如果平板电脑402处于息屏状态,则平板电脑402可点亮屏幕并在锁屏界面中显示上述提示消息701。此时,提示消息701中可以不包括确认按钮702或取消按钮703等操作按钮, 即用户无法操作提示消息701。如果用户希望操作提示消息701同意或拒绝平板电脑402运行视频APP,则用户需要先对平板电脑402进行屏幕解锁。例如,用户可以通过输入预设的指纹、面部图像或数字密码等方式解锁平板电脑402的屏幕。如果解锁屏幕成功,说明使用平板电脑402的用户为合法用户,则平板电脑402可在解锁后的屏幕中显示完整的提示消息701,方便用户操作提示消息701同意或拒绝平板电脑402运行视频APP。
在另一些场景中,服务器102还可以将上述协同消息1发送至笔记本电脑401。此时,如图7B所示,笔记本电脑401可响应协同消息1显示提示消息704。同样,提示消息704用于提示用户同意在平板电脑402上开始运行视频APP(即执行工作任务B)。由于用户当前正在使用笔记本电脑401运行文档1,因此,在笔记本电脑401上显示提示消息704能够及时提示用户同意在平板电脑402上运行视频APP。
笔记本电脑401显示出上述提示消息704后,如果检测到用户选择提示消息704中的确认按钮,则笔记本电脑401可向平板电脑402发送携带有视频APP标识的启动消息,触发平板电脑402启动视频APP并显示视频APP的显示界面。相应的,如果检测到用户选择提示消息704中的取消按钮,则笔记本电脑401可隐藏上述提示消息704。当然,笔记本电脑401还可按照上述实施例中的方法向服务器102发送通知消息,通知服务器102删除对应的关联任务组,本申请实施例对此不做任何限制。
上述实施例是以服务器102确定出关联任务组1后,先获取到笔记本电脑401运行文档1的工作状态举例说明的。在另一些实施例中,当服务器102确定出上述关联任务组1后,如图8所示,如果平板电脑402开始运行视频APP,则平板电脑402可服务器102上报视频APP的启动事件。此时,服务器102先获取到的是平板电脑402运行视频APP(即工作任务B)的工作状态。
仍如图8所示,服务器102接收到视频APP的启动事件后,可查询是否存在与工作任务B对应的关联任务组,即是否有关联任务组中包含该工作任务B。如果查询到关联任务组1中包含工作任务B,则服务器102根据关联任务组1可确定与工作任务B关联的工作任务为:笔记本电脑401运行文档1(即工作任务A)。进而,仍如图8所示,服务器102可向笔记本电脑401发送协同消息2,协同消息2用于指示笔记本电脑401运行文档1。例如,服务器102可将文档1的名称携带在协同消息2中发送至笔记本电脑401。笔记本电脑401接收到协同消息2后,可响应该协同消息2通过Word等软件打开文档1。这样,用户在平板电脑402上打开视频APP后,笔记本电脑401可自动运行与视频APP关联的文档1,无需用户手动查找相关设备并打开相关的工作任务,从而减少多设备协同工作时的操作复杂度,提高用户的使用体验。
其中,服务器102控制笔记本电脑401运行文档1的具体方法,与上述实施例中服务器102控制平板电脑402运行视频APP的具体方法类似,故此处不再赘述。
也就是说,当服务器102将多个工作任务确定为同一关联任务组后,当同一关联任务组中的任意工作任务被执行后,服务器102均可控制相关的电子设备执行关联任务组中关联的其他工作任务,使同一关联任务组中的多个工作任务能够自动开始协同工作。
进一步地,笔记本电脑401接收到上述协同消息2举例,笔记本电脑401响应该 协同消息2打开文档1后,可向服务器102上报文档1的启动事件。此时,笔记本电脑401在运行文档1的同时,平板电脑402在运行视频APP,即笔记本电脑401和平板电脑402在协同执行关联任务组1中的工作任务。后续,当笔记本电脑401停止运行文档1(即停止执行工作任务A)时,笔记本电脑401可向服务器102发送文档1的结束事件。进而,服务器102可根据上述关联任务组1,向平板电脑402发送协同结束消息,该协同结束消息用于指示平板电脑402停止运行视频APP(即停止执行工作任务B)。平板电脑402接收到上述协同结束消息后,可显示对应的提示消息提示用户关闭正在运行的视频APP,从而提示用户结束执行关联任务组1中的工作任务。
或者,当平板电脑402停止运行视频APP(即停止执行工作任务B)时,平板电脑402可向服务器102发送视频APP的结束事件。同样,服务器102可根据上述关联任务组1,向笔记本电脑401发送对应的协同结束消息,该协同结束消息用于指示笔记本电脑401停止运行文档1(即停止执行工作任务A)。笔记本电脑401接收到上述协同结束消息后,可显示对应的提示消息提示用户关闭正在运行的文档1,从而提示用户结束执行关联任务组1中的工作任务。
这样,当服务器102将多个工作任务确定为同一关联任务组后,当同一关联任务组中的任意工作任务结束运行后,服务器102也可控制相关的电子设备结束执行关联任务组中关联的其他工作任务,使同一关联任务组中的多个工作任务能够自动结束协同工作。
上述实施例是以关联任务组1中包括笔记本电脑401运行文档1和平板电脑402运行视频APP举例说明的,可以理解的是,对于其他的关联任务组,服务器102也可按照上述方法控制不同的电子设备协同执行同一关联任务组中的不同工作任务。
示例性的,如图9所示,关联任务组2中可以包括两个工作任务:电视901播放运动类型的课程,智能手表902运行运动APP中的运动监控功能。可选的,关联任务组2中还可以包括电视901最后一次播放的运动课程的课程链接(即电视901播放课程时的执行进度),关联任务组2中还可以包括7:00-8:00这一时间段。
当电视901与智能手表902登录同一账号后,仍如图9所示,如果电视901开始播放运动类型的课程(例如瑜伽课程),则电视901可向服务器102上报当前的工作状态为:播放瑜伽课程,且播放时间为7:15。此时,服务器102根据上述关联任务组2可确定与播放瑜伽课程相关联的工作任务为:智能手表902运行运动APP中的运动监控功能。进而,服务器102可向智能手表902发送协同消息3,协同消息3用于指示智能手表902运行运动APP中的运动监控功能。智能手表902接收到协同消息3后,可先显示对应的提示信息,提示用户同意智能手表902运行运动APP中的运动监控功能。如果智能手表902检测到用户同意智能手表902运行运动APP中的运动监控功能,则智能手表902可打开运行运动APP中的运动监控功能,开始监测用户的心率、血压等健康数据。
这样,用户在电视901播放运动类型的课程后,智能手表902可自动运行与此关联的运动APP中的运动监控功能,从而在运动过程中帮助用户监测的心率、血压等健康数据,无需用户手动查找相关设备并打开相关的工作任务,从而减少多设备协同工作时的操作复杂度,提高用户的使用体验。
或者,仍以上述关联任务组2举例,当电视901与智能手表902登录同一账号后,如图10所示,如果智能手表902开始运行运动APP中的运动监控功能,则智能手表902可向服务器102上报当前的工作状态为:运行运动APP中的运动监控功能,且开始时间为7:05。
此时,服务器102根据上述关联任务组2可确定与运行运动APP中的运动监控功能相关联的工作任务为:电视901播放运动类型的课程。进而,仍如图10所示,服务器102可向电视901发送协同消息4,协同消息4用于指示电视901开始播放运动类型的课程。例如,协同消息4中可以包括电视901最后一次播放的运动课程的课程链接。
那么,电视901接收到协同消息4后,可先显示对应的提示信息,以提示用户同意电视901运行运动APP中的运动监控功能。例如,该提示信息中可以包括电视901最后一次播放的运动课程的课程链接。后续,如果电视901检测到用户选中上述提示信息中的课程链接,则电视901可按照上述课程链接继续播放用户最后一次播放的运动课程。当然,电视901还可以在提示信息中显示其他可选的运动课程,本申请实施例对此不做任何限制。
或者,电视901自身可存储最近一次播放的运动类型的课程(即执行进度)。此时,服务器102向电视901发送的协同消息4中可以不包括上述课程链接。那么,电视901接收到协同消息4后,可根据自身存储的最近一次播放的运动类型的课程,继续播放用户最后一次播放的运动课程,同样可实现多设备协同时工作任务的接续。
在另一些实施例中,服务器102确定出的同一关联任务组中的多个工作任务可以包括同一应用(或软件)中的不同功能。例如,关联任务组3中可以包括两个工作任务:电视901显示游戏APP中的游戏画面,手机1001显示游戏APP中的背包、操控杆、装备栏等操作按钮。
当电视901与手机1001登录同一账号后,如图11所示,如果电视901开始运行游戏APP,并进入游戏APP中的游戏画面1101,则电视901可向服务器102上报当前的工作状态为:显示游戏APP中的游戏画面。此时,服务器102根据上述关联任务组3可确定与显示游戏APP中的游戏画面相关联的工作任务为:手机1001显示游戏APP中的操作按钮。进而,服务器102可向智能手表902发送协同消息5,协同消息5用于指示手机1001开始运行游戏APP,并显示包含背包、装备栏等操作按钮的控制界面1102。手机1001接收到协同消息5后,如图11所示,可开始运行游戏APP,并在游戏APP的控制界面1102中显示游戏APP中的背包等操作按钮等。这样,用户不需要手动分别打开电视901和手机1001,便可实现电视901与手机1001协同完成运行游戏APP的工作,电视901中显示的游戏APP的游戏画面1101不会被装备栏以及操作按钮等控件干扰,用户可以使用手机1001显示的控制界面1102对游戏APP进行操控。
当然,如果服务器102先检测到手机1001显示上述控制界面1102,则服务器102可按照上述方法控制电视901显示游戏APP中的游戏画面1101,实现电视901与手机1001的自动协同,本申请实施例对此不做任何限制。
另外,电视901上运行的游戏APP与手机1001运行的游戏APP可以是同一版本 的,也可以是不同版本的。例如,电视901中可以安装版本A的游戏APP,版本A的游戏APP适用于电视类型的电子设备;而手机1001中可以安装版本B的游戏APP,版本B的游戏APP适用于手机类型的电子设备。或者,电视901中可以安装2.0版本的游戏APP,而手机1001中可以安装3.0版本的游戏APP。不同版本的游戏APP的标识可以相同,电视901(或手机1001)可根据协同消息中游戏APP的标识启动对应版本的游戏APP。这样,即使电视901与手机1001中安装的游戏APP的版本不相同,也可实现上述实施例中的设备协同方法。
在另一些实施例中,用户可以在手机、智能手表等电子设备上安装用于计时的计时APP。例如,计时APP中可以设置番茄计时功能。其中,番茄计时法是指在完成一项任务时,将番茄时间设为预设时长(例如25分钟),用户在番茄时间内专注工作,中途不允许做任何与该任务无关的事,直到番茄时钟响起后进行短暂休息(例如休息5分钟),然后再开始计时下一个番茄时间。当累计多个(例如4个)番茄时间后,可增加休息时长多休息一会。
在上述多设备协同工作的场景下,用户完成一项任务(例如学习编程、完成工作报表等)可能会使用多个电子设备执行多个工作任务,这多个工作任务可以为一个关联任务组中的工作任务。也就是说,用户是以关联任务组为粒度完成番茄计时功能中的一项任务的。那么,当用户开启了计时APP中的番茄计时功能时,计时APP可以关联任务组为单位统计番茄计时功能中的番茄时间。
示例性的,如图12所示,手机1001中安装有计时APP。当用户打开计时APP中的番茄计时功能时,计时APP可向服务器102发送计时消息。服务器102接收到该计时消息后,可查询当前正在执行的关联任务组(例如关联任务组1)。此时,关联任务组1中的多个工作任务被执行时均可被记为番茄时间。因此,服务器102可监测关联任务组1中的多个工作任务在各个电子设备上的执行时间是否达到一个番茄时间(例如25分钟)。当到达以25分钟为单位的番茄时间后,服务器102可向手机1001中的计时APP发送番茄时钟的响铃消息。进而,手机1001中的计时APP可响应该响铃消息,在显示界面中提示用户本轮的番茄时间结束,进入休息时间。也就是说,在多设备协同工作的场景下,番茄计时功能可按照与当前协同场景对应的关联任务组统计番茄时间,从而提高番茄计时法的准确性以及用户使用番茄计时功能的使用体验。
或者,仍以手机1001中安装有计时APP举例,用户可以预先在计时APP中设置需要进行番茄计时的应用名单或任务名单。如图13中的(a)所示,用户可以在计时APP的设置界面1301中选择需要进行番茄计时的一个或多个应用,例如应用1和应用2。其中,应用1和应用2可以是手机1001中安装的应用,也可以是与手机1001登录同一账号的其他电子设备(例如上述笔记本电脑401、平板电脑402等)中安装的应用,本申请实施例对此不做任何限制。
后续,当应用1在手机1001(或其他电子设备)上运行时,手机1001(或其他电子设备)可向服务器102发送番茄计时请求,触发服务器102向计时APP发送打开番茄计时功能的请求。此时,如图13中的(b)所示,计时APP可显示提示消息1302,以提示用户打开番茄计时功能开始计时。如果检测到用户同意打开番茄计时功能,则计时APP可打开番茄计时功能统计应用1的运行时间,并按照应用1的运行时间计算 番茄时间。类似的,当应用2在手机1001(或其他电子设备)上运行时,计时APP也可按照上述方法自动提示用户打开番茄计时功能开始计时。或者,计时APP可将应用1和应用2的运行时间均纳入番茄计时功能的番茄时间,本申请实施例对此不做任何限制。
需要说明的是,上述实施例中是以一个关联任务组(例如关联任务组1-3)内包括两个工作任务举例说明的,可以理解的是,一个关联任务组中可以包括三个或更多个工作任务,本申请实施例对此不做任何限制。
例如,关联任务组A中可以包括工作任务1、工作任务2以及工作任务3。其中,工作任务1的执行设备为电子设备1,工作任务2的执行设备为电子设备2,工作任务3的执行设备为电子设备3。或者,工作任务1的执行设备为电子设备1,工作任务2的执行设备为电子设备2,工作任务3的执行设备可以为电子设备1(或电子设备2)。与上述实施例类似的,当服务器102检测到关联任务组A中的任意工作任务被执行时,服务器102可控制关联任务组A中相关的电子设备执行关联任务组A中的其他工作任务,此处不再赘述。
另外,上述实施例中是以服务器102为通信系统200中与各个电子设备相连的控制设备举例说明的。其中,服务器102可用于接收各个电子设备的工作状态、确定关联任务组,以及控制关联任务组中相关的电子设备执行工作任务等。
可以理解的是,本领域技术人员也可以将通信系统200中的某一电子设备设置为控制设备,此时,该电子设备可用于执行上述服务器102执行的各个步骤。例如,可设置音箱为控制设备,通信系统200中的其他电子设备可将自身的工作状态上报给音箱,由音箱根据接收到的工作状态确定各个关联任务组,并且,音箱可根据接收到的工作状态控制其他电子设备执行关联任务组中相关的工作任务。
本申请实施例提供了一种电子设备,该电子设备可以为上述通信系统200中用于多设备协同的任一电子设备(例如第一电子设备或第二电子设备)。其中,该电子设备可包括处理器,以及与处理器相连的存储器、通信模块、输入设备和输出设备。其中,输入设备和输出设备可集成为一个设备,例如,可将触摸传感器作为输入设备,将显示屏作为输出设备,并将触摸传感器和显示屏集成为触摸屏。
示例性的,如图14所示,本申请实施例提供的电子设备,可以包括:触摸屏1401,所述触摸屏1401包括触摸传感器1406和显示屏1407;一个或多个处理器1402;存储器1403;通信模块1408;一个或多个应用程序(未示出);以及一个或多个计算机程序1404,上述各器件可以通过一个或多个通信总线1405连接。其中该一个或多个计算机程序1404被存储在上述存储器1403中并被配置为被该一个或多个处理器1402执行,该一个或多个计算机程序1404包括指令,该指令可以用于执行上述实施例中电子设备执行的各个步骤。
示例性的,上述处理器1402具体可以为图3所示的处理器110,上述存储器1403具体可以为图3所示的内部存储器121,上述显示屏1407具体可以为图3所示的显示屏144,上述触摸传感器1406具体可以为图3所示的传感器模块180中的触摸传感器,本申请实施例对此不做任何限制。
本申请实施例提供了一种服务器,该服务器可以为上述通信系统200中的服务器 102。如图15所示,本申请实施例提供的服务器可以包括:一个或多个处理器1502;存储器1503;通信模块1501;以及一个或多个计算机程序1504,上述各器件可以通过一个或多个通信总线1505连接。其中该一个或多个计算机程序1504被存储在上述存储器1503中并被配置为被该一个或多个处理器1502执行,该一个或多个计算机程序1504包括指令,该指令可以用于执行上述实施例中服务器102执行的各个步骤。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请实施例的具体实施方式,但本申请实施例的保护范围并不局限于此,任何在本申请实施例揭露的技术范围内的变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应以所述权利要求的保护范围为准。

Claims (25)

  1. 一种设备协同方法,其特征在于,包括:
    服务器获取到第一电子设备开始执行第一工作任务的工作状态;
    所述服务器确定与所述第一工作任务对应的第一关联任务组,所述第一关联任务组包括与所述第一工作任务关联的第二工作任务,所述第二工作任务的执行设备为第二电子设备;
    所述服务器向所述第二电子设备发送协同消息,所述协同消息用于指示所述第二电子设备执行所述第二工作任务。
  2. 根据权利要求1所述的方法,其特征在于,所述服务器确定与所述第一工作任务对应的第一关联任务组,包括:
    当所述第一关联任务组中包括所述第一工作任务,且所述第一电子设备开始执行第一工作任务的时间位于预设时间段,则所述服务器确定所述第一关联任务组与所述第一工作任务对应。
  3. 根据权利要求1所述的方法,其特征在于,所述服务器确定与所述第一工作任务对应的第一关联任务组,包括:
    当所述第一关联任务组中包括所述第一工作任务,且所述第一电子设备与所述第二电子设备之间的距离小于预设距离,则所述服务器确定所述第一关联任务组与所述第一工作任务对应;或者,
    当所述第一关联任务组中包括所述第一工作任务,且所述第一电子设备与所述第二电子设备位于预设地点,则所述服务器确定所述第一关联任务组与所述第一工作任务对应。
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,在服务器获取到第一电子设备开始执行第一工作任务的工作状态之前,还包括:
    当所述服务器监测到所述第一电子设备执行所述第一工作任务,与所述第二电子设备执行所述第二工作任务之间满足预设条件时,所述服务器确定所述第一关联任务组中包括所述第一工作任务和所述第二工作任务;
    所述预设条件包括:所述第一电子设备和所述第二电子设备登陆同一账号;并且,所述第一工作任务与所述第二工作任务同时运行的时间超过时间阈值。
  5. 根据权利要求4所述的方法,其特征在于,所述预设条件还包括:所述第一工作任务与所述第二工作任务同时运行的次数超过预设值;和/或,所述第一工作任务与所述第二工作任务同时运行的时间处于预设时间段内;和/或,所述第一工作任务与所述第二工作任务同时运行的地点为预设地点;和/或,所述第一电子设备和所述第二电子设备之间的距离小于预设距离。
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:
    当所述第一工作任务与所述第二工作任务在所述预设时间段内同时运行的次数超过所述预设值时,所述服务器确定所述第一关联任务组与所述预设时间段对应;和/或,
    当所述第一工作任务与所述第二工作任务在所述预设地点同时运行的次数超过所述预设值时,所述服务器确定所述第一关联任务组与所述预设地点对应;和/或,
    当所述第一工作任务与所述第二工作任务同时运行的次数超过所述预设值,且所述第一电子设备和所述第二电子设备之间的距离小于所述预设距离时,所述服务器确定所述第一关联任务组与所述预设距离对应。
  7. 根据权利要求1-6中任一项所述的方法,其特征在于,在所述服务器向所述第二电子设备发送协同消息之后,还包括:
    响应于所述协同消息,所述第二电子设备开始执行所述第二工作任务。
  8. 根据权利要求7所述的方法,其特征在于,所述第二电子设备开始执行所述第二工作任务,包括:
    所述第二电子设备按照所述第二工作任务的执行进度开始执行所述第二工作任务;
    其中,所述第二工作任务的执行进度保存在所述第二电子设备中,或者,所述第二工作任务的执行进度携带在所述协同消息中。
  9. 根据权利要求1-6中任一项所述的方法,其特征在于,在所述服务器向所述第二电子设备发送协同消息之后,还包括:
    所述第二电子设备显示提示消息,所述提示消息用于提示用户同意在第二电子设备上执行所述第二工作任务;
    若检测到用户选择所述提示消息中的确认按钮,则所述第二电子设备开始执行所述第二工作任务;
    若检测到用户选择所述提示消息中的取消按钮,则所述第二电子设备隐藏所述提示消息。
  10. 根据权利要求9所述的方法,其特征在于,若检测到用户选择所述提示消息中的取消按钮,则所述方法还包括:
    在预设时间后,若所述第一电子设备在执行所述第一工作任务,所述第二电子设备再次显示所述提示消息。
  11. 根据权利要求9所述的方法,其特征在于,若检测到用户选择所述提示消息中的取消按钮,则所述方法还包括:
    所述第二电子设备向所述服务器发送更新消息,以使得所述服务器响应所述更新消息删除所述第一关联任务组。
  12. 根据权利要求1-11中任一项所述的方法,其特征在于,所述方法还包括:
    所述第一电子设备向所述服务器上报第一工作状态,所述第一工作状态用于指示所述第一电子设备开始或结束执行一项工作任务。
  13. 根据权利要求1-11中任一项所述的方法,其特征在于,所述方法还包括:
    所述第二电子设备向所述服务器上报第二工作状态,所述第二工作状态用于指示所述第二电子设备开始或结束执行一项工作任务。
  14. 根据权利要求1-13中任一项所述的方法,其特征在于,所述第一工作任务和所述第二工作任务为不同应用中的工作任务;或者,所述第一工作任务和所述第二工作任务为同一应用中的不同工作任务。
  15. 一种电子设备,所述电子设备为第一电子设备,其特征在于,所述第一电子设备包括:
    一个或多个处理器;
    存储器;
    通信模块;
    其中,所述存储器中存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述第一电子设备执行时,使得所述第一电子设备执行以下步骤:
    所述第一电子设备向所述服务器上报第一工作状态,所述第一工作状态用于指示所述第一电子设备开始或结束执行一项工作任务。
  16. 一种电子设备,所述电子设备为第二电子设备,其特征在于,所述第二电子设备包括:
    显示屏;
    一个或多个处理器;
    存储器;
    通信模块;
    其中,所述存储器中存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述第二电子设备执行时,使得所述第二电子设备执行以下步骤:
    接收服务器发送的协同消息,所述协同消息用于指示所述第二电子设备执行第一关联任务组中的第二工作任务,所述第一关联任务组中还包括第一工作任务,所述第一工作任务的执行设备为第一电子设备;
    显示提示消息,所述提示消息用于提示用户同意在所述第二电子设备上执行所述第二工作任务;
    若检测到用户选择所述提示消息中的确认按钮,则开始执行所述第二工作任务;
    若检测到用户选择所述提示消息中的取消按钮,则隐藏所述提示消息。
  17. 根据权利要求16所述的电子设备,其特征在于,所述第二电子设备开始执行所述第二工作任务,包括:
    所述第二电子设备按照所述第二工作任务的执行进度开始执行所述第二工作任务;
    其中,所述第二工作任务的执行进度保存在所述第二电子设备中,或者,所述第二工作任务的执行进度携带在所述协同消息中。
  18. 根据权利要求16或17所述的电子设备,其特征在于,若检测到用户选择所述提示消息中的取消按钮,则所述第二电子设备还用于执行以下步骤:
    在预设时间后,若所述第一电子设备在执行所述第一工作任务,则再次显示所述提示消息。
  19. 根据权利要求16-18中任一项所述的电子设备,其特征在于,若检测到用户选择所述提示消息中的取消按钮,则所述第二电子设备还用于执行以下步骤:
    向所述服务器发送更新消息,以使得所述服务器响应所述更新消息删除所述第一关联任务组。
  20. 根据权利要求16-19中任一项所述的电子设备,其特征在于,所述第二电子设备还用于执行以下步骤:
    向所述服务器上报第二工作状态,所述第二工作状态用于指示所述第二电子设备 开始或结束执行一项工作任务。
  21. 一种服务器,其特征在于,包括:
    一个或多个处理器;
    存储器;
    通信模块;
    其中,所述存储器中存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述服务器执行时,使得所述服务器执行如权利要求1-6中任一项所述的设备协同方法。
  22. 一种设备协同系统,其特征在于,所述系统包括:如权利要求15所述的第一电子设备;如权利要求16-20中任一项所述的第二电子设备;以及如权利要求21所述的服务器。
  23. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在第一电子设备上运行时,使得所述第一电子设备执行如权利要求12所述的设备协同方法。
  24. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在第二电子设备上运行时,使得所述第二电子设备执行如权利要求7-11、13中任一项所述的设备协同方法。
  25. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在服务器上运行时,使得所述服务器执行如权利要求1-6中任一项所述的设备协同方法。
PCT/CN2022/102535 2021-06-30 2022-06-29 一种设备协同方法及电子设备 WO2023274329A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110741420.5 2021-06-30
CN202110741420.5A CN115550090A (zh) 2021-06-30 2021-06-30 一种设备协同方法及电子设备

Publications (1)

Publication Number Publication Date
WO2023274329A1 true WO2023274329A1 (zh) 2023-01-05

Family

ID=84691502

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/102535 WO2023274329A1 (zh) 2021-06-30 2022-06-29 一种设备协同方法及电子设备

Country Status (2)

Country Link
CN (1) CN115550090A (zh)
WO (1) WO2023274329A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110071855A (zh) * 2019-03-18 2019-07-30 深圳绿米联创科技有限公司 设备联动控制方法、装置、系统、网关及存储介质
CN111628916A (zh) * 2019-02-27 2020-09-04 华为技术有限公司 一种智能音箱与电子设备协作的方法及电子设备
US11012516B1 (en) * 2020-05-05 2021-05-18 Intelepeer System and methods for dynamically extending analytics in a cloud communications platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111628916A (zh) * 2019-02-27 2020-09-04 华为技术有限公司 一种智能音箱与电子设备协作的方法及电子设备
CN110071855A (zh) * 2019-03-18 2019-07-30 深圳绿米联创科技有限公司 设备联动控制方法、装置、系统、网关及存储介质
US11012516B1 (en) * 2020-05-05 2021-05-18 Intelepeer System and methods for dynamically extending analytics in a cloud communications platform

Also Published As

Publication number Publication date
CN115550090A (zh) 2022-12-30

Similar Documents

Publication Publication Date Title
CN110191442B (zh) 一种蓝牙连接方法、设备及系统
WO2021000808A1 (zh) 设备控制方法和设备
CN110166820B (zh) 音视频的播放方法、终端及装置
WO2021115007A1 (zh) 一种网络切换方法及电子设备
WO2021082829A1 (zh) 蓝牙连接方法及相关装置
WO2020132818A1 (zh) 无线短距离音频共享方法及电子设备
CN111369988A (zh) 一种语音唤醒方法及电子设备
CN113496426A (zh) 一种推荐服务的方法、电子设备和系统
CN108777859A (zh) 移动终端与穿戴设备间的数据处理方法、终端及存储介质
WO2020224447A1 (zh) 一种在联系人中添加智能家居设备的方法及系统
WO2021052204A1 (zh) 基于通讯录的设备发现方法、音视频通信方法及电子设备
WO2021036898A1 (zh) 折叠屏设备中应用打开方法及相关装置
CN110730114A (zh) 一种网络配置信息的配置方法及设备
WO2020056684A1 (zh) 通过转发模式连接的多tws耳机实现自动翻译的方法及装置
WO2022052791A1 (zh) 一种多媒体流的播放方法和电子设备
CN113821767A (zh) 应用程序的权限管理方法、装置和电子设备
CN111835907A (zh) 一种跨电子设备转接服务的方法、设备以及系统
CN114205336A (zh) 跨设备音频播放方法、移动终端、电子设备及存储介质
WO2022161077A1 (zh) 语音控制方法和电子设备
WO2020051852A1 (zh) 一种通信过程中信息的记录及显示方法及终端
WO2021043250A1 (zh) 一种蓝牙通信方法及相关装置
CN113365274A (zh) 一种网络接入方法和电子设备
CN114528581A (zh) 一种安全显示方法及电子设备
WO2020124447A1 (zh) 面向多卡的网络管理
WO2023274329A1 (zh) 一种设备协同方法及电子设备

Legal Events

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

Ref document number: 22832141

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE