Cross-device task relay method, device, cloud platform and storage medium
The cloud platform automatically coordinates device status to achieve cross-device task relay, which solves the problems of cumbersome operations and interrupted task continuity when switching devices, and improves task execution efficiency and user experience.
Patent Information
- Application Number
- CN202011266766.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-13
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-11-13
AI Technical Summary
In the existing technology, when switching devices, users need to manually operate to continue watching videos and other tasks between different devices, which results in cumbersome operation processes, increases the user's viewing costs and the complexity of task execution, and device replacement may interrupt the continuity of tasks. sex.
Connect different devices through the cloud platform, obtain device status and automatically coordinate the target device to continue performing tasks. Users do not need to manually select devices or applications to realize the automation of cross-device task relay.
It reduces the operational complexity of task relay execution between devices, improves efficiency, avoids interruption of task coherence by equipment replacement, and realizes task relay execution without user awareness.
Smart Images

Figure CN112258086B
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of task relay, and in particular to a cross-device task relay method, apparatus, cloud platform, and storage medium. Background Art
[0002] As time becomes more fragmented, people often use their spare time and “on the road” time to do a continuous task, such as watching videos, listening to books, reading electronic documents, etc. However, due to the switching of environments and the replacement of dependent devices, the continuity of things is interrupted.
[0003] For example, in the related art, when a user is riding on the subway, he or she uses a mobile phone to watch a movie, but when he or she arrives home, the movie has not been played completely. If the user wants to switch to a computer to continue watching at home, he or she needs to manually reopen the video playback application on the computer, search for movie resources, and play the movie. It can be seen that when switching devices to watch videos, many repeated operations are required.
[0004] Adopting the cross-device video playback method in related technology will obviously increase the viewing cost of users watching the same movie, and the operation process is more cumbersome. Summary of the invention
[0005] The embodiment of the present application provides a cross-device task relay method, apparatus, cloud platform and storage medium. The technical solution is as follows:
[0006] On the one hand, an embodiment of the present application provides a cross-device task relay method, which is applied to a cloud platform and includes:
[0007] 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;
[0008] determining a target device according to the first device state, the target device being different from the first device;
[0009] In response to the first device and the target device satisfying a first condition, controlling the target device to continue executing the target task.
[0010] On the other hand, an embodiment of the present application provides a cross-device task relay device, which is applied to a cloud platform and includes:
[0011] A first acquisition module, configured to acquire a first device state of a first device, wherein the first device state at least includes a target task currently running on the first device;
[0012] A first determining module, configured to determine a target device according to the first device state, wherein the target device is different from the first device;
[0013] The first control module is configured to control the target device to continue executing the target task in response to the first device and the target device satisfying a first condition.
[0014] On the other hand, an embodiment of the present application provides a cloud platform, which includes a processor and a memory, wherein the memory stores at least one program code, and the program code is loaded and executed by the processor to implement the cross-device task relay method as described in the above aspects.
[0015] On the other hand, an embodiment of the present application provides a computer-readable storage medium, in which at least one program code is stored, and the program code is loaded and executed by a processor to implement the cross-device task relay method as described in the above aspects.
[0016] On the other hand, an embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a server reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the server executes the cross-device task relay method provided in various optional implementations of the above aspects.
[0017] The technical solution provided in the embodiments of the present application can bring the following beneficial effects:
[0018] 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 device that can be used for cross-device task relay according to the device status of the first device obtained, and automatically control the target device to execute the target task corresponding to the first device after the first condition is met. Compared with the related art, which requires the user to manually select the second device, select the application, and execute the target task, the cross-device task relay method provided in the embodiment of the present application can realize the relay execution of the same task in different devices without the user's perception, reducing the process required for the relay execution of the same task in different devices, reducing the operational complexity of executing tasks across devices, thereby improving the efficiency of cross-device task relay, and avoiding the interruption of task execution continuity due to device replacement. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 A schematic diagram of an implementation environment shown in an exemplary embodiment of the present application is shown;
[0021] Figure 2 A flowchart of a cross-device task relay method provided by an exemplary embodiment of the present application is shown;
[0022] Figure 3 A flowchart of a cross-device task relay method provided by another exemplary embodiment of the present application is shown;
[0023] Figure 4 A schematic diagram of a process of playing a video across devices is shown in an exemplary embodiment of the present application;
[0024] Figure 5 A flowchart of a cross-device task relay method provided by another exemplary embodiment of the present application is shown;
[0025] Figure 6 A flowchart of a cross-device task relay method provided by another exemplary embodiment of the present application is shown;
[0026] Figure 7 A flowchart of a cross-device task relay method provided by another exemplary embodiment of the present application is shown;
[0027] Figure 8 A schematic diagram of a process of a first device triggering a task relay is shown in an exemplary embodiment of the present application;
[0028] Fig. 9 A schematic diagram showing the process of target device triggering task relay;
[0029] Fig.10 A structural block diagram of a cross-device task relay apparatus provided by an embodiment of the present application is shown;
[0030] Fig.11 A structural block diagram of a server provided by an embodiment of the present application is shown. DETAILED DESCRIPTION
[0031] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0032] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment shown in an exemplary embodiment of the present application, wherein the implementation environment includes a first device 101, a cloud platform 102 and at least one second device 103.
[0033] The first device 101 is a device with data transmission function, which can be a portable electronic device such as a smart phone, a tablet computer, a smart speaker, a smart watch, an e-book reader, etc. In the embodiment of the present application, the first device 101 can send its own device status (first device status) to the cloud platform 102 in real time, so that the cloud platform 102 can determine the target device from at least one second device 103 according to the first device status of the first device 101, and automatically execute the current running task of the first device in the target device. Among them, the first device status can be: running applications, executing tasks (playing music, playing videos, playing e-books, etc.), etc.
[0034] The first device 101 is connected to the cloud platform 102 via a wired or wireless method.
[0035] 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 with 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 a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. In an embodiment of the present application, the cloud platform 102 can receive the first device status sent by the first device 101 in real time, and analyze the second device 103 that can be used for task relay based on the first device status. Optionally, the cloud platform 102 can synchronize the currently running tasks sent by the first device 101 to the second device 103 during the task relay process.
[0036] The cloud platform 102 and at least one second device 103 are connected via wired or wireless means.
[0037] The second device 103 is a device with a task relay function. It can be a smart phone, a smart speaker, a tablet computer, a smart TV, an e-book reader, a personal computer, etc. In the embodiment of the present application, the second device 103 can receive a task relay instruction sent from the cloud platform 102, and the task relay instruction includes at least a task to be relayed (i.e., the current running task in the first device 101), and continue to execute the current running task in the second device 103.
[0038] It should be noted that the 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, wherein the user account can be an account issued by the cloud platform 102 or other third-party application account, and the embodiments of the present application do not constitute a limitation on this.
[0039] Please refer to Figure 2 , which shows a flowchart of a cross-device task relay method provided by an exemplary embodiment of the present application. The present application embodiment applies this method to Figure 1 Taking the cloud platform shown in FIG. 1 as an example, the method includes:
[0040] 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.
[0041] Among them, the first device status may include the target task currently running on 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 status. The first device status at least includes the status information required for the cloud platform to perform cross-device task relay.
[0042] In a possible implementation, the first device sends the target task currently being run by the first device to the cloud platform in real time, and correspondingly, the cloud platform obtains the first device status of the first device.
[0043] In an illustrative example, 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 embodiment of the present application does not limit the specific content of the target task.
[0044] Optionally, since information such as the first device status may involve user privacy information, in order to avoid the first device sending status information involving user privacy information to the cloud platform, which would lead to leakage of user privacy information, in a possible implementation, before sending the first device status, the captured first device status can be desensitized, and then the desensitized first device status can be sent to the cloud platform.
[0045] In other possible implementations, the user can set tasks in the first device that allow uploading of the device status. For example, for email tasks, it may involve the user's privacy information, and the email task is not allowed to be uploaded to the cloud platform. For tasks that do not involve user privacy information, such as video tasks, video tasks are allowed to be uploaded to the cloud platform; or set target applications that allow uploading of the device status. For example, video applications, reading applications, and music playback applications can upload target tasks to the cloud platform, while applications that involve user privacy information, such as electronic banking, are not allowed to upload target tasks to the cloud platform.
[0046] If the first device sends the first device status 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, a trigger control is provided in the first device. If the user needs or predicts that he or she may have the need to perform the same task across devices, the trigger control can be clicked. The corresponding first device then receives the click operation on the trigger control and sends the first device status to the cloud platform. Optionally, the first device sends the first device status to the cloud platform when it detects that a target task is running. If the first device is in standby mode or no target task is running in the foreground, there is no need to send the first device status to the cloud platform. Optionally, a plurality of cross-device task options are provided in the first device, and the user can pre-select at least one of them. When the first device detects that a pre-selected target task is running in the foreground, the first device sends the first device status to the cloud platform.
[0047] In other possible implementations, in order to further reduce terminal power consumption, the first device status can be sent to the cloud platform every preset time period, for example, every 30 minutes, or when a change in the device status of the first device is detected, an updated first device status is sent to the cloud platform.
[0048] Step 202: determine a target device according to the state of the first device, where the target device is different from the first device.
[0049] For the cross-device task relay scenario, the first device and the target device are different devices. In one possible implementation, in order to ensure that the target task is transmitted in a trusted device, the first device and the target device are both devices pre-registered in the cloud 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, which can be created for the user by the cloud platform; or authorized by the same third-party application.
[0050] In a possible application scenario, the cloud platform associates and stores task relay devices corresponding to the same user account, where the task relay devices include a first device and at least one target device. When the cloud platform receives the first device status sent by the first device, it obtains the user account information corresponding to the first device, and searches for the corresponding at least one target device (devices in the task relay devices other than the first device) from the cloud platform based on the user account information.
[0051] Regarding the method of determining the target device, in one possible implementation, the cloud platform can determine the second device that can perform the target task as the target device based on the target task included in the state of the first device. For example, if the target task is video playback, a device that can play videos is selected from the second devices as the target device; or, the cloud platform can predict the location of the relay device based on the location information included in the state of the first device, and determine the second device at the location as the target device; or, the user can pre-set the relay priority of at least one second device, and the cloud platform obtains the relay priority, and then determines the target device from at least one second device according to the relay priority.
[0052] In the cross-device task relay process shown in the embodiment of the present application, the cloud platform plays an intermediate role in analyzing the state of the first device and coordinating and organizing the target device in advance according to the state of the first device. In one possible implementation, the cloud platform receives the first device state sent by the first device and determines the target device based on the state of the first device.
[0053] Step 203: In response to the first device and the target device satisfying the first condition, controlling the target device to continue to execute the target task.
[0054] In one possible implementation, after the cloud platform determines the target device based on the status of the first device, it can directly synchronize the running tasks in the first device to the target device, that is, the cloud platform obtains the target task currently running in the first device and controls the synchronous execution of the target task in the target device.
[0055] Taking into account the power consumption of the target device, in order to reduce the power consumption of the target device, in a possible implementation, a first condition (i.e., a task relay condition) is set. After the first condition is met, the cloud platform can send a task relay instruction to the target device so that the target device performs the target task according to the task relay instruction.
[0056] The first condition is pre-set by the user or set by the system by default. For example, the first condition can be that when it is detected that the distance between the first device and the target device is relatively close, it means that the user may need to perform a cross-device task relay, and the target task is synchronized to the target device; or when it is detected that the target task in the first device is paused, it means that the user may want to change the device to continue the operation, and the target device is controlled to automatically execute the target task; or when it is detected that the first device and the target device are connected to the same network, such as the same wireless network, it means that the first device and the target device are relatively close, and the target device can be controlled to execute the target task.
[0057] In summary, in the embodiment of the present application, 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 device that can be used for cross-device task relay according to the device status of the first device obtained, and automatically control the target device to execute the target task corresponding to the first device after the first condition is met. Compared with the related art, which requires the user to manually select the second device, select the application, and execute the target task, the cross-device task relay method provided in the embodiment of the present application can realize the relay execution of the same task in different devices without the user's perception, reducing the process required for the relay execution of the same task in different devices, reducing the operational complexity of executing tasks across devices, thereby improving the efficiency of cross-device task relay, and at the same time avoiding the interruption of task execution continuity by device replacement.
[0058] In a possible application scenario, during the task relay across devices, it is necessary to consider the execution progress of the same task in the original device. If the target task is only automatically executed in the target device, and the execution progress of the task in the original device (first device) of the user is ignored, it is obvious that the device replacement will affect the continuity of the relay task. Therefore, in a possible implementation, during the task relay, the current execution progress of the target task in the first device is obtained and 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.
[0059] In an illustrative example, Figure 3 As shown, it shows a flowchart of a cross-device task relay method provided by another exemplary embodiment of the present application. The present application embodiment is applied to the method Figure 1 Taking the cloud platform shown in FIG. 1 as an example, the method includes:
[0060] Step 301: 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.
[0061] The implementation of this step can refer to the above embodiment, and this embodiment will not be described in detail here.
[0062] Step 302: Obtain the target task type corresponding to the target task.
[0063] Since the target task needs to be relayed in the target device, it is first necessary to ensure that the target device can execute the target task to avoid the screened target device being unable to execute the target task, resulting in task relay failure. Therefore, in a possible implementation, the target task type corresponding to the target task (task to be relayed) is used as a screening condition for screening out the target device from multiple second devices.
[0064] 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 target 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 e-reading class. The embodiments of the present application do not limit the target task type.
[0065] 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 tasks supported by the respective second devices, and the task types of the tasks supported by the target device match the target task type.
[0066] Among them, different second devices correspond to their own supported task types. For example, a smart TV can support video playback, a smart speaker can support music playback, and so on.
[0067] According to the task relay requirements, when determining the target device, it is necessary to ensure that the target device can support the execution of tasks of the target task type. Therefore, in a possible implementation, the target device can be determined from at least one second device according to the target task type.
[0068] In an illustrative example, if the target task type is video playback, then a device capable of video playback is selected from at least one second device as a target device, such as a (smart) TV, a projector, a tablet computer, etc.; if the target task type is music playback, then a device capable of music playback is selected from at least one second device as a target device, such as a smart speaker, an audio device, a TV, etc.; if the target task type is e-reading, then a device capable of e-reading is selected from at least one second device as a target device, such as a smart phone, an e-reader, a tablet computer, etc.
[0069] In a possible application scenario, if there are at least two candidate relay devices in the second device whose task types support tasks that match the target task type, for example, if the target task type is video playback, then the corresponding second devices may include smart TVs, tablet computers, etc., which can all be used as target devices. In order to avoid simultaneously relaying the same task on multiple target devices and occupying resources of other devices, in a possible implementation, a device relay priority is set, and the target device is determined from multiple candidate relay devices according to the device relay priority.
[0070] In an exemplary example, a method for determining a target device from candidate relay devices according to a device relay priority may include the following steps:
[0071] 1. In response to the existence of at least two candidate relay devices whose task types supported by tasks matching the target task type, obtaining a device relay priority corresponding to the target task type.
[0072] Among them, 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 computer>smartphone; for music playback, the device relay priority is: smart speaker>audio equipment>smartphone; for e-reading, the device relay priority is: e-book reader>tablet computer>smartphone.
[0073] In one possible implementation, the user can set the device relay priority corresponding to different task types according to their own needs and submit it to the cloud platform for storage, so that when it is determined that there are at least two candidate relay devices that support the task corresponding to the target task type, the device relay priority corresponding to the target task type can be obtained, and the target device can be determined from multiple candidate relay devices according to the device relay priority.
[0074] 2. Determine the candidate relay device with the highest device relay priority as the target device.
[0075] In one possible implementation, a candidate relay device with the highest device relay priority is determined as a target device. For example, if the target task type is video playback, there are multiple candidate relay devices: smart TVs, tablet computers, smart phones, projection devices, etc. In order to avoid occupying device resources by executing the same task in multiple candidate relay devices, the device relay priority of the above-mentioned candidate relay devices in the target task type of video playback is obtained as follows: smart TV>projection device>tablet computer>smart phone. It can be seen that the smart TV has the highest priority, and the smart TV is correspondingly used as the target device.
[0076] Optionally, if the candidate relay device with the highest priority cannot perform task relay, for example, it is not connected to the power supply, has low battery, has poor network status, or is performing other tasks (cannot perform multiple tasks simultaneously), etc., the next-level candidate relay device can be selected as the target device according to the device relay priority. For example, if the smart TV cannot perform task relay, the next-level projection device will be selected as the target device.
[0077] Step 304: In response to the first device and the target device satisfying the first condition, the current execution progress of the target task in the first device is obtained.
[0078] In order to maintain the consistency of the target task in different devices, in one possible implementation, 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 progress of the target task in the first device, and sends the current execution progress to the target device, so that the task execution progress in the two devices is the same, thereby ensuring the consistency of task transmission in different devices.
[0079] In an illustrative example, Figure 4 As shown, it shows a schematic diagram of the process of cross-device video playback shown in an exemplary embodiment of the present application. If before the relay (that is, after the task relay conditions are met), the first device 410 plays video A in the video playback interface 411, and the total playback time of video A is 40:20, and video A is played to 13:20, then 13:20 is correspondingly determined as the current execution progress of the target task of playing video A, and sent to the cloud platform 420. Correspondingly, the cloud platform 420 obtains the current execution progress corresponding to the target task.
[0080] Step 305: Send a task relay instruction to the target device. The task relay instruction includes the target task and the current execution progress. The target device is used to execute the target task according to the current execution progress.
[0081] In one possible implementation, a task relay instruction is used to control the target device to continue executing 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 its corresponding current execution progress in the task relay instruction and sends it to the target device, so that the target device obtains the task that needs to be relayed (that is, the target task), and automatically adjusts the target task to the current execution progress, and continues to execute the target task from the current execution progress.
[0082] like Figure 4As shown, when performing task relay, the cloud platform 420 obtains that the playback progress (current execution progress) of video A in the first device 410 is 13:20, carries the target task and the current execution progress "video A+13:20" in the task relay instruction, and sends the task relay instruction carrying "video A+13:20" to the target device 430 (smart TV). After receiving the task relay instruction, the corresponding smart TV searches for video A, opens the video playback interface 431 corresponding to video A, and adjusts the playback progress of video A to 13:20, so that video A can continue to be played from 13:20.
[0083] In this embodiment, by obtaining the target task type of the target task (task to be relayed), the target device is determined from multiple 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; in addition, after the task relay conditions are met, the current execution progress of the target task is obtained from the first device, and the task execution instruction is sent to the target device, so that the target device can continue to execute the target task according to the current execution progress, avoiding the user from manually adjusting the execution progress of the target task in the target device, thereby maintaining the continuity of the target task relay between different devices.
[0084] In another possible application scenario, if there is a need for task relay when the user is in a mobile state, for example, the user watches a movie on a mobile phone on the way home, and when the user returns home, the movie may not be fully played, and there is a need to relay the movie on the TV at home. It can be seen that when performing task relay across devices, the target device can also be determined according to the target location indicated by the position change information of the first device.
[0085] In an illustrative example, in Figure 3 On the basis of Figure 5 As shown, step 302 and step 303 can be replaced by step 501 and step 502.
[0086] Step 501: Determine the target location indicated by the location change information according to the location change information.
[0087] Among them, the first device status also includes the location change information corresponding to the first device. The location change information may be the location coordinate change information of the first terminal within a preset time period. For example, the first terminal transmits the current location coordinates to the cloud platform in real time within the preset time period, and the corresponding cloud platform receives the current location coordinates within the preset time period. According to the changes in the location coordinates, the possible target location of the user holding the first device can be analyzed.
[0088] In one possible implementation, the cloud platform can pre-acquire multiple locations that the user frequently visits, such as home, company or school, and store them in association with the user account. When the user returns home from the company, the first device sends location coordinate information to the cloud in real time. The cloud platform can then determine that the movement direction of the first device is from the company to the home based on the location change information over a period of time, and the corresponding target location is home.
[0089] In other possible implementations, the location change information may also include information about the means of transportation taken by the user. For example, when the user uses the first device to swipe a card to enter a subway station, or swipe a card to take a bus using the first device, the first device may upload the user's transportation information such as taking the subway or bus to the cloud platform. 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 stops and bus routes taken by the user, thereby determining the target location the user wants to reach by taking the subway or bus.
[0090] Step 502, according to the target location, determine a target device from at least one second device, the second devices correspond to respective locations, and the target device is located at the target location.
[0091] Among them, different second devices correspond to their own locations or positions. For example, the smart TV is located at home, the projector is located at the company, the desktop computer is located at the company, and the laptop is located at home.
[0092] In order to make the determined target device meet the user's mobile destination, in a possible implementation, when filtering the target devices, the target location indicated by the location change information of the first device is used as a filtering condition, that is, the target device needs to be located at the target location indicated by the location change information.
[0093] Correspondingly, when storing multiple relay devices (second devices) in the cloud platform, it is necessary to store their corresponding location information at the same time. The location information can be a note of the location next to the second device logo, such as "TV (home), computer A (company), computer B (home)", etc.; or the location coordinates corresponding to the second device are directly marked next to it, such as: "TV (111, 112), computer B (101, 187), etc.
[0094] In an illustrative example, if the target location indicated by the location change information is determined to be "home" based on the location relationship information of the first device, the second device located in "home" can be determined as the target device. For example, if a smart TV is located at home, the smart TV will be determined as the target device accordingly.
[0095] Optionally, if it is determined that at least two second devices are located at the target location, in order to avoid occupation of device resources by determining multiple second devices as target devices, in one possible implementation, the task relay priority of different second devices located in the same location can be set. Correspondingly, when determining the target device, at least one candidate device is first determined from the second devices according to the target location. If there are many candidate devices that meet the target location, the task relay priority of each second device in the target location is obtained, and the second device with the highest task relay priority is determined as the target device.
[0096] In an illustrative example, if the target location is determined to be "home", the corresponding second devices at the target location include: a smart TV, a tablet computer and a laptop computer, and the task relay priority of each second device is: smart TV>laptop computer>tablet computer, then the second device with the highest task relay priority is selected as the target device, that is, the smart TV is determined as the target device.
[0097] In another possible application scenario, if the target device is determined only based on either the target task type or the target location, when the user is in a mobile state, for example, when the user is on the way home, if the target device is determined only based on the target task type, it may result in the determined target device being not located at home (i.e., not located at the target location) but at some other location, resulting in the need to switch the target device. Therefore, in order to improve the accuracy of determining the target device, in one possible implementation, the target location and the target task type are used as comprehensive screening conditions to determine the target device from at least one second device.
[0098] In an exemplary example, the above cross-device task relay method may further include the following steps:
[0099] 1. According to the target location and the target task type, a target device is determined from 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.
[0100] In order to further improve the accuracy of determining the target device, in one possible implementation, the cloud platform obtains the target task currently running by the first device, determines the target task type corresponding to the target task (task to be relayed), and obtains the position change information corresponding to the first device, determines the target location indicated by the position change information, and uses the target task type and the target task as comprehensive screening conditions for determining the target device, that is, the target device needs to support the target task type corresponding to the target task, and also needs to be located at the target location.
[0101] In an illustrative example, if the target location is determined to be "home" and the target task type is video playback, the second devices matching the target task type include "smart TVs, tablet computers, smart phones, projection equipment, 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 at the company; and smart phones are carried with you. By filtering multiple second devices based on "home + video playback" as the filtering condition, it can be determined that the target device is a smart TV.
[0102] In another possible implementation, if at least two candidate relay devices that meet the above screening conditions are determined, the target device can be determined from multiple candidate relay devices according to the preset device relay priority. The method of determining the target device from multiple candidate relay devices according to the device relay priority can refer to the above embodiment, and this embodiment will not be repeated here.
[0103] In this embodiment, the first device uploads its own location change information, so that the cloud platform can analyze the target location where the target device should be located based on the location change information, so that the target device can be filtered according to the target location, so that the target device is consistent with the moving destination of the first device; in addition, after determining the target location, the target location and target task type can be used as comprehensive filtering conditions to improve the accuracy of determining the target device.
[0104] Since the cloud platform plays the role of coordinating the target devices 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 requires task relay in order to determine the timing of task relay. Therefore, in one possible implementation, the cloud platform determines whether the target task requires cross-device relay by analyzing whether the target task has arrived at the target location based on the first device status provided by the first device.
[0105] In an illustrative example, Figure 6 As shown, it shows a flowchart of a cross-device task relay method provided by another exemplary embodiment of the present application. The present application embodiment is applied to the method Figure 1 Taking the cloud platform shown in FIG. 1 as an example, the method includes:
[0106] Step 601: 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 and location change information corresponding to the first device.
[0107] Because the cloud platform needs to consider the completion status of the target task reaching the target location when analyzing whether to relay the target task across devices, in one possible implementation, the first device needs to upload its corresponding location change information to the cloud platform to determine the target location indicated by the location change information.
[0108] Step 602: Obtain a first duration required for the target task to be executed and completed in the first device.
[0109] For the scenario of task relay across devices, the target task needs to be continued in the target device only if it cannot be completed in the first device. Therefore, in one possible implementation, it is necessary to obtain the time required for the target task to be completed in the first device (i.e., the first time), combined with the corresponding position change information, to predict whether there is a need to execute the target task across devices.
[0110] Regarding the method of determining the first duration, in one possible implementation, it can be determined based on the total execution duration required for 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 the first duration.
[0111] In an illustrative example, for example, the first device is playing video A, the current video playback progress corresponding to video A is 13:50, and the total video duration corresponding to video A is 01:20:50, then the corresponding first duration is the difference between the total video duration and the current video playback progress, which is 1 hour and 7 minutes.
[0112] Step 603: Determine a second time required to reach the target location based on the location change information.
[0113] If the second duration needs to be determined, it is necessary to determine the target location and the vehicle the user takes or the user's moving speed based on the location change information. Therefore, in a possible implementation, the cloud platform determines the target location indicated by the location change information, as well as the vehicle or moving speed indicated by the location change information by analyzing the location change information uploaded by the first device. The method for determining the target location and the vehicle can be referred to the above embodiment, which will not be elaborated in this embodiment.
[0114] Among them, the method of determining the moving speed according to the position change information is that the cloud platform can estimate the corresponding moving speed according to the first device position coordinate information received within a preset time period and the displacement formula.
[0115] In one possible implementation, if the target location and means of transportation are determined based on the location change information, the second time required to reach the target location can be determined based on the operating speed of the means of transportation. Taking the user taking the subway as an example, the subway moving speed, target location and current location are obtained, and the second time required to reach the target location from the current location is estimated.
[0116] In another possible implementation, the cloud platform can estimate the movement speed of the user (first device) based on the change in location information within a preset time period, and then estimate the second time required to reach the target location from the current location based on the current location and target location uploaded by the first device.
[0117] In an illustrative example, if the distance between the target location and the current location is 36 km and the moving speed of the first device (user) is 20 m / s, the second time required to reach the destination is 30 minutes.
[0118] Step 604: in response to the first duration being greater than the second duration, determining a target device according to the first device state, the target device being different from the first device.
[0119] The condition for judging whether the target task needs to be executed across devices is as follows: judging whether the target task can be executed upon arrival at the target location, the relationship between the first duration and the second duration needs to be compared. If the first duration is greater than the second duration, it indicates that the target task cannot be executed upon arrival at 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 indicates that the target task can be executed before arrival at the target location, and there is no need to execute the target task across devices.
[0120] In an illustrative example, if the first duration is 1 hour and 7 minutes and the second duration is 30 minutes, and the first duration is greater than the second duration, it means that video A cannot be played completely when reaching the target location, and it may be necessary to play video A across devices; if the first duration is 20 minutes and the second duration is 30 minutes, and the first duration is less than the second duration, it means that video A can be played completely before reaching the target location, and there is no need to play video A across devices.
[0121] For scenarios where the target task needs to be executed across devices, that is, the first duration is greater than the second duration, the cloud platform needs to coordinate multiple second devices in advance and determine the target device from the first device based on the status of the first device to prepare for the subsequent target task relay.
[0122] 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.
[0123] In one possible application scenario, although the target device is determined in advance, if the network status of the target device is poor, or the target device has a system update task, or the target device is low on battery, the target device may fail to execute the target task, resulting in a relay failure of the target task. For example, the target device loses power and the target task cannot continue to be executed. Therefore, in order to avoid relay failure in subsequent task relays, in one possible implementation, after determining the target device, the cloud platform first pre-communicates with the target device to obtain a second device status corresponding to the target device, thereby determining whether the target device meets the second condition, i.e., the task execution condition, based on the obtained second device status.
[0124] The second device status may include system status, network status, power status, etc., and the specific content of the second device status is not limited in the embodiments of the present application. The system status may be the system version information of the target device, the network status may refer to whether the target device is connected to the network, the network status corresponding to the connected network (for example, the network speed), and the power status may refer to the current power of the target device, whether it is in the charging state, whether it is in the power saving mode, etc.
[0125] Optionally, after determining the target device, the cloud platform may send a pre-communication instruction to the target device. After receiving the pre-communication instruction, the corresponding target device sends its corresponding second device status to the cloud platform.
[0126] In a possible application scenario, there may be a target device that is not connected to the Internet, and the corresponding target device may not be able to receive the pre-communication instruction sent by the cloud platform. If the cloud platform does not receive a response from the target device within a preset time period after sending the pre-communication instruction to the target device, 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, a candidate device with the next highest device relay priority can be selected as the target device, and pre-communication with the target device can be re-performed.
[0127] Step 606: In response to the second device state satisfying the second condition, and the first device and the target device satisfying the second condition, controlling the target device to continue to execute the target task.
[0128] Wherein, corresponding to the content of the second device state, the second condition may include at least one of a system condition, a network condition and a power condition.
[0129] For system conditions, the cloud platform determines whether the system status of the target device is the latest system version by comparing the current system version information and the latest system version information corresponding to the target device. If it is the latest system version, it is determined 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 when executing the target task later, the system update instruction is sent to the target device in advance to ensure that the system update is completed before executing the target task.
[0130] For network conditions, the cloud platform obtains the network status of the target device, for example, the type of network the target device is connected to: wireless network, 4G / 5G network, wireless hotspot, etc. For some target tasks that require more traffic, the target device connected to the wireless network is set to meet the network conditions. For some target tasks that require less traffic, there is no restriction on the network type, but target devices connected to the wireless network are given priority. If the network status is the network speed corresponding to the target device, a network speed threshold is set, that is, a target device greater than or equal to the network speed threshold meets the task execution conditions, for example, the network speed threshold is 1.5M / s.
[0131] For power conditions, if the target device is in a power connected state, it means that the target device meets the power conditions; or the cloud platform obtains the remaining power of the target device, compares the relationship between the remaining power and the power threshold, and if the remaining power corresponding to the target device is greater than the power threshold, the corresponding target device meets the power conditions, wherein 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%.
[0132] In a possible implementation, if the second device state of the target device satisfies at least one of the above-mentioned task relay conditions, it means that the target device can be used to perform the target task. Correspondingly, after determining that the first device and the target device meet the task relay conditions, the target device is controlled to continue to perform the target task.
[0133] Step 607: In response to the second device state not satisfying the second condition, a device state update instruction is sent to the target device, and the target device is configured to perform state update according to the device state update instruction.
[0134] In one possible implementation, if the second device state does not meet the task execution conditions, then in order to facilitate the relay of subsequent target tasks, the cloud platform can send a device state update instruction to the target device. Correspondingly, after the target device receives the device state update instruction, it updates the specified device state according to the device state update instruction.
[0135] If the task execution condition is a system condition, but the current system version information corresponding to the target device obtained is not the latest system version information, that is, the target device does not meet the task execution condition (the second condition), in order to make the target device meet the system condition, in one possible implementation, the cloud platform can send a system update instruction to the target device. Correspondingly, after the target device receives the system update instruction sent by the cloud platform, it can perform a system update in advance, so that the system has been updated to the latest system version when the target task is subsequently executed.
[0136] If the task execution condition is a network condition, if the target device is not connected to a wireless network, a network switching instruction can be sent to the target device. After receiving the network switching instruction, the corresponding target device can switch from the 4G network to the wireless network.
[0137] Optionally, when the target device updates the corresponding status information according to the device status update instruction, if the updated device status information of the target device meets the task execution conditions, the subsequent steps of determining whether the first device and the target device meet the task relay conditions and controlling the target device to continue to execute the target task can be continued.
[0138] In this embodiment, by comparing the relationship between the time required to complete the target task in the first device and the second time required to reach the target location, it is determined whether the target task needs to be executed across devices, and when the target task needs to be executed across devices, multiple second devices are coordinated in advance to determine the target device from them in order to prepare for the subsequent task relay; in addition, after determining the target device, pre-communication is first performed with the target device to determine whether the target device meets the task relay conditions, thereby ensuring the normal execution of the target task in the target device.
[0139] In order to further reduce the power consumption of the target device, it is set to control the target device to execute the target task when the first device is close to the target device. In a possible implementation, the timing of executing the target task relay can be determined by the distance between the first device and the target device, and 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 to each other).
[0140] In an illustrative example, Figure 7 As shown, it shows a flowchart of a cross-device task relay method provided by another exemplary embodiment of the present application. The present application embodiment is applied to the method Figure 1 Taking the cloud platform shown in FIG. 1 as an example, the method includes:
[0141] 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.
[0142] Step 702: determine a target device according to the state of the first device, where the target device is different from the first device.
[0143] The implementation of step 701 and step 702 can refer to the above embodiment, and this embodiment will not be described in detail here.
[0144] Step 703: Acquire first network environment information corresponding to the first device and second network environment information corresponding to the target device.
[0145] The network environment information may refer to the network name corresponding to the network to which the device is connected, or the Internet Protocol (IP) address corresponding to the network.
[0146] When the first device and the target device are in the same network environment, for example, when the first device and the target device are connected to the same wireless network, it indicates that the first device and the target device are in the same network coverage, and the corresponding first device and target device are relatively close. Therefore, 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.
[0147] Step 704: In response to the first network environment information and the second network environment information matching, it is determined that the network condition is met, and the target device is controlled to continue to execute the target task.
[0148] In order to further reduce the power consumption of the target device, it is set that when the first device and the target device are relatively close, the target task is synchronously executed in the target device. In a possible implementation, the network condition can be used as the task relay condition (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 condition, and the target device is controlled to continue to execute the target task.
[0149] Optionally, 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 condition.
[0150] Step 705: Obtain the distance between the first device and the target device.
[0151] In a possible implementation, the distance between the first device and the target device can be intuitively used to determine whether the first device and the target device are relatively close. Correspondingly, the cloud platform respectively obtains the first position coordinates corresponding to the first device and the second position coordinates corresponding to the target device, thereby calculating the distance between the first device and the target device.
[0152] In an exemplary example, if the first position coordinate of the first device is (x1, y1), taking a plane map (e.g., a navigation map) as an example, x1 represents the horizontal coordinate of the first device in the plane map, y1 represents the vertical coordinate of the first device in the plane map, and the second position coordinate of the target device is (x2, y2), wherein x2 represents the horizontal coordinate of the target device in the plane map, and y2 represents the vertical coordinate of the target device in the plane map, then the corresponding distance between the first device and the target device is Wherein, d represents the distance between the first device and the target device.
[0153] Step 706: In response to the distance being less than the distance threshold, determining that the distance condition is satisfied, and controlling the target device to continue to execute the target task.
[0154] The distance threshold can be set by the user or use the system default value, for example, the distance threshold is 100m.
[0155] In a possible implementation, when the distance between the first device and the target device is less than a distance threshold, it indicates that the first device and the target device are relatively close, and the distance condition in the first condition is met, and the target device is correspondingly controlled to execute the target task.
[0156] In an illustrative example, if 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 returning home as an example (the target device is located at home), that is, the user is about to arrive home, then the target task needs to be executed in the target device accordingly, so that the user can directly continue the unfinished target task in the target device when he arrives home.
[0157] In another possible application scenario, although the cloud platform will predict whether the target task can be completed when arriving at the destination based on the execution progress of the target task in the first device, thereby determining whether it is necessary to pre-coordinate the target device, there may be users who do not want to execute the target task across devices. Therefore, before waking up the target device to execute the target task, a task prompt message should also be sent to the first device to remind the user whether it is necessary to relay the target task.
[0158] Correspondingly, after determining that the first device and the target device meet the task relay condition (first condition), that is, meet the network condition or the distance condition, the following steps may also be included:
[0159] 1. Send a task relay prompt to the first device, where the task relay prompt is used to remind whether to perform cross-device task relay.
[0160] In a possible implementation, if the first device and the target device meet the first condition, that is, the first device and the target device are relatively close, the cloud platform sends a task relay prompt to the first device. Correspondingly, the first device receives the task relay prompt sent by the cloud platform and can display the task relay prompt on the current task interface to remind the user whether to perform cross-device task relay.
[0161] The task relay prompt includes the target device (name) to remind the user which device to wake up as the target device. Optionally, the task relay prompt also displays a cancel control or a confirmation control to allow the user to confirm whether to perform cross-device task relay.
[0162] Take the target task of playing a video as an example. Figure 8 As shown, it shows a schematic diagram of the process of the first device triggering task relay shown in an exemplary embodiment of the present application. The first device 800 is playing video A in the video playback interface 801. At this time, the first device 800 receives the task relay prompt sent by the cloud platform, and the task relay prompt 802 "I am about to get home, waking up the TV to relay playback" is displayed in the video playback interface 801 accordingly, and the task relay prompt is displayed with a confirmation control 803 and a cancel control 804. Optionally, only the cancel control 804 may be displayed in the task relay prompt (that is, the confirmation control 803 is not displayed).
[0163] 2. In response to receiving a confirmation operation on the task relay prompt, controlling the target device to continue executing the target task.
[0164] In a possible implementation, if the user needs to relay the target task through the target device indicated by the task relay prompt, the user can click the confirmation control in the task relay prompt. The corresponding cloud platform receives the confirmation operation of the task relay prompt and can control the target device to continue to execute the target task, that is, wake up the target device and execute the target task in the target device.
[0165] Optionally, when the first device is in the screen-on state, the task relay prompt can be in the form of a global prompt (toast). The task relay prompt can be cancelled after a preset time period. If no operation of the user on the task relay prompt is received within the preset time period, the user is assumed to confirm the execution of the cross-device task relay. The preset time period can be 5s.
[0166] In another possible implementation, if the user clicks the cancel control in the task relay prompt, the corresponding cloud platform receives the cancel operation on the task relay prompt, and then determines that the user does not need to perform cross-device task relay. Accordingly, the cloud platform terminates operations such as waking up the target device and executing the target task in the target device.
[0167] like Figure 8 As shown, when the user clicks the confirmation control 803 in the task relay prompt 802, the corresponding cloud platform receives the confirmation operation of the task relay prompt and executes the subsequent task of waking up the TV and playing the video on the TV; if 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. Optionally, if the confirmation control 803 is not displayed in the task relay prompt, then if the cloud platform does not receive the cancel operation of the task relay prompt within 5 seconds, it defaults to waking up the TV and playing the video on the TV.
[0168] Optionally, if the first device is in a screen-off state when receiving the task relay prompt sent by the cloud platform, the task relay prompt may be in the form of a lock screen notification, and vibration and sound prompts may be performed to promptly remind the user.
[0169] In a possible implementation, if the cloud platform receives a confirmation operation for the task relay prompt, the target device needs to be woken up accordingly, and executing the target task in the target device may include the following steps:
[0170] 1. Control the startup of the target device.
[0171] In a possible implementation, after receiving a confirmation operation for the task relay prompt, the cloud platform may send a task relay instruction to the target device. After receiving the task relay instruction, the corresponding target device first starts the target device, that is, the target device switches from the shutdown state to the power-on state.
[0172] Optionally, if the target device is a device with a display screen, since the user has not yet reached the target location of the target device, in order to reduce power consumption of the target device, the target device may be in a screen-off state.
[0173] 2. Send the target task and the current execution progress corresponding to the target task to the target device, and the target device is used to execute the target task according to the current execution progress.
[0174] In one possible implementation, 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 can execute the target task and adjust the execution progress of the target task to the current execution progress.
[0175] In an exemplary example, taking the target task as video playback, after receiving the target video and the playback progress corresponding to the target video, the corresponding video opens the application that plays the target video in the background, opens the target video in the application, and adjusts the playback progress of the target video to the playback progress in the first device. During this process, the TV is always in the off state.
[0176] After the target task is adjusted to the current execution progress, the user may not be performing the target task in the target device. For example, the user has not yet arrived at the target location where the target device is located. In this case, the corresponding target device synchronizes the current task progress of the target task in the first device in real time. Only when it is sensed that the user needs to continue to perform the target task in the target device, the target task is continued to be performed in the target device.
[0177] In an illustrative example, taking the target task as video playback and the target device as a TV, the TV camera is turned on when the screen is off to continuously capture images of the TV front end. Accordingly, when the user sits in front of the TV, it is analyzed whether there is a target face in the captured front end image. The target face is the face of the user holding the first device. If so, it means that the user has arrived home and needs to relay the target video on the TV. Accordingly, the TV is switched from the off screen state to the on screen state, and the target video continues to be played from the current playback progress.
[0178] like Fig. 9 As shown, it shows a schematic diagram of the process of the target device triggering the task relay. When the target device 900 (smart TV) receives the task relay instruction sent by the cloud platform, the target device 900 starts, the front-end part switches to the off-screen state, and the back-end part updates the TV system (the system update process can be performed before receiving the task relay instruction), and automatically opens the application corresponding to the target task, finds the video resource, and adjusts the video to the execution progress in the first device; at the same time, the TV camera is turned on; when the TV camera recognizes the target face, it switches from the off-screen state to the bright-screen state, and the current interface displays the current download speed of 234MB / s and the source of video A (first device), and displays the playback progress of video A as 13:20 and the total playback time of 40:20; after switching to the bright-screen state, relay the playback of video A, that is, start playing video A from 13:20 on the video playback interface 901.
[0179] In this embodiment, by setting the task relay condition (first condition), that is, the network condition or the distance condition, it is set that when the first device and the target device are relatively close, the first device triggers the relay, and after receiving the confirmation operation of the first device for the task relay prompt, the target device performs the subsequent task relay process. During the entire cross-device task relay process, the user only needs to perform a few operations to realize the flow of the target task between the first device and the target device, which simplifies the operation process of the cross-device task relay.
[0180] It should be noted that the embodiment of the present application only exemplifies the relay of the target task in two devices, but the relay of the target task in two or more devices is similar to the process shown in the above embodiment, and the embodiment of the present application will not be repeated here.
[0181] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0182] Please refer to Fig.10 , which shows a structural block diagram of a cross-device task relay device provided by an embodiment of the present application. The device has the function of implementing the above method embodiment, and the function can be implemented by hardware or by hardware executing corresponding software. Fig.10 As shown, the device may include:
[0183] A first acquisition module 1001 is used to 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;
[0184] A first determining module 1002, configured to determine a target device according to the first device state, wherein the target device is different from the first device;
[0185] The first control module 1003 is configured to control the target device to continue executing the target task in response to the first device and the target device satisfying a first condition.
[0186] Optionally, the first determining module 1002 includes:
[0187] A first acquisition unit, used to acquire a target task type corresponding to the target task;
[0188] The first determining unit is used to determine the target device from at least one second device according to the target task type, the second devices correspond to the task types of the tasks supported by the respective second devices, and the task types of the tasks supported by the target device match the target task type.
[0189] Optionally, the first device state also includes location change information corresponding to the first device;
[0190] The first determining module 1002 further includes:
[0191] A second determining unit, configured to determine, according to the location change information, a target location indicated by the location change information;
[0192] The third determining unit is used to determine the target device from at least one second device according to the target location, the second devices correspond to respective locations, and the target device is located at the target location.
[0193] Optionally, the device further comprises:
[0194] A second acquisition module is used to acquire a first time required for the target task to be executed and completed in the first device;
[0195] A second determining module, configured to determine a second time required to reach the target location according to the position change information;
[0196] A third determining module is configured to execute the step of determining a target device according to the first device state in response to the first time length being greater than the second time length.
[0197] Optionally, the task relay condition includes any one of a distance condition and a network condition;
[0198] The first control module 1003 includes:
[0199] A first control unit, configured to obtain first network environment information corresponding to the first device and second network environment information corresponding to the target device; in response to a match between the first network environment information and the second network environment information, determine that the network condition is satisfied, and control the target device to continue to execute the target task;
[0200] or,
[0201] The second control unit is used to obtain 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 met, and control the target device to continue to execute the target task.
[0202] Optionally, the first control module 1003 further includes:
[0203] A first sending unit, configured to send a task relay prompt to the first device, wherein the task relay prompt is used to remind whether to perform cross-device task relay;
[0204] The third control unit is used to control the target device to continue to execute the target task in response to receiving a confirmation operation on the task relay prompt.
[0205] Optionally, the first control module 1003 includes:
[0206] A second acquisition unit, configured to acquire a current execution progress of the target task in the first device;
[0207] The second sending unit is used 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 used to execute the target task according to the current execution progress.
[0208] Optionally, the device further comprises:
[0209] A third acquisition module, used 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;
[0210] a second control module, configured to, in response to the second device state satisfying a second condition, execute the step of controlling the target device to continue to execute the target task in response to the first device and the target device satisfying a first condition, wherein the second condition includes at least one of a system condition, a network condition, and a power condition;
[0211] A sending module is used to send a device status update instruction to the target device in response to the second device status not satisfying the second condition, and the target device is used to perform status update according to the device status update instruction.
[0212] In summary, in the embodiment of the present application, 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 device that can be used for cross-device task relay according to the device status of the first device obtained, and automatically control the target device to execute the target task corresponding to the first device after the first condition is met. Compared with the related art, which requires the user to select the second device, select the application, and execute the target task, the cross-device task relay method provided in the embodiment of the present application can realize the relay execution of the same task in different devices without the user's perception, reducing the process required for the relay execution of the same task in different devices, reducing the operational complexity of executing tasks across devices, thereby improving the efficiency of cross-device task relay, and at the same time avoiding the interruption of task execution continuity due to device replacement.
[0213] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0214] Please refer to Fig.11 , which 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:
[0215] The server 1100 includes a central processing unit (CPU) 1101, a system memory 1104 including a random access memory (RAM) 1102 and a read-only memory (ROM) 1103, and a system bus 1105 connecting the system memory 1104 and the central processing unit 1101. The server 1100 also includes a basic input / output system (I / O system) 1106 for facilitating information transmission between various components in the server, and a large-capacity storage device 1107 for storing an operating system 1113, application programs 1114, and other program modules 1115.
[0216] The basic input / output system 1106 includes a display 1108 for displaying information and an input device 1109 such as a mouse and a keyboard for user inputting information. The display 1108 and the input device 1109 are connected to the central processing unit 1101 through an input / 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 inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 1110 also provides output to a display screen, a printer, or other types of output devices.
[0217] The mass storage device 1107 is connected to the central processing unit 1101 via a mass storage controller (not shown) connected to the system bus 1105. The mass storage device 1107 and its associated computer-readable storage medium 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.
[0218] Without loss of generality, the computer-readable storage medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing 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 technology, CD-ROM, Digital Versatile Disc (DVD) or other optical storage, cassette, tape, disk storage or other magnetic storage devices. Of course, those skilled in the art will know that the computer storage medium is not limited to the above. The above-mentioned system memory 1104 and mass storage device 1107 can be collectively referred to as memory.
[0219] The memory stores one or more programs, and 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-mentioned method embodiments. The central processing unit 1101 executes the one or more programs to implement the cross-device task relay method provided by the above-mentioned method embodiments.
[0220] According to various embodiments of the present application, the server 1100 may also be connected to a remote server on a network through a network such as the Internet. That is, the server 1100 may be connected to the network 1112 through a network interface unit 1111 connected to the system bus 1105, or the network interface unit 1111 may be used to connect to other types of networks or remote server systems (not shown).
[0221] The memory also includes one or more programs, which are stored in the memory, and the one or more programs include steps executed by the cloud platform in the method provided in the embodiment of the present application.
[0222] An embodiment of the present application also provides a computer-readable storage medium, which stores at least one program code, and the program code is loaded and executed by a processor to implement the cross-device task relay method described in the above embodiments.
[0223] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a 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 implementations of the above aspects.
[0224] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.
[0225] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A cross-device task relay method, characterized in that: The method is applied to a cloud platform, and the method comprises: Acquire a first device state of a first device, where the first device state at least includes a target task currently being run by the first device, and the first device state includes location change information corresponding to the first device; Acquire a target task type corresponding to the target task; determine a target location indicated by the location change information according to the location change information and at least one location associated with a user account of the first device; Obtaining a first duration required for executing the target task in the first device; and determining a second duration required for reaching the target location according to the location change information; In response to the first duration being greater than the second duration, determining a target device from at least one second device according to the target location and the target task type, the second devices corresponding to respective supported task types and locations, the task types supported by the target device matching the target task type, and the target device being located at the target location; Acquire a second device state corresponding to the target device by pre-communication with the target device, where the second device state includes at least one of a system state, a network state, and a power state; In response to the second device state satisfying a second condition, determining that the target device can be used to perform the target task, the second condition comprising at least one of a system condition, a network condition, and a power condition; In response to the second device state not satisfying the second condition, sending a device state update instruction to the target device, and the target device is used to perform state update according to the device state update instruction; In response to the first device and the target device satisfying a first condition, the target device is controlled to continue to execute the target task, wherein the first condition includes at least one of a distance condition or a network condition.
2. The method according to claim 1, characterized in that In response to the first device and the target device satisfying a first condition, controlling the target device to continue to execute the target task includes: Acquire first network environment information corresponding to the first device and second network environment information corresponding to the target device; in response to a match between the first network environment information and the second network environment information, determine that the network condition is met, and control the target device to continue to execute the target task; or, 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 to execute the target task.
3. The method according to claim 2, characterized in that The controlling the target device to continue to execute the target task also includes: Sending a task relay prompt to the first device, where the task relay prompt is used to remind whether to perform cross-device task relay; In response to receiving a confirmation operation on the task relay prompt, controlling the target device to continue executing the target task.
4. The method according to claim 1, characterized in that The controlling the target device to continue to execute the target task includes: Obtaining the current execution progress of the target task in the first device; A task relay instruction is sent to the target device, wherein 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.
5. A cross-device task relay device, characterized in that: The device is applied to a cloud platform, and comprises: A first acquisition module, configured to acquire a first device state of a first device, wherein the first device state at least includes a target task currently being run by the first device, and the first device state includes position change information corresponding to the first device; A first determination module is configured to obtain a target task type corresponding to the target task; and determine a target location indicated by the location change information according to the location change information and at least one location associated with a user account of the first device; A second acquisition module is used to acquire a first time required for the target task to be executed and completed in the first device; A second determining module, configured to determine a second time required to reach the target location according to the position change information; a third determining module, configured to, in response to the first duration being greater than the second duration, determine a target device from at least one second device according to the target location and the target task type, the second devices corresponding to respective supported task types and locations, the task type supported by the target device matching the target task type, and the target device being located at the target location; A third acquisition module, configured to acquire a second device state corresponding to the target device by sending a pre-communication instruction to the target device, wherein 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 determine that the target device can be used to perform the target task in response to the second device state satisfying a second condition, wherein the second condition includes at least one of a system condition, a network condition, and a power condition; a sending module, configured to send a device state update instruction to the target device in response to the second device state not satisfying the second condition, wherein the target device is configured to perform state update according to the device state update instruction; The first control module is used to control the target device to continue to execute the target task in response to the first device and the target device satisfying a first condition, wherein the first condition includes at least one of a distance condition and a network condition.
6. A cloud platform, characterized in that: The cloud platform includes a processor and a memory, wherein the memory stores at least one program code, and the program code is loaded and executed by the processor to implement the cross-device task relay method as described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program code, and the program code is loaded and executed by the processor to implement the cross-device task relay method as described in any one of claims 1 to 4.
Citation Information
Cited By
Cross-device task relay method and apparatus, cloud platform, and storage medium
WO2022100300A1
