WO2022100300A1 - 跨设备任务接力方法、装置、云平台及存储介质 - Google Patents

跨设备任务接力方法、装置、云平台及存储介质 Download PDF

Info

Publication number
WO2022100300A1
WO2022100300A1 PCT/CN2021/120717 CN2021120717W WO2022100300A1 WO 2022100300 A1 WO2022100300 A1 WO 2022100300A1 CN 2021120717 W CN2021120717 W CN 2021120717W WO 2022100300 A1 WO2022100300 A1 WO 2022100300A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
task
target device
state
relay
Prior art date
Application number
PCT/CN2021/120717
Other languages
English (en)
French (fr)
Inventor
张坤
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to EP21890828.3A priority Critical patent/EP4246393A4/en
Publication of WO2022100300A1 publication Critical patent/WO2022100300A1/zh
Priority to US18/196,439 priority patent/US20230281037A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • G06F9/4856Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06316Sequencing of tasks or work
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5044Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering hardware capabilities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/109Time management, e.g. calendars, reminders, meetings or time accounting

Definitions

  • the embodiments of the present application relate to the field of task relay, and in particular, to a cross-device task relay method, device, cloud platform, and storage medium.
  • the embodiments of the present application provide a cross-device task relay method, device, cloud platform, and storage medium.
  • the technical solution is as follows:
  • an embodiment of the present application provides a cross-device task relay method, the method is applied to a cloud platform, and the method includes:
  • the first device state at least includes a target task currently running by the first device
  • the target device In response to the first device and the target device satisfying the first condition, the target device is controlled to continue executing the target task.
  • an embodiment of the present application provides a cross-device task relay device, the device is applied to a cloud platform, and the device includes:
  • a first acquiring module configured to acquire a first device state of a first device, where the first device state at least includes a target task currently running by the first device;
  • a first determining module configured to determine a target device according to the first device state, where the target device is different from the first device
  • a first control module configured to control the target device to continue to perform the target task in response to the first device and the target device satisfying a first condition.
  • an embodiment of the present application provides a cloud platform, the cloud platform includes a processor and a memory, and at least one piece of program code is stored in the cloud platform, and the program code is loaded and executed by the processor to implement the above aspect The described cross-device task relay method.
  • an embodiment of the present application provides a computer-readable storage medium, where at least one piece of program code is stored in the computer-readable storage medium, and the program code is loaded and executed by a processor to implement the above aspects.
  • Cross-device task relay method
  • an embodiment of the present application provides a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the server reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the server performs the cross-device task relay method provided in various optional implementations of the above aspects.
  • FIG. 1 shows a schematic diagram of an implementation environment shown by an exemplary embodiment of the present application
  • FIG. 2 shows a flowchart of a cross-device task relay method provided by an exemplary embodiment of the present application
  • FIG. 3 shows a flowchart of a cross-device task relay method provided by another exemplary embodiment of the present application
  • FIG. 4 shows a schematic diagram of a process of performing video playback across devices according to an exemplary embodiment of the present application
  • FIG. 5 shows a flowchart of a cross-device task relay method provided by another exemplary embodiment of the present application
  • FIG. 6 shows a flowchart of a cross-device task relay method provided by another exemplary embodiment of the present application
  • FIG. 7 shows a flowchart of a cross-device task relay method provided by another exemplary embodiment of the present application.
  • FIG. 8 shows a schematic diagram of a process of triggering task relay by the first device according to an exemplary embodiment of the present application
  • Fig. 9 shows the process schematic diagram of target device triggering task relay
  • FIG. 10 shows a structural block diagram of a cross-device task relay device provided by an embodiment of the present application
  • FIG. 11 shows a structural block diagram of a server provided by an embodiment of the present application.
  • FIG. 1 shows a schematic diagram of an implementation environment shown by an exemplary embodiment of the present application, where the implementation environment includes a first device 101 , a cloud platform 102 and at least one second device 103 .
  • the first device 101 is a device with a data transmission function, which may be a portable electronic device such as a smart phone, a tablet computer, a smart speaker, a smart watch, and an e-book reader.
  • the first device 101 may send its own device state (first device state) to the cloud platform 102 in real time, so that the cloud platform 102 can retrieve data from at least one second device 103 according to the first device state of the first device 101
  • a target device is determined for automatically executing the current running task of the first device in the target device.
  • the first device state may be: a running application, a task being executed (playing music, playing a video, playing an e-book, etc.), and the like.
  • the first device 101 is connected to the cloud platform 102 in a wired or wireless manner.
  • the cloud platform 102 is a cloud server corresponding to the first device 101 and the second device 103 .
  • the cloud platform 102 is a device having functions such as receiving, storing, and analyzing the device status transmitted by each device, and controlling each device to perform cross-device task relay. It can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, intermediate Cloud servers for basic cloud computing services such as software services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms.
  • CDN Content Delivery Network
  • the cloud platform 102 can receive the first device state sent by the first device 101 in real time, and analyze the second device 103 that can be used for task relay according to the first device state.
  • the cloud platform 102 may synchronize the current running task sent by the first device 101 to the second device 103 during the task relay process.
  • the cloud platform 102 and the at least one second device 103 are connected in a wired or wireless manner.
  • the second device 103 is a device with a task relay function. It can be a smart phone, smart speaker, tablet, smart TV, e-book reader, personal computer, etc.
  • the second device 103 may receive a task relay instruction sent from the cloud platform 102, where the task relay instruction at least includes the task to be relayed (ie, the current running task in the first device 101), and continues on the second device The current running task is executed in 103 .
  • first device 101 and the second device 103 are different devices, and the first device 101 and the second device 103 need to have the same user account, where the user account may be an account issued by the cloud platform 102 or It is another third-party application account, which is not limited in this embodiment of the present application.
  • FIG. 2 shows a flowchart of a method for cross-device task relay provided by an exemplary embodiment of the present application.
  • the embodiment of the present application is described by taking the method applied to the cloud platform shown in FIG. 1 as an example. include:
  • Step 201 Acquire a first device state of a first device, where the first device state at least includes a target task currently running on the first device.
  • the first device state may include the target task currently running by the first device, the task progress of the current target task, the current location information, etc.
  • the embodiment of the present application does not limit the type of information contained in the first device state.
  • the first device state at least includes state information required by the cloud platform to perform cross-device task relay.
  • the first device sends the target task currently running by the first device to the cloud platform in real time, and correspondingly, the cloud platform obtains the first device state of the first device.
  • the target task may be a video playing task, an e-book reading task, an email reply task, an e-book playing task, a song playing task, a game task, etc.
  • the specific content of the target task is not constituted in the embodiment of the present application. limited.
  • the information such as the state of the first device may involve the user's private information, in order to prevent the first device from sending the state information involving the user's private information to the cloud platform, resulting in the leakage of the user's private information, in a possible way.
  • data desensitization processing may be performed on the captured first device state, and then the first device state after data desensitization processing is sent to the cloud platform.
  • the user may set a task in the first device that allows uploading of device status.
  • a task in the first device that allows uploading of device status.
  • the user's private information may be involved, and uploading the email task to the cloud platform is not allowed.
  • video Tasks such as tasks that do not involve user private information, allow video tasks to be uploaded to the cloud platform; or set target applications that allow uploading of device status, for example, setting video applications, reading applications and music playing applications can be uploaded
  • the target task is sent to the cloud platform, but applications that involve user privacy information such as electronic banking are not allowed to upload the target task to the cloud platform.
  • the first device sends the first device state to the cloud platform in real time, it will obviously increase the power consumption of the first device and affect the battery life of the first device. Therefore, in order to reduce the power consumption of the first device, in a possible implementation manner , a trigger control is set in the first device. If the user needs or prejudges that he may have the need to perform the same task across devices, he can click the trigger control, and the corresponding first device receives the click operation on the trigger control and sends the The cloud platform sends the first device state; optionally, the first device sends the first device state to the cloud platform when detecting that there is a target task running.
  • the first device If the first device is in a standby state, or there is no target task running in the foreground, then There is no need to send the first device status to the cloud platform; optionally, the first device provides multiple cross-device task options, and the user can pre-select at least one of them.
  • the first device detects that there is a pre-selected target running in the foreground
  • the first device state is sent to the cloud platform; optionally, the target task may also be a task set by the user to allow uploading of the device state.
  • the first device in order to further reduce the power consumption of the first device, it may be set to send the state of the first device to the cloud platform every preset time period, for example, every 30 minutes, or when detecting the state of the first device.
  • the device state changes, the updated first device state is sent to the cloud platform.
  • the cloud platform may need to process first device states uploaded by several first devices.
  • the cloud platform associates and stores the first device and its corresponding first device state.
  • Step 202 Determine a target device according to the state of the first device, where the target device is different from the first device.
  • the first device and the target device are different devices.
  • the first device and the target device are both pre-registered in the cloud
  • the device registered in the platform, or the first device and the target device are both devices authorized by the same user to perform task relay; or the target device and the first device are associated devices; or the first device and the target device are devices with the same user account
  • the user account can be created by the cloud platform for the user; or authorized by the same third-party application.
  • the cloud platform associates and stores task relay devices corresponding to the same user account, wherein the task relay devices include a first device and at least one second device. After the state of the first device, obtain the user account information corresponding to the first device, search for the corresponding at least one second device (a device other than the first device in the task relay device) from the cloud platform according to the user account information, and then retrieve the corresponding user account information from the cloud platform. A target device that can perform cross-device task relay is determined in the second device.
  • the cloud platform may determine the second device that can perform the target task as the target device according to the target task included in the state of the first device, for example, if the target task For video playback, select the second device that can perform video playback from the second device as the target device; or, the cloud platform can prejudge the location of the relay device according to the location information contained in the state of the first device, and will be located in the The second device at the location is determined as the target device; or, the user can preset the relay priority of at least one second device, and the cloud platform obtains the relay priority, and then determines the relay priority from the at least one second device correspondingly according to the relay priority out the target device.
  • the cloud platform plays an intermediate role of analyzing the state of the first device and pre-coordinated and organizing the target device according to the state of the first device.
  • the cloud platform receives the first device state sent by the first device, and determines the target device according to the first device state.
  • Step 203 In response to the first device and the target device meeting the first condition, the target device is controlled to continue to perform the target task.
  • the cloud platform after the cloud platform determines the target device according to the state of the first device, it can directly synchronize the target task in the first device to the target device, that is, the cloud platform obtains the target task currently running in the first device, And control the target device to execute the target task synchronously.
  • a first condition ie, a task relay condition
  • the cloud platform can send the The target device sends a task relay instruction, so that the target device executes the target task according to the task relay instruction.
  • the first condition is preset by the user, or is set by default by the system.
  • the first condition may be that when it is detected that the distance between the first device and the target device is relatively close, indicating that the user may need to perform a cross-device task relay, the target task can be synchronized to the target device; or when the first device is detected
  • the target task in is paused, indicating that the user may want to replace the device to continue the operation, then control the target device to automatically execute the target task; or detect that the first device and the target device are connected to the same network, for example, the same wireless network, indicating that the first device is connected to the same network. It is close to the target device and can control the target device to perform the target task.
  • the first device and the target device are connected through the cloud platform, so that the cloud platform can pre-coordinate and organize the target devices that can be used for cross-device task relay according to the obtained device status of the first device , and after the first condition is satisfied, the target device is automatically controlled to execute the target task corresponding to the first device.
  • the cross-device task relay method provided in the embodiment of the present application can realize the same task on different devices without the user's perception.
  • the relay execution in the system reduces the process required for the relay execution of the same task in different devices, reduces the operational complexity of executing tasks across devices, thereby improving the efficiency of task relay across devices, while avoiding device replacement. Sexual interruption.
  • determining the target device according to the first device state includes:
  • the target device is determined from at least one second device, the second devices correspond to the task type of the respective supported tasks, and the task type of the task supported by the target device matches the target task type.
  • the first device state further includes position change information corresponding to the first device
  • Determining the target device according to the first device state includes:
  • the location change information determine the target location indicated by the location change information
  • the target device is determined from at least one second device, the second devices correspond to their respective locations, and the target device is located at the target location.
  • the first device state further includes position change information corresponding to the first device
  • the location change information determine the target location indicated by the location change information
  • a target device is determined from the at least one second device, the target device is located at the target location, and the task type of the task supported by the target device matches the target task type.
  • the method before determining the target device according to the first device state, the method further includes:
  • the step of determining the target device according to the first device state is performed.
  • the first condition includes any one of a distance condition and a network condition
  • controlling the target device to continue to perform the target task including:
  • controlling the target device to continue to perform the target task further includes:
  • control target device In response to receiving the confirmation operation for the task relay prompt, the control target device continues to execute the target task.
  • control the target device to continue to perform the target task including:
  • the task relay instruction includes the target task and the current execution progress, and the target device is used to execute the target task according to the current execution progress.
  • the method further includes:
  • the second device state includes at least one of a system state, a network state, and a power state
  • the second condition comprising at least one of a system condition, a network condition and a power supply condition A sort of;
  • a device state update instruction is sent to the target device, and the target device is configured to update the state according to the device state update instruction.
  • the execution progress of the same task in the original device needs to be considered. If only the target task is automatically executed in the target device, the user's original The execution progress of the task in the device (the first device), obviously, the change of the device will affect the continuity of the relay task. Therefore, in a possible implementation, when the task is relayed, obtain the target task in the first device. The current execution progress is sent to the target device, so that the target device can be automatically updated to the execution progress, thereby ensuring the execution continuity of the same task in different devices.
  • FIG. 3 shows a flowchart of a method for cross-device task relay provided by another exemplary embodiment of the present application, and this embodiment of the present application is applied to the method shown in FIG. 1 .
  • the method includes:
  • Step 301 Acquire a first device state of a first device, where the first device state at least includes a target task currently running by the first device.
  • Step 302 Obtain the target task type corresponding to the target task.
  • the target task type corresponding to the target task is used as the filter condition for screening out the target device from the plurality of second devices.
  • the target task type is associated with the target task. If the target task is a video playback task, the corresponding target task type is a video playback class; if the target task is a music playback task, the corresponding target task type is a music playback class; If the task is a text input task, the corresponding target task type is a text input class; if the target task is an e-book reading task, the corresponding target task type is an electronic reading class.
  • the embodiment of the present application does not limit the target task type.
  • Step 303 Determine a target device from at least one second device according to the target task type, the second devices correspond to the task types of the respective supported tasks, and the task types of the tasks supported by the target device match the target task type.
  • different second devices correspond to the task types of the tasks they support.
  • smart TVs can support video playback tasks, music playback tasks, etc.
  • smart speakers can support music playback tasks, etc.
  • tablet computers can support video playback tasks, music playing tasks, e-book reading tasks, etc.
  • the target device when determining the target device, it needs to ensure that the target device can support the task of executing the target task type. Therefore, in a possible implementation, it can be determined from at least one second device according to the target task type. target device.
  • a device capable of video playback is correspondingly selected from at least one second device as the target device, such as a (smart) TV, a projector, a tablet computer etc.;
  • the target task type is music playback, the corresponding device that can play music is selected from at least one second device as the target device, such as smart speakers, audio equipment, TV, etc.;
  • the target task type is electronic
  • a device that can perform electronic reading is selected from at least one second device as a target device, such as a smart phone, an electronic reader, a tablet computer, and the like.
  • the device relay priority is set.
  • the target device is determined from a plurality of candidate relay devices according to the device relay priority.
  • the method for determining the target device from the candidate relay devices according to the relay priority of the device may include the following steps:
  • the candidate relay device is a second device that supports the target task type; illustratively, if the target task type is video playback, the second device includes: a smart TV, a projector, a tablet computer, a smart speaker, and an e-reader, wherein, Smart TVs, projectors, and tablet computers all support this target task type, and correspondingly, smart TVs, projectors, and tablet computers are determined as candidate relay devices.
  • the device relay priority can be divided according to different target task types. For example, for video playback, the device relay priority is: Smart TV > Tablet PC > Smartphone; for music playback, the device relay priority is: Smart speakers>audio equipment>smartphone; for e-reading, the device relay priority is: e-book reader>tablet>smartphone.
  • the user can set the relay priorities of the devices corresponding to different task types according to their own needs, and submit them to the cloud platform for storage, so that when it is determined that there are at least two candidate relay devices that support the corresponding target task types
  • the device relay priority corresponding to the target task type can be obtained, and the target device can be determined from a plurality of candidate relay devices according to the device relay priority.
  • a candidate relay device with the highest device relay priority is determined as the target device.
  • the target task type is video playback
  • smart TV For mobile phones, projection equipment, etc.
  • the relay priority of the above-mentioned candidate relay devices in the target task type of video playback class is obtained as follows: Smart TV> Projection device>tablet>smartphone, visible, the smart TV has the highest priority, and the smart TV is correspondingly used as the target device.
  • the candidate relay device with the highest device priority cannot perform the task relay, for example, it is not powered on, the battery is low, the network status is poor, or it is performing other tasks (cannot perform multiple tasks at the same time), etc.
  • Step 304 in response to the first device and the target device satisfying the first condition, obtain the current execution progress of the target task in the first device.
  • this is achieved by synchronizing the current execution progress of the target task in the first device, that is, the cloud platform obtains the current execution of the target task in the first device. progress, and the current execution progress is sent to the target device, so that the task execution progress in the two devices is the same, thereby ensuring the continuity of task delivery in different devices.
  • FIG. 4 which shows a schematic diagram of the process of video playback across devices shown in an exemplary embodiment of the present application
  • the first A device 410 plays video A in the video playback interface 411
  • the total playing time of video A is 40:20
  • video A is played at 13:20
  • the 13:20 is correspondingly determined as the target task of playing video A
  • the current execution progress of the target task is sent to the cloud platform 420, and correspondingly, the cloud platform 420 obtains the current execution progress corresponding to the target task.
  • Step 305 Send a task relay instruction to the target device, where the task relay instruction includes the target task and the current execution progress, and the target device is used to execute the target task according to the current execution progress.
  • the task relay instruction is used to control the target device to continue to execute the target task, that is, after receiving the current execution progress of the target task sent by the first device, the cloud platform carries the target task and the target task in the task relay instruction.
  • the corresponding current execution progress is sent to the target device, so that the target device obtains the task that needs to be relayed (ie, the target task), automatically adjusts the target task to the current execution progress, and continues to execute the target task from the current execution progress.
  • the target device after the target device receives the task relay instruction, and adjusts the target task to the current execution progress, it can suspend to the current execution progress until it receives the continue execution instruction for the target task, then from the current execution progress Continue with the target task.
  • the continuing execution instruction may be generated by a user's triggering operation on the target device.
  • the cloud platform 420 obtains that the playback progress (current execution progress) of video A in the first device 410 is 13:20, and the task relay instruction carries the target task and the current execution progress "Video A+13:20", and send the task relay command carrying "Video A+13:20" to the target device 430 (smart TV), then the corresponding smart TV will search for the video after receiving the task relay command.
  • A open the video playback interface 431 corresponding to the video A, and adjust the playback progress of the video A to 13:20, so that the video A can be played from 13:20 in the future.
  • the smart TV adjusts the playback progress of video A to 13:20, it can pause playback until it receives a playback instruction for video A, and starts playback at 13:20 of the current playback progress.
  • the target device by acquiring the target task type of the target task (task to be relayed), the target device is determined from a plurality of second devices to ensure that the target device can support the execution of the target task, thereby ensuring the smooth execution of the subsequent task relay.
  • the target device by obtaining the current execution progress of the target task from the first device after satisfying the task relay condition, and issuing the task execution instruction to the target device, the target device can continue to execute the target task according to the current execution progress, avoiding the user It is also necessary to manually adjust the execution progress of the target task in the target device, thereby maintaining the continuity of the relay of the target task between different devices.
  • the target device can also be determined according to the target location indicated by the position change information of the first device.
  • steps 302 and 303 may be replaced by steps 501 and 502 .
  • Step 501 Determine a target location indicated by the location change information according to the location change information.
  • the first device state also includes position change information corresponding to the first device, and the position change information may be the position coordinate change information of the first terminal within a preset time period, for example, the first terminal is real-time within the preset time period. If the current position coordinates are transmitted to the cloud platform, the corresponding cloud platform receives the current position coordinates within the preset time period, and according to the change of the position coordinates, the possible travel destination of the user holding the first device can be analyzed.
  • the cloud platform may pre-obtain multiple locations frequently visited by the user, such as home, company, or school, and store them in association with the user's account in advance.
  • the first device When the user returns home from the company, the first device will record the If the location coordinate information is sent to the cloud, the cloud platform can determine that the moving direction of the first device is from the company to home according to the location change information within a period of time, and the corresponding target location is home.
  • the location change information may also include information on the means of transportation that the user takes.
  • the corresponding A device can upload traffic information such as the user's subway or bus to the cloud platform, and the cloud platform analyzes the user's entry into the subway station and the subway route corresponding to the subway station, or analyzes the bus station and bus route the user takes, so as to determine the user to take the subway. or the destination to be reached by the bus.
  • Step 502 Determine a target device from at least one second device according to the target location, the second devices correspond to their respective locations, and the target device is located at the target location.
  • different second devices correspond to their respective locations or locations.
  • the smart TV is located at home
  • the projector is located in the company
  • the desktop computer is located in the company
  • the notebook computer is located at home.
  • the target location indicated by the location change information of the first device is used as the filter condition, that is, the target device needs to be located in the location change. at the target location indicated by the message.
  • relay devices when multiple relay devices (second devices) are stored in the cloud platform, their corresponding location information needs to be stored at the same time. home), computer A (company), computer B (home)”, etc.; or directly mark the location coordinates corresponding to the second device next to it, such as: “TV (111, 112), computer B (101, 187), etc. .
  • the second device located in the "home” may be determined as the target device, For example, if the smart TV is located at home, the smart TV is correspondingly determined as the target device.
  • the device relay priority of different second devices in the location then correspondingly, when determining the target device, first determine at least one candidate device from the second device according to the target location, and if there are many candidate devices that match the target location, obtain The device relay priority of each second device in the target location, and the second device with the highest device relay priority is determined as the target device.
  • the second devices corresponding to the target location include: a smart TV, a tablet computer, and a laptop computer, and the device relay priority of each second device is : Smart TV > Laptop > Tablet PC, select the second device with the highest relay priority as the target device, that is, determine the smart TV as the target device.
  • the second device with the highest device priority cannot perform task relay, for example, it is not powered on, the power is low, the network status is poor, or it is executing other tasks (cannot execute multiple tasks at the same time), etc.
  • Select the second device at the next level as the target device according to the device relay priority For example, if the smart TV cannot perform task relay, the laptop computer at the next level is used as the target device, and so on until the target device is determined.
  • the cloud platform can analyze the target location where the target device should be located according to the location change information, so that the target device can be screened according to the target location, thereby The target device is made consistent with the moving destination of the first device, so as to meet the task relay requirement in a specific moving scenario.
  • the target device is only determined according to any one of the target task type or the target location, when the user is in a mobile state, for example, the user is on his way home, if the target device is determined only according to the target task type
  • the target device may result in the determined target device not being located at home (that is, not at the target location), but at other locations, resulting in the need to switch the target device; or only determining the target device based on the target location may result in the determined target device
  • the device is not capable of executing the target task, that is, it does not meet the target task type. Therefore, in order to improve the accuracy of determining the target device, in a possible implementation, the target location and target task type are used as comprehensive screening conditions, from at least A target device is determined in a second device.
  • step 303 may further include the following steps 303A and 303B.
  • Step 303A Determine the target location indicated by the location change information according to the location change information.
  • the target device needs to be comprehensively determined according to the two conditions of the target location and the target task type.
  • the first device needs to report the position change information corresponding to the first device to the cloud platform, and the corresponding target task
  • the cloud platform determines the target location indicated by the location change information, and then jointly determines the target device based on the target location and the target task type.
  • the target task type may be determined by the cloud platform based on the target task uploaded by the first device, or the first device directly uploads the target task and the target task type corresponding to the target task to the cloud platform, and the corresponding cloud platform obtains the target task type.
  • the target task type may be determined by the cloud platform based on the target task uploaded by the first device, or the first device directly uploads the target task and the target task type corresponding to the target task to the cloud platform, and the corresponding cloud platform obtains the target task type.
  • the target task type may be determined by the cloud platform based on the target task uploaded by the first device, or the first device directly uploads the target task and the target task type corresponding to the target task to the cloud platform, and the corresponding cloud platform obtains the target task type.
  • the target task type may be determined by the cloud platform based on the target task uploaded by the first device, or the first device directly uploads the target task and the target task type corresponding to the target task to the cloud platform, and the corresponding cloud platform obtains the target task type.
  • Step 303B Determine a target device from at least one second device according to the target location and the target task type, the target device is located at the target location, and the task type of the task supported by the target device matches the target task type.
  • the cloud platform obtains the target task currently running on the first device, determines the target task type corresponding to the target task (task to be relayed), and obtains the first The location change information corresponding to the device, determine the target location indicated by the location change information, and use the target task type and target task as the comprehensive screening conditions for determining the target device, that is, the target device not only needs to support the target task type corresponding to the target task, but also needs to at the target location.
  • the target task type is video playback
  • the second device matching the target task type includes "smart TV, tablet computer, smart phone, projection device, desktop Computers, e-book readers, smart speakers, and audio equipment", among which, smart TVs, e-book readers, and smart speakers are located at home; projection equipment, audio equipment, and tablet computers are located in companies; smartphones are carried around, according to "Home + Video” "Playing class” is used as a filter condition to filter multiple second devices, and it can be determined that the target device is a smart TV.
  • the target device may be determined from multiple candidate relay devices according to preset relay priorities of the devices.
  • the method for determining the target device from a plurality of candidate relay devices according to the relay priority of the device may refer to the above embodiment, which will not be repeated in this embodiment.
  • the cloud platform uses the target task type and target location as comprehensive screening conditions, and determines the target device from the second device, so that the target device can not only support the target task operation, but also be located in the place where the user expects to perform the task relay. location, thereby improving the accuracy of determining the target device and avoiding the cumbersome task relay caused by the need to switch the target device.
  • the cloud platform plays the role of coordinating the target device in advance in the cross-device task relay scenario, the cloud platform needs to accurately estimate whether the task currently running on the first device needs to be relayed, so as to determine the timing of whether to perform the task relay. , in a possible implementation manner, the cloud platform determines whether the target task needs to be relayed across devices by analyzing whether the target task arrives at the target location is completed according to the first device state provided by the first device.
  • FIG. 6 shows a flowchart of a cross-device task relay method provided by another exemplary embodiment of the present application, and this embodiment of the present application is applied to the method shown in FIG. 1 .
  • the method includes:
  • Step 601 Acquire a first device state of a first device, where the first device state at least includes a target task currently running by the first device and position change information corresponding to the first device.
  • the first device not only needs to upload the currently running target task to the cloud platform, but also needs to upload the position change information, that is to say, the first device state needs to include the target task and position change information, so that the cloud platform can obtain the target task and position change information.
  • the device to be relayed can be determined based on the target task, the target location can be obtained by analysis based on the position change information, and then it is estimated whether the user needs to perform task relay.
  • the location change information may also be used to determine the target device, and the location change information may include real-time location information of the first device.
  • the target task can be uploaded at the same time as the position change information, or the target task can be uploaded separately from the position change information.
  • the location information of the first device will change with time, and during the change of the location information of the first device, the target task running in the first device may not change, If the target task is carried while the position change information is reported, it will obviously lead to repeated reporting of the target task. Therefore, in a possible implementation, only the position change information is reported in real time when the target task has not changed. When the task sending is changed, the changed target task and the current position change information will be uploaded at the same time.
  • Step 602 Obtain the first duration required for the target task to be executed in the first device.
  • the target task For the scenario of task relay across devices, only if the target task cannot be executed in the first device, it needs to continue to be executed in the target device. Therefore, in a possible implementation, it is necessary to obtain the target task in the first device.
  • the time required to complete the execution ie, the first time
  • the time required to complete the execution is combined with the corresponding position change information to predict whether the target task needs to be executed across devices.
  • the first duration in a possible implementation, it may be determined according to the total execution duration required by the target task and the current execution duration of the target task, that is, the difference between the total execution duration and the current execution duration is first time.
  • the first device is playing video A
  • the current video playback progress corresponding to this video A is 13:50
  • the total video duration corresponding to this video A is 01:20:50
  • the corresponding The first duration is the difference between the total video duration and the current video playback progress, which is 1 hour and 7 minutes.
  • Step 603 Determine a second time period required to reach the target location according to the location change information.
  • the cloud platform analyzes the position change uploaded by the first device. information, determine the target location indicated by the position change information, and the vehicle or moving speed indicated by the location change information, wherein, the method of determining the target location and the vehicle can refer to the above embodiment, and this embodiment will not repeat it here .
  • the cloud platform can estimate the corresponding moving speed according to the displacement formula according to the position coordinate information of the first device received within a preset time period.
  • the second time period for the vehicle to reach the target location can be determined according to the running speed of the vehicle. Speed, target location, and current location, and estimate the second time required to reach the target location from the current location.
  • the cloud platform can estimate the movement speed of the user (the first device) according to the change of the position information in the preset time period, and then according to the current position and the target location uploaded by the first device, Estimate the second time it takes to get from the current location to the target location.
  • the second duration required to reach the destination is 30 minutes.
  • Step 604 in response to the first duration being greater than the second duration, determine a target device according to the first device state, where the target device is different from the first device.
  • the conditions for judging whether the target task needs to be executed across devices are: judging whether the target task can be executed and completed when it reaches the target location, then the corresponding relationship needs to be compared between the first duration and the second duration. If the first duration is greater than the second duration, Indicates that the target task cannot be executed and completed when it reaches the target location, and it may be necessary to execute the target task across devices. If the first duration is less than the second duration, it means that the target task can be executed and completed before reaching the target location, and there is no need to execute the target task across devices.
  • the first duration is 1 hour and 7 minutes
  • the second duration is 30 minutes
  • the first duration is greater than the second duration
  • Video A if the first duration is 20 minutes, the second duration is 30 minutes, and the first duration is less than the second duration, it means that video A can be played before reaching the target location, and there is no need to play video A across devices.
  • the cloud platform needs to coordinate multiple second devices in advance, and determine the target device according to the state of the first device to relay the subsequent target tasks. Prepare.
  • the cloud platform can send a data reporting instruction to the first device, and the corresponding first device can continue to report the state of the first device to Cloud platform, the cloud platform continues to estimate whether the first device has the requirement to perform the target task across devices.
  • Step 605 Acquire a second device state corresponding to the target device, where the second device state includes at least one of a system state, a network state, and a power state.
  • the target device determines the After the target device is output, pre-communication is first performed with the target device to obtain the second device state corresponding to the target device, so as to determine whether the target device satisfies the second condition, that is, the task execution condition, according to the obtained second device state.
  • the second device state may include a system state, a network state, a power supply state, and the like, and the embodiment of the present application does not limit the specific content of the second device state.
  • the system status can be the system version information of the target device
  • the network status can refer to whether the target device is connected to the network
  • the network status corresponding to the connected network for example, the network speed
  • the power status can refer to the current power of the target device, whether it is in Charging status, whether it is in power saving mode, etc.
  • the cloud platform may send a pre-communication instruction to the target device, and after receiving the pre-communication instruction, the corresponding target device sends its corresponding second device state to the cloud platform.
  • the target device may not be connected to the Internet, and the corresponding target device may not be able to receive the pre-communication command sent by the cloud platform. If the cloud platform sends the pre-communication command to the target device, the preset time If no response from the target device is received within the segment, it is determined that the target device does not meet the second condition (task relay condition), and the target device can be re-selected from other second devices, for example, selecting a candidate for the second level of device relay priority The device acts as a target device and re-pre-communicates with that target device.
  • the second condition task relay condition
  • Step 606 in response to the second device state satisfying the second condition, and the first device and the target device satisfying the first condition, control the target device to continue to execute the target task.
  • the second condition may include at least one of a system condition, a network condition, and a power supply condition.
  • the system condition may be: the system state of the target device is in the latest system version, or the target device does not have a system version update requirement;
  • the network condition may be: the target device is in a networked state, or the target device is in a wireless network connection state, Or the network speed of the target device is higher than the network speed threshold;
  • the power condition can be: the remaining power of the target device is higher than the power threshold; or the target device is not in the power saving mode, or the target device is in a charging state, etc.
  • the network speed threshold may be 1.5M/s, and the power threshold may be 40%.
  • different target tasks may have different requirements for network status and power status, for example, video tasks have higher requirements on network status and power status, while music playback tasks have lower requirements on network status and power status.
  • different second conditions may also be set for different target task types.
  • the corresponding power condition corresponding to the video task may be: the remaining power of the target device is higher than the first power threshold.
  • the power condition corresponding to the music playing task may be: the remaining power of the target device is higher than the second power threshold, and the first power threshold is higher than the second power threshold.
  • the second charge threshold may be 40%.
  • the second condition may also include that the target device is in an idle state, because the target device needs to perform the target task, if the target device is playing a video, and the target task (to-be-relayed task) is also a video playback task, if the target device is playing a video Executing the target task in the device will obviously affect the running state of the target device. Therefore, in a possible implementation manner, the cloud platform obtains the running state of the target device. If the target device does not run other tasks or is in an idle state, It means that the second condition is satisfied.
  • the cloud platform determines whether the system state of the target device is the latest system version by comparing the current system version information corresponding to the target device with the latest system version information. If it is the latest system version, it determines that there is no need to update the system before executing the target task. , if it is not the latest system version, in order to avoid the need to update the system before the subsequent execution of the target task, send a system update command to the target device in advance to ensure that the system update is completed before the target task is executed; optional, if it is not the latest system version , you can also select other available devices as the target device to perform the target task relay.
  • the cloud platform obtains the network status of the target device, for example, the network type connected to the target device: wireless network, 4G/5G network, wireless hotspot, etc.
  • the network type is not limited, but the target device connected to the wireless network is preferentially used; if the network status is the network speed corresponding to the target device, set There is a network speed threshold, that is, the target device that is greater than or equal to the network speed threshold meets the task execution conditions.
  • the network speed threshold is 1.5M/s.
  • the target device For power conditions, if the target device is in the power connection state, it means that the target device meets the power conditions; or the cloud platform obtains the remaining power of the target device and compares the relationship between the remaining power and the power threshold, if the remaining power corresponding to the target device is greater than the power If the threshold is set, the corresponding target device satisfies the power conditions.
  • the power threshold can be set by the user and uploaded to the cloud platform, or the default value can be used, for example, the power threshold is 40%.
  • the target device if the second device state of the target device satisfies at least one of the above-mentioned second conditions (task execution conditions), it means that the target device can be used to execute the target task, and the corresponding After the first device and the target device satisfy the first condition (task relay condition), the target device is controlled to continue to execute the target task.
  • Step 607 in response to the second device state not meeting the second condition, send a device state update instruction to the target device, and the target device is configured to update the state according to the device state update instruction.
  • the cloud platform may send a device state update instruction to the target device, and correspondingly, the target device receives the device state After the update instruction, the specified device state is updated according to the device state update instruction.
  • the cloud platform can send a system update instruction to the target device, and correspondingly, after receiving the system update instruction sent by the cloud platform, the target device can perform system update in advance, so that when the target task is executed subsequently The system has been updated to the latest system version.
  • the target device If the task execution condition is a network condition, if the target device is not connected to the wireless network, it can send a network switching command to the target device, and the corresponding target device can switch from the 4G network to the wireless network after receiving the network switching command.
  • the target device updates the corresponding state information according to the device state update instruction, correspondingly, if the updated device state information of the target device satisfies the task execution condition, it can continue to perform the subsequent determination of whether the first device and the target device meet the task relay.
  • the second device does not meet the second condition (task execution condition)
  • other second devices can be switched as the target device, and then select the one that satisfies the second condition.
  • the second device is used as the target device, and then the target task relay process is followed.
  • the device performs the target task multiple second devices are pre-coordinated, and the target device is determined from them, so as to prepare for the subsequent task relay; in addition, after the target device is determined, it is Find out whether the target device satisfies the task execution conditions, so as to ensure the normal execution of the target task in the target device.
  • the target device when the first device is close to the target device, the target device is controlled to perform the target task.
  • the distance between the first device and the target device can be determined.
  • the timing of executing the target task relay can also be determined by the network environment information corresponding to the first device and the target device (if the first device and the target device are connected to the same network, the target device and the first device are relatively close).
  • FIG. 7 shows a flowchart of a method for cross-device task relay provided by another exemplary embodiment of the present application, and this embodiment of the present application is applied to the method shown in FIG. 1 .
  • the method includes:
  • Step 701 Acquire a first device state of a first device, where the first device state at least includes a target task currently running on the first device.
  • Step 702 Determine a target device according to the state of the first device, where the target device is different from the first device.
  • step 701 and step 702 reference may be made to the above embodiments, and details are not described herein in this embodiment.
  • Step 703 Obtain first network environment information corresponding to the first device and second network environment information corresponding to the target device.
  • the network environment information may refer to a network name corresponding to a network to which the device is connected, or an Internet Protocol (IP) address corresponding to the network.
  • IP Internet Protocol
  • the cloud platform can determine whether the first device and the target device are relatively close by obtaining the network environment information corresponding to the first device and the target device respectively, thereby determining the timing for relaying the target task.
  • Step 704 in response to the matching of the first network environment information and the second network environment information, determine that the network conditions are satisfied, and control the target device to continue to perform the target task.
  • the network condition since the network condition is to determine whether the first device and the target device are close to each other, the network condition may include that the first device and the target device are connected to the same wireless network, or the first device is connected to a wireless hotspot corresponding to the target device, or The target device is connected to a wireless hotspot corresponding to the first device, and the like.
  • the target device when the first device and the target device are relatively close, the target device is set to execute the target task synchronously.
  • the network condition can be used as the task relay condition (the first condition), that is, when the network environment information corresponding to the first device and the target device respectively matches, for example, the first device and the target device are connected to the same network, it is determined that the first device and the target device meet the network conditions, and the target device is controlled to continue to execute target task.
  • the target device when the target device is connected to the wireless hotspot of the first device, or the first device is connected to the wireless hotspot corresponding to the target device, the corresponding first device and the target device also meet the network conditions, and the corresponding control target device continues. Execute the target task.
  • Step 705 Obtain the distance between the first device and the target device.
  • the distance between the first device and the target device can be intuitively used to determine that the first device and the target device are relatively close, and correspondingly, the cloud platform obtains the first position coordinates corresponding to the first device respectively. and the second position coordinates corresponding to the target device, thereby calculating the distance between the first device and the target device.
  • the first location coordinates of the first device are (x 1 , y 1 ), taking a plane map (for example, a navigation map) as an example, x 1 indicates that the first device is in the plane map y 1 represents the ordinate of the first device in the plane map, and the second position coordinate corresponding to the target device is (x 2 , y 2 ), where x 2 represents the abscissa of the target device in the plane map, y 2 represents the ordinate of the target device in the plane map, then the corresponding distance between the first device and the target device, where d represents the distance between the first device and the target device.
  • a plane map for example, a navigation map
  • the user can upload the position coordinates corresponding to each device to be relayed to the cloud platform in advance.
  • the cloud platform can obtain the corresponding position coordinates based on the target device, and then determine the first The distance between a device and the target device.
  • Step 706 in response to the distance being less than the distance threshold, determine that the distance condition is satisfied, and control the target device to continue to perform the target task.
  • the distance threshold may be set by the user, or a default value of the system may be adopted, for example, the distance threshold is 100m.
  • the distance between the first device and the target device when the distance between the first device and the target device is less than the distance threshold, it means that the distance between the first device and the target device is relatively close, and the distance condition in the first condition is satisfied, then the corresponding control target The device performs the target task.
  • the distance between the first device and the target device is 80m, which is less than the distance threshold of 100m, it means that the first device and the target device are relatively close, taking the user home as an example (the target device is located at home ), that is, when the user is about to arrive home, the corresponding target task needs to be performed in the target device, so that the user can directly continue the unfinished target task in the target device when he arrives home.
  • the cloud platform will prejudge whether the target task can be executed and completed according to the execution progress of the target task in the first device in advance, so as to determine whether the target device needs to be pre-coordinated.
  • task prompt information should also be sent to the first device to remind the user whether to perform the target task relay.
  • the following steps may also be included:
  • the cloud platform sends a task relay prompt to the first device, then correspondingly, the first device After receiving the task relay prompt sent by the cloud platform, the task relay prompt can be displayed on the current task interface to remind the user whether to perform cross-device task relay.
  • the content of the task relay prompt includes the target device (name), so as to remind the user which device to wake up as the target device.
  • a cancel control or a confirmation control is also displayed in the task relay prompt, so that the user can confirm whether to perform a cross-device task relay.
  • FIG. 8 it shows a schematic diagram of a process of triggering a task relay by the first device according to an exemplary embodiment of the present application.
  • the first device 800 is playing the video A in the video playback interface 801.
  • the first device 800 receives the task relay prompt sent by the cloud platform, and accordingly displays the task relay prompt 802 in the video playback interface 801, "Going home soon. "Wake up TV relay to play”, and a confirmation control 803 and a cancel control 804 are displayed in the task relay prompt.
  • a confirmation control 803 and a cancel control 804 are displayed in the task relay prompt.
  • only the cancel control 804 may be displayed in the task relay prompt (ie, the confirmation control 803 is not displayed).
  • the name of the candidate relay device can also be displayed in the task relay prompt.
  • the cloud platform not only feeds back the name of the target device to the user, but also provides more candidate relay devices for the user.
  • the device information of the candidate relay devices can be fed back to the first device, and the user can select which candidate relay device needs to perform the task relay.
  • control the target device In response to receiving the confirmation operation for the task relay prompt, control the target device to continue executing the target task.
  • the user needs to perform the target task relay through the target device indicated by the task relay prompt, he can click the confirmation control in the task relay prompt, and the corresponding cloud platform receives the confirmation operation for the task relay prompt.
  • the target device can be controlled to continue to perform the target task, that is, wake up the target device and execute the target task in the target device.
  • the task relay prompt can be in the form of a global prompt (toast), and the task relay prompt can be canceled after a preset time period.
  • the default user confirms the execution of the cross-device task relay, and the preset time period can be 5s.
  • the corresponding cloud platform receives the cancel operation for the task relay prompt, and determines that the user does not need to perform cross-device task relay, correspondingly, The cloud platform terminates operations such as waking up the target device and executing the target task in the target device.
  • the corresponding cloud platform when the user clicks the confirmation control 803 in the task relay prompt 802, the corresponding cloud platform receives the confirmation operation for the task relay prompt, and executes the subsequent task of waking up the TV and playing the video on the TV; if When the user clicks the cancel control 804 in the task relay prompt 802, the corresponding cloud platform receives the cancel operation of the task relay prompt, and terminates the subsequent task of waking up the TV and playing the video on the TV.
  • the confirmation control 803 is not displayed in the task relay prompt, correspondingly, if the cloud platform does not receive a cancellation operation for the task relay prompt within 5s, it will wake up the TV by default and play the video on the TV.
  • the task relay prompt can be in the form of a lock screen notification, and vibrate and sound prompts to remind the user in time.
  • the cloud platform receives a confirmation operation for the task relay prompt, the corresponding target device needs to be woken up, and executing the target task in the target device may include the following steps:
  • the cloud platform can send a task relay instruction to the target device, and then the corresponding target device first starts the target device after receiving the task relay instruction, That is, the target device is switched from the off state to the on state.
  • the target device may be in a screen-off state.
  • the cloud platform obtains the current execution progress corresponding to the target task from the first device, and sends the current execution progress and the target task to the target device. After receiving the above information, the corresponding target device, The target task can be executed, and the execution progress of the target task can be adjusted to the current execution progress.
  • the application program that plays the target video is opened in the background, and the application program Open the target video in , and adjust the playback progress of the target video to the playback progress in the first device, and during this process, the TV is always in a screen-off state.
  • the user may not perform the target task in the target device. For example, if the user has not reached the target location of the target device, the corresponding target device will synchronize the target task in the first device in real time. In the current task progress, only when it is perceived that the user needs to continue to perform the target task in the target device, the target task is continued to be executed in the target device.
  • the TV turns on the TV camera when the screen is off, and continuously captures the front-end image of the TV.
  • the user sits in front of the TV Analyze whether there is a target face in the collected front-end image.
  • the target face is the face corresponding to the user holding the first device. If it exists, it means that the user has arrived at home and needs to relay the target video on the TV. to switch the TV from the off-screen state to the on-screen state, and continue to play the target video from the current playback progress.
  • FIG. 9 it shows a schematic diagram of the process of triggering task relay by the target device.
  • the target device 900 smart TV
  • the target device 900 starts up, the front-end part switches to the screen-off state, and the back-end part updates the TV system (the update system process can be performed after receiving the task relay command before), and automatically open the application corresponding to the target task, find the video resource, and adjust the video to the execution progress in the first device; turn on the TV camera at the same time; when the TV camera recognizes the target face, the screen is turned off by The state is switched to the bright screen state, the current download speed of 234MB/s and the source of video A (the first device) are displayed in the current interface, and the playback progress of video A is 13:20 and the total playback time is 40:20; switch to After the screen is on, the video A is played in relay, that is, the video A starts to be played at 13:20 on the video playback interface 901 .
  • the relay is triggered by the first device, and when the first device receives the After the terminal confirms the task relay prompt, the target device will perform the subsequent task relay process.
  • the user only needs to perform few operations to realize the transfer of the target task between the first device and the target device, which simplifies the operation process of cross-device task relay.
  • FIG. 10 shows a structural block diagram of a cross-device task relay device provided by an embodiment of the present application.
  • the apparatus has the function of implementing the above method embodiments, and the function may be implemented by hardware or by executing corresponding software by the hardware.
  • the apparatus may include:
  • a first obtaining module 1001 configured to obtain a first device state of a first device, where the first device state at least includes a target task currently running by the first device;
  • a first determining module 1002 configured to determine a target device according to the first device state, where the target device is different from the first device;
  • the first control module 1003 is configured to control the target device to continue to perform the target task in response to the first device and the target device meeting a first condition.
  • the first determining module 1002 includes:
  • a first obtaining unit configured to obtain the target task type corresponding to the target task
  • a first determining unit configured to determine the target device from at least one second device according to the target task type, the second device corresponds to the task type of the task supported by each, and the task supported by the target device The task type of matches the target task type.
  • the first device state further includes position change information corresponding to the first device
  • the first determining module 1002 further includes:
  • a second determining unit configured to determine the target location indicated by the location change information according to the location change information
  • the third determining unit is configured to determine the target device from at least one second device according to the target location, the second devices correspond to their respective locations, and the target device is located at the target location.
  • the first device state further includes position change information corresponding to the first device
  • the first determining unit is also used for:
  • the position change information determine the target location indicated by the position change information
  • the target device is determined from at least one of the second devices, the target device is located at the target site, and the task type of the task supported by the target device is the same as that of the second device.
  • the target task type matches.
  • the device further includes:
  • a second acquiring module configured to acquire the first duration required for the target task to be executed in the first device
  • a second determining module configured to determine a second time period required to reach the target location according to the location change information
  • a third determining module configured to perform the step of determining a target device according to the first device state in response to the first duration being greater than the second duration.
  • the task relay condition includes any one of distance condition and network condition
  • the first control module 1003 includes:
  • a first control unit configured to acquire first network environment information corresponding to the first device and second network environment information corresponding to the target device; in response to the first network environment information and the second network environment information matching, determining that the network conditions are met, and controlling the target device to continue to perform the target task;
  • a second control unit configured to acquire the distance between the first device and the target device; in response to the distance being less than a distance threshold, determine that the distance condition is satisfied, and control the target device to continue executing the target Task.
  • the first control module 1003 further includes:
  • a first sending unit configured to send a task relay prompt to the first device, where the task relay prompt is used to remind whether to perform a cross-device task relay;
  • a third control unit configured to control the target device to continue executing the target task in response to receiving the confirmation operation for the task relay prompt.
  • the first control module 1003 includes:
  • a second acquiring unit configured to acquire the current execution progress of the target task in the first device
  • a second sending unit configured to send a task relay instruction to the target device, where the task relay instruction includes the target task and the current execution progress, and the target device is configured to execute the task relay according to the current execution progress target task.
  • the device further includes:
  • a third acquiring module configured to acquire a second device state corresponding to the target device, where the second device state includes at least one of a system state, a network state, and a power state;
  • a second control module configured to control the target device to continue executing the target in response to the first device and the target device satisfying the first condition in response to the second device state satisfying the second condition the steps of the task,
  • the second condition includes at least one of a system condition, a network condition and a power supply condition;
  • a sending module configured to send a device state update instruction to the target device in response to the second device state not meeting the second condition, and the target device is configured to update the state according to the device state update instruction.
  • the first device and the target device are connected through the cloud platform, so that the cloud platform can pre-coordinate and organize the target devices that can be used for cross-device task relay according to the obtained device status of the first device , and after the first condition is satisfied, the target device is automatically controlled to execute the target task corresponding to the first device.
  • the cross-device task relay method provided in the embodiment of the present application can realize the same task on different devices without the user's perception.
  • the relay execution in the system reduces the process required for the relay execution of the same task in different devices, reduces the operational complexity of executing tasks across devices, thereby improving the efficiency of task relay across devices, while avoiding device replacement. Sexual interruption.
  • FIG. 11 shows a structural block diagram of a server provided by an embodiment of the present application.
  • the server can be used to implement the cross-device task relay method performed by the cloud platform in the above embodiment. Specifically:
  • the server 1100 includes a central processing unit (Central Processing Unit, CPU) 1101, a system memory 1104 including a random access memory (Random Access Memory, RAM) 1102 and a read-only memory (Read-Only Memory, ROM) 1103, and a connection System memory 1104 and system bus 1105 of central processing unit 1101 .
  • the server 1100 also includes a basic input/output system (Input/Output system, I/O system) 1106 that helps to transfer information between various devices in the server, and is used to store the operating system 1113, application programs 1114 and other program modules 1115 of mass storage device 1107.
  • I/O system Basic input/output system
  • the basic input/output system 1106 includes a display 1108 for displaying information and input devices 1109 such as a mouse, keyboard, etc., for user input of information.
  • the display 1108 and the input device 1109 are both connected to the central processing unit 1101 through the input and output controller 1110 connected to the system bus 1105 .
  • the basic input/output system 1106 may also include an input output controller 1110 for receiving and processing input from a number of other devices such as a keyboard, mouse, or electronic stylus.
  • input output controller 1110 also provides output to a display screen, printer, or other type of output device.
  • the mass storage device 1107 is connected to the central processing unit 1101 through a mass storage controller (not shown) connected to the system bus 1105 .
  • the mass storage device 1107 and its associated computer-readable storage media provide non-volatile storage for the server 1100 . That is, the mass storage device 1107 may include a computer-readable storage medium (not shown) such as a hard disk or a Compact Disc Read-Only Memory (CD-ROM) drive.
  • a computer-readable storage medium such as a hard disk or a Compact Disc Read-Only Memory (CD-ROM) drive.
  • the computer-readable storage medium can include both computer storage medium and communication medium.
  • Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable storage instructions, data structures, program modules or other data.
  • Computer storage media include RAM, ROM, Erasable Programmable Read Only Memory (EPROM), Electronically Erasable Programmable Read Only Memory (EEPROM), flash memory or Other solid-state storage technologies, CD-ROM, Digital Versatile Disc (DVD) or other optical storage, cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices.
  • RAM random access memory
  • ROM Erasable Programmable Read Only Memory
  • EEPROM Electronically Erasable Programmable Read Only Memory
  • flash memory or Other solid-state storage technologies
  • CD-ROM Compact Disc
  • DVD Digital Versatile Disc
  • the memory stores one or more programs, the one or more programs are configured to be executed by one or more central processing units 1101, the one or more programs contain instructions for implementing the above method embodiments, and the central processing unit 1101 executes the One or more programs implement the cross-device task relay method provided by each of the foregoing method embodiments.
  • the server 1100 may also be connected to a remote server on the network through a network such as the Internet to run. That is, the server 1100 can be connected to the network 1112 through the network interface unit 1111 connected to the system bus 1105, or the network interface unit 1111 can also be used to connect to other types of networks or remote server systems (not shown) .
  • the memory further includes one or more programs, the one or more programs are stored in the memory, and the one or more programs include steps for performing the steps performed by the cloud platform in the method provided by the embodiment of the present application .
  • Embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium stores at least one piece of program code, where the program code is loaded and executed by a processor to implement the cross-device tasks described in the above embodiments Relay method.
  • a computer program product or computer program comprising computer instructions stored in a computer readable storage medium.
  • the processor of the server reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the server executes the cross-device task relay method provided in various optional implementation manners of the foregoing aspects.
  • references herein to "a plurality” means two or more.
  • "And/or" which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone.
  • the character "/" generally indicates that the associated objects are an "or” relationship.
  • the numbering of the steps described in this document only exemplarily shows a possible execution sequence between the steps. In some other embodiments, the above steps may also be executed in different order, such as two different numbers. The steps are performed at the same time, or two steps with different numbers are performed in a reverse order to that shown in the figure, which is not limited in this embodiment of the present application.

Abstract

一种跨设备任务接力方法、装置、云平台及存储介质,属于任务接力领域。该方法通过云平台预先协调组织可用于进行跨设备任务接力的目标设备,使得可以在用户无感知的情况下实现同一任务在不同设备中的接力执行,从而提高了跨设备任务接力的效率,同时可以避免设备更替对任务执行连贯性的打断。

Description

跨设备任务接力方法、装置、云平台及存储介质
本申请要求于2020年11月13日提交的申请号为202011266766.6、发明名称为“跨设备任务接力方法、装置、云平台及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及任务接力领域,特别涉及一种跨设备任务接力方法、装置、云平台及存储介质。
背景技术
随着时间的碎片化,人们经常利用琐碎时间和“路上”时间去做一件连贯的事情,比如,观看视频、听书、阅读电子文件等。但是由于环境的切换,依赖设备的更替,导致对事情连贯性的打断。
比如,相关技术中,当用户在乘坐地铁时,用手机观看某一部影片,但是在到家时,该部影片并未播放完成,如果用户在家中想要切换至电脑上进行继续观看,则需要手动在电脑端重新打开视频播放应用程序、搜索影片资源、播放影片。可见,在切换设备观看视频时,需要进行很多重复操作。
采用相关技术中的跨设备视频播放方法,显然会增加用户观看同一部影片的观看成本,操作流程较为繁琐。
发明内容
本申请实施例提供了一种跨设备任务接力方法、装置、云平台及存储介质。所述技术方案如下:
一方面,本申请实施例提供一种跨设备任务接力方法,所述方法应用于云平台,所述方法包括:
获取第一设备的第一设备状态,所述第一设备状态至少包括所述第一设备当前运行的目标任务;
根据所述第一设备状态确定目标设备,所述目标设备不同于所述第一设备;
响应于所述第一设备和所述目标设备满足第一条件,控制所述目标设备继续执行所述目标任务。
另一方面,本申请实施例提供一种跨设备任务接力装置,所述装置应用于云平台,所述装置包括:
第一获取模块,用于获取第一设备的第一设备状态,所述第一设备状态至少包括所述第一设备当前运行的目标任务;
第一确定模块,用于根据所述第一设备状态确定目标设备,所述目标设备不同于所述第一设备;
第一控制模块,用于响应于所述第一设备和所述目标设备满足第一条件,控制所述目标设备继续执行所述目标任务。
另一方面,本申请实施例提供一种云平台,所述云平台包括处理器和存储器,所述存储有至少一条程序代码,所述程序代码由所述处理器加载并执行以实现如上述方面所述的跨设备任务接力方法。
另一方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条程序代码,所述程序代码由处理器加载并执行以实现如上述方面所述的跨设备任务接力方法。
另一方面,本申请实施例提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。服务器的处理 器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该服务器执行上述方面的各种可选实现方式中提供的跨设备任务接力方法。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了本申请一个示例性实施例示出的实施环境的示意图;
图2示出了本申请一个示例性实施例提供的跨设备任务接力方法的流程图;
图3示出了本申请另一个示例性实施例提供的跨设备任务接力方法的流程图;
图4示出了本申请一个示例性实施例示出的跨设备进行视频播放的过程示意图;
图5示出了本申请另一个示例性实施例提供的跨设备任务接力方法的流程图;
图6示出了本申请另一个示例性实施例提供的跨设备任务接力方法的流程图;
图7示出了本申请另一个示例性实施例提供的跨设备任务接力方法的流程图;
图8示出了本申请一个示例性实施例示出的第一设备触发任务接力的过程示意图;
图9示出了目标设备触发任务接力的过程示意图;
图10示出了本申请一个实施例提供的跨设备任务接力装置的结构框图;
图11示出了本申请一个实施例提供的服务器的结构框图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
请参考图1,其示出了本申请一个示例性实施例示出的实施环境的示意图,该实施环境中包括第一设备101、云平台102和至少一个第二设备103。
第一设备101是具备数据传输功能的设备,其可以是智能手机、平板电脑、智能音箱、智能手表、电子书阅读器等便携式电子设备。本申请实施例中,第一设备101可以实时将自身设备状态(第一设备状态)发送给云平台102,以便云平台102根据第一设备101的第一设备状态从至少一个第二设备103中确定出目标设备,用于在目标设备中自动执行第一设备的当前运行任务。其中,第一设备状态可以是:正在运行的应用程序、正在执行的任务(播放音乐、播放视频、播放电子书等)等。
第一设备101通过有线或无线方式与云平台102相连。
云平台102是第一设备101和第二设备103对应的云端服务器。云平台102是具备接收、存储、分析各个设备传输的设备状态,以及控制各个设备进行跨设备任务接力等功能的设备。其可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。本申请实施例中,云平台102可以实时接收第一设备101发送的第一设备状态,并根据第一设备状态分析出可用于进行任务接力的第二设备103。可选的,云平台102可以在任务接力过程中,将第一设备101发送的当前运行任务同步至第二设备103中。
云平台102和至少一个第二设备103通过有线或无线方式相连。
第二设备103是具备任务接力功能的设备。其可以是智能手机、智能音箱、平板电脑、智能电视、电子书阅读器、个人计算机等。本申请实施例中,第二设备103可以接收来自云平台102发送的任务接力指令,该任务接力指令中至少包括待接力任务(即第一设备101中的当前运行任务),继续在第二设备103中执行该当前运行任务。
需要说明的是,第一设备101和第二设备103为不同设备,且第一设备101和第二设备103需要具备相同用户账号,其中,该用户账号可以是云平台102颁发的账号,也可以是其他第三方应用账号,本申请实施例对此不构成限定。
请参考图2,其示出了本申请一个示例性实施例提供的跨设备任务接力方法的流程图,本申请实施例以该方法应用于图1所示的云平台为例进行说明,该方法包括:
步骤201,获取第一设备的第一设备状态,第一设备状态至少包括第一设备当前运行的目标任务。
其中,第一设备状态可以包括第一设备当前运行的目标任务、当前目标任务的任务进度、当前所处的位置信息等,本申请实施例对第一设备状态中包含的信息类型不构成限定,该第一设备状态至少包括云平台进行跨设备任务接力所需的状态信息。
在一种可能的实施方式中,第一设备会实时向云平台发送第一设备当前运行的目标任务,对应的,云平台获取到第一设备的第一设备状态。
在一个示例性的例子中,目标任务可以是视频播放任务、电子书阅读任务、邮件回复任务、电子书播放任务、歌曲播放任务、游戏任务等,本申请实施例对目标任务的具体内容不构成限定。
可选的,由于第一设备状态等信息中可能涉及到用户的隐私信息,为了避免第一设备将涉及到用户隐私信息的状态信息发送给云平台,导致用户隐私信息的泄露,在一种可能的实施方式中,在发送第一设备状态之前,可以对抓取到的第一设备状态进行数据脱敏处理,再将数据脱敏处理后的第一设备状态发送给云平台。
在其他可能的实施方式中,用户可以在第一设备中设置允许上传设备状态的任务,比如,对于邮件任务,可能会涉及到用户的隐私信息,不允许将邮件任务上传至云平台,对于视频任务等不涉及用户隐私信息的任务,允许将视频任务上传至云平台;或设置允许上传设备状态的目标应用程序,比如,设置视频类应用程序、阅读类应用程序和音乐播放类应用程序可以上传目标任务至云平台,而对于电子银行等涉及到用户隐私信息的应用程序不允许其上传目标任务至云平台。
若第一设备实时向云平台发送第一设备状态,显然会增加第一设备的功耗,影响第一设备的续航,因此,为了降低第一设备的功耗,在一种可能的实施方式中,第一设备中设置有触发控件,若用户需要或者是预判自己可能存在跨设备执行同一任务的需求,可以点击触发控件,则对应的第一设备接收到对该触发控件的点击操作,向云平台发送第一设备状态;可选的,第一设备在检测到运行有目标任务时向云平台发送第一设备状态,若第一设备处于待机状态,或前台并未运行有目标任务,则无需向云平台发送第一设备状态;可选的,第一设备中提供有多个跨设备任务选项,用户可以预先选择其中的至少一项,当第一设备检测到前台运行有预先选择的目标任务时,则向云平台发送第一设备状态;可选的,目标任务也可以是用户设置的允许上传设备状态的任务。
在其他可能的实施方式中,为了进一步降低第一设备的功耗,可以设置每隔预设时间段,比如,每隔30min,向云平台发送第一设备状态,或在检测到第一设备的设备状态发生改变时,向云平台发送更新后的第一设备状态。
可选的,云平台可能需要处理若干第一设备传的第一设备状态,为了区分不同第一设备上传的第一设备状态,云平台将第一设备和其对应的第一设备状态关联存储。
步骤202,根据第一设备状态确定目标设备,目标设备不同于第一设备。
对于跨设备任务接力场景来说,第一设备和目标设备为不同设备,在一种可能的实施方式中,为了保证目标任务在可信设备中传输,第一设备和目标设备均为预先在云平台中注册过的设备,或第一设备和目标设备均为同一用户授权进行任务接力的设备;或目标设备与第一设备为关联设备;或第一设备和目标设备为具备同一用户账号的设备,该用户账号可以由云平台为用户创建;或由同一第三方应用程序授权。
在一种可能的应用场景中,云平台将同一用户账号对应的任务接力设备关联存储,其中,任务接力设备中包括第一设备和至少一个第二设备,当云平台接收到第一设备发送的第一设备状态后,获取第一设备对应的用户账号信息,根据该用户账号信息从云平台中查找对应的至少一个第二设备(任务接力设备中除第一设备之外的设备),再从该第二设备中确定出可进 行跨设备任务接力的目标设备。
对于确定目标设备的方式,在一种可能的实施方式中,云平台可以根据第一设备状态中包含的目标任务,将可以执行该目标任务的第二设备确定为目标设备,比如,若目标任务为视频播放,则从第二设备中选择可以进行视频播放的第二设备作为目标设备;或,云平台可以根据第一设备状态中包含的位置信息,预判出接力设备所在位置,将位于该位置处的第二设备确定为目标设备;或,用户可以预先设置至少一个第二设备的接力优先级,云平台获取到该接力优先级,则对应根据接力优先级从至少一个第二设备中确定出目标设备。
在本申请实施例中所示的跨设备任务接力过程中,云平台起到分析第一设备状态,预先根据第一设备状态协调组织目标设备的中间作用,在一种可能的实施方式中,云平台接收到第一设备发送的第一设备状态,并根据第一设备状态确定目标设备。
步骤203,响应于第一设备和目标设备满足第一条件,控制目标设备继续执行目标任务。
在一种可能的实施方式中,当云平台根据第一设备状态确定目标设备后,可以直接同步第一设备中的目标任务至目标设备,即云平台获取第一设备中当前运行的目标任务,并控制目标设备同步执行该目标任务。
考虑到目标设备的功耗问题,为了降低目标设备的功耗,在一种可能的实施方式中,设置有第一条件(即任务接力条件),在满足该第一条件后,云平台可以向目标设备发送任务接力指令,以便目标设备根据该任务接力指令执行目标任务。
其中,第一条件由用户预先设置,或系统默认设置。比如,第一条件可以为在检测到第一设备和目标设备之间的距离比较接近时,表示用户可能需要进行跨设备任务接力,则同步目标任务至目标设备中;或在检测到第一设备中的目标任务暂停,表明用户可能想更换设备继续进行操作,则控制目标设备自动执行该目标任务;或检测到第一设备和目标设备连接有相同网络,比如,相同无线网络,表示第一设备和目标设备比较接近,可以控制目标设备执行目标任务。
综上所述,本申请实施例中,通过云平台连接第一设备和目标设备,使得云平台可以根据获取到的第一设备的设备状态,预先协调组织可用于进行跨设备任务接力的目标设备,并在满足第一条件后,自动控制目标设备执行第一设备对应的目标任务。相比于相关技术中,需要用户手动选择第二设备、选择应用程序以及执行目标任务,本申请实施例中所提供的跨设备任务接力方法可以在用户无感知的情况下实现同一任务在不同设备中的接力执行,减少了同一任务在不同设备中接力执行所需的流程,降低了跨设备执行任务的操作复杂度,从而提高了跨设备任务接力的效率,同时可以避免设备更替对任务执行连贯性的打断。
可选的,根据第一设备状态确定目标设备,包括:
获取目标任务对应的目标任务类型;
根据目标任务类型,从至少一个第二设备中确定出目标设备,第二设备对应各自所支持任务的任务类型,且目标设备所支持任务的任务类型与目标任务类型匹配。
可选的,第一设备状态中还包括第一设备对应的位置变化信息;
根据第一设备状态确定目标设备,包括:
根据位置变化信息,确定位置变化信息指示的目标地点;
根据目标地点,从至少一个第二设备中确定出目标设备,第二设备对应各自所在地点,且目标设备位于目标地点。
可选的,第一设备状态中还包括第一设备对应的位置变化信息;
根据目标任务类型,从至少一个第二设备中确定出目标设备,包括:
根据位置变化信息,确定位置变化信息指示的目标地点;
根据目标地点和目标任务类型,从至少一个第二设备中确定出目标设备,目标设备位于目标地点,且目标设备所支持任务的任务类型与目标任务类型匹配。
可选的,根据第一设备状态确定目标设备之前,方法还包括:
获取目标任务在第一设备中执行完成所需的第一时长;
根据位置变化信息,确定到达目标地点所需的第二时长;
响应于第一时长大于第二时长,执行根据第一设备状态确定目标设备的步骤。
可选的,第一条件包括距离条件和网络条件中的任意一种;
响应于第一设备和目标设备满足第一条件,控制目标设备继续执行目标任务,包括:
获取第一设备对应的第一网络环境信息和目标设备对应的第二网络环境信息;响应于第一网络环境信息和第二网络环境信息匹配,确定满足网络条件,并控制目标设备继续执行目标任务;
或,
获取第一设备和目标设备之间的距离;响应于距离小于距离阈值,确定满足距离条件,并控制目标设备继续执行目标任务。
可选的,控制目标设备继续执行目标任务,还包括:
向第一设备发送任务接力提示,任务接力提示用于提醒是否进行跨设备任务接力;
响应于接收到对任务接力提示的确认操作,控制目标设备继续执行目标任务。
可选的,控制目标设备继续执行目标任务,包括:
获取目标任务在第一设备中的当前执行进度;
向目标设备发送任务接力指令,任务接力指令中包含目标任务和当前执行进度,目标设备用于根据当前执行进度执行目标任务。
可选的,响应于第一设备和目标设备满足第一条件,控制目标设备继续执行目标任务之前,方法还包括:
获取目标设备对应的第二设备状态,第二设备状态包括系统状态、网络状态和电源状态中的至少一种;
响应于第二设备状态满足第二条件,执行响应于第一设备和目标设备满足第一条件,控制目标设备继续执行目标任务的步骤,第二条件包括系统条件、网络条件和电源条件中的至少一种;
响应于第二设备状态不满足第二条件,向目标设备发送设备状态更新指令,目标设备用于根据设备状态更新指令进行状态更新。
在一种可能的应用场景中,在跨设备进行任务接力过程中,需要考虑到同一任务在原有设备中的执行进度,若仅是在目标设备中自动执行该目标任务,而忽视了用户在原有设备(第一设备)中该任务的执行进度,显然设备更迭会影响接力任务的连贯性,因此,在一种可能的实施方式中,通过在任务接力时,获取目标任务在第一设备中的当前执行进度,发送给目标设备,使得目标设备可以自动更新至该执行进度,从而保证了同一任务在不同设备中的执行连贯性。
在一个示例性的例子中,如图3所示,其示出了本申请另一个示例性实施例提供的跨设备任务接力方法的流程图,本申请实施例以该方法应用于图1所示的云平台为例进行说明,该方法包括:
步骤301,获取第一设备的第一设备状态,第一设备状态至少包括第一设备当前运行的目标任务。
本步骤的实施方式可以参考上文实施例,本实施例在此不做赘述。
步骤302,获取目标任务对应的目标任务类型。
由于需要在目标设备中接力执行目标任务,首先需要保证目标设备可以执行该目标任务,避免筛选出的目标设备无法执行该目标任务,导致任务接力失败,因此,在一种可能的实施方式中,将目标任务(待接力任务)对应的目标任务类型作为从多个第二设备中筛选出目标设备的筛选条件。
其中,目标任务类型与目标任务关联,若目标任务为视频播放任务,则对应的目标任务类型为视频播放类;若目标任务为音乐播放任务,则对应的目标任务类型为音乐播放类;若目标任务为文字输入任务,则对应的目标任务类型为文字输入类;若目标任务为电子书阅读 任务,则对应的目标任务类型为电子阅读类。本申请实施例对目标任务类型不构成限定。
步骤303,根据目标任务类型,从至少一个第二设备中确定出目标设备,第二设备对应各自所支持任务的任务类型,目标设备所支持任务的任务类型与目标任务类型匹配。
其中,不同第二设备对应有自己所支持任务的任务类型,比如,智能电视可以支持视频播放类任务、音乐播放类任务等;而智能音箱可支持音乐播放类任务等;平板电脑可以支持视频播放类任务、音乐播放类任务、电子书阅读类任务等。
根据任务接力要求,在确定目标设备时,需要保证目标设备可以支持执行该目标任务类型的任务,因此,在一种可能的实施方式中,可以根据目标任务类型从至少一个第二设备中确定出目标设备。
在一个示例性的例子中,若目标任务类型为视频播放类,则对应的从至少一个第二设备中筛选出可进行视频播放的设备作为目标设备,比如,(智能)电视、放映机、平板电脑等;若目标任务类型为音乐播放类,则对应的从至少一个第二设备中筛选出可进行音乐播放的设备作为目标设备,比如,智能音箱、音响设备、电视等;若目标任务类型为电子阅读类,则对应的从至少一个第二设备中筛选出可进行电子阅读的设备作为目标设备,比如,智能手机、电子阅读器、平板电脑等。
在一种可能的应用场景中,若第二设备中存在至少两个候选接力设备所支持任务的任务类型与目标任务类型匹配,比如,若目标任务类型为视频播放类,则对应的第二设备中存在智能电视、平板电脑等均可以作为目标设备,为了避免同时在多个目标设备均进行同一任务接力,对其他设备资源的占用,在一种可能的实施方式中,设置设备接力优先级,根据设备接力优先级从多个候选接力设备中确定目标设备。
在一个示例性的例子中,根据设备接力优先级从候选接力设备中确定目标设备的方法可以包括以下步骤:
一、响应于存在至少两个候选接力设备所支持任务的任务类型与目标任务类型匹配,获取目标任务类型对应的设备接力优先级。
其中,候选接力设备为支持目标任务类型的第二设备;示意性的,若目标任务类型为视频播放类,第二设备包括:智能电视、放映机、平板电脑、智能音箱、电子阅读器,其中,智能电视、放映机、平板电脑均支持该目标任务类型,则对应的将智能电视、放映机、平板电脑确定为候选接力设备。
可选的,设备接力优先级可以根据不同目标任务类型进行划分,比如,对于视频播放类,设备接力优先级为:智能电视>平板电脑>智能手机;对于音乐播放类,设备接力优先级为:智能音箱>音响设备>智能手机;对于电子阅读类,设备接力优先级为:电子书阅读器>平板电脑>智能手机。
在一种可能的实施方式中,用户可以根据自身需求,设置不同任务类型对应的设备接力优先级,提交至云平台保存,以便后续在确定出存在至少两个候选接力设备均支持目标任务类型对应的任务时,可以获取到该目标任务类型对应的设备接力优先级,并根据设备接力优先级从多个候选接力设备中确定出目标设备。
二、将设备接力优先级最高的候选接力设备确定为目标设备。
在一种可能的实施方式中,设置将设备接力优先级最高的候选接力设备确定为目标设备,比如,若目标任务类型为视频播放类,存在多个候选接力设备:智能电视、平板电脑、智能手机、放映设备等,为了避免在多个候选接力设备中均执行同一任务对设备资源的占用,获取上述候选接力设备在视频播放类这一目标任务类型中的设备接力优先级为:智能电视>放映设备>平板电脑>智能手机,可见,智能电视优先级最高,则对应的将智能电视作为目标设备。
可选的,若设备优先级最高的候选接力设备无法进行任务接力,比如,未接通电源、电量较低、网络状态较差、或正在执行其他任务(无法同时执行多个任务)等,可以按照设备接力优先级选择次一级的候选接力设备作为目标设备,比如,若智能电视无法进行任务接力,则将次一级的放映设备作为目标设备。
步骤304,响应于第一设备和目标设备满足第一条件,获取目标任务在第一设备中的当前执行进度。
为了保持目标任务在不同设备中的执行连贯性,在一种可能的实施方式中,通过同步第一设备中目标任务的当前执行进度来实现,即云平台获取第一设备中目标任务的当前执行进度,并将该当前执行进度发送至目标设备,使得两个设备中的任务执行进度相同,从而保证任务在不同设备中传递的连贯性。
在一个示例性的例子中,如图4所示,其示出了本申请一个示例性实施例示出的跨设备进行视频播放的过程示意图,若在接力之前(即满足任务接力条件后),第一设备410在视频播放界面411中播放视频A,视频A的播放总时长为40:20,视频A播放至13:20处,则对应的将该13:20确定为播放视频A这一目标任务的当前执行进度,发送至云平台420,对应的,云平台420获取到目标任务对应的当前执行进度。
步骤305,向目标设备发送任务接力指令,任务接力指令中包含目标任务和当前执行进度,目标设备用于根据当前执行进度执行目标任务。
在一种可能的实施方式中,采用任务接力指令来控制目标设备继续执行目标任务,即云平台在接收到第一设备发送的目标任务的当前执行进度后,在任务接力指令中携带目标任务和其对应的当前执行进度,发送至目标设备,以便目标设备获取到需要接力的任务(即目标任务),以及自动调节目标任务至当前执行进度,并从当前执行进度开始继续执行目标任务。
可选的,当目标设备接收到任务接力指令后,并将该目标任务调整至当前执行进度,可以暂停至该当前执行进度,直至接收到对目标任务的继续执行指令,则从该当前执行进度继续执行目标任务。可选的,该继续执行指令可以由用户对目标设备的触发操作生成。
如图4所示,在进行任务接力时,云平台420获取到视频A在第一设备410中的播放进度(当前执行进度)为13:20,在任务接力指令中携带目标任务和当前执行进度“视频A+13:20”,并将携带“视频A+13:20”的任务接力指令发送至目标设备430(智能电视),则对应的智能电视在接收到任务接力指令后,搜索到视频A,打开视频A对应的视频播放界面431,并调节视频A的播放进度至13:20,以便后续从13:20处继续播放视频A。可选的,当智能电视将视频A的播放进度调整是13:20时,可以暂停播放,直至接收到对视频A的播放指令后,从当前播放进度13:20处开始播放。
本实施例中,通过获取目标任务(待接力任务)的目标任务类型,从多个第二设备中确定出目标设备,保证目标设备可以支持执行该目标任务,从而保证了后续任务接力的顺利执行;此外,通过在满足任务接力条件后,从第一设备中获取目标任务的当前执行进度,并通过任务执行指令下发至目标设备,使得目标设备可以根据当前执行进度继续执行目标任务,避免用户还需手动在目标设备中调节目标任务的执行进度,从而保持了目标任务在不同设备之间接力的连贯性。
在另一种可能的应用场景中,若用户处于移动状态时存在任务接力需求,比如,用户在回家途中用手机观看电影,且用户在回到家时,该电影可能无法播放完成,存在需要在位于家中的电视中接力播放该电影的需求,可见,在跨设备进行任务接力时,还可以根据第一设备位置变化信息指示的目标地点来确定目标设备。
在一个示例性的例子中,在图3的基础上,如图5所示,步骤302和步骤303可以被替换为步骤501和步骤502。
步骤501,根据位置变化信息,确定位置变化信息指示的目标地点。
其中,第一设备状态中还包括第一设备对应的位置变化信息,位置变化信息可以为第一终端在预设时间段内的位置坐标变化信息,比如,第一终端在预设时间段内实时向云平台传送当前位置坐标,则对应的云平台接收到预设时间段内的当前位置坐标,根据位置坐标的变化,可以分析出持有第一设备的用户可能的行进目标地点。
在一种可能的实施方式中,云平台可以预先获取用户经常出入的多个地点,比如,家、公司或学校等,预先和用户账号关联存储,当用户由公司返回家中时,第一设备实时向云端 发送位置坐标信息,则云平台可以根据一段时间内的位置变化信息,确定第一设备的移动方向为由公司到家,则对应的目标地点为家。
在其他可能的实施方式中,位置变化信息还可以包括用户所乘坐的交通工具信息,比如,当用户使用第一设备刷卡进入地铁站、或通过第一设备刷卡乘坐公交时,则对应的,第一设备可以将用户乘坐地铁或公交等交通信息上传至云平台,云平台分析用户进入地铁站和该地铁站对应的地铁路线,或分析用户乘坐的公交站点以及公交路线,从而确定用户乘坐该地铁或公交所要达到的目标地点。
步骤502,根据目标地点,从至少一个第二设备中确定出目标设备,第二设备对应各自所在地点,且目标设备位于目标地点。
其中,不同第二设备对应有各自所在地点,或所在位置,比如,智能电视位于家中,放映机位于公司、台式电脑位于公司、笔记本电脑位于家中。
为了使得确定出的目标设备符合用户移动目的地,在一种可能的实施方式中,筛选目标设备时,将第一设备的位置变化信息指示的目标地点作为筛选条件,即目标设备需要位于位置变化信息所指示的目标地点处。
对应的,云平台中在存储多个接力设备(第二设备)时,就需要同时存储其对应的位置信息,该位置信息可以是在第二设备标识旁备注有所在地点,比如,“电视(家)、电脑A(公司)、电脑B(家)”等;或直接在其旁边标注有第二设备对应的位置坐标,比如:“电视(111,112)、电脑B(101,187)等。
在一个示例性的例子中,若根据第一设备的位置关系信息,确定出该位置变化信息指示的目标地点为“家”,则可以将位于“家”中的第二设备确定为目标设备,比如,智能电视位于家中,则对应的将智能电视确定为目标设备。
可选的,若确定出至少两个第二设备均位于目标地点处,为了避免将多个第二设备确定为目标设备对设备资源的占用,在一种可能的实施方式中,可以设置位于相同地点中不同第二设备的设备接力优先级,则对应的,在确定目标设备时,首先根据目标地点从第二设备中确定出至少一个候选设备,若符合目标地点的候选设备较多时,则获取该目标地点中各个第二设备的设备接力优先级,将设备接力优先级最高的第二设备确定为目标设备。
在一个示例性的例子中,若确定出目标地点为“家”中,该目标地点处对应的第二设备包括:智能电视、平板电脑以及笔记本电脑,且各个第二设备的设备接力优先级为:智能电视>笔记本电脑>平板电脑,则选择设备接力优先级最高的第二设备作为目标设备,即将智能电视确定为目标设备。
可选的,若设备优先级最高的第二设备无法进行任务接力,比如,未接通电源、电量较低、网络状态较差、或正在执行其他任务(无法同时执行多个任务)等,可以按照设备接力优先级选择次一级的第二设备作为目标设备,比如,若智能电视无法进行任务接力,则将次一级的笔记本电脑作为目标设备,依次类推,直至确定出目标设备。
本实施例中,当第一设备状态中包含第一设备对应的位置变化信息,使得云平台可以根据位置变化信息分析出目标设备应该所处的目标地点,使得可以根据目标地点筛选目标设备,从而使得目标设备与第一设备的移动目的地一致,满足特定移动场景下的任务接力需求。
在另一种可能的应用场景中,若仅根据目标任务类型或目标地点中的任意一种来确定目标设备,对于用户处于移动状态时,比如,用户回家途中,若仅根据目标任务类型确定目标设备,可能会导致确定出的目标设备并非是位于家中(即并非位于目标地点),而是其他地点,导致需要切换目标设备;或仅根据目标地点确定目标设备,可能会导致确定出的目标设备并非可以执行该目标任务,也即不满足目标任务类型,因此,为了提高确定目标设备的准确性,在一种可能的实施方式中,将目标地点和目标任务类型作为综合筛选条件,从至少一个第二设备中确定出目标设备。
在一个示例性的例子中,步骤303还可以包括以下步骤303A和步骤303B。
步骤303A,根据位置变化信息,确定位置变化信息指示的目标地点。
在一种可能的实施方式中,需要根据目标地点和目标任务类型两个条件来综合确定目标设备,对应的,第一设备需要向云平台上报第一设备对应的位置变化信息,以及目标任务对应的目标任务类型,对应的,云平台在接收到位置变化信息后,确定出位置变化信息所指示的目标地点,进而基于目标地点和目标任务类型来共同确定目标设备。
可选的,目标任务类型可以由云平台基于第一设备上传的目标任务来确定,或,第一设备直接将目标任务和目标任务对应的目标任务类型一起上传至云平台,对应云平台获取到该目标任务类型。
目标地点的确定方式可以参考上文实施例,本实施例在此不做赘述。
步骤303B、根据目标地点和目标任务类型,从至少一个第二设备中确定出目标设备,目标设备位于目标地点,且目标设备所支持任务的任务类型与目标任务类型匹配。
为了进一步提高确定目标设备的准确性,在一种可能的实施方式中,云平台获取第一设备当前运行的目标任务,确定出目标任务(待接力任务)对应的目标任务类型,以及获取第一设备对应的位置变化信息,确定该位置变化信息指示的目标地点,并将目标任务类型和目标任务作为确定目标设备的综合筛选条件,即目标设备既需要支持目标任务对应的目标任务类型,还需要位于目标地点处。
在一个示例性的例子中,若确定出目标地点为“家”,目标任务类型为视频播放类,与目标任务类型匹配的第二设备包括“智能电视、平板电脑、智能手机、放映设备、台式电脑、电子书阅读器、智能音箱、音响设备”,其中,智能电视、电子书阅读器、智能音箱位于家中;放映设备、音响设备和平板电脑位于公司;智能手机随身携带,根据“家+视频播放类”作为筛选条件对多个第二设备进行筛选,可以从中确定出目标设备为智能电视。
在另一种可能的实施方式中,若确定出至少两个符合上述筛选条件的候选接力设备,则可以根据预先设置的设备接力优先级,从多个候选接力设备中确定出目标设备。其中,根据设备接力优先级从多个候选接力设备中确定出目标设备的方法可以参考上文实施例,本实施例在此不做赘述。
本实施例中,云平台将目标任务类型和目标地点作为综合筛选条件,从第二设备中确定出目标设备,可以使得目标设备既可以支持目标任务运行,也可以位于用户所期望进行任务接力的地点,从而提高确定目标设备的准确性,以避免需要切换目标设备而导致任务接力的繁琐性。
由于云平台在跨设备任务接力场景中起到提前协调目标设备的作用,则云平台就需要准确预估第一设备当前运行的任务是否需要进行任务接力,以便确定是否进行任务接力的时机,因此,在一种可能的实施方式中,云平台根据第一设备提供的第一设备状态,分析出目标任务到达目标地点是否完成来确定目标任务是否需要跨设备接力。
在一个示例性的例子中,如图6所示,其示出了本申请另一个示例性实施例提供的跨设备任务接力方法的流程图,本申请实施例以该方法应用于图1所示的云平台为例进行说明,该方法包括:
步骤601,获取第一设备的第一设备状态,第一设备状态至少包括第一设备当前运行的目标任务和第一设备对应的位置变化信息。
由于云平台在分析是否对目标任务进行跨设备接力时,需要考虑目标任务到达目标地点的完成情况来判断,而目标地点需要由第一设备的位置变化信息来确定,因此,在一种可能的实施方式中,第一设备不仅需要向云平台上传当前正在运行的目标任务,还需要上传位置变化信息,也就是说,第一设备状态中需要包含目标任务和位置变化信息,以便云平台在获取到该第一设备状态后,可以基于目标任务来确定待接力设备,基于位置变化信息来分析得到目标地点,进而预估用户是否需要进行任务接力。
可选的,该位置变化信息也可以用于确定目标设备,位置变化信息可以包含第一设备的实时位置信息。
可选的,目标任务可以和位置变化信息同时上传,目标任务也可以与位置变化信息分开 上传。
当用户携带第一设备处于移动状态时,第一设备的位置信息会随着时间而变化,而在第一设备的位置信息变化过程中,第一设备中运行的目标任务可能并未发生改变,若在上报位置变化信息的同时携带目标任务,显然会导致目标任务的重复上报,因此,在一种可能的实施方式中,在目标任务未发生变化时,仅实时上报位置变化信息,而当目标任务发送改变时,则同时上传改变后的目标任务以及当前位置变化信息。
步骤602,获取目标任务在第一设备中执行完成所需的第一时长。
对于跨设备进行任务接力的场景,只有目标任务在第一设备中无法执行完成,才需要在目标设备中继续执行,因此,在一种可能的实施方式中,需要获取目标任务在第一设备中执行完成所需的时长(即第一时长),结合对应的位置变化信息,预判目标任务是否存在跨设备执行的需求。
针对确定第一时长的方式,在一种可能的实施方式中,可以根据目标任务所需的总执行时长和目标任务的当前执行时长确定,即总执行时长和当前执行时长之间的差值为第一时长。
在一个示例性的例子中,比如,第一设备正在播放视频A,该视频A对应的当前视频播放进度为13:50,该视频A对应的总视频时长为01:20:50,则对应的第一时长为总视频时长和当前视频播放进度的差值,为1小时7分。
步骤603,根据位置变化信息,确定到达目标地点所需的第二时长。
需要确定第二时长,就需要根据位置变化信息确定出目标地点和用户所乘坐的交通工具或用户移动速度,因此,在一种可能的实施方式中,云平台通过分析第一设备上传的位置变化信息,确定出该位置变化信息指示的目标地点,以及位置变化信息指示的交通工具或移动速度,其中,确定目标地点和交通工具的方式可以参考上文实施例,本实施例在此不做赘述。
其中,根据位置变化信息确定移动速度的方式,云平台可以根据预设时间段内接收到的第一设备位置坐标信息,根据位移公式,估算其对应的移动速度。
在一种可能的实施方式中,若根据位置变化信息确定出目标地点和交通工具,则可以根据交通工具的运行速度确定其到达目标地点的第二时长,以用户乘坐地铁为例,获取地铁移动速度、目标地点和当前位置,预估从当前位置到达目标地点所需的第二时长。
在另一种可能的实施方式中,云平台可以根据预设时间段内的位置信息变化,预估出用户(第一设备)的移动速度,再根据第一设备上传的当前位置和目标地点,估算出从当前位置到达目标地点所需的第二时长。
在一个示例性的例子中,若目标地点和当前位置之间的距离为36km,第一设备(用户)的移动速度为20m/s,则到达目的地所需的第二时长为30min。
步骤604,响应于第一时长大于第二时长,根据第一设备状态确定目标设备,目标设备不同于第一设备。
判断目标任务是否存在需要跨设备执行的条件为:判断目标任务到达目标地点是否可以执行完成,则对应的需要比较第一时长和第二时长之间的关系,若第一时长大于第二时长,表示目标任务到达目标地点无法执行完成,则可能需要跨设备执行目标任务,若第一时长小于第二时长,表示目标任务在到达目标地点前可以执行完成,无需跨设备执行目标任务。
在一个示例性的例子中,若第一时长为1小时7分,第二时长为30min,第一时长大于第二时长,表示视频A在到达目标地点时无法播放完成,可能需要进行跨设备播放视频A;若第一时长为20min,第二时长为30min,第一时长小于第二时长,则表示视频A在达到目标地点之前可以播放完成,则无需跨设备播放视频A。
对于需要跨设备执行目标任务的场景,即第一时长大于第二时长,则云平台就需要预先协调多个第二设备,并根据第一设备状态从中确定出目标设备,为后续目标任务接力做准备。
可选的,对于无需跨设备执行目标任务的场景,即第一时长小于第二时长,则云平台可以向第一设备发送数据上报指令,对应的第一设备可以继续将第一设备状态上报至云平台,由云平台继续预估第一设备是否具备跨设备执行目标任务的需求。
步骤605,获取目标设备对应的第二设备状态,第二设备状态包括系统状态、网络状态和电源状态中的至少一种。
在一种可能的应用场景中,虽然预先确定出目标设备,但是若目标设备的网络状态较差,或目标设备存在系统更新任务,或目标设备电量较低,可能会导致目标设备无法执行目标任务,导致目标任务接力失败的情况,比如,目标设备断电导致目标任务无法继续执行,因此,为了避免在后续任务接力时出现接力失败的情况,在一种可能的实施方式中,云平台在确定出目标设备后,首先和目标设备进行预通信,用于获取目标设备对应的第二设备状态,从而根据获取到的第二设备状态来判断目标设备是否满足第二条件,即任务执行条件。
其中,第二设备状态可以包括系统状态、网络状态、电源状态等,本申请实施例对第二设备状态的具体内容不构成限定。其中,系统状态可以为目标设备的系统版本信息,网络状态可以指目标设备是否处于联网状态、已连接网络对应的网络状态(比如,网速),电源状态可以指目标设备的当前电量、是否处于充电状态、是否处于省电模式等。
可选的,云平台在确定出目标设备后,可以向目标设备发送预通信指令,对应的目标设备接收到预通信指令后,向云平台发送自身对应的第二设备状态。
在一种可能的应用场景下,可能存在目标设备并未联网,则对应的目标设备可能无法接收到云平台发送的预通信指令,若云平台在向目标设备发送预通信指令后,预设时间段内未接收到目标设备的响应,则确定目标设备不满足第二条件(任务接力条件),则可以重新从其他第二设备中选择目标设备,比如,选择设备接力优先级次一级的候选设备作为目标设备,并重新与该目标设备进行预通信。
步骤606,响应于第二设备状态满足第二条件,且第一设备和目标设备满足第一条件,控制目标设备继续执行目标任务。
其中,与第二设备状态的内容对应,第二条件可以包括系统条件、网络条件和电源条件中的至少一种。
示意性的,系统条件可以为:目标设备的系统状态处于最新系统版本,或,目标设备不存在系统版本更新需求;网络条件可以为:目标设备处于联网状态,或目标设备处于无线网络连接状态,或目标设备的网速高于网速阈值;电源条件可以为:目标设备的剩余电量高于电量阈值;或目标设备未处于省电模式,或目标设备处于充电状态等。可选的,网速阈值可以是1.5M/s,电量阈值可以是40%。
可选的,由于不同目标任务对于网络状态和电源状态可能存在不同的需求,比如,视频类任务对网络状态和电源状态均要求较高,而音乐播放任务对于网络状态和电源状态要求较低,则为了满足不同目标任务的个性化需求,在一种可能的实施方式中,还可以针对不同目标任务类型设置不同的第二条件。
示意性的,以电源条件为例,由于视频类任务对于电源状态的需求高于音乐播放类任务,对应的,视频类任务对应的电源条件可以为:目标设备的剩余电量高于第一电量阈值,而音乐播放任务对应的电源条件可以为:目标设备的剩余电量高于第二电量阈值,且第一电量阈值高于第二电量阈值,示意性的,第一电量阈值可以是60%,第二电量阈值可以是40%。
可选的,第二条件还可以包括目标设备为空闲状态,由于目标设备是需要执行目标任务的,若目标设备正在播放视频,而目标任务(待接力任务)也为视频播放任务,若在目标设备中执行该目标任务,显然会影响目标设备的运行状态,因此,在一种可能的实施方式中,由云平台获取目标设备的运行状态,若目标设备未运行其他任务,或处于空闲状态,则表示满足第二条件。
对于系统条件,云平台通过比较目标设备对应的当前系统版本信息和最新系统版本信息,确定目标设备的系统状态是否为最新系统版本,若为最新系统版本,则确定无需在执行目标任务之前更新系统,若不是最新系统版本,则为了避免在后续执行目标任务之前还需要更新系统,预先向目标设备发送系统更新指令,保证在执行目标任务之前,完成系统更新;可选的,若不是最新系统版本,也可以选择其他可用设备作为目标设备执行目标任务接力。
对于网络条件,云平台通过获取目标设备的网络状态,比如,目标设备连接的网络类型:无线网络、4G/5G网络、无线热点等,对于某些需要花费较多流量的目标任务,设置连接有无线网络的目标设备满足网络条件,对于某些花费流量较小的目标任务,对网络类型不做限定,但是优先使用连接有无线网络的目标设备;若网络状态为目标设备对应的网速,设置有网速阈值,即大于或等于该网速阈值的目标设备满足任务执行条件,比如,网速阈值为1.5M/s。
对于电源条件,若目标设备为电源连接状态,则表示目标设备满足电源条件;或云平台获取目标设备的剩余电量,比较剩余电量和电量阈值之间的关系,若目标设备对应的剩余电量大于电量阈值,则对应的目标设备满足电源条件,其中,电量阈值可以由用户自行设置并上传云平台,或采用默认值,比如,电量阈值为40%。
在一种可能的实施方式中,若目标设备的第二设备状态满足上述第二条件(任务执行条件)中的至少一种,则表示目标设备可以被用于执行目标任务,则对应的在确定第一设备和目标设备满足第一条件(任务接力条件)后,控制目标设备继续执行目标任务。
步骤607,响应于第二设备状态不满足第二条件,向目标设备发送设备状态更新指令,目标设备用于根据设备状态更新指令进行状态更新。
在一种可能的实施方式中,若第二设备状态不满足第二条件,则为了便于后续目标任务的接力,云平台可以向目标设备发送设备状态更新指令,对应的,目标设备接收到设备状态更新指令后,根据该设备状态更新指令对指定设备状态进行更新。
若第二条件为系统条件,但是获取到的目标设备对应的当前系统版本信息并非为最新系统版本信息,即目标设备不满足任务执行条件(第二条件),为了使得目标设备满足该系统条件,在一种可能的实施方式中,云平台可以向目标设备发送系统更新指令,则对应的,目标设备接收到云平台发送的系统更新指令后,可以提前进行系统更新,以便在后续执行目标任务时系统已更新至最新系统版本。
若任务执行条件为网络条件,若目标设备并未连接无线网络,则可以向目标设备发送网络切换指令,对应的目标设备在接收到网络切换指令后,可以由4G网络切换至无线网络。
可选的,当目标设备根据设备状态更新指令更新对应状态信息后,则对应的若目标设备更新后的设备状态信息满足任务执行条件,可以继续执行后续确定第一设备和目标设备是否满足任务接力条件(第一条件)的判断,以及控制目标设备继续执行目标任务等步骤。
可选的,当第二设备不满足第二条件(任务执行条件)时,为了保证目标任务在目标设备中的顺利执行,可以切换其他第二设备作为目标设备,进而选择满足该第二条件的第二设备作为目标设备,进而后续目标任务接力过程。
本实施例中,通过比较目标任务在第一设备中执行完成所需的时长,和到达目标地点所需的第二时长之间的关系,来确定目标任务是否需要跨设备执行,并在需要跨设备执行目标任务的情况下,预先协调多个第二设备,从中确定出目标设备,以便为后续任务接力做准备;此外,通过在确定出目标设备后,首先与目标设备进行预通信,以便确定出目标设备是否满足任务执行条件,从而保证目标任务在目标设备中的正常执行。
为了进一步降低目标设备的功耗,设置在第一设备与目标设备接近时,控制目标设备执行目标任务,在一种可能的实施方式中,可以通过第一设备和目标设备之间的距离来确定执行目标任务接力的时机,也可以通过第一设备和目标设备所对应的网络环境信息来确定(若第一设备和目标设备连接相同网络,则目标设备和第一设备相距较为接近)。
在一个示例性的例子中,如图7所示,其示出了本申请另一个示例性实施例提供的跨设备任务接力方法的流程图,本申请实施例以该方法应用于图1所示的云平台为例进行说明,该方法包括:
步骤701,获取第一设备的第一设备状态,第一设备状态至少包括第一设备当前运行的目标任务。
步骤702,根据第一设备状态确定目标设备,目标设备不同于第一设备。
步骤701和步骤702的实施方式可以参考上文实施例,本实施例在此不做赘述。
步骤703,获取第一设备对应的第一网络环境信息和目标设备对应的第二网络环境信息。
其中,网络环境信息可以指设备连接的网络所对应的网络名称,或网络对应的网际互连协议(Internet Protocol,IP)地址。
当第一设备和目标设备处于相同网络环境中,比如,第一设备和目标设备连接有相同无线网络时,表明第一设备和目标设备处于同一网络覆盖范围下,则对应的第一设备和目标设备比较接近,因此,云平台可以通过获取第一设备和目标设备分别对应的网络环境信息,来确定第一设备和目标设备是否比较接近,从而确定进行目标任务接力的时机。
步骤704,响应于第一网络环境信息和第二网络环境信息匹配,确定满足网络条件,并控制目标设备继续执行目标任务。
其中,由于网络条件是为了确定第一设备和目标设备是否距离较近,则网络条件可以包括第一设备和目标设备连接有相同无线网络,或第一设备连接由目标设备对应的无线热点,或目标设备连接有第一设备对应的无线热点等。
为了进一步降低目标设备的功耗,设置在第一设备和目标设备较为接近时,在目标设备中同步执行目标任务,在一种可能的实施方式中,可以将网络条件作为任务接力条件(第一条件),即当第一设备和目标设备分别对应的网络环境信息匹配时,比如,第一设备和目标设备连接有相同网络,则确定第一设备和目标设备满足网络条件,控制目标设备继续执行目标任务。
可选的,当目标设备连接有第一设备的无线热点,或第一设备连接有目标设备对应的无线热点,则对应的第一设备和目标设备也满足该网络条件,对应的控制目标设备继续执行该目标任务。
步骤705,获取第一设备和目标设备之间的距离。
在一种可能的实施方式中,可以直观的采用第一设备和目标设备之间的距离来确定第一设备和目标设备较为接近,对应的,云平台分别获取第一设备对应的第一位置坐标和目标设备对应的第二位置坐标,从而计算得到第一设备和目标设备之间的距离。
在一个示例性的例子中,若第一设备的第一为位置坐标为(x 1,y 1),以平面地图(比如,导航类地图)为例,x 1表示第一设备在平面地图中的横坐标,y 1表示第一设备在平面地图中的纵坐标,目标设备对应的第二位置坐标为(x 2,y 2),其中,x 2表示目标设备在平面地图中的横坐标,y 2表示目标设备在平面地图中的纵坐标,则对应的第一设备和目标设备之间的距离,其中,d表示第一设备和目标设备之间的距离。
可选的,用户可以预先将各个待接力设备对应的位置坐标提前上传至云平台,对应的,在跨设备进行任务接力过程中,云平台可以基于目标设备获取到对应的位置坐标,进而确定第一设备与目标设备之间的距离。
步骤706,响应于距离小于距离阈值,确定满足距离条件,并控制目标设备继续执行目标任务。
其中,距离阈值可以由用户自行设置,或采用系统默认值,比如,距离阈值为100m。
在一种可能的实施方式中,当第一设备和目标设备之间的距离小于距离阈值时,表示第一设备和目标设备距离较近,满足第一条件中的距离条件,则对应的控制目标设备执行目标任务。
在一个示例性的例子中,若第一设备和目标设备之间的距离为80m,小于距离阈值100m,表示第一设备和目标设备之间较为接近,以用户回家为例(目标设备位于家中),即用户即将到家,则对应的需要在目标设备中执行目标任务,以便用户到家时可以直接在目标设备中继续未完成的目标任务。
在另一种可能的应用场景下,虽然云平台会预先根据目标任务在第一设备中的执行进度来预判到达目的地时,目标任务是否能够执行完成,从而确定是否需要预先协调目标设备,但是可能存在用户并不想跨设备执行该目标任务,因此,在唤醒目标设备执行目标任务之前,还应该向第一设备发送任务提示信息,用于提醒用户是否需要进行目标任务接力。
则对应的在确定第一设备和目标设备满足任务接力条件(第一条件),即满足网络条件或距离条件后,还可以包括以下步骤:
一、向第一设备发送任务接力提示,任务接力提示用于提醒是否进行跨设备任务接力。
在一种可能的实施方式中,若第一设备和目标设备满足第一条件,即第一设备和目标设备较为接近时,云平台向第一设备发送任务接力提示,则对应的,第一设备接收到云平台发送的任务接力提示,可以在当前任务界面显示该任务接力提示,以便提醒用户是否进行跨设备任务接力。
其中,任务接力提示的内容中包括目标设备(名称),以便提醒用户准备唤醒哪一个设备作为目标设备。可选的,任务接力提示中还显示有取消控件或确认控件,以便用户确认是否进行跨设备任务接力。
以目标任务为播放视频为例,如图8所示,其示出了本申请一个示例性实施例示出的第一设备触发任务接力的过程示意图。第一设备800正在视频播放界面801中播放视频A,此时,第一设备800接收到云平台发送的任务接力提示,则对应的在视频播放界面801中显示任务接力提示802“即将到家,正在唤醒电视接力播放”,且该任务接力提示中显示有确认控件803和取消控件804。可选的,任务接力提示中可以仅显示有取消控件804(即不显示确认控件803)。
可选的,任务接力提示中还可以显示有候选接力设备的名称,云平台不仅将目标设备的名称反馈给用户,对应的,为了给用户提供更多候选接力设备,当云平台确定出符合目标任务对应的候选接力设备为两个或两个以上时,可以将该候选接力设备的设备信息均反馈至第一设备,由用户选择需要由哪一个候选接力设备执行任务接力。
二、响应于接收到对任务接力提示的确认操作,控制目标设备继续执行目标任务。
在一种可能的实施方式中,若用户需要通过任务接力提示指示的目标设备进行目标任务接力,可以点击任务接力提示中的确认控件,则对应的云平台接收到对任务接力提示的确认操作,可以控制目标设备继续执行目标任务,即唤醒目标设备,在目标设备中执行目标任务。
可选的,当第一设备处于亮屏状态,任务接力提示可以采用全局提示(toast)形式,该任务接力提示可以在预设时间段后取消显示,若在该预设时间段内,并未接收到用户对任务接力提示的任意操作,则默认用户确认执行跨设备任务接力,预设时间段可以为5s。
在另一种可能的实施方式中,若用户点击任务接力提示中的取消控件时,则对应的云平台接收到对任务接力提示的取消操作,则确定用户无需进行跨设备任务接力,对应的,云平台终止唤醒目标设备以及在目标设备中执行目标任务等操作。
如图8所示,当用户点击任务接力提示802中的确认控件803时,则对应的云平台接收到对任务接力提示的确认操作,执行后续唤醒电视并在电视中播放该视频的任务;若用户点击任务接力提示802中的取消控件804时,则对应的云平台接收到对任务接力提示的取消操作,终止后续唤醒电视并在电视中播放该视频的任务。可选的,若任务接力提示中未显示有确认控件803,则对应的,若云平台在5s内未接收到对任务接力提示的取消操作,则默认唤醒电视并在电视中播放该视频。
可选的,若第一设备在接收到云平台发送的任务接力提示时,第一设备处于熄屏状态,则任务接力提示可以采用锁屏通知形式,并进行震动和声音提示,以便及时提醒用户。
在一种可能的实施方式中,若云平台接收到对任务接力提示的确认操作,则对应的需要唤醒目标设备,在目标设备中执行目标任务可以包括以下步骤:
1、控制目标设备启动。
在一种可能的实施方式中,云平台在接收到对任务接力提示的确认操作后,可以向目标设备发送任务接力指令,则对应的目标设备在接收到任务接力指令后,首先启动目标设备,即目标设备由关机状态切换为开机状态。
可选的,若目标设备为具备显示屏的设备,由于此时用户还未到达目标设备所在目标地点,为了降低目标设备的功耗,目标设备可以处于熄屏状态。
2、向目标设备发送目标任务和目标任务对应的当前执行进度,目标设备用于根据当前执行进度执行目标任务。
在一种可能的实施方式中,云平台从第一设备中获取到目标任务对应的当前执行进度,并将当前执行进度和目标任务发送给目标设备,对应的目标设备在接收到上述信息后,可以执行目标任务,并将目标任务的执行进度调整为当前执行进度。
在一个示例性的例子中,以目标任务为视频播放为例,则对应的视频在接收到目标视频和目标视频对应的播放进度后,在后台打开播放目标视频的应用程序,并在该应用程序中打开目标视频,并将目标视频的播放进度调整为第一设备中的播放进度,且该过程中,电视始终处于熄屏状态。
由于将目标任务调整为当前执行进度后,用户可能并未在目标设备中进行该目标任务,比如,用户还未到达目标设备所在目标地点,则对应的目标设备实时同步第一设备中目标任务的当前任务进度,只有在感知到用户需要在目标设备中继续执行目标任务时,在目标设备中继续执行目标任务。
在一个示例性的例子中,以目标任务为视频播放,目标设备为电视为例,电视在熄屏状态下打开电视摄像头,持续采集电视前端图像,则对应的,当用户坐在电视前端时,分析采集到的前端图像中是否存在目标人脸,该目标人脸为持有第一设备的用户对应的人脸,若存在,则表示用户到达家中,需要在电视中接力播放目标视频,则对应的将电视由熄屏状态切换为亮屏状态,并从当前播放进度开始继续播放目标视频。
如图9所示,其示出了目标设备触发任务接力的过程示意图。当目标设备900(智能电视)接收到云平台发送的任务接力指令后,则目标设备900启动,前端部分切换至熄屏状态,后台部分,更新电视系统(更新系统过程可以在接收到任务接力指令之前进行),并自动打开目标任务对应的应用程序,查找到视频资源,并将视频调整为第一设备中的执行进度;同时开启电视摄像头;当电视摄像头识别到目标人脸时,由熄屏状态切换为亮屏状态,当前界面中显示有当前下载速度234MB/s和视频A的来源(第一设备),并显示视频A的播放进度为13:20和总播放时长40:20;切换为亮屏状态后,接力播放视频A,即在视频播放界面901上从13:20处开始播放视频A。
本实施例中,通过设置任务接力条件(第一条件),即网络条件或距离条件,设置在第一设备和目标设备较为接近时,由第一设备端触发接力,并在接收到第一设备端对任务接力提示的确认操作后,由目标设备端进行后续任务接力过程。整个跨设备任务接力过程中,用户只需要进行很少的操作,即可实现目标任务在第一设备和目标设备之间的流转,简化了跨设备任务接力的操作流程。
需要说明的是,本申请实施例仅以目标任务在两个设备中的接力进行示例性说明,但是目标任务在两个及以上设备中的接力与上文实施例中所示的过程类似,本申请实施例在此不做赘述。
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。
请参考图10,其示出了本申请一个实施例提供的跨设备任务接力装置的结构框图。该装置具有实现上述方法实施例的功能,所述功能可以由硬件实现,也可以由硬件执行相应的软件实现。如图10所示,该装置可以包括:
第一获取模块1001,用于获取第一设备的第一设备状态,所述第一设备状态至少包括所述第一设备当前运行的目标任务;
第一确定模块1002,用于根据所述第一设备状态确定目标设备,所述目标设备不同于所述第一设备;
第一控制模块1003,用于响应于所述第一设备和所述目标设备满足第一条件,控制所述目标设备继续执行所述目标任务。
可选的,所述第一确定模块1002,包括:
第一获取单元,用于获取所述目标任务对应的目标任务类型;
第一确定单元,用于根据所述目标任务类型,从至少一个第二设备中确定出所述目标设备,所述第二设备对应各自所支持任务的任务类型,且所述目标设备所支持任务的任务类型与所述目标任务类型匹配。
可选的,所述第一设备状态中还包括所述第一设备对应的位置变化信息;
所述第一确定模块1002,还包括:
第二确定单元,用于根据所述位置变化信息,确定所述位置变化信息指示的目标地点;
第三确定单元,用于根据所述目标地点,从至少一个第二设备中确定出所述目标设备,所述第二设备对应各自所在地点,且所述目标设备位于所述目标地点。
可选的,所述第一设备状态中还包括所述第一设备对应的位置变化信息;
所述第一确定单元,还用于:
根据所述位置变化信息,确定所述位置变化信息指示的目标地点;
根据所述目标地点和所述目标任务类型,从至少一个所述第二设备中确定出所述目标设备,所述目标设备位于所述目标地点,且所述目标设备所支持任务的任务类型与所述目标任务类型匹配。
可选的,所述装置还包括:
第二获取模块,用于获取所述目标任务在所述第一设备中执行完成所需的第一时长;
第二确定模块,用于根据所述位置变化信息,确定到达所述目标地点所需的第二时长;
第三确定模块,用于响应于所述第一时长大于所述第二时长,执行所述根据所述第一设备状态确定目标设备的步骤。
可选的,所述任务接力条件包括距离条件和网络条件中的任意一种;
所述第一控制模块1003,包括:
第一控制单元,用于获取所述第一设备对应的第一网络环境信息和所述目标设备对应的第二网络环境信息;响应于所述第一网络环境信息和所述第二网络环境信息匹配,确定满足所述网络条件,并控制所述目标设备继续执行所述目标任务;
或,
第二控制单元,用于获取所述第一设备和所述目标设备之间的距离;响应于所述距离小于距离阈值,确定满足所述距离条件,并控制所述目标设备继续执行所述目标任务。
可选的,所述第一控制模块1003,还包括:
第一发送单元,用于向所述第一设备发送任务接力提示,所述任务接力提示用于提醒是否进行跨设备任务接力;
第三控制单元,用于响应于接收到对所述任务接力提示的确认操作,控制所述目标设备继续执行所述目标任务。
可选的,所述第一控制模块1003,包括:
第二获取单元,用于获取所述目标任务在所述第一设备中的当前执行进度;
第二发送单元,用于向所述目标设备发送任务接力指令,所述任务接力指令中包含所述目标任务和所述当前执行进度,所述目标设备用于根据所述当前执行进度执行所述目标任务。
可选的,所述装置还包括:
第三获取模块,用于获取所述目标设备对应的第二设备状态,所述第二设备状态包括系统状态、网络状态和电源状态中的至少一种;
第二控制模块,用于响应于所述第二设备状态满足第二条件,执行所述响应于所述第一设备和所述目标设备满足第一条件,控制所述目标设备继续执行所述目标任务的步骤,所述第二条件包括系统条件、网络条件和电源条件中的至少一种;
发送模块,用于响应于所述第二设备状态不满足所述第二条件,向所述目标设备发送设备状态更新指令,所述目标设备用于根据所述设备状态更新指令进行状态更新。
综上所述,本申请实施例中,通过云平台连接第一设备和目标设备,使得云平台可以根 据获取到的第一设备的设备状态,预先协调组织可用于进行跨设备任务接力的目标设备,并在满足第一条件后,自动控制目标设备执行第一设备对应的目标任务。相比于相关技术中,需要用户手段选择第二设备、选择应用程序以及执行目标任务,本申请实施例中所提供的跨设备任务接力方法可以在用户无感知的情况下实现同一任务在不同设备中的接力执行,减少了同一任务在不同设备中接力执行所需的流程,降低了跨设备执行任务的操作复杂度,从而提高了跨设备任务接力的效率,同时可以避免设备更替对任务执行连贯性的打断。
需要说明的是:上述实施例提供的装置在实现其功能时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置与方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
请参考图11,其示出了本申请一个实施例提供的服务器的结构框图。该服务器可用于实施上述实施例中由云平台执行的跨设备任务接力方法。具体来讲:
所述服务器1100包括中央处理单元(Central Processing Unit,CPU)1101、包括随机存取存储器(Random Access Memory,RAM)1102和只读存储器(Read-Only Memory,ROM)1103的系统存储器1104,以及连接系统存储器1104和中央处理单元1101的系统总线1105。所述服务器1100还包括帮助服务器内的各个器件之间传输信息的基本输入/输出系统(Input/Output系统,I/O系统)1106,和用于存储操作系统1113、应用程序1114和其他程序模块1115的大容量存储设备1107。
所述基本输入/输出系统1106包括有用于显示信息的显示器1108和用于用户输入信息的诸如鼠标、键盘之类的输入设备1109。其中所述显示器1108和输入设备1109都通过连接到系统总线1105的输入输出控制器1110连接到中央处理单元1101。所述基本输入/输出系统1106还可以包括输入输出控制器1110以用于接收和处理来自键盘、鼠标、或电子触控笔等多个其他设备的输入。类似地,输入输出控制器1110还提供输出到显示屏、打印机或其他类型的输出设备。
所述大容量存储设备1107通过连接到系统总线1105的大容量存储控制器(未示出)连接到中央处理单元1101。所述大容量存储设备1107及其相关联的计算机可读存储介质为服务器1100提供非易失性存储。也就是说,所述大容量存储设备1107可以包括诸如硬盘或者只读光盘(Compact Disc Read-Only Memory,CD-ROM)驱动器之类的计算机可读存储介质(未示出)。
不失一般性,所述计算机可读存储介质可以包括计算机存储介质和通信介质。计算机存储介质包括以用于存储诸如计算机可读存储指令、数据结构、程序模块或其他数据等信息的任何方法或技术实现的易失性和非易失性、可移动和不可移动介质。计算机存储介质包括RAM、ROM、可擦除可编程只读寄存器(Erasable Programmable Read Only Memory,EPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、闪存或其他固态存储其技术,CD-ROM、数字多功能光盘(Digital Versatile Disc,DVD)或其他光学存储、磁带盒、磁带、磁盘存储或其他磁性存储设备。当然,本领域技术人员可知所述计算机存储介质不局限于上述几种。上述的系统存储器1104和大容量存储设备1107可以统称为存储器。
存储器存储有一个或多个程序,一个或多个程序被配置成由一个或多个中央处理单元1101执行,一个或多个程序包含用于实现上述方法实施例的指令,中央处理单元1101执行该一个或多个程序实现上述各个方法实施例提供的跨设备任务接力方法。
根据本申请的各种实施例,所述服务器1100还可以通过诸如因特网等网络连接到网络上的远程服务器运行。也即服务器1100可以通过连接在所述系统总线1105上的网络接口单元1111连接到网络1112,或者说,也可以使用网络接口单元1111来连接到其他类型的网络或远程服务器系统(未示出)。
所述存储器还包括一个或者一个以上的程序,所述一个或者一个以上程序存储于存储器中,所述一个或者一个以上程序包含用于进行本申请实施例提供的方法中由云平台所执行的步骤。
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有至少一条程序代码,所述程序代码由处理器加载并执行以实现如上各个实施例所述的跨设备任务接力方法。
根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。服务器的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该服务器执行上述方面的各种可选实现方式中提供的跨设备任务接力方法。
应当理解的是,在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。另外,本文中描述的步骤编号,仅示例性示出了步骤间的一种可能的执行先后顺序,在一些其它实施例中,上述步骤也可以不按照编号顺序来执行,如两个不同编号的步骤同时执行,或者两个不同编号的步骤按照与图示相反的顺序执行,本申请实施例对此不作限定。
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (21)

  1. 一种跨设备任务接力方法,所述方法应用于云平台,所述方法包括:
    获取第一设备的第一设备状态,所述第一设备状态至少包括所述第一设备当前运行的目标任务;
    根据所述第一设备状态确定目标设备,所述目标设备不同于所述第一设备;
    响应于所述第一设备和所述目标设备满足第一条件,控制所述目标设备继续执行所述目标任务。
  2. 根据权利要求1所述的方法,其中,所述根据所述第一设备状态确定目标设备,包括:
    获取所述目标任务对应的目标任务类型;
    根据所述目标任务类型,从至少一个第二设备中确定出所述目标设备,所述第二设备对应各自所支持任务的任务类型,且所述目标设备所支持任务的任务类型与所述目标任务类型匹配。
  3. 根据权利要求1所述的方法,其中,所述第一设备状态中还包括所述第一设备对应的位置变化信息;
    所述根据所述第一设备状态确定目标设备,包括:
    根据所述位置变化信息,确定所述位置变化信息指示的目标地点;
    根据所述目标地点,从至少一个第二设备中确定出所述目标设备,所述第二设备对应各自所在地点,且所述目标设备位于所述目标地点。
  4. 根据权利要求2所述的方法,其中,所述第一设备状态中还包括所述第一设备对应的位置变化信息;
    所述根据所述目标任务类型,从至少一个第二设备中确定出所述目标设备,包括:
    根据所述位置变化信息,确定所述位置变化信息指示的目标地点;
    根据所述目标地点和所述目标任务类型,从至少一个所述第二设备中确定出所述目标设备,所述目标设备位于所述目标地点,且所述目标设备所支持任务的任务类型与所述目标任务类型匹配。
  5. 根据权利要求3所述的方法,其中,所述根据所述第一设备状态确定目标设备之前,所述方法还包括:
    获取所述目标任务在所述第一设备中执行完成所需的第一时长;
    根据所述位置变化信息,确定到达所述目标地点所需的第二时长;
    响应于所述第一时长大于所述第二时长,执行所述根据所述第一设备状态确定目标设备的步骤。
  6. 根据权利要求1至5任一所述的方法,其中,所述第一条件包括距离条件和网络条件中的任意一种;
    所述响应于所述第一设备和所述目标设备满足第一条件,控制所述目标设备继续执行所述目标任务,包括:
    获取所述第一设备对应的第一网络环境信息和所述目标设备对应的第二网络环境信息;响应于所述第一网络环境信息和所述第二网络环境信息匹配,确定满足所述网络条件,并控制所述目标设备继续执行所述目标任务;
    或,
    获取所述第一设备和所述目标设备之间的距离;响应于所述距离小于距离阈值,确定满足所述距离条件,并控制所述目标设备继续执行所述目标任务。
  7. 根据权利要求6所述的方法,其中,所述控制所述目标设备继续执行所述目标任务,还包括:
    向所述第一设备发送任务接力提示,所述任务接力提示用于提醒是否进行跨设备任务接 力;
    响应于接收到对所述任务接力提示的确认操作,控制所述目标设备继续执行所述目标任务。
  8. 根据权利要求1至5任一所述的方法,其中,所述控制所述目标设备继续执行所述目标任务,包括:
    获取所述目标任务在所述第一设备中的当前执行进度;
    向所述目标设备发送任务接力指令,所述任务接力指令中包含所述目标任务和所述当前执行进度,所述目标设备用于根据所述当前执行进度执行所述目标任务。
  9. 根据权利要求1至5任一所述的方法,其中,所述响应于所述第一设备和所述目标设备满足第一条件,控制所述目标设备继续执行所述目标任务之前,所述方法还包括:
    获取所述目标设备对应的第二设备状态,所述第二设备状态包括系统状态、网络状态和电源状态中的至少一种;
    响应于所述第二设备状态满足第二条件,执行所述响应于所述第一设备和所述目标设备满足第一条件,控制所述目标设备继续执行所述目标任务的步骤,所述第二条件包括系统条件、网络条件和电源条件中的至少一种;
    响应于所述第二设备状态不满足所述第二条件,向所述目标设备发送设备状态更新指令,所述目标设备用于根据所述设备状态更新指令进行状态更新。
  10. 一种跨设备任务接力装置,所述装置应用于云平台,所述装置包括:
    第一获取模块,用于获取第一设备的第一设备状态,所述第一设备状态至少包括所述第一设备当前运行的目标任务;
    第一确定模块,用于根据所述第一设备状态确定目标设备,所述目标设备不同于所述第一设备;
    第一控制模块,用于响应于所述第一设备和所述目标设备满足第一条件,控制所述目标设备继续执行所述目标任务。
  11. 一种云平台,所述云平台包括处理器和存储器,所述存储有至少一条程序代码,所述至少一条程序代码由所述处理器加载以执行如下步骤:
    获取第一设备的第一设备状态,所述第一设备状态至少包括所述第一设备当前运行的目标任务;
    根据所述第一设备状态确定目标设备,所述目标设备不同于所述第一设备;
    响应于所述第一设备和所述目标设备满足第一条件,控制所述目标设备继续执行所述目标任务。
  12. 根据权利要求11所述的云平台,其中,所述至少一条程序代码还用于被所述处理器加载以执行如下步骤:
    获取所述目标任务对应的目标任务类型;
    根据所述目标任务类型,从至少一个第二设备中确定出所述目标设备,所述第二设备对应各自所支持任务的任务类型,且所述目标设备所支持任务的任务类型与所述目标任务类型匹配。
  13. 根据权利要求11所述的云平台,其中,所述第一设备状态中还包括所述第一设备对应的位置变化信息,所述至少一条程序代码还用于被所述处理器加载以执行如下步骤:
    根据所述位置变化信息,确定所述位置变化信息指示的目标地点;
    根据所述目标地点,从至少一个第二设备中确定出所述目标设备,所述第二设备对应各自所在地点,且所述目标设备位于所述目标地点。
  14. 根据权利要求12所述的云平台,其中,所述第一设备状态中还包括所述第一设备对应的位置变化信息,所述至少一条程序代码还用于被所述处理器加载以执行如下步骤:
    根据所述位置变化信息,确定所述位置变化信息指示的目标地点;
    根据所述目标地点和所述目标任务类型,从至少一个所述第二设备中确定出所述目标设备,所述目标设备位于所述目标地点,且所述目标设备所支持任务的任务类型与所述目标任务类型匹配。
  15. 根据权利要求13所述的云平台,其中,所述至少一条程序代码还用于被所述处理器加载以执行如下步骤:
    获取所述目标任务在所述第一设备中执行完成所需的第一时长;
    根据所述位置变化信息,确定到达所述目标地点所需的第二时长;
    响应于所述第一时长大于所述第二时长,执行所述根据所述第一设备状态确定目标设备的步骤。
  16. 根据权利要求11至15任一所述的云平台,其中,所述第一条件包括距离条件和网络条件中的任意一种,所述至少一条程序代码还用于被所述处理器加载以执行如下步骤:
    获取所述第一设备对应的第一网络环境信息和所述目标设备对应的第二网络环境信息;响应于所述第一网络环境信息和所述第二网络环境信息匹配,确定满足所述网络条件,并控制所述目标设备继续执行所述目标任务;
    或,
    获取所述第一设备和所述目标设备之间的距离;响应于所述距离小于距离阈值,确定满足所述距离条件,并控制所述目标设备继续执行所述目标任务。
  17. 根据权利要求16所述的云平台,其中,所述至少一条程序代码还用于被所述处理器加载以执行如下步骤:
    向所述第一设备发送任务接力提示,所述任务接力提示用于提醒是否进行跨设备任务接力;
    响应于接收到对所述任务接力提示的确认操作,控制所述目标设备继续执行所述目标任务。
  18. 根据权利要求11至15任一所述的云平台,其中,所述至少一条程序代码还用于被所述处理器加载以执行如下步骤:
    获取所述目标任务在所述第一设备中的当前执行进度;
    向所述目标设备发送任务接力指令,所述任务接力指令中包含所述目标任务和所述当前执行进度,所述目标设备用于根据所述当前执行进度执行所述目标任务。
  19. 根据权利要求11至15任一所述的云平台,其中,所述至少一条程序代码还用于被所述处理器加载以执行如下步骤:
    获取所述目标设备对应的第二设备状态,所述第二设备状态包括系统状态、网络状态和电源状态中的至少一种;
    响应于所述第二设备状态满足第二条件,执行所述响应于所述第一设备和所述目标设备满足第一条件,控制所述目标设备继续执行所述目标任务的步骤,所述第二条件包括系统条件、网络条件和电源条件中的至少一种;
    响应于所述第二设备状态不满足所述第二条件,向所述目标设备发送设备状态更新指令,所述目标设备用于根据所述设备状态更新指令进行状态更新。
  20. 一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条程序代码,所述程序代码由处理器加载并执行以实现如权利要求1至9任一所述的跨设备任务接力方法。
  21. 一种计算机程序产品或计算机程序,所述计算机程序产品或计算机程序包括计算机指令,所述计算机指令存储在计算机可读存储介质中,处理器从所述计算机可读存储介质读取并执行所述计算机指令,以实现如权利要求1至9任一所述的跨设备任务接力方法。
PCT/CN2021/120717 2020-11-13 2021-09-26 跨设备任务接力方法、装置、云平台及存储介质 WO2022100300A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP21890828.3A EP4246393A4 (en) 2020-11-13 2021-09-26 CROSS-DEVICE TASK RELAY METHOD AND APPARATUS, CLOUD PLATFORM AND STORAGE MEDIUM
US18/196,439 US20230281037A1 (en) 2020-11-13 2023-05-12 Cross-device task relay method, cloud platform, and non-transitory storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011266766.6A CN112258086A (zh) 2020-11-13 2020-11-13 跨设备任务接力方法、装置、云平台及存储介质
CN202011266766.6 2020-11-13

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/196,439 Continuation US20230281037A1 (en) 2020-11-13 2023-05-12 Cross-device task relay method, cloud platform, and non-transitory storage medium

Publications (1)

Publication Number Publication Date
WO2022100300A1 true WO2022100300A1 (zh) 2022-05-19

Family

ID=74265491

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/120717 WO2022100300A1 (zh) 2020-11-13 2021-09-26 跨设备任务接力方法、装置、云平台及存储介质

Country Status (4)

Country Link
US (1) US20230281037A1 (zh)
EP (1) EP4246393A4 (zh)
CN (1) CN112258086A (zh)
WO (1) WO2022100300A1 (zh)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112258086A (zh) * 2020-11-13 2021-01-22 Oppo广东移动通信有限公司 跨设备任务接力方法、装置、云平台及存储介质
CN115706815A (zh) * 2021-08-05 2023-02-17 聚好看科技股份有限公司 终端设备的匹配方法及终端设备
WO2023010976A1 (zh) * 2021-08-05 2023-02-09 聚好看科技股份有限公司 终端设备、内容服务接力方法以及内容服务接力打断方法
CN115729426A (zh) * 2021-08-28 2023-03-03 华为技术有限公司 一种任务同步系统、方法及装置
CN115834936A (zh) * 2021-09-18 2023-03-21 华为技术有限公司 多设备投屏或内容接续方法、电子设备及装置
CN113891130A (zh) * 2021-09-18 2022-01-04 海信视像科技股份有限公司 显示设备及请求处理方法
CN114070838B (zh) * 2022-01-12 2022-11-22 北京智象信息技术有限公司 一种基于js控制智能音箱语音播放声线重叠的方法及装置
CN114866828B (zh) * 2022-03-25 2024-03-22 青岛海尔科技有限公司 音视频播放方法、装置、服务器、存储介质及产品
CN115022688A (zh) * 2022-05-26 2022-09-06 海信视像科技股份有限公司 一种显示设备及媒体数据接力方法
CN117597888A (zh) * 2022-06-16 2024-02-23 北京小米移动软件有限公司 一种跨设备的网络管理方法、装置及电子设备
CN115297352B (zh) * 2022-06-27 2024-03-22 青岛海尔科技有限公司 视频续播方法及装置、存储介质及电子装置
CN117675993A (zh) * 2022-08-29 2024-03-08 Oppo广东移动通信有限公司 跨设备接续方法、装置、存储介质及终端设备
CN117520020B (zh) * 2024-01-05 2024-03-29 同盾科技有限公司 用于实现隐私计算的数据交互方法、装置、系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546453A (zh) * 2013-08-22 2014-01-29 合一网络技术(北京)有限公司 一种跨设备播放多媒体的方法及设备
US20170357534A1 (en) * 2016-06-14 2017-12-14 Microsoft Technology Licensing, Llc Cross-device task execution
CN109660842A (zh) * 2018-11-14 2019-04-19 华为技术有限公司 一种播放多媒体数据的方法及电子设备
CN112258086A (zh) * 2020-11-13 2021-01-22 Oppo广东移动通信有限公司 跨设备任务接力方法、装置、云平台及存储介质
CN112307405A (zh) * 2020-11-16 2021-02-02 Oppo广东移动通信有限公司 跨设备的应用接力方法、装置、设备、系统及存储介质

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070198682A1 (en) * 2006-02-22 2007-08-23 Pazhyannur Rajesh S Method and system for seamless media handover across devices
US9571536B2 (en) * 2014-08-29 2017-02-14 Microsoft Technology Licensing, Llc Cross device task continuity
CN109788030B (zh) * 2018-12-17 2021-08-03 北京百度网讯科技有限公司 无人车数据处理方法、装置、系统及存储介质
CN111431968B (zh) * 2020-02-26 2021-09-21 华为技术有限公司 服务元素的跨设备分配方法、终端设备及存储介质
CN111740887B (zh) * 2020-06-22 2022-09-23 广州三星通信技术研究有限公司 分发电子终端的未完任务的方法及设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546453A (zh) * 2013-08-22 2014-01-29 合一网络技术(北京)有限公司 一种跨设备播放多媒体的方法及设备
US20170357534A1 (en) * 2016-06-14 2017-12-14 Microsoft Technology Licensing, Llc Cross-device task execution
CN109660842A (zh) * 2018-11-14 2019-04-19 华为技术有限公司 一种播放多媒体数据的方法及电子设备
CN112258086A (zh) * 2020-11-13 2021-01-22 Oppo广东移动通信有限公司 跨设备任务接力方法、装置、云平台及存储介质
CN112307405A (zh) * 2020-11-16 2021-02-02 Oppo广东移动通信有限公司 跨设备的应用接力方法、装置、设备、系统及存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4246393A4

Also Published As

Publication number Publication date
CN112258086A (zh) 2021-01-22
EP4246393A1 (en) 2023-09-20
EP4246393A4 (en) 2024-04-17
US20230281037A1 (en) 2023-09-07

Similar Documents

Publication Publication Date Title
WO2022100300A1 (zh) 跨设备任务接力方法、装置、云平台及存储介质
US10789044B2 (en) End-to-end user experiences with a digital assistant
US20220020339A1 (en) Display method and apparatus
US8880648B1 (en) Automated transition of content consumption across devices
US10671634B2 (en) Adjusting push notifications based on location proximity
US8793397B2 (en) Pushing notifications based on location proximity
US9058128B1 (en) Power management for electronic devices
EP2972934B1 (en) Device resource management based on contextual planning
JP6228676B2 (ja) 接続状態プロンプティング方法および装置
US20150317353A1 (en) Context and activity-driven playlist modification
KR20150035372A (ko) 환경설정 업데이트 메커니즘을 갖는 컴퓨팅 시스템 및 그 작동 방법
US20120190379A1 (en) Intelligent Management of Location Sensor
CN105723353B (zh) 远程用户的联系状态的通知
EP3192220A1 (en) Real-time sharing during a phone call
US10856130B2 (en) Smart discovery of wireless receivers
CN111090687B (zh) 数据处理方法及装置、系统、计算机可读存储介质
KR20200085228A (ko) 예측 미디어 라우팅
US9529884B2 (en) Usage based synchronization of note-taking application features
US11928649B2 (en) Resolving remote meeting conflicts using learned attributes and context information
US10423931B2 (en) Dynamic processing for collaborative events
EP4207924A1 (en) Processing method, device, and storage medium
US11304026B2 (en) Assisted micro-environment interaction
EP2827570B1 (en) Method of providing location based service and electronic device thereof
US9792556B2 (en) Mapping gathered location information to short form place names using correlations and confidence measures that pertain to lengths of overlaps of location data and calendar data sets
WO2023024894A1 (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: 21890828

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021890828

Country of ref document: EP

Effective date: 20230612