CN112752048B - Cooperative work method, device, storage medium and cooperative system - Google Patents
Cooperative work method, device, storage medium and cooperative system Download PDFInfo
- Publication number
- CN112752048B CN112752048B CN201911058552.7A CN201911058552A CN112752048B CN 112752048 B CN112752048 B CN 112752048B CN 201911058552 A CN201911058552 A CN 201911058552A CN 112752048 B CN112752048 B CN 112752048B
- Authority
- CN
- China
- Prior art keywords
- master
- devices
- master device
- subtask
- collaborative
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/141—Systems for two-way working between two video terminals, e.g. videophone
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/141—Systems for two-way working between two video terminals, e.g. videophone
- H04N7/142—Constructional details of the terminal equipment, e.g. arrangements of the camera and the display
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Telephonic Communication Services (AREA)
Abstract
本申请提供了一种协同工作的方法、设备、存储介质及协同系统,该协同系统包括多个主设备和一个或多个从设备;协同系统中的第一主设备存储有第一设备资源信息,第一设备资源信息为协同系统中所有设备的设备资源信息;方法包括:第一主设备接收第一用户的输入操作,根据输入操作生成第一协同任务,并将协同任务分解成多个第一子任务;第一主设备为多个主设备中的任意一个主设备;第一主设备根据第一设备资源信息从多个设备中确定执行每个第一子任务的设备;第一主设备将多个第一子任务发送给对应的设备进行执行。实施本申请,多个主设备均存储有协同系统中的所有设备的设备资源信息,可以实现更加便捷、快速地通过协同系统执行协同任务。
The present application provides a collaborative working method, device, storage medium and collaborative system, where the collaborative system includes multiple master devices and one or more slave devices; the first master device in the collaborative system stores first device resource information , the first device resource information is the device resource information of all devices in the collaborative system; the method includes: the first master device receives an input operation from the first user, generates a first collaborative task according to the input operation, and decomposes the collaborative task into a plurality of first a subtask; the first master device is any one master device among multiple master devices; the first master device determines a device that executes each first subtask from multiple devices according to the first device resource information; the first master device The multiple first subtasks are sent to corresponding devices for execution. In the implementation of the present application, multiple master devices all store the device resource information of all devices in the collaborative system, which can implement collaborative tasks more conveniently and quickly through the collaborative system.
Description
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种协同工作的方法、设备、存储介质及协同系统。The present application relates to the field of communication technologies, and in particular, to a collaborative working method, device, storage medium and collaborative system.
背景技术Background technique
通常情况下,多个设备通过某个设备的热点或者路由器可以组成一个协同系统,在组成协同系统之后,协同系统中的各个设备可以共同执行协同播放、协同录音以及协同会议等协同任务。Usually, multiple devices can form a collaborative system through a device's hotspot or router. After forming a collaborative system, each device in the collaborative system can jointly perform collaborative tasks such as collaborative playback, collaborative recording, and collaborative conferences.
现有技术中,协同系统一般由一个主设备和多个从设备组成,其中,主设备用于控制各个从设备共同执行协同任务,各个从设备根据主设备的控制信息来执行协同任务。也就是说,在该协同系统中,只有主设备可以响应用户发起的协同任务,然后,将该协同任务分配给协同系统中的从设备去执行。在实际应用中,如果主设备将协同任务分配给性能不佳的从设备执行的话,容易影响该协同任务的执行进度。从而可以知道的是,现有技术中无法通过协同系统便捷地、快速地执行协同任务。In the prior art, a coordinated system generally consists of a master device and multiple slave devices, wherein the master device is used to control each slave device to jointly perform a coordinated task, and each slave device performs a coordinated task according to the control information of the master device. That is to say, in the cooperative system, only the master device can respond to the cooperative task initiated by the user, and then assign the cooperative task to the slave devices in the cooperative system for execution. In practical applications, if the master device assigns a coordinated task to a slave device with poor performance for execution, it is easy to affect the execution progress of the coordinated task. Therefore, it can be known that, in the prior art, it is impossible to conveniently and quickly perform a collaborative task through a collaborative system.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种协同工作的方法、设备、存储介质及协同系统,由于协同系统中包含多个主设备,可以实现多用户更加便捷、快速地通过协同系统执行多个不同的协同任务。The present application provides a collaborative working method, device, storage medium and collaborative system. Since the collaborative system includes multiple master devices, multiple users can more conveniently and quickly execute multiple different collaborative tasks through the collaborative system.
第一方面,提供了一种协同工作的方法,所述方法应用于协同系统,所述协同系统包括多个主设备和一个或多个从设备;所述协同系统中的第一主设备存储有第一设备资源信息,所述第一设备资源信息包括挂载在所述第一主设备上的从设备的设备资源信息和所述第一主设备的设备资源信息以及通过所述多个主设备之间的共享所得到的第二设备资源信息,所述第二设备资源信息包括所述协同系统中除所述第一主设备和所述第一主设备上的从设备之外的其他设备的设备资源信息;所述方法包括:所述第一主设备接收第一用户的输入操作,根据所述输入操作生成第一协同任务,并将所述协同任务分解成多个第一子任务;所述第一主设备为所述多个主设备中的任意一个主设备;所述第一主设备根据所述第一设备资源信息从多个设备中确定执行每个第一子任务的设备;所述第一主设备将所述多个第一子任务发送给对应的设备进行执行。In a first aspect, a method for collaborative work is provided, the method is applied to a collaborative system, the collaborative system includes multiple master devices and one or more slave devices; the first master device in the collaborative system stores a first device resource information, where the first device resource information includes the device resource information of the slave device mounted on the first master device and the device resource information of the first master device and the device resource information of the first master device The second device resource information obtained by sharing between the two devices, the second device resource information includes the information of other devices in the collaborative system except the first master device and the slave devices on the first master device. device resource information; the method includes: the first master device receives an input operation from a first user, generates a first collaborative task according to the input operation, and decomposes the collaborative task into a plurality of first subtasks; The first master device is any one of the multiple master devices; the first master device determines a device that executes each first subtask from the multiple devices according to the first device resource information; The first master device sends the plurality of first subtasks to corresponding devices for execution.
实施本申请实施例,由于协同系统中包含多个主设备,且多个主设备中每个主设备均存储有第一设备资源信息,该设备资源信息包括整个协同系统中的所有设备的资源信息,继而多个主设备均可以根据该协同系统中包含的第一设备信息响应用户的输入操作所对应的协同任务,从而可以实现更加便捷、快速地通过协同系统执行协同任务。在实际应用中,可以提高用户的使用体验。此外,通过这一实现方式还可以实现多用户通过协同系统执行多个不同的协同任务。In implementing the embodiments of the present application, since the collaborative system includes multiple master devices, and each master device in the multiple master devices stores first device resource information, the device resource information includes resource information of all devices in the entire collaborative system Then, multiple master devices can respond to the collaborative task corresponding to the user's input operation according to the first device information contained in the collaborative system, so that the collaborative task can be performed more conveniently and quickly through the collaborative system. In practical applications, the user experience can be improved. In addition, through this implementation manner, multiple users can also perform multiple different collaborative tasks through the collaborative system.
在一种可能的实现方式中,所述第一设备资源信息包括所述协同系统中所有设备的服务技能和服务技能对应的评价信息;其中,所述服务技能对应的评价信息用于描述提供所述服务技能的硬件实体执行子任务的优劣程度;所述第一主设备根据所述第一设备资源信息从多个设备中确定执行每个第一子任务的设备,包括:所述第一主设备根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;所述第一主设备在所述第一候选设备中根据所述服务技能对应的评价信息筛选得到执行每个第一子任务的设备。实施本申请实施例中,主设备可以根据服务技能对应的评价信息筛选得到执行子任务的设备,由于筛选得到的设备均为协同系统中性能较优的设备,可以避免出现将子任务指定给性能不佳的设备进行执行的情形,可以保证多设备之间的协同工作,提高协同任务的执行进度。In a possible implementation manner, the first device resource information includes service skills of all devices in the collaborative system and evaluation information corresponding to the service skills; wherein the evaluation information corresponding to the service skills is used to describe the provision of all the devices. the level of the subtasks performed by the hardware entity of the service skill; the first master device determines a device to perform each first subtask from a plurality of devices according to the first device resource information, including: the first The master device selects a first candidate device capable of executing each first subtask according to the service skills required when each first subtask is executed; the first master device is in the first candidate device. The device that performs each first subtask is obtained by screening according to the evaluation information corresponding to the service skill in the device. In the implementation of the embodiment of the present application, the main device can filter and obtain devices that perform subtasks according to the evaluation information corresponding to the service skills. Since the devices obtained by screening are all devices with better performance in the collaborative system, it can avoid the occurrence of assigning subtasks to performance. In the case of execution by poor devices, the cooperative work among multiple devices can be ensured, and the execution progress of cooperative tasks can be improved.
在一种可能的实现方式中,所述第一设备资源信息还包括设备的综合评价信息;所述设备的综合评价信息用于描述设备的综合能力的优劣程度;所述第一主设备根据所述第一设备资源信息从多个设备中确定执行每个第一子任务的设备,包括:所述第一主设备根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;所述第一主设备在所述第一候选设备中根据所述服务技能对应的评价信息筛选得到执行每个第一子任务的第二候选设备;所述第一主设备在所述第二候选设备中根据所述设备的综合评价信息筛选得到执行每个第一子任务的设备。实施本申请实施例中,主设备可以根据服务技能对应的评价信息和设备的综合评价信息筛选得到执行每个子任务的设备,由于筛选得到的设备均为协同系统中性能较优的设备,可以避免出现将子任务指定给性能不佳的设备进行执行的情形,可以保证多设备之间的协同工作,提高协同任务的执行进度。In a possible implementation manner, the first device resource information further includes comprehensive evaluation information of the device; the comprehensive evaluation information of the device is used to describe the pros and cons of the comprehensive capability of the device; the first master device is based on The first device resource information is determined from a plurality of devices to perform each first subtask, including: the first master device obtains by filtering according to the service skills required when each first subtask is executed A first candidate device capable of executing each of the first subtasks; the first master device selects a device capable of executing each first subtask in the first candidate device according to the evaluation information corresponding to the service skill. A second candidate device; the first master device selects a device that executes each first subtask from the second candidate device according to the comprehensive evaluation information of the device. In the implementation of the embodiment of the present application, the main device can filter and obtain the devices that perform each subtask according to the evaluation information corresponding to the service skills and the comprehensive evaluation information of the devices. When a subtask is assigned to a device with poor performance for execution, the cooperative work among multiple devices can be ensured, and the execution progress of the cooperative task can be improved.
在一种可能的实现方式中,所述第一设备资源信息还包括所述协同系统中每个设备的健康评价信息;其中,所述健康评价信息用于描述设备的健康程度;所述第一主设备根据所述第一设备资源信息从多个设备中确定执行每个第一子任务的设备,包括:所述第一主设备根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;所述第一主设备在所述第一候选设备中根据所述服务技能对应的评价信息和所述设备的健康评价信息筛选得到执行每个第一子任务的设备。实施本申请实施例中,主设备可以根据服务技能对应的评价信息和设备的健康评价信息筛选得到执行子任务的设备,由于筛选得到的设备均为协同系统中性能较优的设备,可以避免出现将子任务指定给性能不佳的设备进行执行的情形,可以保证多设备之间的协同工作,提高协同任务的执行进度。In a possible implementation manner, the first device resource information further includes health evaluation information of each device in the collaborative system; wherein the health evaluation information is used to describe the health degree of the device; the first The master device determines a device that executes each first subtask from a plurality of devices according to the first device resource information, including: the first master device according to the service required when each first subtask is executed Skill screening obtains a first candidate device capable of performing each of the first subtasks; the first master device performs the first candidate device according to the evaluation information corresponding to the service skill and the health evaluation of the device The information is filtered to obtain the device that performs each first subtask. In the implementation of this embodiment of the present application, the main device can obtain devices that perform subtasks by screening according to the evaluation information corresponding to the service skills and the health evaluation information of the devices. In the case of assigning subtasks to devices with poor performance for execution, the cooperative work among multiple devices can be ensured, and the execution progress of cooperative tasks can be improved.
在一种可能的实现方式中,所述多个主设备包括所述第一主设备和第二主设备;在所述第二主设备根据第二协同任务,将多个第二子任务发送给对应的设备的情况下,在所述第二主设备根据第二协同任务,将多个第二子任务发送给对应的设备的情况下,若所述第一主设备生成的第一协同任务的优先级高于所述第二主设备生成的第二协同任务和/或所述第一主设备生成的第一协同任务的时间戳早于所述第二主设备生成的第二协同任务的时间戳;所述方法还包括:当已确定的执行所述多个第一子任务的设备与已确定的执行所述多个第二子任务的设备为同一个设备时,所述第一主设备向所述第二主设备发送调整信息,所述调整信息用于指示所述第二主设备调整执行所述多个第二子任务的设备。实施本申请实施例中,在多个主设备分别响应不同的用户发起的协同任务的情况下,若不同的主设备确定好的执行不同协同任务时的设备为同一个设备的情况下,可以调整产生冲突的设备,以避免无法及时响应用户发起的协同任务。In a possible implementation manner, the multiple master devices include the first master device and the second master device; the second master device sends multiple second subtasks to the second master device according to the second coordinated task In the case of the corresponding device, in the case that the second master device sends a plurality of second subtasks to the corresponding device according to the second coordinated task, if the first coordinated task generated by the first master device is the time stamp of the second coordinated task generated by the second master device and/or the first coordinated task generated by the first master device is earlier than the time of the second coordinated task generated by the second master device The method further includes: when the determined device executing the multiple first subtasks and the determined device executing the multiple second subtasks are the same device, the first master device Send adjustment information to the second master device, where the adjustment information is used to instruct the second master device to adjust the devices that execute the plurality of second subtasks. In the implementation of this embodiment of the present application, in the case where multiple master devices respond to collaborative tasks initiated by different users respectively, if different master devices determine that the devices that perform different collaborative tasks are the same device, adjustment can be made. Conflicting devices to avoid being unable to respond to user-initiated collaborative tasks in a timely manner.
在一种可能的实现方式中,所述主设备包括资源丰富度大于第一预设阈值的设备,所述从设备包括资源丰富度小于第二预设阈值的设备;其中,所述资源丰富度用于描述设备的能力。In a possible implementation manner, the master device includes a device with a resource richness greater than a first preset threshold, and the slave device includes a device with a resource richness less than a second preset threshold; wherein the resource richness Used to describe the capabilities of the device.
第二方面,本申请实施例提供了一种协同工作的方法,该方法应用于协同系统,该协同系统包括包括一个主设备和从设备,所述主设备存储有设备资源信息,所述设备资源信息包括所述协同系统中的所有设备的资源信息;所述方法包括:第一主设备接收第一用户的输入操作,根据所述输入操作生成第一协同任务,并将所述协同任务分解成多个第一子任务;所述第一主设备为所述多设备中的主设备;所述第一主设备根据所述设备资源信息从有能力执行所述第一子任务的设备中筛选执行每个第一子任务的设备;所述第一主设备将所述多个第一子任务发送给对应的设备进行执行。实施本申请实施例,主设备将协同系统中性能较优的设备确定为可以执行协同任务的设备,可以避免出现将子任务指定给性能不佳的设备进行执行的情形,可以保证多设备之间的协同工作,提高协同任务的执行进度。In a second aspect, an embodiment of the present application provides a method for collaborative work, the method is applied to a collaborative system, the collaborative system includes a master device and a slave device, the master device stores device resource information, and the device resource The information includes resource information of all devices in the collaborative system; the method includes: a first master device receives an input operation from a first user, generates a first collaborative task according to the input operation, and decomposes the collaborative task into multiple first subtasks; the first master device is the master device in the multiple devices; the first master device selects and executes the first subtask from devices capable of executing the first subtask according to the device resource information The device of each first subtask; the first master device sends the plurality of first subtasks to the corresponding device for execution. Implementing the embodiment of the present application, the master device determines the device with better performance in the collaborative system as the device that can execute the collaborative task, which can avoid the situation of assigning subtasks to devices with poor performance for execution, and can ensure that the multiple devices collaborative work and improve the execution progress of collaborative tasks.
在一种可能的实现方式中,所述设备资源信息包括所述协同系统中所有设备的服务技能和服务技能对应的评价信息;其中,所述服务技能对应的评价信息用于描述提供所述服务技能的硬件实体执行子任务的优劣程度;所述第一主设备根据所述设备资源信息从有能力执行所述第一子任务的设备中筛选执行每个第一子任务的设备,包括:所述第一主设备根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;所述第一主设备在所述第一候选设备中根据所述服务技能对应的评价信息筛选得到执行每个第一子任务的设备。实施本申请实施例,主设备可以根据服务技能对应的评价信息筛选得到执行子任务的设备,由于筛选得到的设备均为协同系统中性能较优的设备,可以避免出现将子任务指定给性能不佳的设备进行执行的情形,可以保证多设备之间的协同工作,提高协同任务的执行进度。In a possible implementation manner, the device resource information includes service skills of all devices in the collaborative system and evaluation information corresponding to the service skills; wherein the evaluation information corresponding to the service skills is used to describe the provision of the service The pros and cons of the subtasks performed by the hardware entities of the skills; the first master device selects the devices capable of executing the first subtasks from the devices capable of executing the first subtasks according to the device resource information, including: The first master device selects a first candidate device capable of executing each first subtask according to the service skills required when each first subtask is executed; Among the first candidate devices, a device that executes each first subtask is obtained by screening according to the evaluation information corresponding to the service skill. Implementing the embodiment of the present application, the main device can filter and obtain devices that perform subtasks according to the evaluation information corresponding to the service skills. Since the devices obtained by screening are all devices with better performance in the collaborative system, it can avoid the occurrence of assigning subtasks to different performances. If the optimal equipment is used for execution, the cooperative work among multiple equipments can be ensured, and the execution progress of cooperative tasks can be improved.
在一种可能的实现方式中,所述设备资源信息还包括设备的综合评价信息;所述设备的综合评价信息用于描述设备的综合能力的优劣程度;所述第一主设备根据所述设备资源信息从有能力执行所述第一子任务的设备中筛选执行每个第一子任务的设备,包括:所述第一主设备根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;所述第一主设备在所述第一候选设备中根据所述服务技能对应的评价信息筛选得到执行每个第一子任务的第二候选设备;所述第一主设备在所述第二候选设备中根据所述设备的综合评价信息筛选得到执行每个第一子任务的设备。实施本申请实施例,主设备可以根据服务技能对应的评价信息以及设备的综合评价信息筛选得到执行子任务的设备,由于筛选得到的设备均为协同系统中性能较优的设备,可以避免出现将子任务指定给性能不佳的设备进行执行的情形,可以保证多设备之间的协同工作,提高协同任务的执行进度。In a possible implementation manner, the device resource information further includes comprehensive evaluation information of the device; the comprehensive evaluation information of the device is used to describe the pros and cons of the comprehensive capability of the device; the first master device according to the The device resource information selects devices that perform each first subtask from devices capable of executing the first subtask, including: A first candidate device capable of executing each of the first subtasks is obtained through service skill screening; the first master device filters out the first candidate device according to the evaluation information corresponding to the service skill in the first candidate device to obtain a first candidate device capable of executing each first subtask. A second candidate device for a subtask; the first master device selects a device that executes each first subtask from the second candidate device according to the comprehensive evaluation information of the device. Implementing the embodiment of the present application, the main device can filter and obtain devices that perform sub-tasks according to the evaluation information corresponding to the service skills and the comprehensive evaluation information of the devices. In the case where subtasks are assigned to devices with poor performance for execution, the cooperative work among multiple devices can be ensured, and the execution progress of cooperative tasks can be improved.
在一种可能的实现方式中,所述设备资源信息还包括所述协同系统中每个设备的健康评价信息;其中,所述健康评价信息用于描述设备的健康程度;所述第一主设备根据所述设备资源信息从有能力执行所述第一子任务的设备中筛选执行每个第一子任务的设备,包括:所述第一主设备根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;所述第一主设备在所述第一候选设备中根据所述服务技能对应的评价信息和所述设备的健康评价信息筛选得到执行每个第一子任务的设备。实施本申请实施例,主设备可以根据服务技能对应的评价信息和设备的健康评价信息筛选得到执行子任务的设备,由于筛选得到的设备均为协同系统中性能较优的设备,可以避免出现将子任务指定给性能不佳的设备进行执行的情形,可以保证多设备之间的协同工作,提高协同任务的执行进度。In a possible implementation manner, the device resource information further includes health evaluation information of each device in the collaborative system; wherein the health evaluation information is used to describe the health degree of the device; the first master device Screening, according to the device resource information, a device capable of executing each first subtask from devices capable of executing the first subtask includes: when the first master device is executed according to the first subtask The required service skills are filtered to obtain a first candidate device capable of executing each of the first subtasks; the first master device selects the first candidate device according to the evaluation information corresponding to the service skills and the The health evaluation information of the device is screened to obtain the device that performs each first subtask. Implementing the embodiment of the present application, the main device can filter and obtain devices that perform subtasks according to the evaluation information corresponding to the service skills and the health evaluation information of the device. In the case where subtasks are assigned to devices with poor performance for execution, the cooperative work among multiple devices can be ensured, and the execution progress of cooperative tasks can be improved.
第三方面,本申请实施例提供了一种协同设备,该设备应用于协同系统,协同系统包括多个主设备和一个或多个从设备;所述协同系统中的第一主设备存储有第一设备资源信息,所述第一设备资源信息包括挂载在所述第一主设备上的从设备的设备资源信息和所述第一主设备的设备资源信息以及通过所述多个主设备之间的共享所得到的第二设备资源信息,所述第二设备资源信息包括所述协同系统中除所述第一主设备和所述第一主设备上的从设备之外的其他设备的设备资源信息;其中,所述多个主设备中的第一主设备包括:接收单元,用于接收第一用户的输入操作,根据所述输入操作生成第一协同任务,并将所述协同任务分解成多个第一子任务;所述第一主设备为所述多个主设备中的任意一个主设备;确定单元,用于根据所述第一设备资源信息从多个设备中确定执行每个第一子任务的设备;执行单元,用于将所述多个第一子任务发送给对应的设备进行执行。In a third aspect, an embodiment of the present application provides a collaborative device, which is applied to a collaborative system, where the collaborative system includes multiple master devices and one or more slave devices; the first master device in the collaborative system stores a first master device in the collaborative system. Device resource information, the first device resource information includes device resource information of a slave device mounted on the first master device, device resource information of the first master device, and device resource information of the first master device The second device resource information obtained by sharing between the two devices, the second device resource information includes the devices of other devices in the collaborative system except the first master device and the slave devices on the first master device Resource information; wherein the first master device among the multiple master devices includes: a receiving unit configured to receive an input operation from a first user, generate a first collaborative task according to the input operation, and decompose the collaborative task into a plurality of first subtasks; the first master device is any one master device in the multiple master devices; a determining unit is configured to determine, according to the first device resource information, from multiple devices to execute each master device A device of the first subtask; an execution unit, configured to send the plurality of first subtasks to a corresponding device for execution.
实施本申请实施例,由于协同系统中包含多个主设备,且多个主设备中每个主设备均存储有第一设备资源信息,该设备资源信息包括整个协同系统中的所有设备的资源信息,继而多个主设备均可以根据该协同系统中包含的第一设备信息响应用户的输入操作所对应的协同任务,从而可以实现更加便捷、快速地通过协同系统执行协同任务。在实际应用中,可以提高用户的使用体验。此外,通过这一实现方式还可以实现多用户通过协同系统执行多个不同的协同任务。In implementing the embodiments of the present application, since the collaborative system includes multiple master devices, and each master device in the multiple master devices stores first device resource information, the device resource information includes resource information of all devices in the entire collaborative system Then, multiple master devices can respond to the collaborative task corresponding to the user's input operation according to the first device information contained in the collaborative system, so that the collaborative task can be performed more conveniently and quickly through the collaborative system. In practical applications, the user experience can be improved. In addition, through this implementation manner, multiple users can also perform multiple different collaborative tasks through the collaborative system.
在一种可能的实现方式中,所述第一设备资源信息包括所述协同系统中所有设备的服务技能和服务技能对应的评价信息;其中,所述服务技能对应的评价信息用于描述提供所述服务技能的硬件实体执行子任务的优劣程度;所述确定单元,包括:第一筛选单元,用于根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;第二筛选单元,用于在所述第一候选设备中根据所述服务技能对应的评价信息筛选得到执行每个第一子任务的设备。In a possible implementation manner, the first device resource information includes service skills of all devices in the collaborative system and evaluation information corresponding to the service skills; wherein the evaluation information corresponding to the service skills is used to describe the provision of all the devices. The degree of pros and cons of the subtasks performed by the hardware entities of the service skills; the determining unit includes: a first screening unit, configured to filter out the ability to perform the subtasks according to the service skills required when each first subtask is executed a first candidate device of each first subtask; and a second screening unit, configured to filter out a device that executes each first subtask in the first candidate device according to the evaluation information corresponding to the service skill.
在一种可能的实现方式中,所述第一设备资源信息还包括设备的综合评价信息;所述设备的综合评价信息用于描述设备的综合能力的优劣程度;所述确定单元包括:第一筛选单元,用于根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;第三筛选单元,用于在所述第一候选设备中根据所述服务技能对应的评价信息筛选得到执行每个第一子任务的第二候选设备;第四筛选单元,用于在所述第二候选设备中根据所述设备的综合评价信息筛选得到执行每个第一子任务的设备。In a possible implementation manner, the first device resource information further includes comprehensive evaluation information of the device; the comprehensive evaluation information of the device is used to describe the pros and cons of the comprehensive capability of the device; the determining unit includes: the first a screening unit, configured to screen out a first candidate device capable of executing each of the first subtasks according to the service skills required when each first subtask is executed; a third screening unit, configured to The first candidate device is screened according to the evaluation information corresponding to the service skill to obtain a second candidate device that performs each first subtask; a fourth screening unit is configured to select the second candidate device according to the device The comprehensive evaluation information is filtered to obtain the device that performs each first subtask.
在一种可能的实现方式中,所述第一设备资源信息还包括所述协同系统中每个设备的健康评价信息;其中,所述健康评价信息用于描述设备的健康程度;所述确定单元,包括:第一筛选单元,用于根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;第五筛选单元,用于在所述第一候选设备中根据所述服务技能对应的评价信息和所述设备的健康评价信息筛选得到执行每个第一子任务的设备。In a possible implementation manner, the first device resource information further includes health evaluation information of each device in the collaborative system; wherein the health evaluation information is used to describe the health degree of the device; the determining unit , comprising: a first screening unit for screening and obtaining a first candidate device capable of executing each first subtask according to the service skills required when each first subtask is executed; a fifth screening unit , which is used to obtain a device that executes each first subtask in the first candidate device by screening according to the evaluation information corresponding to the service skill and the health evaluation information of the device.
在一种可能的实现方式中,所述多个主设备包括所述第一主设备和第二主设备;在所述第二主设备根据第二协同任务,将多个第二子任务发送给对应的设备的情况下,若所述第一主设备生成的第一协同任务的优先级高于所述第二主设备生成的第二协同任务和/或所述第一主设备生成的第一协同任务的时间戳早于所述第二主设备生成的第二协同任务的时间戳;所述协同设备还包括:发送单元,用于当已确定的执行所述多个第一子任务的设备与已确定的执行所述多个第二子任务的设备为同一个设备时,向所述第二主设备发送调整信息,所述调整信息用于指示所述第二主设备调整执行所述多个第二子任务的设备。In a possible implementation manner, the multiple master devices include the first master device and the second master device; the second master device sends multiple second subtasks to the second master device according to the second coordinated task In the case of the corresponding device, if the priority of the first coordinated task generated by the first master device is higher than the second coordinated task generated by the second master device and/or the first coordinated task generated by the first master device. The time stamp of the cooperative task is earlier than the time stamp of the second cooperative task generated by the second master device; the cooperative device further includes: a sending unit, used for when it is determined that the devices that execute the plurality of first subtasks When the device that has been determined to execute the multiple second subtasks is the same device, send adjustment information to the second master device, where the adjustment information is used to instruct the second master device to adjust and execute the multiple second subtasks. A device for the second subtask.
在一种可能的实现方式中,所述主设备包括资源丰富度大于第一预设阈值的设备,所述从设备包括资源丰富度小于第二预设阈值的设备;其中,所述资源丰富度用于描述设备的能力。In a possible implementation manner, the master device includes a device with a resource richness greater than a first preset threshold, and the slave device includes a device with a resource richness less than a second preset threshold; wherein the resource richness Used to describe the capabilities of the device.
第四方面,本申请实施例提供了一种协同设备,该协同设备应用于协同系统中,该系统系统包括一个主设备和从设备,所述主设备存储有设备资源信息,所述设备资源信息包括所述协同系统中的所有设备的资源信息;所述协同系统中的第一主设备包括:接收单元,用于接收第一用户的输入操作,根据所述输入操作生成第一协同任务,并将所述协同任务分解成多个第一子任务;所述第一主设备为所述多设备中的主设备;确定单元,用于根据所述设备资源信息从有能力执行所述第一子任务的设备中筛选执行每个第一子任务的设备;执行单元,用于将所述多个第一子任务发送给对应的设备进行执行。In a fourth aspect, an embodiment of the present application provides a collaborative device, the collaborative device is applied in a collaborative system, the system system includes a master device and a slave device, the master device stores device resource information, and the device resource information Including resource information of all devices in the collaborative system; the first master device in the collaborative system includes: a receiving unit, configured to receive an input operation from a first user, generate a first collaborative task according to the input operation, and Decomposing the collaborative task into a plurality of first subtasks; the first master device is the master device in the multiple devices; a determining unit, configured to execute the first subtask from a slave capable of executing the first subtask according to the device resource information The device for executing each first subtask is screened among the devices of the task; the execution unit is configured to send the plurality of first subtasks to the corresponding device for execution.
在一种可能的实现方式中,所述设备资源信息包括所述协同系统中所有设备的服务技能和服务技能对应的评价信息;其中,所述服务技能对应的评价信息用于描述提供所述服务技能的硬件实体执行子任务的优劣程度;所述确定单元,包括:第一筛选单元,用于根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;第二筛选单元,用于在所述第一候选设备中根据所述服务技能对应的评价信息筛选得到执行每个第一子任务的设备。In a possible implementation manner, the device resource information includes service skills of all devices in the collaborative system and evaluation information corresponding to the service skills; wherein the evaluation information corresponding to the service skills is used to describe the provision of the service The degree of quality of the subtasks performed by the hardware entity of the skill; the determining unit includes: a first screening unit, configured to filter out the ability to perform the subtask according to the service skills required when each first subtask is executed A first candidate device for each first subtask; and a second screening unit, configured to screen the first candidate device according to the evaluation information corresponding to the service skill to obtain a device that executes each first subtask.
在一种可能的实现方式中,所述设备资源信息还包括设备的综合评价信息;所述设备的综合评价信息用于描述设备的综合能力的优劣程度;所述确定单元,包括:第一筛选单元,用于根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;第三筛选单元,用于在所述第一候选设备中根据所述服务技能对应的评价信息筛选得到执行每个第一子任务的第二候选设备;第四筛选单元,用于在所述第二候选设备中根据所述设备的综合评价信息筛选得到执行每个第一子任务的设备。In a possible implementation manner, the device resource information further includes comprehensive evaluation information of the device; the comprehensive evaluation information of the device is used to describe the pros and cons of the comprehensive capability of the device; the determining unit includes: a first a screening unit, configured to screen out a first candidate device capable of executing each of the first subtasks according to the service skills required when each first subtask is executed; a third screening unit, configured to In the first candidate device, according to the evaluation information corresponding to the service skill, a second candidate device that performs each first subtask is obtained by screening; a fourth screening unit is used to select the second candidate device according to the device's The comprehensive evaluation information is filtered to obtain the equipment that performs each first subtask.
在一种可能的实现方式中,所述设备资源信息还包括所述协同系统中每个设备的健康评价信息;其中,所述健康评价信息用于描述设备的健康程度;所述确定单元,包括:第一筛选单元,用于根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;第五筛选单元,用于在所述第一候选设备中根据所述服务技能对应的评价信息和所述设备的健康评价信息筛选得到执行每个第一子任务的设备。In a possible implementation manner, the device resource information further includes health evaluation information of each device in the collaborative system; wherein the health evaluation information is used to describe the health degree of the device; the determining unit includes : a first screening unit, configured to screen and obtain a first candidate device capable of executing each of the first subtasks according to the service skills required when each first subtask is executed; a fifth screening unit, used In the first candidate device, the device that performs each first subtask is obtained by screening according to the evaluation information corresponding to the service skill and the health evaluation information of the device.
第五方面,本申请实施例还提供一种协同设备,该协同设备可以包括存储器和处理器,所述存储器用于存储支持协同设备执行上述方法的计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行上述第一方面的方法。In a fifth aspect, an embodiment of the present application further provides a collaborative device, where the collaborative device may include a memory and a processor, where the memory is used to store a computer program that supports the collaborative device to perform the above method, the computer program includes program instructions, and The processor is configured to invoke the program instructions to execute the method of the first aspect above.
第六方面,本申请实施例还提供一种协同设备,该协同设备可以包括存储器和处理器,所述存储器用于存储支持协同设备执行上述方法的计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行上述第二方面的方法。In a sixth aspect, an embodiment of the present application further provides a collaborative device, the collaborative device may include a memory and a processor, the memory is used to store a computer program that supports the collaborative device to perform the above method, the computer program includes program instructions, and the The processor is configured to invoke the program instructions to execute the method of the second aspect above.
第七方面,本申请实施例还提供一种计算机可读存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行上述第一方面的方法。In a seventh aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer storage medium stores a computer program, and the computer program includes program instructions, the program instructions cause the processing when executed by a processor The device executes the method of the above-mentioned first aspect.
第八方面,本申请实施例还提供一种计算机可读存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行上述第二方面的方法。In an eighth aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer storage medium stores a computer program, and the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processing The controller performs the method of the second aspect above.
第九方面,本申请实施例还提供了一种计算机程序,所述计算机程序包括计算机软件指令,所述计算机软件指令当被计算机执行时使所述计算机执行如第一方面所述的任一种协同工作方法。In a ninth aspect, embodiments of the present application further provide a computer program, the computer program includes computer software instructions, and when executed by a computer, the computer software instructions cause the computer to execute any one of the first aspect. Collaborative work method.
第十方面,本申请实施例还提供了一种计算机程序,所述计算机程序包括计算机软件指令,所述计算机软件指令当被计算机执行时使所述计算机执行如第二方面所述的任一种协同工作方法。In a tenth aspect, an embodiment of the present application further provides a computer program, the computer program includes computer software instructions, and when executed by a computer, the computer software instructions cause the computer to execute any one of the second aspect. Collaborative work method.
第十一方面,本申请实施例还提供了一种协同系统,所述协同系统包括多个主设备和一个或多个从设备;所述协同系统中的第一主设备存储有第一设备资源信息,所述第一设备资源信息包括挂载在所述第一主设备上的从设备的设备资源信息和所述第一主设备的设备资源信息以及通过所述多个主设备之间的共享所得到的第二设备资源信息,所述第二设备资源信息包括所述协同系统中除所述第一主设备和所述第一主设备上的从设备之外的其他设备的设备资源信息;其中,所述协同系统的第一主设备用于接收第一用户的输入操作,根据所述输入操作生成第一协同任务,并将所述第一协同任务分解成多个第一子任务;所述第一主设备为所述多个主设备中的任意一个主设备;根据所述第一设备资源信息从多个设备中确定执行每个第一子任务的设备;将所述多个第一子任务发送给对应的设备进行执行。In an eleventh aspect, an embodiment of the present application further provides a collaborative system, where the collaborative system includes multiple master devices and one or more slave devices; the first master device in the collaborative system stores first device resources information, the first device resource information includes the device resource information of the slave device mounted on the first master device and the device resource information of the first master device and the sharing between the multiple master devices. the obtained second device resource information, where the second device resource information includes device resource information of other devices in the collaborative system except the first master device and the slave devices on the first master device; The first master device of the collaborative system is configured to receive an input operation from a first user, generate a first collaborative task according to the input operation, and decompose the first collaborative task into a plurality of first subtasks; The first master device is any one of the multiple master devices; the device that executes each first subtask is determined from the multiple devices according to the first device resource information; The subtask is sent to the corresponding device for execution.
附图说明Description of drawings
图1为本申请实施例提供的一种应用场景的架构示意图;FIG. 1 is a schematic diagram of the architecture of an application scenario provided by an embodiment of the present application;
图2是本申请实施例提供的另一种应用场景的架构示意图;FIG. 2 is a schematic diagram of the architecture of another application scenario provided by an embodiment of the present application;
图3是本申请实施例提供的一种协同系统的设备技能图谱的示意图;3 is a schematic diagram of a device skill map of a collaborative system provided by an embodiment of the present application;
图4是本申请实施例提供的一种协同工作的方法的流程示意图;4 is a schematic flowchart of a method for collaborative work provided by an embodiment of the present application;
图5是本申请实施例提供的另一种协同工作的方法的流程示意图;5 is a schematic flowchart of another collaborative working method provided by an embodiment of the present application;
图6是本申请实施例提供的一种解决协同冲突方法的流程示意图;6 is a schematic flowchart of a method for resolving a collaborative conflict provided by an embodiment of the present application;
图7A是本申请实施例提供的一种协同系统的架构示意图;FIG. 7A is a schematic diagram of the architecture of a collaboration system provided by an embodiment of the present application;
图7B是本申请实施例提供的又一种协同系统的技能图谱的示意图;7B is a schematic diagram of a skill map of another collaborative system provided by an embodiment of the present application;
图7C是本申请实施例提供的一种协同系统中的设备完成一个协同任务的示意图;7C is a schematic diagram of a device in a collaborative system provided by an embodiment of the present application completing a collaborative task;
图7D是本申请实施例提供的一种协同系统中的设备完成多个协同任务的示意图;7D is a schematic diagram of a device in a collaborative system provided by an embodiment of the present application completing multiple collaborative tasks;
图8A是本申请实施例提供的一种协同设备的结构示意图;8A is a schematic structural diagram of a collaborative device provided by an embodiment of the present application;
图8B是本申请实施例提供的一种协同设备的结构示意图;8B is a schematic structural diagram of a collaborative device provided by an embodiment of the present application;
图9是本申请实施例提供的另一种协同设备的结构示意图;9 is a schematic structural diagram of another collaborative device provided by an embodiment of the present application;
图10是本申请实施例提供的一种协同系统的示意性框图。FIG. 10 is a schematic block diagram of a collaboration system provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图对本申请实施例中的技术方案进行清楚、完整的描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments.
下面先解释本申请实施例所涉及的技术术语:The technical terms involved in the embodiments of the present application are first explained below:
(1)主设备和从设备的区分。(1) The distinction between master and slave devices.
在本申请实施例中,从设备可以直接挂载在主设备上,对于主设备来说,将从设备确定为挂载到自己身上的外设。主设备可以管理从设备。In this embodiment of the present application, the slave device may be directly mounted on the master device, and for the master device, the slave device is determined as a peripheral device mounted on itself. A master device can manage slave devices.
在本申请实施例中,主设备可以响应用户发起的协同任务,对协同任务进行分解,以及调度分解得到的多个子任务,还可以管理挂载在其身上的从设备。In the embodiment of the present application, the master device can respond to the collaborative task initiated by the user, decompose the collaborative task, schedule multiple sub-tasks obtained by the decomposition, and also manage the slave devices mounted on it.
那么,对于从设备来说,从设备不可以响应用户发起的协同任务,不可以对协同任务进行分解,也不可以调度分解得到的多个子任务,从设备可以响应主设备发起的协同任务,还可以向主设备上报自身的运行状态。Then, for the slave device, the slave device cannot respond to the collaborative task initiated by the user, cannot decompose the collaborative task, and cannot schedule multiple sub-tasks obtained from the decomposition. The slave device can respond to the collaborative task initiated by the master device, and also It can report its own running status to the master device.
在一些可能的实现方式中,可以根据设备的资源丰富度对设备进行划分,从而可以得到主设备和从设备。具体地,主设备是指资源丰富度大于第一预设阈值的设备。从设备是指资源丰富度小于第二预设阈值的设备。这里,第一预设阈值与第二预设阈值可以相同,也可以不同,本申请实施例不作具体限定。In some possible implementations, the devices may be divided according to the resource richness of the devices, so that the master device and the slave device may be obtained. Specifically, the master device refers to a device whose resource richness is greater than the first preset threshold. A slave device refers to a device whose resource richness is less than the second preset threshold. Here, the first preset threshold and the second preset threshold may be the same or different, which are not specifically limited in this embodiment of the present application.
在本申请实施例中,设备的资源丰富度可以是指设备的能力大小。例如,设备的能力可以包括内存容量、中央处理器(Central Processing Unit/Processor,CPU)处理速度、剩余电量、计算能力、以及存储能力等等。In this embodiment of the present application, the resource richness of the device may refer to the capability of the device. For example, the capability of the device may include memory capacity, central processing unit (Central Processing Unit/Processor, CPU) processing speed, remaining power, computing capability, storage capability, and the like.
在一种可能的实现方式中,主设备为1个的情况下,例如,协同系统中包括1个主设备和2个从设备,从设备挂载在主设备上可以包括:从设备1和从设备2均挂载在主设备1上。In a possible implementation manner, when there is one master device, for example, the collaborative system includes one master device and two slave devices, and the slave devices mounted on the master device may include: slave device 1 and slave device Device 2 is mounted on master device 1.
在另一种可能的实现方式中,主设备为多个的情况下,例如,协同系统中包括2个主设备(主设备1和主设备2)和2个从设备(从设备1和从设备2)。从设备挂载在至少一个主设备上可以包括:从设备1和从设备2均挂载在主设备1上,或者,从设备1和从设备2均挂载在主设备2上,亦或者,从设备1挂载在主设备1上,从设备2挂载在主设备2上,等等。In another possible implementation manner, when there are multiple master devices, for example, the collaborative system includes two master devices (master device 1 and master device 2) and two slave devices (slave device 1 and slave device 2). Mounting a slave device on at least one master device may include: both slave device 1 and slave device 2 are mounted on master device 1, or both slave device 1 and slave device 2 are mounted on master device 2, or, Slave 1 is mounted on Master 1, Slave 2 is mounted on Master 2, etc.
为了便于更好的理解本申请实施例的协同工作的方法,下面结合图1和图2对本申请实施例的可能的应用场景进行简单的介绍:In order to facilitate a better understanding of the collaborative working method of the embodiments of the present application, the following briefly introduces possible application scenarios of the embodiments of the present application with reference to FIG. 1 and FIG. 2 :
应用场景一:多设备包括一个主设备和多个从设备。Application Scenario 1: Multi-device includes a master device and multiple slave devices.
如图1所示,设备T1、T2、T3、T4和T5共同组成了一个协同系统,具体地,设备T1可以为智能手机、设备T2为可以摄像头、设备T3可以为投影仪、设备T4可以为普通音箱、设备T5可以为普通显示屏幕。其中,设备T1为主设备(也可以称为master),该主设备用于响应用户发起的协同任务,对协同任务进行分解,以及调度分解得到的多个子任务,还可以管理协同系统中包含的设备,设备T2、T3、T4和T5为从设备(也可以称为slave),这些设备可以通过某个设备的热点或者路由器组成协同系统。具体地,设备T1可以通过向各个从设备发送广播消息进行组网,在组网成功后,设备T1再向各个从设备发送同步对时信息(例如,握手消息)来进行网络同步。在组网成功并完成同步之后,协同系统中的各个设备可以在主设备T1的控制下进行协同播放、协同录音以及协同会议等等。As shown in Figure 1, devices T1, T2, T3, T4 and T5 together form a collaborative system. Specifically, device T1 can be a smartphone, device T2 can be a camera, device T3 can be a projector, and device T4 can be a Ordinary speakers and equipment T5 can be ordinary display screens. Among them, the device T1 is the master device (also referred to as the master), the master device is used to respond to the collaborative task initiated by the user, decompose the collaborative task, schedule multiple sub-tasks obtained by the decomposition, and can also manage the collaborative tasks included in the collaborative system. Devices, devices T2, T3, T4 and T5 are slave devices (also called slaves), and these devices can form a cooperative system through a hotspot or router of a certain device. Specifically, the device T1 can perform networking by sending broadcast messages to each slave device, and after the networking is successful, the device T1 sends synchronization timing information (eg, handshake messages) to each slave device to perform network synchronization. After successful networking and synchronization, each device in the collaborative system can perform collaborative playback, collaborative recording, and collaborative conferences under the control of the master device T1.
应用场景二:多设备包括多个主设备和多个从设备。Application Scenario 2: Multiple devices include multiple master devices and multiple slave devices.
如图2所示,设备T1、T2、T3、T4、T5、T6和T7共同组成了一个协同系统,具体地,设备T1可以为智能手机A、设备T2可以为台式计算机、设备T3可以为便携式笔记本、设备T4可以为智能手机B、设备T5可以为普通音箱、设备T6可以为普通显示屏幕、设备T7可以为摄像头。在实际应用中,设备T1、T2、T3、T4为主设备,每个主设备均可以用于响应用户发起的协同任务,对协同任务进行分解,以及调度分解得到的多个子任务,还可以用于管理协同系统中包含的设备,设备T5、T6和T7为从设备(也可以称为slave),这些设备可以通过某个设备的热点或者路由器组成协同系统。具体地,主设备和主设备、主设备和从设备之间可以通过发送广播信息或者组播信息进行组网,在组网成功后,任意一个主设备可以向各个从设备发送同步对时信息(例如,握手消息)来进行网络同步。在组网成功并完成同步之后,协同系统中的各个设备可以在任意一个主设备的控制下进行协同播放、协同录音以及协同会议等等。As shown in Figure 2, the devices T1, T2, T3, T4, T5, T6 and T7 together form a collaborative system. Specifically, the device T1 can be a smartphone A, the device T2 can be a desktop computer, and the device T3 can be a portable The notebook, the device T4 can be a smart phone B, the device T5 can be a common speaker, the device T6 can be a common display screen, and the device T7 can be a camera. In practical applications, the devices T1, T2, T3, and T4 are the master devices, and each master device can be used to respond to the collaborative task initiated by the user, decompose the collaborative task, and schedule multiple sub-tasks obtained by the decomposition. In order to manage the devices included in the collaborative system, the devices T5, T6 and T7 are slave devices (also called slaves), and these devices can form a collaborative system through a hotspot or router of a certain device. Specifically, the master device and the master device, the master device and the slave device can be networked by sending broadcast information or multicast information. After the networking is successful, any master device can send synchronization time synchronization information to each slave device ( For example, handshake messages) for network synchronization. After successful networking and synchronization, each device in the collaborative system can perform collaborative playback, collaborative recording, and collaborative conferences under the control of any master device.
需要说明的是,在主设备为多个的情况下,这多个主设备中的每个主设备均存储有协同系统中包含的所有设备的设备资源信息,并根据协同系统中的所有设备的设备资源信息筛选可以执行协同任务的设备。It should be noted that, in the case of multiple master devices, each master device in the multiple master devices stores the device resource information of all devices included in the collaborative system, and according to the Device resource information filters devices that can perform collaborative tasks.
应理解,图1和图2所示的协同系统均只是一种示例,不应构成限定。It should be understood that the collaborative systems shown in FIG. 1 and FIG. 2 are only examples and should not be construed as limitations.
在本申请实施例中,对协同系统的组网方式、网络结构以及以及协同系统中包含的设备的数量和设备的类型等均不作具体限定,只需满足多个设备可以组合在一起,以实现协同任务都在本申请实施例的保护范围之内。In the embodiments of the present application, the networking mode, network structure, and the number and types of devices included in the collaborative system are not specifically limited, as long as multiple devices can be combined to achieve The coordinated tasks are all within the protection scope of the embodiments of the present application.
在本申请实施例中,上述“多个”,应用理解为至少2个,例如,可以为2个,也可以为3个,还可以为8个等等。In the embodiments of the present application, the above-mentioned "plurality" is understood to be at least two, for example, it may be two, three, eight, and so on.
在本申请实施例中,设备可以为手机、智能手机、个人数字助理(PersonalDigital Assistant,PDA)、平板电脑、可穿戴设备(例如,手表,手环)、音箱、摄像头以及可以实现设备相互通信的设备等等。In this embodiment of the present application, the device may be a mobile phone, a smart phone, a Personal Digital Assistant (PDA), a tablet computer, a wearable device (for example, a watch, a wristband), a speaker, a camera, or a device that can communicate with each other. equipment, etc.
基于图1所示的应用场景,多设备包括一个主设备和多个从设备,为了便于理解,下面先介绍在本申请实施例中,如何组建多设备(一个主设备和多个从设备)构成的协同系统。Based on the application scenario shown in FIG. 1 , the multi-device includes a master device and multiple slave devices. For ease of understanding, the following describes how to set up multiple devices (one master device and multiple slave devices) in the embodiments of the present application. collaborative system.
如前所述,在本申请实施例中,设备的资源丰富度可以是指设备的能力大小。在多个设备中选择主设备时,可以根据多个设备的能力大小来选择,从中选择能力大于第一预设阈值的设备作为主设备。例如,可以根据内存容量、中央处理器(Central ProcessingUnit/Processor,CPU)处理速度、剩余电量、以及存储能力等几个方面从多个设备中选择出能力大于第一预设阈值的设备作为主设备。例如,如图1所示,将设备TI(手机)作为该协同系统的主设备。As mentioned above, in this embodiment of the present application, the resource richness of the device may refer to the capability of the device. When selecting a master device among multiple devices, the selection may be made according to the capabilities of the multiple devices, and a device whose capability is greater than the first preset threshold is selected as the master device. For example, a device whose capability is greater than the first preset threshold may be selected from a plurality of devices as the master device according to several aspects, such as memory capacity, central processing unit (CPU) processing speed, remaining power, and storage capacity. . For example, as shown in Fig. 1, a device TI (mobile phone) is used as the master device of the cooperative system.
在本申请实施例中,主设备可以向多个从设备发送组网信息。例如,如图1所示,设备T1为主设备,在一种可能的实现方式中,主设备T1可以向从设备T2、T3、T4和T5发送组网信息。在一种可能的实现方式中,主设备T1可以先向一个从设备发送组网信息,然后,再由从设备向其他从设备转发组网信息。In this embodiment of the present application, the master device may send networking information to multiple slave devices. For example, as shown in FIG. 1 , the device T1 is the master device. In a possible implementation manner, the master device T1 may send networking information to the slave devices T2, T3, T4 and T5. In a possible implementation manner, the master device T1 may first send networking information to a slave device, and then the slave device forwards the networking information to other slave devices.
在本申请实施例中,组网信息用于在主设备和多个从设备之间建立协同系统,基于构建的协同系统可以得到设备资源池。In this embodiment of the present application, the networking information is used to establish a collaborative system between a master device and multiple slave devices, and a device resource pool can be obtained based on the constructed collaborative system.
在本申请实施例中,主设备可以通过广播的形式向各个从设备发送组网信息,也就是说,该组网信息可以是主设备向各个从设备发送的广播信息。在一些实现方式中,主设备还可以通过组播的形式向各个从设备发送组网信息,也就是说,该组网信息可以是主设备向各个从设备发送的组播信息。In this embodiment of the present application, the master device may send networking information to each slave device in the form of broadcasting, that is, the networking information may be broadcast information sent by the master device to each slave device. In some implementation manners, the master device may also send networking information to each slave device in the form of multicast, that is, the networking information may be multicast information sent by the master device to each slave device.
在本申请实施例中,在从设备接收到主设备发送的组网信息之后,如果该从设备确定加入该协同系统,那么,该从设备可以向主设备发送组网确认信息,以确认该从设备加入协同系统。In this embodiment of the present application, after the slave device receives the networking information sent by the master device, if the slave device determines to join the collaborative system, the slave device can send networking confirmation information to the master device to confirm the slave device. The device joins the collaborative system.
在一种可能的实现方式中,多个从设备中的每个从设备在接收到主设备发送的组网信息之后,每个从设备均向主设备发送一个组网确认信息。In a possible implementation manner, after each slave device in the plurality of slave devices receives the networking information sent by the master device, each slave device sends a networking confirmation message to the master device.
在另一种可能的实现方式中,多个从设备中的某个从设备可以将接收到的其他从设备的组网确认信息通过转发的形式发送给主设备。In another possible implementation manner, a certain slave device among the multiple slave devices may send the received networking confirmation information of other slave devices to the master device in the form of forwarding.
应理解,在实际应用中,同一局域网内的设备可以通过wifi、蓝牙等方式进行组网,得到协同系统。It should be understood that in practical applications, devices in the same local area network can be networked by means of wifi, bluetooth, etc. to obtain a collaborative system.
那么,对于主设备来说,主设备在接收到多个从设备的组网确认信息之后,主设备可以向多个从设备发送同步对时信息,这里,该同步对时信息可以为握手信息。Then, for the master device, after the master device receives the networking confirmation information of the multiple slave devices, the master device can send synchronization time synchronization information to the multiple slave devices. Here, the synchronization time synchronization information can be handshake information.
之后,多个从设备中的每个从设备向主设备回复握手信息,从而可以实现协同系统中各个设备之间的初步同步。After that, each slave device in the plurality of slave devices replies with handshake information to the master device, so that the preliminary synchronization between the various devices in the cooperative system can be realized.
可以理解的是,在组网成功之后,主设备可以通过对协同系统中的所有设备进行服务技能的抽象、分类和量化,得到设备资源信息,该设备资源信息可以包括每个设备所拥有的服务技能、该服务技能对应的评价信息,具体地,该设备资源信息还可以包括设备的综合评价信息,也可以包括每个设备的健康评价信息。在实际应用中,主设备在对协同系统中的设备进行服务技能的抽象、分类和量化时,可以根据设备具备的功能(该功能是指:设备具有的硬件实体可以提供的功能)来进行。以手机为例,由于手机具备显示器、扬声器和存储器,则将其抽象为显示技能、音频播放技能、存储技能等。It can be understood that after the successful networking, the master device can obtain the device resource information by abstracting, classifying and quantifying the service skills of all the devices in the collaborative system, and the device resource information can include the services owned by each device. The skill and the evaluation information corresponding to the service skill. Specifically, the device resource information may further include the comprehensive evaluation information of the device, and may also include the health evaluation information of each device. In practical applications, when the master device abstracts, classifies and quantifies the service skills of the devices in the collaborative system, it can be performed according to the functions possessed by the devices (the functions refer to the functions that the hardware entities possessed by the devices can provide). Taking a mobile phone as an example, because the mobile phone has a display, a speaker and a memory, it is abstracted into display skills, audio playback skills, storage skills, and so on.
在本申请实施例中,从设备用于响应主设备发起的协同任务之外,各个从设备还可向主设备上报运行状态信息。继而,主设备可以根据各个从设备上报的运行状态信息确定各个从设备是否发生异常,在从设备(例如,第一从设备)出现异常的情况下,主设备可以向第一从设备发送清除设备信息。这里,清除设备信息用于将从设备从协同系统中清除,在这种情况下,主设备会更新该协同系统中的设备资源信息,也即删除第一从设备的设备资源信息。In this embodiment of the present application, in addition to responding to a coordinated task initiated by the master device, each slave device can also report running status information to the master device. Then, the master device can determine whether each slave device is abnormal according to the operating status information reported by each slave device, and in the case that the slave device (for example, the first slave device) is abnormal, the master device information. Here, clearing the device information is used to clear the slave device from the collaborative system. In this case, the master device will update the device resource information in the collaborative system, that is, delete the device resource information of the first slave device.
还应当理解的是,当协同系统中新增了其他的从设备的情况下,主设备会将新增的从设备的设备资源信息增加到协同系统中。It should also be understood that, when other slave devices are added to the collaborative system, the master device will add device resource information of the newly added slave devices to the collaborative system.
在本申请实施例中,主设备可以根据设备资源信息构建设备技能图谱,例如,以图1所示的协同系统为例,构建该协同系统的设备技能图谱可以如图3所示,其中,以显示技能为例,在该协同系统中,投影仪、手机、普通显示屏幕具有显示技能。In this embodiment of the present application, the master device may construct a device skill map according to the device resource information. For example, taking the collaborative system shown in FIG. 1 as an example, the device skill map for constructing the collaborative system may be as shown in FIG. Taking display skills as an example, in this collaborative system, projectors, mobile phones, and ordinary display screens have display skills.
基于图1所示中主设备存储的设备资源信息,请参见图4,是本申请实施例提供的一种协同工作的方法的流程示意图,图4所示的方法可以由协同设备执行,该方法可以包括但不限于步骤S300-步骤S304,下面对其进行详细描述:Based on the device resource information stored by the master device shown in FIG. 1 , please refer to FIG. 4 , which is a schematic flowchart of a collaborative working method provided by an embodiment of the present application. The method shown in FIG. 4 may be executed by a collaborative device. It can include but is not limited to step S300-step S304, which will be described in detail below:
步骤S300、第一主设备接收第一用户的输入操作,根据所述输入操作生成第一协同任务,并将所述协同任务分解成多个第一子任务;所述第一主设备为所述多设备中的主设备。Step S300, the first main device receives the input operation of the first user, generates a first cooperative task according to the input operation, and decomposes the cooperative task into a plurality of first subtasks; the first main device is the Master device in multiple devices.
在本申请实施例中,用户的输入操作可以为用户针对设备上显示的某个应用程序的功能按键执行了触控操作,该触控操作包括但不限于点击操作、按压操作等。例如,该点击操作可以包括单击,也可以包括双击等等。例如,该按压操作可以包括长按压操作,也可以包括重按压操作等等。In this embodiment of the present application, the user's input operation may be that the user performs a touch operation on a function key of an application displayed on the device, and the touch operation includes but is not limited to a click operation, a pressing operation, and the like. For example, the click operation may include a single click, a double click, and the like. For example, the pressing operation may include a long pressing operation, a heavy pressing operation, and the like.
在本申请实施例中,设备根据用户的输入操作生成协同任务,例如,用户的输入操作为用户针对及时通讯应用程序的“视频通话”功能按键执行了一次点击操作,设备根据该输入操作生成协同任务,例如,该协同任务为:视频投屏;又例如,用户的输入操作为用户针对音乐应用程序的“播放”功能按键执行了一次长按压操作,设备根据该输入操作生成协同任务,例如,该协同任务为:歌曲播放。In the embodiment of the present application, the device generates a collaborative task according to the user's input operation. For example, the user's input operation is that the user performs a click operation on the "video call" function button of the instant messaging application, and the device generates a collaborative task according to the input operation. Task, for example, the collaborative task is: video projection; another example, the user's input operation is that the user performs a long-press operation on the "play" function button of the music application, and the device generates a collaborative task according to the input operation, for example, The collaborative task is: song playback.
应理解,用户的输入操作用于表征用户在某个协同应用场景下的需求。It should be understood that the user's input operation is used to represent the user's requirement in a certain collaborative application scenario.
在本申请实施例中,设备可以将协同任务分解为2个子任务,也可以分解成3个子任务等等。In this embodiment of the present application, the device may decompose the collaborative task into two subtasks, or may decompose it into three subtasks, and so on.
以协同任务为“视频投屏”为例,设备将该协同任务进行分解,可以得到3个子任务。具体地,这3个子任务可以分别为:录制视频,播放视频,音频播放。Taking the collaborative task as "video screen projection" as an example, the device decomposes the collaborative task to obtain three subtasks. Specifically, the three subtasks can be: record video, play video, and play audio.
步骤S302、所述第一主设备根据所述设备资源信息从有能力执行所述第一子任务的设备中筛选执行每个第一子任务对应的设备。Step S302, the first master device selects, according to the device resource information, a device corresponding to executing each first subtask from the devices capable of executing the first subtask.
在本申请实施例中,该设备资源信息是指协同系统中所有设备的设备资源信息,包括主设备的设备资源信息,还包括挂载在主设备上的从设备的设备资源信息。In the embodiment of the present application, the device resource information refers to the device resource information of all devices in the collaborative system, including the device resource information of the master device and the device resource information of the slave devices mounted on the master device.
如前所述,以图1所示的协同系统为例,该协同系统的设备技能图谱如图3所示,以显示技能为例,该协同系统中,手机T1、投影仪T3、普通显示屏幕T5具有显示技能;以摄像技能为例,手机T1、摄像机T2具有摄像技能;以音频技能为例,手机T1、普通音箱T4具有音频技能。从而主设备可以从有能力执行上述3个子任务(录制视频,播放视频,音频播放)的设备中筛选执行每个子任务对应的设备。As mentioned above, taking the collaborative system shown in Figure 1 as an example, the equipment skill map of the collaborative system is shown in Figure 3. Taking the display skills as an example, in the collaborative system, the mobile phone T1, the projector T3, and the ordinary display screen T5 has display skills; taking camera skills as an example, mobile phone T1 and camera T2 have camera skills; taking audio skills as an example, mobile phone T1 and ordinary speakers T4 have audio skills. Therefore, the master device can select the device corresponding to each subtask from the devices capable of performing the above three subtasks (recording video, playing video, and playing audio).
在一种可能的实现方式中,设备资源信息包括设备的服务技能和服务技能对应的评价信息;这里,该服务技能对应的评价信息用于描述提供服务技能的硬件实体执行子任务的优劣程度;第一主设备根据设备资源信息从有能力执行第一子任务的设备中筛选执行每个第一子任务对应的设备的具体过程可以包括:第一主设备根据每个第一子任务被执行时所需的服务技能筛选得到有能力执行每个第一子任务的第一候选设备;然后,在第一候选设备中根据服务技能对应的评价信息筛选得到执行每个第一子任务的设备。In a possible implementation manner, the device resource information includes the service skill of the device and the evaluation information corresponding to the service skill; here, the evaluation information corresponding to the service skill is used to describe the quality of the subtask performed by the hardware entity that provides the service skill. ; The specific process that the first main device selects and performs the corresponding equipment of each first subtask from the devices capable of executing the first subtask according to the device resource information may include: the first main device is executed according to each first subtask A first candidate device capable of executing each first subtask is obtained by screening the service skills required at the time; then, a device executing each first subtask is obtained by screening the first candidate devices according to the evaluation information corresponding to the service skills.
在本申请实施例中,服务技能的评价信息可以通过评分来表示,也可以通过等级来表示,本申请不作具体限定。以服务技能的评价信息通过评分表示为例,接下来具体阐述如何确定服务技能的评分的:In the embodiment of the present application, the evaluation information of the service skill may be expressed by a score, or may be expressed by a grade, which is not specifically limited in this application. Taking the evaluation information of service skills expressed by scores as an example, the following is a detailed description of how to determine the score of service skills:
在一种可能的实现方式中,主设备可以采用如下方法确定协同系统中每个设备具备的服务技能的评分:In a possible implementation manner, the master device may use the following method to determine the service skill score of each device in the collaborative system:
A1、主设备根据每个服务技能各自对应的属性确定设备具备的每个服务技能的评分。A1. The master device determines the score of each service skill possessed by the device according to the corresponding attribute of each service skill.
在本申请实施例中,主设备可以根据公式(1)来确定设备的每个服务技能的评分:In this embodiment of the present application, the master device may determine the score of each service skill of the device according to formula (1):
Pij=wj0fj0+wj1fj1+...+wjnfjk (1)P ij =w j0 f j0 +w j1 f j1 +...+w jn f jk (1)
其中,Pij表示第i个设备的第j个服务技能的评分,fjk表示第j个服务技能的第k个属性。Among them, P ij represents the score of the j th service skill of the ith device, and f jk represents the k th attribute of the j th service skill.
例如,以显示器具有显示技能为例,该显示技能包括显示器的尺寸大小、显示器的亮度、显示器的分辨率、显示器的刷新速度、显示器的色彩等属性。For example, taking a display having display skills as an example, the display skills include attributes such as the size of the display, the brightness of the display, the resolution of the display, the refresh speed of the display, and the color of the display.
又例如,以扬声器具有音频播放技能为例,该音频播放技能包括扬声器的最低共振频率、扬声器的效率、扬声器的灵敏度等属性。For another example, take the speaker having audio playback skills as an example, the audio playback skills include attributes such as the lowest resonant frequency of the speaker, the efficiency of the speaker, and the sensitivity of the speaker.
又例如,以摄像头的摄像技能为例,该摄像技能包括摄像头的清晰度、摄像头的信噪比等属性。For another example, taking the camera technology of the camera as an example, the camera technology includes attributes such as the clarity of the camera, the signal-to-noise ratio of the camera, and the like.
在本申请实施例中,考虑到不同服务技能对应的属性的取值范围不同,在这种情况下,对第i个设备的第j个服务技能进行归一化,例如,将其归一到数值区间[1,10]内,其具体的归一化方法可以为:In the embodiment of the present application, considering that the value ranges of attributes corresponding to different service skills are different, in this case, the j-th service skill of the i-th device is normalized, for example, it is normalized to In the numerical interval [1,10], the specific normalization method can be as follows:
其中,fi *表示归一化后的第i个属性的数值,fi表示归一化前的第i个属性的数值,max表示归一化数值区间的最大值,min表示归一化数值区间的最小值。Among them, f i * represents the value of the ith attribute after normalization, f i represents the value of the ith attribute before normalization, max represents the maximum value of the normalized value interval, and min represents the normalized value the minimum value of the interval.
可以理解的是,主设备可以根据公式(1)确定每个设备具备的服务技能的评分,例如,以手机为例,该设备具备的多个服务节能的评分可以包括:音频技能70分;显示技能90分,摄像技能90分。It can be understood that the master device can determine the service skill score of each device according to formula (1). For example, taking a mobile phone as an example, the multiple service energy saving scores of the device can include: audio skill 70 points;
可以理解的是,通过这一实现方式,可以确定每个设备具备的服务技能的评分,继而,可以根据评分筛选得到执行子任务的设备。例如,主设备将评分大于设定好的第一阈值对应的设备确定为执行每个第一子任务的设备。这里,第一阈值可以是第一主设备设置的,也可以是第一主设备根据用户的需求设置的,例如,第一阈值可以为80分,等等。It can be understood that, through this implementation manner, the service skill score of each device can be determined, and then, the devices that perform the subtask can be obtained by screening according to the score. For example, the master device determines the device whose score is greater than the set first threshold as the device that executes each first subtask. Here, the first threshold may be set by the first master device, or may be set by the first master device according to user requirements. For example, the first threshold may be 80 points, and so on.
在一种可能的实现方式中,设备资源信息包括设备的服务技能、服务技能对应的评价信息和设备的综合评价信息;设备的综合评价信息用于描述设备的综合能力的优劣程度;那么,在这种情况下,第一主设备根据所述设备资源信息从有能力执行所述第一子任务的设备中筛选执行每个第一子任务的设备具体过程可以包括:第一主设备根据每个第一子任务被执行时所需的服务技能筛选得到有能力执行每个第一子任务的第一候选设备;第一主设备在第一候选设备中根据服务技能对应的评价信息筛选得到执行每个第一子任务的第二候选设备;第一主设备在第二候选设备中根据设备的综合评价信息筛选得到执行每个第一子任务的设备。In a possible implementation manner, the equipment resource information includes service skills of the equipment, evaluation information corresponding to the service skills, and comprehensive evaluation information of the equipment; the comprehensive evaluation information of the equipment is used to describe the pros and cons of the comprehensive capabilities of the equipment; then, In this case, the specific process for the first master device to select devices capable of executing the first subtask from devices capable of executing the first subtask according to the device resource information may include: the first master device according to each The service skills required when each of the first subtasks are executed are screened to obtain the first candidate device capable of executing each first subtask; the first master device is selected and executed according to the evaluation information corresponding to the service skills in the first candidate device A second candidate device for each first subtask; the first master device selects a device that executes each first subtask from the second candidate device according to the comprehensive evaluation information of the device.
在本申请实施例中,类似地,设备的综合评价信息可以通过评分来表示,也可以通过等级来表示,以设备的综合评价信息通过评分表示为例,在一种可能的实现方式中,主设备可以先根据每个服务技能的属性确定设备具备的每个服务技能的评分,然后,根据设备包含的每个服务技能各自对应的评分,确定设备的总评分。下面对其进行具体阐述:In this embodiment of the present application, similarly, the comprehensive evaluation information of a device may be represented by a score or a grade. Taking the comprehensive evaluation information of a device represented by a score as an example, in a possible implementation, the main The device may first determine the score of each service skill possessed by the device according to the attribute of each service skill, and then determine the total score of the device according to the corresponding score of each service skill included in the device. It is explained in detail below:
B1、主设备根据每个服务技能各自对应的属性确定设备具备的每个服务技能的评分;B1. The master device determines the score of each service skill possessed by the device according to the corresponding attribute of each service skill;
在本申请实施例中,主设备也可以根据上述公式(1)来确定设备具备的每个服务技能的评分。In this embodiment of the present application, the master device may also determine the score of each service skill possessed by the device according to the above formula (1).
例如,以手机为例,该设备具备的多个服务技能的评分可以包括:音频技能70分;显示技能90分,摄像技能90分。For example, taking a mobile phone as an example, the scores of multiple service skills possessed by the device may include: 70 points for audio skills, 90 points for display skills, and 90 points for camera skills.
B2、主设备根据设备包含的每个服务技能各自对应的评分,确定设备的总评分。B2. The master device determines the total score of the device according to the score corresponding to each service skill included in the device.
在本申请实施例中,主设备可以根据公式(2)确定每个设备的总评分:In this embodiment of the present application, the master device may determine the total score of each device according to formula (2):
score(i)=w1Pi1+w2Pi2+....+wnPin (2)score(i)=w 1 P i1 +w 2 P i2 +....+w n P in (2)
其中,score(i)表示第i设备的评分,w1表示第i个设备的第1个服务技能的权重占比,Pi1表示第i个设备的第1个服务技能的评分;wn表示第i个设备的第n个服务技能的权重占比,Pi1表示第i个设备的第n个服务技能的评分。Among them, score(i) represents the score of the i-th device, w 1 represents the weight ratio of the first service skill of the i-th device, P i1 represents the score of the first service skill of the i-th device; w n represents The weight ratio of the nth service skill of the ith device, and P i1 represents the score of the nth service skill of the ith device.
在一种可能的实现方式中,应满足:w1+w2+....+wn=A。这里,A表示常数,例如,A=1。In a possible implementation, it should satisfy: w 1 +w 2 +....+w n =A. Here, A represents a constant, for example, A=1.
以手机为例,其中,音频技能70分;显示技能90分,摄像技能90分,音频技能的权重占比为0.3,显示技能的权重占比为0.3,摄像技能的权重占比为0.4,继而可以确定手机的总评分为:84分。Taking a mobile phone as an example, the audio skills are 70 points; the display skills are 90 points, the camera skills are 90 points, the audio skills have a weight of 0.3, the display skills have a weight of 0.3, and the camera skills have a weight of 0.4, and then It can be determined that the overall rating of the phone is: 84 points.
可以理解的是,通过这一实现方式可以确定每个设备对应的总评分(也即综合评价信息),从而可以根据总评分筛选得到执行子任务的设备。例如,主设备将总评分大于设定好的第二阈值对应的设备确定为执行每个第一子任务的设备。这里,第二阈值可以是第一主设备设置的,也可以是第一主设备根据用户的需求设置的。It can be understood that, through this implementation manner, the total score corresponding to each device (that is, the comprehensive evaluation information) can be determined, so that devices that perform subtasks can be obtained by screening according to the total score. For example, the master device determines a device whose total score is greater than the set second threshold as a device that executes each of the first subtasks. Here, the second threshold may be set by the first master device, or may be set by the first master device according to a user's requirement.
在本申请实施例中,主设备可以根据服务技能对应的评价信息对执行子任务的设备执行一次优选,然后根据设备的综合评价信息再次执行一次优选,可以避免将子任务分配给性能不佳的设备执行,保证多设备之间的协同工作,提高协同任务的执行进度。In this embodiment of the present application, the main device may perform a optimization on the device performing the subtask according to the evaluation information corresponding to the service skill, and then perform the optimization again according to the comprehensive evaluation information of the device, which can avoid assigning the subtask to the device with poor performance. Device execution ensures the collaborative work between multiple devices and improves the execution progress of collaborative tasks.
在一种可能的实现方式中,设备资源信息包括设备的服务技能、服务技能对应的评价信息和每个设备的健康评价信息;第一主设备根据设备资源信息确定执行每个第一子任务对应的设备的具体过程可以包括:第一主设备根据每个第一子任务被执行时所需的服务技能筛选得到有能力执行每个第一子任务的第一候选设备;第一主设备在第一候选设备中根据服务技能对应的评价信息和所述设备的健康评价信息筛选得到执行每个第一子任务的设备。In a possible implementation manner, the device resource information includes service skills of the device, evaluation information corresponding to the service skills, and health evaluation information of each device; the first master device determines to execute each first subtask corresponding to the device resource information. The specific process of the device may include: the first master device selects a first candidate device capable of executing each first subtask according to the service skills required when each first subtask is executed; In a candidate device, a device that performs each first subtask is obtained by screening according to the evaluation information corresponding to the service skill and the health evaluation information of the device.
在一种可能的实现方式中,主设备可以先根据每个服务技能的属性确定设备具备的每个服务技能的评分,然后,根据设备包含的每个服务技能各自对应的评分和设备的健康评价信息,确定第i个设备第j个服务技能的总评分。下面对其进行具体阐述:In a possible implementation manner, the master device may first determine the score of each service skill possessed by the device according to the attribute of each service skill, and then, according to the corresponding score of each service skill included in the device and the health evaluation of the device information to determine the total score for the jth service skill of the ith device. It is explained in detail below:
C1、主设备根据每个服务技能各自对应的属性确定设备具备的每个服务技能的评分;C1. The master device determines the score of each service skill possessed by the device according to the corresponding attribute of each service skill;
在本申请实施例中,主设备可以根据上述公式(1)来确定设备的每个服务技能的评分。In this embodiment of the present application, the master device may determine the score of each service skill of the device according to the above formula (1).
C2、主设备确定每个设备的健康评价信息。这里,设备的健康状态信息可以通过数值(例如,健康度)来表示,也可以通过等级来表示,该健康状态信息用于描述设备的健康程度。C2. The master device determines the health evaluation information of each device. Here, the health state information of the device may be represented by a numerical value (eg, a health degree) or a level, and the health state information is used to describe the health degree of the device.
在本申请实施例中,主设备可以根据公式(3)确定每个设备的健康度:In this embodiment of the present application, the master device may determine the health degree of each device according to formula (3):
Hi=k1h1+k2h2+...+knhn (3)H i =k 1 h 1 +k 2 h 2 +...+k n h n (3)
其中,Hi表示第i个设备的健康度,k1表示第1个指标参数,h1表示第1个指标参数的健康度;kn表示第n个指标参数,hn表示第n个指标参数的健康度。Among them, H i represents the health degree of the ith device, k1 represents the first index parameter, h1 represents the health degree of the first index parameter; kn represents the nth index parameter, hn represents the health degree of the nth index parameter .
在本申请实施例中,指标参数包括但不限于:设备的网络信号好坏、设备历史故障次数等。In this embodiment of the present application, the index parameters include, but are not limited to: the quality of the network signal of the device, the number of historical failures of the device, and the like.
C3、根据每个服务技能的评分和设备的健康度确定第i个设备第j个服务技能的总评分。C3. Determine the total score of the jth service skill of the ith device according to the score of each service skill and the health of the device.
在本申请实施例中,主设备可以根据公式(4)确定第i个设备第j个服务技能的总评分:In this embodiment of the present application, the master device may determine the total score of the jth service skill of the ith device according to formula (4):
score(Dij)=w'1Pij+w'2Hi (4)score(D ij )=w' 1 P ij +w' 2 H i (4)
其中,score(Dij)表示第i设备第j个技能的总评分,w'1表示权重占比,Pi1表示第i个设备的第j个服务技能的评分;w'2表示权重占比,Hi表示第i个设备的健康度。Among them, score(D ij ) represents the total score of the jth skill of the ith device, w' 1 represents the weight ratio, P i1 represents the score of the jth service skill of the ith device; w' 2 represents the weight ratio , H i represents the health of the i-th device.
C4、对每个设备包含的多个服务技能进行求和取平均,得到设备的最终评分。C4. Sum and average the multiple service skills contained in each device to obtain the final score of the device.
在本申请实施例中,主设备可以根据公式(5)确定第i个设备的最终评分。In this embodiment of the present application, the master device may determine the final score of the i-th device according to formula (5).
其中,score(Di)表示第i个设备的最终评分,m表示第i个设备包含的m个服务技能;(Dij)表示第i个设备的第j个服务技能的评分,j的取值可以为[1,2,...,m]。Among them, score(D i ) represents the final score of the ith device, m represents the m service skills included in the ith device; (D ij ) represents the score of the jth service skill of the ith device, and the value of j Values can be [1,2,...,m].
那么,在确定了设备的最终评分之后,可以根据最终评分筛选得到执行子任务的设备。例如,主设备将最终评分大于设定好的第三阈值对应的设备确定为执行每个第一子任务的设备。这里,第三第二阈值可以是第一主设备设置的,也可以是第一主设备根据用户的需求设置的。Then, after the final score of the device is determined, the device that executes the subtask can be obtained by filtering according to the final score. For example, the master device determines the device whose final score is greater than the set third threshold as the device that executes each of the first subtasks. Here, the third and second thresholds may be set by the first master device, or may be set by the first master device according to user requirements.
需要说明的是,在本申请实施例中,并不限定确定设备具备的服务技能的评分、设备的总评分的执行顺序。例如,在一种可能的实现方式中,在未构建协同系统之前,可以采用上述描述的方法确定设备具备的服务技能的评分、设备的总评分。在另一种可能的实现方式中,在构建了协同系统之后,可以采用上述描述的方法确定设备具备的服务技能的评分、设备的总评分。在另一种可能的实现方式中,在主设备接收到用户的输入操作后,可以采用上述描述的方法确定设备具备的服务技能的评分、设备的总评分。需要说明的是,上述确定设备具备的服务技能的评分、设备的总评分的实现方式和确定评分的执行顺序仅仅是例举的部分情况,而不是穷举,本领域技术人员在理解本申请技术方案的精髓的情况下,可能会在本申请技术方案的基础上产生其它的变形或者变换,只要其实现的功能以及达到的技术效果与本申请类似,那么均应当属于本申请的保护范围。此外,上述所涉及的第一阈值、第二阈值、第三阈值可以相同,也可以不同。It should be noted that, in the embodiment of the present application, the execution order of determining the service skill score of the device and the total score of the device is not limited. For example, in a possible implementation manner, before the collaborative system is constructed, the above-described method may be used to determine the service skill score of the device and the total score of the device. In another possible implementation manner, after the collaborative system is constructed, the above-described method may be used to determine the service skill score of the device and the total score of the device. In another possible implementation manner, after the master device receives the user's input operation, the method described above may be used to determine the service skill score and the total score of the device. It should be noted that the above-mentioned ways of determining the service skill score of the device, the implementation of the total score of the device, and the execution order of determining the score are only examples of some cases, rather than an exhaustive list. In the case of the essence of the solution, other deformations or transformations may occur on the basis of the technical solution of the present application. As long as the functions and technical effects achieved are similar to those of the present application, they should all belong to the protection scope of the present application. In addition, the above-mentioned first threshold, second threshold, and third threshold may be the same or different.
在一种可能的实现方式中,主设备可以将排名前M位评分对应的设备确定为执行每个第一子任务的设备。In a possible implementation manner, the master device may determine the device corresponding to the top M scores as the device that executes each first subtask.
在本申请实施例中,M为大于0的正整数,例如,M可以为1,也可以为2,还可以为其他数值。In this embodiment of the present application, M is a positive integer greater than 0. For example, M may be 1, may be 2, or may be other numerical values.
在本申请实施例中,多个子任务中的每个子任务可以分别运行在不同的设备上;多个子任务中的某几个子任务可以运行在同一个设备上,剩余的其他子任务可以分别运行在其他设备上。In this embodiment of the present application, each subtask of the multiple subtasks may run on different devices respectively; some subtasks of the multiple subtasks may run on the same device, and the remaining other subtasks may run separately on the same device. on other devices.
步骤S304、所述第一主设备将所述多个第一子任务发送给对应的设备进行执行。Step S304: The first master device sends the plurality of first subtasks to corresponding devices for execution.
在本申请实施例中,当第一主设备从多个设备中筛选得到执行每个子任务的设备之后,第一主设备将多个子任务发送给对应的设备进行执行,从而可以实现多设备共同完成一个协同任务。In this embodiment of the present application, after the first master device selects a device that executes each subtask from multiple devices, the first master device sends the multiple subtasks to the corresponding device for execution, so that multiple devices can jointly complete the task. a collaborative task.
实施本申请实施例中,主设备将协同系统中性能较优的设备确定为可以执行协同任务的设备,可以避免出现将子任务指定给性能不佳的设备进行执行的情形,可以保证多设备之间的协同工作,提高协同任务的执行进度。In implementing the embodiment of the present application, the master device determines the device with better performance in the collaborative system as the device that can execute the collaborative task, which can avoid the situation of assigning the subtask to the device with poor performance for execution, and can ensure that the multiple devices The collaborative work between them can improve the execution progress of collaborative tasks.
基于图2所示的应用场景,多设备包括多个主设备和多个从设备,为了便于理解,下面先介绍在本申请实施例中,如何组建多设备(多个主设备和多个从设备)构成的协同系统。Based on the application scenario shown in FIG. 2 , the multi-device includes multiple master devices and multiple slave devices. For ease of understanding, the following first describes how to set up multiple devices (multiple master devices and multiple slave devices) in the embodiments of the present application. ) to form a collaborative system.
在本申请实施例中,协同系统包含两层拓扑结构,第一,主设备和主设备之间去中心化协同,也即多个主设备中的每一个主设备均可以响应用户发起的协同任务,对协同任务进行分解,以及调度分解得到的多个子任务,还可以管理协同系统中包含的设备;第二,主设备和从设备之间中心化协同,也即从设备可以直接挂载在主设备上,那么,在这种情况下,可以认为从设备为主设备的外设。In the embodiment of the present application, the coordination system includes a two-layer topology. First, the master device and the master device are decentralized and coordinated, that is, each master device among the multiple master devices can respond to the coordination task initiated by the user. , decompose the collaborative tasks, and schedule multiple sub-tasks obtained by the decomposition, and also manage the devices included in the collaborative system; second, the centralized collaboration between the master device and the slave device, that is, the slave device can be directly mounted on the master device. device, then, in this case, the slave device can be considered a peripheral of the master device.
在本申请实施例中,多个从设备用于响应主设备发起的协同任务,并可以向主设备上报自身的运行状态。继而,主设备可以根据各个从设备上报的运行状态信息确定各个从设备是否发生异常,在从设备(例如,第一从设备)出现异常的情况下,主设备可以向第一从设备发送清除设备信息。这里,清除设备信息用于将从设备从协同系统中清除,在这种情况下,主设备会更新该协同系统中的设备资源信息,也即删除第一从设备的设备资源信息。可以理解的是,若协同系统中的主设备的运行状态出现异常,该主设备可以退出该协同系统。In this embodiment of the present application, multiple slave devices are used to respond to a coordinated task initiated by the master device, and can report their own running states to the master device. Then, the master device can determine whether each slave device is abnormal according to the operating status information reported by each slave device, and in the case that the slave device (for example, the first slave device) is abnormal, the master device information. Here, clearing the device information is used to clear the slave device from the collaborative system. In this case, the master device will update the device resource information in the collaborative system, that is, delete the device resource information of the first slave device. It can be understood that, if the running state of the master device in the collaborative system is abnormal, the master device can exit the collaborative system.
还应当理解的是,当协同系统中新增了其他的从设备(或其他主设备)的情况下,主设备会将新增的从设备的设备资源信息(或新增的主设备的设备资源信息)增加到协同系统中。It should also be understood that when other slave devices (or other master devices) are added to the collaborative system, the master device will store the device resource information of the newly added slave device (or the device resources of the newly added master device). information) is added to the collaborative system.
在本申请实施例中,主设备可以向多个从设备发送组网信息,也可以向其他主设备发送组网信息。该组网信息可以是主设备向主设备发送的广播信息,也可以是主设备向从设备发送的广播信息。In this embodiment of the present application, the master device may send networking information to multiple slave devices, and may also send networking information to other master devices. The networking information may be broadcast information sent by the master device to the master device, or may be broadcast information sent by the master device to the slave device.
在一种可能的实现方式中,主设备可以向多个从设备发送组网信息。例如,如图2所示,设备T1、T2、T3和T4为主设备,设备T5、T6和T7为从设备。对于主设备T2来说,主设备T2可以将组网信息发送给从设备T7,从设备T7在接收到主设备T2发送的组网信息之后,如果该从设备T7确定加入该协同系统,那么,该从设备T7可以向主设备发送组网确认信息,以确认该从设备T7加入协同系统。那么,在这种情况下,可以认为从设备T7直接挂载到该主设备T2上。对于主设备T2来说,从设备T7为挂载到自己身上的外设。可以理解的是,主设备可以管理和连接挂载到本设备上的外设。In a possible implementation manner, the master device may send networking information to multiple slave devices. For example, as shown in FIG. 2, devices T1, T2, T3 and T4 are master devices, and devices T5, T6 and T7 are slave devices. For the master device T2, the master device T2 can send the networking information to the slave device T7. After the slave device T7 receives the networking information sent by the master device T2, if the slave device T7 determines to join the collaborative system, then, The slave device T7 may send networking confirmation information to the master device to confirm that the slave device T7 joins the cooperative system. Then, in this case, it can be considered that the slave device T7 is directly mounted on the master device T2. For the master device T2, the slave device T7 is a peripheral device mounted on itself. Understandably, the master device can manage and connect peripherals mounted on the device.
类似地,对于主设备T4来说,主设备T4可以分别向多个从设备(T5和T6)发送组网信息,在各个从设备接收到主设备发送的组网信息之后,如果该从设备确定加入该协同系统,那么,从设备可以向主设备发送组网信息,以确认该从设备加入协同系统。那么,在这种情况下,可以认为从设备T5和T6挂载到主设备T4上。对于主设备T4来说,从设备T5和T6为挂载自己身上的外设。可以理解的是,主设备可以管理和连接挂载到本设备上的外设,还可以获取挂载到自身的从设备的设备资源信息。Similarly, for the master device T4, the master device T4 can send networking information to multiple slave devices (T5 and T6) respectively. After each slave device receives the networking information sent by the master device, if the slave device determines After joining the collaborative system, the slave device can send networking information to the master device to confirm that the slave device joins the collaborative system. Then, in this case, it can be considered that the slave devices T5 and T6 are mounted on the master device T4. For the master device T4, the slave devices T5 and T6 are peripherals mounted on themselves. It can be understood that the master device can manage and connect peripheral devices mounted on the device, and can also obtain device resource information of the slave device mounted on itself.
在一些实现方式中,上述协同系统还可以支持用户配置,将从设备挂载到具体的主设备上。In some implementations, the above-mentioned collaborative system may also support user configuration, and mount the slave device to a specific master device.
基于上述协同系统中的主设备和从设备之间中心化协同的拓扑结构之后,构建协同系统中的主设备和主设备之间去中心化协同的拓扑结构。以多个主设备中的主设备T1、T2为例,主设备T1向主设备T2发送组网信息,主设备T2在接收到主设备T1发送的组网信息之后,如果主设备T2确定加入该协同系统,那么,主设备T2可以向主设备T1发送组网确认信息,以确认该主设备T2加入协同系统,从而可以构成协同系统。Based on the centralized coordination topology between the master device and the slave device in the above-mentioned collaborative system, a decentralized coordination topology between the master device and the master device in the collaborative system is constructed. Taking the master devices T1 and T2 among the multiple master devices as an example, the master device T1 sends the networking information to the master device T2. After the master device T2 receives the networking information sent by the master device T1, if the master device T2 decides to join the In the cooperative system, the master device T2 can send networking confirmation information to the master device T1 to confirm that the master device T2 joins the cooperative system, so that the cooperative system can be formed.
需要说明的是,上述描述的构建两层拓扑结构的执行顺序只是作为一种示例,不应构成限定。例如,也可以先构建主设备和主设备之间去中心化的协同结构,然后,再构建主设备和从设备之间中心化的协同结构。It should be noted that the above-described execution sequence for constructing the two-layer topology structure is only an example, and should not be construed as a limitation. For example, it is also possible to build a decentralized collaborative structure between the master device and the master device first, and then build a centralized collaborative structure between the master device and the slave device.
在本申请实施例中,在组网成功之后,多个主设备中的任意一个主设备可以对协同系统中所有的设备进行服务技能的抽象、分类和量化,得到协同系统中的所有设备的设备资源信息。这里,以协同系统中的第一主设备(第一主设备为协同系统中的任意一个主设备)为例,第一主设备存储有第一设备资源信息,该第一设备资源信息包括挂载在第一主设备上的从设备的设备资源信息和第一主设备的设备资源以及通过多个主设备之间的共享得到的第二设备资源信息,该第二设备资源信息包括协同系统中除第一主设备和第一主设备上的从设备之外的其他设备的设备资源信息,也即,该协同系统中的每个主设备均存储有第一设备资源信息,该设备资源信息可以包括每个设备所拥有的服务技能、该服务技能对应的评价信息,还可以包括设备的综合评价信息,也可以包括每个设备的健康评价信息。In this embodiment of the present application, after successful networking, any one of the multiple master devices can abstract, classify and quantify the service skills of all the devices in the collaborative system, and obtain the devices of all the devices in the collaborative system. resource information. Here, taking the first master device in the collaborative system (the first master device is any master device in the collaborative system) as an example, the first master device stores the first device resource information, and the first device resource information includes the mount The device resource information of the slave device on the first master device, the device resource of the first master device, and the second device resource information obtained through sharing among multiple master devices, the second device resource information includes the information except the Device resource information of the first master device and other devices other than the slave devices on the first master device, that is, each master device in the collaborative system stores the first device resource information, and the device resource information may include The service skills possessed by each device and the evaluation information corresponding to the service skills may also include comprehensive evaluation information of the device, and may also include health evaluation information of each device.
应理解,在单一协同任务的情况下,用户可以在任意一个主设备上进行,以控制其他主设备和其他从设备。在不同用户发起多个不同的协同任务的情况下,不同用户可以在不同的主设备上发起协同任务,从而可以实现多用户更加便捷、快速地通过协同系统执行多个不同的协同任务。It should be understood that in the case of a single cooperative task, the user can perform on any one master device to control other master devices and other slave devices. When different users initiate multiple different collaborative tasks, different users can initiate collaborative tasks on different master devices, so that multiple users can more conveniently and quickly execute multiple different collaborative tasks through the collaborative system.
还应理解,在实际应用中,同一局域网内的多设备(多个主设备和多个从设备)可以通过wifi、蓝牙等方式进行组网,得到协同系统。It should also be understood that, in practical applications, multiple devices (multiple master devices and multiple slave devices) in the same local area network can be networked by means of wifi, bluetooth, etc., to obtain a collaborative system.
在一种可能的实现方式中,协同系统中的任意一个主设备均可以与该协同系统中的从设备直接进行通信。例如,协同系统中包括第一主设备和第二主设备,其中,第二主设备上挂载有第一从设备,第一主设备可以将第一子任务直接分配给挂载在第二主设备上的第一从设备。In a possible implementation manner, any master device in the cooperative system can directly communicate with the slave device in the cooperative system. For example, the collaborative system includes a first master device and a second master device, wherein a first slave device is mounted on the second master device, and the first master device can directly assign the first subtask to the second master device. The first slave device on the device.
在一种可能的实现方式中,协同系统中的主设备可以将其他主设备分配的子任务转发给挂载在自身的从设备上。例如,协同系统中包括第一主设备和第二主设备,其中,第二主设备上挂载有第一从设备,第二主设备可以接收第一主设备发送的子任务,然后,将该子任务转发给第一从设备进行执行。In a possible implementation manner, the master device in the cooperative system may forward the subtasks assigned by other master devices to the slave device mounted on itself. For example, the collaborative system includes a first master device and a second master device, wherein a first slave device is mounted on the second master device, and the second master device can receive the subtask sent by the first master device, and then The subtask is forwarded to the first slave device for execution.
基于图2所示的协同系统,该协同系统包括多个主设备和一个或多个从设备,多个主设备均存储有协同系统中的第一设备资源信息,请参见图5,是本申请实施例提供的一种协同工作的方法的流程示意图,图5所示的方法可以由协同设备执行,该方法可以包括但不限于步骤S500-步骤S504,下面对其进行详细阐述:Based on the collaborative system shown in FIG. 2 , the collaborative system includes multiple master devices and one or more slave devices, and the multiple master devices all store the first device resource information in the collaborative system. Please refer to FIG. A schematic flowchart of a method for collaborative work provided by the embodiment, the method shown in FIG. 5 can be executed by a collaborative device, and the method can include but is not limited to steps S500 to S504, which are described in detail below:
步骤S500、第一主设备接收第一用户的输入操作,根据所述输入操作生成第一协同任务,并将所述协同任务分解成多个第一子任务;所述第一主设备为所述多个主设备中的任意一个主设备。Step S500, the first main device receives the input operation of the first user, generates a first cooperative task according to the input operation, and decomposes the cooperative task into a plurality of first subtasks; the first main device is the Any one of the multiple masters.
在本申请实施例中,多个主设备中的每个主设备均可以响应用户发起的协同任务。继而将该协同任务进行分解,从而可以得到多个子任务。In this embodiment of the present application, each of the multiple master devices can respond to a collaborative task initiated by a user. Then, the collaborative task is decomposed, so that multiple sub-tasks can be obtained.
步骤S502、所述第一主设备根据所述第一设备资源信息从多个设备中确定执行每个第一子任务对应的设备。Step S502, the first master device determines a device corresponding to executing each first subtask from a plurality of devices according to the first device resource information.
在本申请实施例中,第一主设备可以根据每个第一子任务被执行时所需的服务技能筛选得到有能力执行每个第一子任务的候选设备列表,然后,在候选设备中选择这每个第一子任务对应的设备。例如,以协同任务为“视频投屏”为例,设备将该协同任务进行分解,可以得到3个子任务。具体地,这3个子任务分别为:录制视频,播放视频,音频播放。第一主设备在第一设备资源信息中确定可以执行这3个子任务各自对应的候选设备列表,其中,可以采用摄像机、手机、便携式笔记本录制视频,可以采用手机、普通显示屏幕播放视频,可以采用手机、普通音箱进行音频播放。之后,第一主设备从有能力执行这3个子任务的设备中选择对应的设备,例如,摄像头用于录制视频,普通显示屏幕用于播放视频,普通音箱用于音频播放。又例如,手机用于录制视频,手机用于播放视频,普通音箱用于音频播放。In this embodiment of the present application, the first master device may obtain a list of candidate devices capable of executing each first subtask by screening according to the service skills required when each first subtask is executed, and then select a list of candidate devices from the candidate devices The device corresponding to each of the first subtasks. For example, taking the collaborative task as "video screen projection" as an example, the device can decompose the collaborative task to obtain three subtasks. Specifically, the three subtasks are: record video, play video, and play audio. The first master device determines in the first device resource information a list of candidate devices that can perform each of the three subtasks, wherein a camera, a mobile phone, and a portable notebook can be used to record videos, a mobile phone or a common display screen can be used to play videos, and a Mobile phones, ordinary speakers for audio playback. After that, the first master device selects a corresponding device from the devices capable of performing the three subtasks, for example, a camera is used for recording video, a common display screen is used for playing video, and a common speaker is used for audio playback. For another example, the mobile phone is used for recording video, the mobile phone is used for playing video, and the ordinary speaker is used for audio playback.
在本申请实施例中,第一主设备可以根据每个第一子任务被执行时所需的服务技能筛选得到有能力执行每个第一子任务的候选设备列表,然后,然后,结合用户偏好信息从候选设备列表中选择执行这多个子任务对应的设备。具体地,可以根据用户发起的历史协同任务确定用户偏好信息。例如,以协同任务为“视频投屏”为例,设备将该协同任务进行分解,可以得到3个子任务。具体地,这3个子任务分别为:录制视频,播放视频,音频播放。第一主设备在第一设备资源信息中确定可以执行这3个子任务各自对应的候选设备列表,其中,可以采用摄像机、手机、便携式笔记本录制视频,可以采用手机、普通显示屏幕播放视频,可以采用手机、普通音箱进行音频播放。之后,第一主设备结合用户偏好信息从候选设备列表中选择执行这3个子任务对应的设备,具体地,用户偏好信息包括用户倾向于选择手机录制视频,用户倾向于选择普通显示屏幕播放视频,用户倾向于选择普通音箱进行音频播放,那么,在这种情况下,第一主设备确定手机用于录制视频,普通显示屏幕用于播放视频,普通音箱用于音频播放。In this embodiment of the present application, the first master device can obtain a list of candidate devices capable of executing each first subtask by filtering according to the service skills required when each first subtask is executed, and then, combined with user preferences The information selects the device corresponding to the execution of the multiple subtasks from the candidate device list. Specifically, the user preference information may be determined according to historical collaborative tasks initiated by the user. For example, taking the collaborative task as "video screen projection" as an example, the device can decompose the collaborative task to obtain three subtasks. Specifically, the three subtasks are: record video, play video, and play audio. The first master device determines in the first device resource information a list of candidate devices that can perform each of the three subtasks, wherein a camera, a mobile phone, and a portable notebook can be used to record videos, a mobile phone or a common display screen can be used to play videos, and a Mobile phones, ordinary speakers for audio playback. After that, the first master device selects the device corresponding to the three subtasks from the candidate device list in combination with the user preference information. Specifically, the user preference information includes the user's preference for selecting a mobile phone to record videos, and the user's preference for selecting a common display screen to play videos. The user tends to choose a common speaker for audio playback, then, in this case, the first master device determines that the mobile phone is used for recording video, the common display screen is used for playing video, and the common speaker is used for audio playback.
在本申请实施例中,为了避免因第一主设备将子任务分配给性能不佳的设备执行而带来的执行效率不高的问题,第一计算机设备可以根据第一设备资源信息从有能力执行子任务的设备中筛选执行每个子任务对应的设备,具体地,该优选实现请参见前述实施例中的相关描述,此处不多加赘述。In this embodiment of the present application, in order to avoid the problem of low execution efficiency caused by the first master device assigning subtasks to devices with poor performance for execution, the first computer device The devices that execute the subtasks are screened for devices corresponding to executing each subtask. Specifically, for the preferred implementation, please refer to the relevant descriptions in the foregoing embodiments, and details are not repeated here.
步骤S504、所述第一主设备将所述多个第一子任务发送给对应的设备进行执行。Step S504: The first master device sends the plurality of first subtasks to corresponding devices for execution.
在本申请实施例中,当第一主设备根据第一设备资源信息确定执行每个子任务的设备之后,第一主设备将多个子任务发送给对应的设备进行执行,从而可以实现多设备共同完成协同任务。In this embodiment of the present application, after the first master device determines the device that executes each subtask according to the resource information of the first device, the first master device sends multiple subtasks to the corresponding device for execution, so that multiple devices can jointly complete the task. collaborative tasks.
例如,该协同系统中包含有手机T1、智能音箱T2、智能音箱T3、大显示屏T4、高清摄像头T5。其中,手机T1、智能音箱T2、智能音箱T3、大显示屏T4为主设备,高清摄像头T5为从设备,且高清摄像头T5挂载在大显示屏T4上。该协同系统用于响应“视频投屏”这一协同任务,该协同任务可以分解为子任务1录制视频,子任务2播放视频,子任务3音频播放,手机T1根据第一设备资源信息确定高清摄像头T5用于录制视频,大显示屏T4用于播放视频,智能音箱T2用于音频播放。For example, the collaborative system includes a mobile phone T1, a smart speaker T2, a smart speaker T3, a large display screen T4, and a high-definition camera T5. Among them, the mobile phone T1, the smart speaker T2, the smart speaker T3, and the large display screen T4 are the main devices, and the high-definition camera T5 is the slave device, and the high-definition camera T5 is mounted on the large display screen T4. The collaborative system is used to respond to the collaborative task of "video projection". The collaborative task can be decomposed into sub-task 1 to record video, sub-task 2 to play video, sub-task 3 to play audio, and mobile phone T1 determines high-definition according to the first device resource information. The camera T5 is used for video recording, the large display screen T4 is used for video playback, and the smart speaker T2 is used for audio playback.
在一些实现方式中,手机T1将子任务1录制视频直接发送给高清摄像头T5执行,手机T1将子任务2播放视频直接发送给大显示屏T4执行,手机T1将子任务3音频播放直接发送给智能音箱T2执行,从而可以完成该协同任务。In some implementations, the mobile phone T1 directly sends the recorded video of subtask 1 to the high-definition camera T5 for execution, the mobile phone T1 directly sends the playback video of subtask 2 to the large display screen T4 for execution, and the mobile phone T1 directly sends the audio playback of subtask 3 to The smart speaker T2 executes, so that the collaborative task can be completed.
在一些实现方式中,手机T1将子任务1录制视频发送给大显示屏T4,然后通过大显示屏T4将子任务1录制视频发送给高清摄像头T5执行,手机T1将子任务2播放视频直接发送给大显示屏T4执行,手机T1将子任务3音频播放直接发送给智能音箱T2执行,从而可以完成该协同任务。In some implementations, the mobile phone T1 sends the recorded video of the subtask 1 to the large display screen T4, and then sends the recorded video of the subtask 1 to the high-definition camera T5 through the large display screen T4 for execution, and the mobile phone T1 directly sends the playback video of the subtask 2 For the large display screen T4 to be executed, the mobile phone T1 directly sends the subtask 3 audio playback to the smart speaker T2 for execution, so that the collaborative task can be completed.
实施本申请实施例,由于协同系统中包含多个主设备,且多个主设备中每个主设备均存储有第一设备资源信息,该设备资源信息包括整个协同系统中的所有设备的资源信息,继而多个主设备均可以根据该协同系统中包含的第一设备信息响应用户的输入操作所对应的协同任务,从而可以实现更加便捷、快速地通过协同系统执行协同任务。在实际应用中,可以提高用户的使用体验。此外,通过这一实现方式还可以实现多用户通过协同系统执行多个不同的协同任务。In implementing the embodiments of the present application, since the collaborative system includes multiple master devices, and each master device in the multiple master devices stores first device resource information, the device resource information includes resource information of all devices in the entire collaborative system Then, multiple master devices can respond to the collaborative task corresponding to the user's input operation according to the first device information contained in the collaborative system, so that the collaborative task can be performed more conveniently and quickly through the collaborative system. In practical applications, the user experience can be improved. In addition, through this implementation manner, multiple users can also perform multiple different collaborative tasks through the collaborative system.
下面结合图6所示的方法流程示意图,具体说明在本申请实施例中是如何解决协同冲突的,该协同冲突体现在:多个主设备包括第一主设备和第二主设备,在第一主设备根据第一协同任务,将多个第一子任务发送给对应的设备与在第二主设备根据第二协同任务,将多个第二子任务发送给对应的设备之间存在相同。该方法可以包括如下步骤S600-步骤S602,下面对其进行具体阐述:In the following, with reference to the schematic flowchart of the method shown in FIG. 6 , how to resolve the collaborative conflict in the embodiment of the present application will be specifically described. The master device sends multiple first subtasks to the corresponding device according to the first coordinated task and the second master device sends multiple second subtasks to the corresponding device according to the second coordinated task. The method may include the following steps S600-S602, which will be described in detail below:
步骤S600、当已确定的执行所述多个第一子任务的设备与已确定的执行所述多个第二子任务的设备为同一个设备时,所述第一主设备向所述第二主设备发送调整信息,所述调整信息用于指示所述第二主设备调整执行所述多个第二子任务的设备。Step S600: When the determined device that executes the multiple first subtasks and the determined device that executes the multiple second subtasks are the same device, the first master device sends a message to the second subtask. The master device sends adjustment information, where the adjustment information is used to instruct the second master device to adjust the devices that execute the plurality of second subtasks.
步骤S602、第二主设备根据调整信息调整执行第二子任务的设备。Step S602, the second master device adjusts the device that executes the second subtask according to the adjustment information.
在本申请实施例中,协同系统中预先设置了每个主设备发起的协同任务的优先级顺序,例如,以图2所示的协同系统中,这多个主设备中发起的协同任务的优先级从高到低的顺序可以如下所示:主设备T1中发起的协同任务的优先级>主设备T2中发起的协同任务的优先级顺序>主设备3中发起的协同任务的优先级顺序>主设备4中发起的协同任务的优先级顺序>主设备5中发起的协同任务的优先级顺序。那么,在这种情况下,以主设备包括第一主设备和第二主设备为例,在第一主设备根据第一协同任务,将多个第一子任务发送给对应的设备与在第二主设备根据第二协同任务,将多个第二子任务发送给对应的设备之间产生冲突的情况下,第一主设备可以向第二主设备发送调整信息,例如,该调整信息中可以包括产生冲突的设备的具体分布情况,在第二主设备接收到第一主设备发送的调整信息之后,第二主设备可以根据该调整信息调整执行第二子任务的设备,以实现多个主设备同时响应多个不同的协同任务,可以提高用户的使用体验。In the embodiment of the present application, the priority order of the collaborative tasks initiated by each master device is preset in the collaborative system. For example, in the collaborative system shown in FIG. 2, the priority of the collaborative tasks initiated by the multiple master devices The order of the levels from high to low can be as follows: the priority of the coordinated tasks initiated in the master device T1 > the priority order of the coordinated tasks initiated in the master device T2 > the priority order of the coordinated tasks initiated in the master device 3 > The priority order of the coordinated tasks initiated in the master device 4 > the priority order of the coordinated tasks initiated in the
在本申请实施例中,以多主设备包括第一主设备和第二主设备为例,其中,第二主设备发起的协同任务的时间在第一主设备发起的协同任务之前。在第一主设备根据第一协同任务,将多个第一子任务发送给对应的设备与在第二主设备根据第二协同任务,将多个第二子任务发送给对应的设备之间产生冲突的情况下,由于执行这两个不同的协同任务对应的设备存在相同,结合前述所描述的多个主设备中每个主设备发起的协同任务的优先级顺序优先响应第一主设备发起的协同任务,在这种情况下,第一主设备可以向第二主设备发送调整信息,例如,该调整信息中包括产生冲突的设备的具体分布情况,在第二主设备接收到第一主设备发送的调整信息之后,第二主设备可以根据该调整信息调整执行第二子任务的设备,以实现多个主设备同时响应多个不同的协同任务,可以提高用户的使用体验。In the embodiment of the present application, taking the multi-master device including the first master device and the second master device as an example, the time of the coordinated task initiated by the second master device is before the coordinated task initiated by the first master device. Generated between the first master device sending multiple first subtasks to the corresponding device according to the first coordinated task and the second master sending multiple second subtasks to the corresponding device according to the second coordinated task In the case of conflict, since the devices corresponding to the two different collaborative tasks are identical, the priority order of the collaborative tasks initiated by each master device in the multiple master devices described above gives priority to responding to the first master device. Collaborative task, in this case, the first master device can send adjustment information to the second master device, for example, the adjustment information includes the specific distribution of the conflicting devices, after the second master device receives the first master device After the adjustment information is sent, the second master device can adjust the device performing the second subtask according to the adjustment information, so that multiple master devices can simultaneously respond to multiple different collaborative tasks, which can improve the user experience.
在本申请实施例中,以多主设备包括第一主设备和第二主设备为例,其中,第二主设备发起的协同任务在第一主设备发起的协同任务之前,在这种情况下,协同系统中包含的设备优先响应第二主设备发起的协同任务。之后,该协同系统才会响应第一主设备发起的协同任务。可以理解的是,每个主设备均可以响应不同用户发起的协同任务,提高用户的使用体验。In the embodiment of the present application, a multi-master device including a first master device and a second master device is taken as an example, wherein the coordinated task initiated by the second master device precedes the coordinated task initiated by the first master device. In this case , the devices included in the coordination system respond preferentially to the coordination task initiated by the second master device. After that, the coordination system will respond to the coordination task initiated by the first master device. It can be understood that each master device can respond to collaborative tasks initiated by different users to improve user experience.
在本申请实施例中,以多主设备包括第一主设备和第二主设备为例,其中,第二主设备发起的协同任务在第一主设备发起的协同任务之前(对于从设备来说,从设备接收第二主设备分配的执行子任务的时间先于第一主设备分配的执行子任务的时间),且这两个主设备均将子任务分配给从设备1,例如,第一主设备将子任务1分配给从设备1,第二主设备将子任务2分配给从设备1,在这种情况下,从设备1响应第二主设备分配的子任务2,然后将无法执行子任务1的反馈信息发送给第一主设备,以使第一主设备重新分配子任务1。In the embodiment of the present application, taking a multi-master device including a first master device and a second master device as an example, the coordinated task initiated by the second master device precedes the coordinated task initiated by the first master device (for the slave device , the time that the slave device receives the execution subtask assigned by the second master device is earlier than the time assigned by the first master device to execute the subtask), and the two master devices both assign the subtask to the slave device 1, for example, the first The master assigns subtask 1 to slave 1, and the second master assigns subtask 2 to slave 1, in this case, slave 1 responds to subtask 2 assigned by the second master, and will then fail to execute The feedback information of the subtask 1 is sent to the first master device, so that the first master device reassigns the subtask 1.
在本申请实施例中,第一设备资源信息还可以包括服务技能的使用状态,这里,服务技能的使用状态可以包括可用状态和不可用状态。以多主设备包括第一主设备和第二主设备为例,其中,第二主设备发起的协同任务的时间在第一主设备发起的协同任务之前。结合前述所描述的多个主设备中每个主设备发起的协同任务的优先级顺序优先响应第一主设备发起的协同任务,与此同时,第一主设备更新设备资源信息,具体地,第一主设备将执行多个第一子任务对应的设备的状态标记为不可用状态,之后,第一主设备将更新后的设备资源信息发送给第二主设备,继而,第二主设备在响应第二协同任务时,在剩余可用的设备中,将多个第二子任务发送给对应的设备。可以理解的是,这一实现方式可以避免执行不同的协同任务各自对应的设备出现冲突的情形。In this embodiment of the present application, the first device resource information may further include a usage status of the service skill, and here, the usage status of the service skill may include an available status and an unavailable status. Taking the multi-master device including the first master device and the second master device as an example, the time of the coordinated task initiated by the second master device is before the coordinated task initiated by the first master device. In combination with the priority order of the coordinated tasks initiated by each of the multiple master devices described above, the first master device responds preferentially to the coordinated tasks initiated by the first master device. At the same time, the first master device updates the device resource information, specifically, the first master device. A master device marks the state of the device corresponding to executing a plurality of first subtasks as unavailable, after which the first master device sends the updated device resource information to the second master device, and then the second master device responds During the second collaborative task, among the remaining available devices, multiple second subtasks are sent to the corresponding devices. It can be understood that, this implementation manner can avoid a situation in which devices corresponding to executing different cooperative tasks conflict.
下面示例性地介绍本申请可以适应的具体实例:Specific examples to which this application can be adapted are exemplarily introduced below:
实例1:多设备完成一个协同任务。Example 1: Multiple devices complete a collaborative task.
以如图7A所示的协同系统为例,该协同系统中包含有手机T1、智能音箱T2、智能音箱T3、大显示屏T4、高清摄像头T5。其中,手机T1、智能音箱T2、智能音箱T3、大显示屏T4为主设备,高清摄像头T5为从设备。可以理解的是,该协同系统中的多个主设备之间均存储有协同系统中所有设备的设备资源信息,具体地,该协同系统中的所有设备的设备资源信息可以如图7B所示。从图7B可以知道的是,在该协同系统内,手机T1、大显示屏T4具有显示技能;大显示屏T4、智能音箱T2、智能音箱T3和手机T1具有音频技能;高清摄像头T5和手机T1具有拍摄技能;此外,手机T1还具有通话技能、存储技能等。进一步地,对于手机T1来说,手机T1的显示技能的评分为85分,音频技能为70分,拍摄技能为75分,通话技能为90分,存储技能为65分;对于大显示屏T4来说,大显示屏T4的显示技能的评分为88分,音频技能为65分,摄像技能60分;对于智能音箱T2来说,智能音箱T2的音频技能为90分;对于智能音箱T3来说,智能音箱T3的音频技能的评分为85分;对于高清摄像头T5来说,高清摄像头T5的拍摄技能的评分为87分。Taking the collaborative system shown in FIG. 7A as an example, the collaborative system includes a mobile phone T1, a smart speaker T2, a smart speaker T3, a large display screen T4, and a high-definition camera T5. Among them, the mobile phone T1, the smart speaker T2, the smart speaker T3, and the large display screen T4 are the main devices, and the high-definition camera T5 is the slave device. It can be understood that the device resource information of all devices in the collaborative system is stored among the multiple master devices in the collaborative system. Specifically, the device resource information of all devices in the collaborative system may be as shown in FIG. 7B . It can be known from Figure 7B that in this collaborative system, the mobile phone T1 and the large display screen T4 have display skills; the large display screen T4, the smart speaker T2, the smart speaker T3 and the mobile phone T1 have audio skills; the high-definition camera T5 and the mobile phone T1 have audio skills. With shooting skills; in addition, the mobile phone T1 also has call skills, storage skills and so on. Further, for the mobile phone T1, the score of the display skills of the mobile phone T1 is 85 points, the audio skills are 70 points, the shooting skills are 75 points, the calling skills are 90 points, and the storage skills are 65 points; It is said that the display skills of the large display screen T4 are scored 88 points, the audio skills are 65 points, and the camera skills are 60 points; for the smart speaker T2, the audio skills of the smart speaker T2 are 90 points; for the smart speaker T3, The smart speaker T3 scored 85 points for the audio skills; for the HD camera T5, the HD camera T5 scored 87 points for the shooting skills.
在实际应用中,用户1在手机T1上的即时通讯的应用程序中针对“视频通话”的功能按键执行了触控操作,手机T1在接收到用户的输入操作之后,根据该输入操作生成视屏投屏的协同任务,并对该协同任务进行分解,得到3个子任务,这3个子任务分别为:录制视频,播放视频,音频播放。手机T1可以根据协同系统中的所有设备的设备资源信息确定高清摄像头T5用于录制视频,大显示屏T4用于播放视频,智能音箱T2用于音频播放。继而,手机T1将上述3个子任务发送给对应的设备进行执行,从而可以完成该协同任务。具体地,协同系统中的设备完成该协同任务的示意图可以如图7C所示。In practical applications, user 1 performs a touch operation on the function button of "video call" in the instant messaging application on mobile phone T1. After receiving the user's input operation, mobile phone T1 generates a video screen projection according to the input operation. The collaborative task of the screen is decomposed, and three subtasks are obtained. The three subtasks are: record video, play video, and play audio. The mobile phone T1 can determine, according to the device resource information of all devices in the collaborative system, that the high-definition camera T5 is used for recording video, the large display screen T4 is used for playing video, and the smart speaker T2 is used for audio playback. Then, the mobile phone T1 sends the above three subtasks to the corresponding device for execution, so that the coordinated task can be completed. Specifically, a schematic diagram of the devices in the collaborative system completing the collaborative task may be as shown in FIG. 7C .
实例2:多设备完成多个协同任务。Example 2: Multiple devices complete multiple collaborative tasks.
具体地,多个协同任务可以包括视频投屏和协同播放。其中,视频投屏的优先级顺序高于协同播放的优先级顺序。那么,在这种情况下,协同系统优先响应视频投屏的协同任务。Specifically, multiple collaborative tasks may include video projection and collaborative playback. The priority order of video projection is higher than the priority order of collaborative playback. Then, in this case, the collaborative system responds preferentially to the collaborative task of video projection.
如前所述,以如图7A所示的协同系统为例,该协同系统中包含有手机T1、智能音箱T2、智能音箱T3、大显示屏T4、高清摄像头T5。其中,手机T1、智能音箱T2、智能音箱T3、大显示屏T4为主设备,高清摄像头T5为从设备。可以理解的是,该协同系统中的多个主设备之间均存储有协同系统中所有设备的设备资源信息,具体地,该协同系统中的所有设备的设备资源信息可以如图7B所示。从图7B可以知道的是,在该协同系统内,手机T1、大显示屏T4具有显示技能;大显示屏T4、智能音箱T2、智能音箱T3和手机T1具有音频技能;高清摄像头T5和手机T1具有拍摄技能;此外,手机T1还具有通话技能、存储技能等。进一步地,对于手机T1来说,手机T1的显示技能的评分为85分,音频技能为70分,拍摄技能为75分,通话技能为90分,存储技能为65分;对于大显示屏T4来说,大显示屏T4的显示技能的评分为88分,音频技能为65分,摄像技能60分;对于智能音箱T2来说,智能音箱T2的音频技能为90分;对于智能音箱T3来说,智能音箱T3的音频技能的评分为85分;对于高清摄像头T5来说,高清摄像头T5的拍摄技能的评分为87分。As mentioned above, taking the collaborative system shown in FIG. 7A as an example, the collaborative system includes a mobile phone T1, a smart speaker T2, a smart speaker T3, a large display screen T4, and a high-definition camera T5. Among them, the mobile phone T1, the smart speaker T2, the smart speaker T3, and the large display screen T4 are the main devices, and the high-definition camera T5 is the slave device. It can be understood that the device resource information of all devices in the collaborative system is stored among the multiple master devices in the collaborative system. Specifically, the device resource information of all devices in the collaborative system may be as shown in FIG. 7B . It can be known from Figure 7B that in this collaborative system, the mobile phone T1 and the large display screen T4 have display skills; the large display screen T4, the smart speaker T2, the smart speaker T3 and the mobile phone T1 have audio skills; the high-definition camera T5 and the mobile phone T1 have audio skills. With shooting skills; in addition, the mobile phone T1 also has call skills, storage skills and so on. Further, for the mobile phone T1, the score of the display skills of the mobile phone T1 is 85 points, the audio skills are 70 points, the shooting skills are 75 points, the calling skills are 90 points, and the storage skills are 65 points; It is said that the display skills of the large display screen T4 are scored 88 points, the audio skills are 65 points, and the camera skills are 60 points; for the smart speaker T2, the audio skills of the smart speaker T2 are 90 points; for the smart speaker T3, The smart speaker T3 scored 85 points for the audio skills; for the HD camera T5, the HD camera T5 scored 87 points for the shooting skills.
在实际应用中,用户1在手机T1上的即时通讯的应用程序中针对“视频通话”功能按键执行了触控操作,手机T1在接收到用户的输入操作之后,根据该输入操作生成视屏投屏的协同任务,并对该协同任务进行分解,得到3个子任务,这3个子任务分别为:录制视频,播放视频,音频播放。手机T1可以根据协同系统中的所有设备的设备资源信息确定高清摄像头T5用于录制视频,大显示屏T4用于播放视频,智能音箱T2用于音频播放。继而,手机T1将上述3个子任务发送给对应的设备进行执行,从而可以完成该协同任务。In an actual application, user 1 performs a touch operation on the "video call" function button in the instant messaging application on mobile phone T1, and mobile phone T1 generates a video screen projection according to the input operation after receiving the user's input operation. The collaborative task is decomposed, and three subtasks are obtained. The three subtasks are: record video, play video, and play audio. The mobile phone T1 can determine, according to the device resource information of all devices in the collaborative system, that the high-definition camera T5 is used for recording video, the large display screen T4 is used for playing video, and the smart speaker T2 is used for audio playback. Then, the mobile phone T1 sends the above three subtasks to the corresponding device for execution, so that the coordinated task can be completed.
与此同时,用户2在智能音箱T3上发起了协同播放的协同任务,以提高歌曲播放的播放效果。具体地,智能音箱T3对该协同任务进行分解,得到2个子任务,这2个子任务分别为:左声道音频播放和右声道音频播放。智能音箱T3根据协同系统中的所有设备的设备资源信息确定手机T1用于左声道音频播放,智能音箱T3用于右声道音频播放。继而,智能音箱T3可以将上述2个子任务发送给对应的设备进行执行,从而可以完成该协同任务。具体地,协同系统中的设备同时完成视频投屏和协同播放的协同任务的示意图可以如图7D所示。At the same time, user 2 initiates a collaborative task of collaborative playback on the smart speaker T3 to improve the playback effect of song playback. Specifically, the smart speaker T3 decomposes the collaborative task to obtain two subtasks, and the two subtasks are: left channel audio playback and right channel audio playback. The smart speaker T3 determines, according to the device resource information of all devices in the collaborative system, that the mobile phone T1 is used for left channel audio playback, and the smart speaker T3 is used for right channel audio playback. Then, the smart speaker T3 can send the above two subtasks to the corresponding device for execution, so that the collaborative task can be completed. Specifically, a schematic diagram of the devices in the collaborative system simultaneously completing the collaborative tasks of video projection and collaborative playback may be shown in FIG. 7D .
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本披露并不受所描述的动作顺序的限制,因为依据本披露,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作和模块并不一定是本披露所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the described action sequence. As in accordance with the present disclosure, certain steps may be performed in other orders or concurrently. Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.
进一步需要说明的是,虽然图3和图5的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图3和图5中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be further noted that although the steps in the flowcharts of FIG. 3 and FIG. 5 are displayed in sequence according to the arrows, these steps are not necessarily executed in the sequence indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIG. 3 and FIG. 5 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed and completed at the same time, but may be executed at different times. These sub-steps or The order of execution of the stages is also not necessarily sequential, but may be performed alternately or alternately with other steps or sub-steps of other steps or at least a portion of a stage.
上文结合图1-图7D对本申请实施例的多设备的协同方法进行了详细描述,为了便于更好地实施本申请实施例的上述方案,相应地,下面还提供用于配合实施上述方案的相关装置和设备。The multi-device coordination method of the embodiments of the present application is described in detail above with reference to FIGS. 1 to 7D . In order to facilitate better implementation of the above solutions in the embodiments of the present application, correspondingly, the following also provides a method for implementing the above solutions in coordination. related installations and equipment.
参见图8A,为本申请实施例提供的一种协同设备的结构示意图,该协同设备80应用于协同协同,该协同系统包括一个主设备和从设备,所述主设备存储有设备资源信息,所述设备资源信息包括所述协同系统中的所有设备的资源信息;所述协同系统中的第一主设备包括:Referring to FIG. 8A , which is a schematic structural diagram of a collaborative device provided by an embodiment of the application, the
接收单元800,用于接收第一用户的输入操作,根据所述输入操作生成第一协同任务,并将所述协同任务分解成多个第一子任务;所述第一主设备为所述多设备中的主设备;The receiving
确定单元802,用于根据所述设备资源信息从有能力执行所述第一子任务的设备中筛选执行每个第一子任务的设备;执行单元,用于将所述多个第一子任务发送给对应的设备进行执行。The determining
在一种可能的实现方式中,所述设备资源信息包括所述协同系统中所有设备的服务技能和服务技能对应的评价信息;其中,所述服务技能对应的评价信息用于描述提供所述服务技能的硬件实体执行子任务的优劣程度;所述确定单元802,可以包括:In a possible implementation manner, the device resource information includes service skills of all devices in the collaborative system and evaluation information corresponding to the service skills; wherein the evaluation information corresponding to the service skills is used to describe the provision of the service The pros and cons of the sub-task performed by the hardware entity of the skill; the determining
第一筛选单元8021,用于根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;A first screening unit 8021, configured to screen and obtain a first candidate device capable of executing each of the first subtasks according to the service skills required when each of the first subtasks is executed;
第二筛选单元8022,用于在所述第一候选设备中根据所述服务技能对应的评价信息筛选得到执行每个第一子任务的设备。The second screening unit 8022 is configured to screen the first candidate device according to the evaluation information corresponding to the service skill to obtain a device that performs each first subtask.
在一种可能的实现方式中,所述设备资源信息还包括设备的综合评价信息;所述设备的综合评价信息用于描述设备的综合能力的优劣程度;所述确定单元802,可以包括:In a possible implementation manner, the device resource information further includes comprehensive evaluation information of the device; the comprehensive evaluation information of the device is used to describe the pros and cons of the comprehensive capability of the device; the determining
第一筛选单元8021,用于根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;A first screening unit 8021, configured to screen and obtain a first candidate device capable of executing each of the first subtasks according to the service skills required when each of the first subtasks is executed;
第三筛选单元8023,用于在所述第一候选设备中根据所述服务技能对应的评价信息筛选得到执行每个第一子任务的第二候选设备;A third screening unit 8023, configured to screen the first candidate device according to the evaluation information corresponding to the service skill to obtain a second candidate device that performs each first subtask;
第四筛选单元8024,用于在所述第二候选设备中根据所述设备的综合评价信息筛选得到执行每个第一子任务的设备。The fourth screening unit 8024 is configured to screen the second candidate device according to the comprehensive evaluation information of the device to obtain a device that executes each first subtask.
在一种可能的实现方式中,所述设备资源信息还包括所述协同系统中每个设备的健康评价信息;其中,所述健康评价信息用于描述设备的健康程度;所述确定单元802,可以包括:In a possible implementation manner, the device resource information further includes health evaluation information of each device in the collaborative system; wherein the health evaluation information is used to describe the health degree of the device; the determining
第一筛选单元8021,用于根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;A first screening unit 8021, configured to screen and obtain a first candidate device capable of executing each of the first subtasks according to the service skills required when each of the first subtasks is executed;
第五筛选单元8025,用于在所述第一候选设备中根据所述服务技能对应的评价信息和所述设备的健康评价信息筛选得到执行每个第一子任务的设备。The fifth screening unit 8025 is configured to screen the first candidate device according to the evaluation information corresponding to the service skill and the health evaluation information of the device to obtain a device that performs each first subtask.
参见图8B,是本申请实施例提供的一种协同设备的结构示意图。该协同设备80应用于协同系统,该协同系统包括多个主设备和一个或多个从设备;所述协同系统中的第一主设备存储有第一设备资源信息,所述第一设备资源信息包括挂载在所述第一主设备上的从设备的设备资源信息和所述第一主设备的设备资源信息以及通过所述多个主设备之间的共享所得到的第二设备资源信息,所述第二设备资源信息包括所述协同系统中除所述第一主设备和所述第一主设备上的从设备之外的其他设备的设备资源信息;其中,所述多个主设备中的第一主设备80包括:Referring to FIG. 8B , it is a schematic structural diagram of a coordination device provided by an embodiment of the present application. The
接收单元800,用于接收第一用户的输入操作,根据所述输入操作生成第一协同任务,并将所述协同任务分解成多个第一子任务;所述第一主设备为所述多个主设备中的任意一个主设备;The receiving
确定单元802,用于根据所述第一设备资源信息从多个设备中确定执行每个第一子任务的设备;a determining
执行单元804,用于将所述多个第一子任务发送给对应的设备进行执行。The
实施本申请实施例,由于协同系统中包含多个主设备,且多个主设备中每个主设备均存储有第一设备资源信息,该设备资源信息包括整个协同系统中的所有设备的资源信息,继而多个主设备均可以根据该协同系统中包含的第一设备信息响应用户的输入操作所对应的协同任务,从而可以实现更加便捷、快速地通过协同系统执行协同任务。在实际应用中,可以提高用户的使用体验。此外,通过这一实现方式还可以实现多用户通过协同系统执行多个不同的协同任务。In implementing the embodiments of the present application, since the collaborative system includes multiple master devices, and each master device in the multiple master devices stores first device resource information, the device resource information includes resource information of all devices in the entire collaborative system Then, multiple master devices can respond to the collaborative task corresponding to the user's input operation according to the first device information contained in the collaborative system, so that the collaborative task can be performed more conveniently and quickly through the collaborative system. In practical applications, the user experience can be improved. In addition, through this implementation manner, multiple users can also perform multiple different collaborative tasks through the collaborative system.
在一种可能的实现方式中,所述第一设备资源信息包括所述协同系统中所有设备的服务技能和服务技能对应的评价信息;其中,所述服务技能对应的评价信息用于描述提供所述服务技能的硬件实体执行子任务的优劣程度;所述确定单元802,可以包括:In a possible implementation manner, the first device resource information includes service skills of all devices in the collaborative system and evaluation information corresponding to the service skills; wherein the evaluation information corresponding to the service skills is used to describe the provision of all the devices. The quality of the subtask performed by the hardware entity of the service skill; the determining
第一筛选单元8021,用于根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;A first screening unit 8021, configured to screen and obtain a first candidate device capable of executing each of the first subtasks according to the service skills required when each of the first subtasks is executed;
第二筛选单元8022,用于在所述第一候选设备中根据所述服务技能对应的评价信息筛选得到执行每个第一子任务的设备。The second screening unit 8022 is configured to screen the first candidate device according to the evaluation information corresponding to the service skill to obtain a device that performs each first subtask.
在一种可能的实现方式中,所述第一设备资源信息还包括设备的综合评价信息;所述设备的综合评价信息用于描述设备的综合能力的优劣程度;所述确定单元802,可以包括:In a possible implementation manner, the first device resource information further includes comprehensive evaluation information of the device; the comprehensive evaluation information of the device is used to describe the pros and cons of the comprehensive capability of the device; the determining
第一筛选单元8021,用于根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;A first screening unit 8021, configured to screen and obtain a first candidate device capable of executing each of the first subtasks according to the service skills required when each of the first subtasks is executed;
第三筛选单元8023,用于在所述第一候选设备中根据所述服务技能对应的评价信息筛选得到执行每个第一子任务的第二候选设备;A third screening unit 8023, configured to screen the first candidate device according to the evaluation information corresponding to the service skill to obtain a second candidate device that performs each first subtask;
第四筛选单元8024,用于在所述第二候选设备中根据所述设备的综合评价信息筛选得到执行每个第一子任务的设备。The fourth screening unit 8024 is configured to screen the second candidate device according to the comprehensive evaluation information of the device to obtain a device that executes each first subtask.
在一种可能的实现方式中,所述第一设备资源信息还包括所述协同系统中每个设备的健康评价信息;其中,所述健康评价信息用于描述设备的健康程度;所述确定单元802,可以包括:In a possible implementation manner, the first device resource information further includes health evaluation information of each device in the collaborative system; wherein the health evaluation information is used to describe the health degree of the device; the determining
第一筛选单元8021,用于根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;A first screening unit 8021, configured to screen and obtain a first candidate device capable of executing each of the first subtasks according to the service skills required when each of the first subtasks is executed;
第五筛选单元8025,用于在所述第一候选设备中根据所述服务技能对应的评价信息和所述设备的健康评价信息筛选得到执行每个第一子任务的设备。The fifth screening unit 8025 is configured to screen the first candidate device according to the evaluation information corresponding to the service skill and the health evaluation information of the device to obtain a device that performs each first subtask.
在一种可能的实现方式中,所述多个主设备包括所述第一主设备和第二主设备;在所述第二主设备根据第二协同任务,将多个第二子任务发送给对应的设备的情况下,若所述第一主设备生成的第一协同任务的优先级高于所述第二主设备生成的第二协同任务和/或所述第一主设备生成的第一协同任务的时间戳早于所述第二主设备生成的第二协同任务的时间戳;所述协同设备还包括:In a possible implementation manner, the multiple master devices include the first master device and the second master device; the second master device sends multiple second subtasks to the second master device according to the second coordinated task In the case of the corresponding device, if the priority of the first coordinated task generated by the first master device is higher than the second coordinated task generated by the second master device and/or the first coordinated task generated by the first master device. The time stamp of the cooperative task is earlier than the time stamp of the second cooperative task generated by the second master device; the cooperative device further includes:
发送单元806,用于当已确定的执行所述多个第一子任务的设备与已确定的执行所述多个第二子任务的设备为同一个设备时,向所述第二主设备发送调整信息,所述调整信息用于指示所述第二主设备调整执行所述多个第二子任务的设备。The sending unit 806 is configured to send to the second master device when the determined device executing the multiple first subtasks and the determined device executing the multiple second subtasks are the same device adjustment information, where the adjustment information is used to instruct the second master device to adjust the devices that execute the plurality of second subtasks.
在一种可能的实现方式中,所述主设备包括资源丰富度大于第一预设阈值的设备,所述从设备包括资源丰富度小于第二预设阈值的设备;其中,所述资源丰富度用于描述设备的能力。In a possible implementation manner, the master device includes a device with a resource richness greater than a first preset threshold, and the slave device includes a device with a resource richness less than a second preset threshold; wherein the resource richness Used to describe the capabilities of the device.
需要说明的是,上述系统中的各个装置还可以包括其他单元,各个设备、单元的具体实现可以参见上述方法实施例中相关描述,此处,不再赘述。It should be noted that each device in the above system may further include other units, and the specific implementation of each device and unit may refer to the relevant descriptions in the above method embodiments, which will not be repeated here.
为了便于更好地实施本发明实施例的上述方案,本发明还对应提供了另一种协同设备,下面结合附图来进行详细说明:In order to facilitate better implementation of the above solutions of the embodiments of the present invention, the present invention also provides another kind of coordination device correspondingly, which will be described in detail below with reference to the accompanying drawings:
如图9示出的本发明实施例提供的协同设备的结构示意图,协同设备90可以包括处理器901、存储器904和通信模块905,处理器901、存储器904和通信模块905可以通过总线906相互连接。存储器904可以是高速随机存储记忆体(Random Access Memory,RAM)存储器,也可以是非易失性的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器904可选的还可以是至少一个位于远离前述处理器901的存储系统。存储器904用于存储应用程序代码,可以包括操作系统、网络通信模块、用户接口模块以及数据处理程序,通信模块905用于与外部设备进行信息交互;处理器901被配置用于调用该程序代码,执行以下步骤:As shown in FIG. 9 , a schematic structural diagram of a cooperative device provided by an embodiment of the present invention, the
接收第一用户的输入操作,根据所述输入操作生成第一协同任务,并将所述协同任务分解成多个第一子任务;receiving an input operation from the first user, generating a first collaborative task according to the input operation, and decomposing the collaborative task into a plurality of first subtasks;
根据所述第一设备资源信息确定执行每个第一子任务对应的设备;Determine the device corresponding to executing each first subtask according to the first device resource information;
将所述多个第一子任务发送给对应的设备进行执行。Send the plurality of first subtasks to corresponding devices for execution.
其中,所述第一设备资源信息包括所述协同系统中所有设备的服务技能和服务技能对应的评价信息;其中,所述服务技能对应的评价信息用于描述提供所述服务技能的硬件实体执行子任务的优劣程度;处理器901根据所述第一设备资源信息从多个设备中确定执行每个第一子任务对应的设备,可以包括:The first device resource information includes service skills of all devices in the collaborative system and evaluation information corresponding to the service skills; wherein, the evaluation information corresponding to the service skills is used to describe the execution of the hardware entity that provides the service skills The degree of pros and cons of the subtasks; the
根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;According to the service skills required when each first subtask is executed, a first candidate device capable of executing each first subtask is obtained by screening;
在所述第一候选设备中根据所述服务技能对应的评价信息筛选得到执行每个第一子任务的设备。In the first candidate device, a device that executes each first subtask is obtained by screening according to the evaluation information corresponding to the service skill.
其中,所述第一设备资源信息还包括设备的综合评价信息;所述设备的综合评价信息用于描述设备的综合能力的优劣程度;处理器901根据所述第一设备资源信息从多个设备中确定执行每个第一子任务的设备,包括:Wherein, the first device resource information further includes comprehensive evaluation information of the device; the comprehensive evaluation information of the device is used to describe the pros and cons of the comprehensive capability of the device; the
根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;According to the service skills required when each first subtask is executed, a first candidate device capable of executing each first subtask is obtained by screening;
在所述第一候选设备中根据所述服务技能对应的评价信息筛选得到执行每个第一子任务的第二候选设备;Screening, in the first candidate device, according to the evaluation information corresponding to the service skill, a second candidate device that performs each first subtask;
在所述第二候选设备中根据所述设备的综合评价信息筛选得到执行每个第一子任务的设备。In the second candidate device, a device that executes each first subtask is obtained by screening according to the comprehensive evaluation information of the device.
其中,所述第一设备资源信息还包括所述协同系统中每个设备的健康评价信息;其中,所述健康评价信息用于描述设备的健康程度;所述处理器901根据所述第一设备资源信息从多个设备中确定执行每个第一子任务的设备,包括:Wherein, the first device resource information further includes health evaluation information of each device in the collaborative system; wherein, the health evaluation information is used to describe the health degree of the device; the
根据所述每个第一子任务被执行时所需的服务技能筛选得到有能力执行所述每个第一子任务的第一候选设备;According to the service skills required when each first subtask is executed, a first candidate device capable of executing each first subtask is obtained by screening;
在所述第一候选设备中根据所述服务技能对应的评价信息和所述设备的健康评价信息筛选得到执行每个第一子任务的设备。In the first candidate device, a device that performs each first subtask is obtained by screening according to the evaluation information corresponding to the service skill and the health evaluation information of the device.
其中,所述多个主设备包括所述第一主设备和第二主设备;在所述第二主设备根据第二协同任务,将多个第二子任务发送给对应的设备的情况下,若所述第一主设备生成的第一协同任务的优先级高于所述第二主设备生成的第二协同任务和/或所述第一主设备生成的第一协同任务的时间戳早于所述第二主设备生成的第二协同任务的时间戳;所述处理器901可以用于:Wherein, the multiple master devices include the first master device and the second master device; when the second master device sends multiple second subtasks to the corresponding devices according to the second coordinated task, If the priority of the first coordinated task generated by the first master device is higher than that of the second coordinated task generated by the second master device and/or the timestamp of the first coordinated task generated by the first master device is earlier than Timestamp of the second coordinated task generated by the second master device; the
当已确定的执行所述多个第一子任务的设备与已确定的执行所述多个第二子任务的设备为同一个设备时,所述第一主设备向所述第二主设备发送调整信息,所述调整信息用于指示所述第二主设备调整执行所述多个第二子任务的设备。When the determined device that executes the multiple first subtasks and the determined device that executes the multiple second subtasks are the same device, the first master device sends a message to the second master device. adjustment information, where the adjustment information is used to instruct the second master device to adjust the devices that execute the plurality of second subtasks.
其中,所述主设备包括资源丰富度大于第一预设阈值的设备,所述从设备包括资源丰富度小于第二预设阈值的设备;其中,所述资源丰富度用于描述设备的能力。The master device includes a device with a resource richness greater than a first preset threshold, and the slave device includes a device with a resource richness less than a second preset threshold; wherein the resource richness is used to describe the capability of the device.
需要说明的是,本发明实施例中的协同设备90中处理器的执行步骤可参考上述各方法实施例中图5实施例中的协同设备运行的具体实现方式,这里不再赘述。It should be noted that, for the execution steps of the processor in the
在具体实现中,协同设备90可以包括移动手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、移动互联网设备(Mobile Internet Device,MID)等各种用户可以使用的设备,本发明实施例不作具体限定。In a specific implementation, the
图10是本申请实施例提供的协同系统的示意性框图。该协同系统100可以包括多个主设备1001和多个从设备1002。其中,多个主设备1001和多个从设备1002的具体作用如下:FIG. 10 is a schematic block diagram of a collaboration system provided by an embodiment of the present application. The collaborative system 100 may include multiple master devices 1001 and multiple slave devices 1002 . The specific functions of multiple master devices 1001 and multiple slave devices 1002 are as follows:
多个主设备1001中的每个主设备均存储有第一设备资源信息,以协同协同中的第一主设备为例,第一主设备存储有第一设备资源信息,所述第一设备资源信息包括挂载在所述第一主设备上的从设备的设备资源信息和所述第一主设备的设备资源信息以及通过所述多个主设备之间的共享所得到的第二设备资源信息,所述第二设备资源信息包括所述协同系统中除所述第一主设备和所述第一主设备上的从设备之外的其他设备的设备资源信息;第一主设备为协同系统中的任意一个主设备。从设备1002挂载到多个主设备1001中的至少一个主设备1001上。在实际应用中,该协同系统中的第一主设备用于接收第一用户的输入操作,根据所述输入操作生成第一协同任务,并将所述第一协同任务分解成多个第一子任务;所述第一主设备为所述多个主设备1001中的任意一个主设备;根据所述第一设备资源信息从多个设备中确定执行每个第一子任务的设备;将所述多个第一子任务发送给对应的设备进行执行。Each master device in the plurality of master devices 1001 stores first device resource information. Taking the first master device in collaboration as an example, the first master device stores first device resource information, and the first device resource The information includes device resource information of a slave device mounted on the first master device, device resource information of the first master device, and second device resource information obtained through sharing among the multiple master devices , the second device resource information includes device resource information of other devices in the collaborative system except the first master device and the slave devices on the first master device; the first master device is a device in the collaborative system any one of the master devices. The slave device 1002 is mounted on at least one master device 1001 among the plurality of master devices 1001 . In practical applications, the first master device in the collaborative system is configured to receive an input operation from a first user, generate a first collaborative task according to the input operation, and decompose the first collaborative task into a plurality of first sub-tasks task; the first master device is any one of the multiple master devices 1001; the device that executes each first subtask is determined from the multiple devices according to the first device resource information; the The multiple first subtasks are sent to corresponding devices for execution.
应理解,协同系统中的主设备1001相当于上文中的协同设备80或者协同设备90。It should be understood that the master device 1001 in the collaborative system is equivalent to the
本发明实施例还提供了一种计算机存储介质,该计算机可读存储介质中存储有指令,当其在计算机或处理器上运行时,使得计算机或处理器执行上述任一个实施例所述方法中的一个或多个步骤。上述装置的各组成模块如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在所述计算机可读取存储介质中,基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机产品存储在计算机可读存储介质中。Embodiments of the present invention further provide a computer storage medium, where instructions are stored in the computer-readable storage medium, when the computer or processor is run on the computer or processor, the computer or processor is made to execute the method described in any one of the foregoing embodiments. one or more steps. If each component module of the above-mentioned device is realized in the form of software functional unit and sold or used as an independent product, it can be stored in the computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or The part said to have contributed to the prior art or the whole or part of the technical solution can be embodied in the form of a software product, and the computer product is stored in a computer-readable storage medium.
上述计算机可读存储介质可以是前述实施例所述的设备的内部存储单元,例如硬盘或内存。上述计算机可读存储介质也可以是上述设备的外部存储设备,例如配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,上述计算机可读存储介质还可以既包括上述设备的内部存储单元也包括外部存储设备。上述计算机可读存储介质用于存储上述计算机程序以及上述设备所需的其他程序和数据。上述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The above-mentioned computer-readable storage medium may be an internal storage unit of the device described in the foregoing embodiments, such as a hard disk or a memory. The above-mentioned computer-readable storage medium can also be an external storage device of the above-mentioned equipment, such as a plug-in hard disk equipped, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash memory card (Flash Card). )Wait. Further, the above-mentioned computer-readable storage medium may also include both an internal storage unit of the above-mentioned device and an external storage device. The above-mentioned computer-readable storage medium is used to store the above-mentioned computer program and other programs and data required by the above-mentioned device. The above-mentioned computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,可通过计算机程序来指令相关的硬件来完成,该计算机的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the program is executed , may include the flow of the above-mentioned method embodiments. The aforementioned storage medium includes various media that can store program codes, such as ROM, RAM, magnetic disk, or optical disk.
本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the method of the embodiment of the present application may be adjusted, combined and deleted in sequence according to actual needs.
本申请实施例装置中的模块可以根据实际需要进行合并、划分和删减。The modules in the apparatus of the embodiment of the present application may be combined, divided and deleted according to actual needs.
可以理解,本领域普通技术人员可以意识到,结合本申请各个实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。It can be understood that those skilled in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the various embodiments of this application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
本领域技术人员能够领会,结合本申请各个实施例中公开描述的各种说明性逻辑框、模块和算法步骤所描述的功能可以硬件、软件、固件或其任何组合来实施。如果以软件来实施,那么各种说明性逻辑框、模块、和步骤描述的功能可作为一或多个指令或代码在计算机可读媒体上存储或传输,且由基于硬件的处理单元执行。计算机可读媒体可包含计算机可读存储媒体,其对应于有形媒体,例如数据存储媒体,或包括任何促进将计算机程序从一处传送到另一处的媒体(例如,根据通信协议)的通信媒体。以此方式,计算机可读媒体大体上可对应于(1)非暂时性的有形计算机可读存储媒体,或(2)通信媒体,例如信号或载波。数据存储媒体可为可由一或多个计算机或一或多个处理器存取以检索用于实施本申请中描述的技术的指令、代码和/或数据结构的任何可用媒体。计算机程序产品可包含计算机可读媒体。Those skilled in the art will appreciate that the functions described in connection with the various illustrative logical blocks, modules, and algorithm steps disclosed in the various embodiments of this application may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions described by the various illustrative logical blocks, modules, and steps may be stored on or transmitted over as one or more instructions or code on a computer-readable medium and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media, which corresponds to tangible media, such as data storage media, or communication media including any medium that facilitates transfer of a computer program from one place to another (eg, according to a communication protocol) . In this manner, a computer-readable medium may generally correspond to (1) a non-transitory tangible computer-readable storage medium, or (2) a communication medium, such as a signal or carrier wave. Data storage media can be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, code and/or data structures for implementing the techniques described in this application. The computer program product may comprise a computer-readable medium.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. should be covered within the scope of protection of this application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims (20)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911058552.7A CN112752048B (en) | 2019-10-31 | 2019-10-31 | Cooperative work method, device, storage medium and cooperative system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911058552.7A CN112752048B (en) | 2019-10-31 | 2019-10-31 | Cooperative work method, device, storage medium and cooperative system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112752048A CN112752048A (en) | 2021-05-04 |
| CN112752048B true CN112752048B (en) | 2022-04-12 |
Family
ID=75644966
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911058552.7A Active CN112752048B (en) | 2019-10-31 | 2019-10-31 | Cooperative work method, device, storage medium and cooperative system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112752048B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115314327B (en) * | 2021-05-07 | 2024-02-06 | 海信集团控股股份有限公司 | Electronic equipment, intelligent equipment and intelligent equipment control method |
| CN113490039B (en) * | 2021-07-20 | 2023-09-05 | 北京奇艺世纪科技有限公司 | Screen-throwing joint broadcasting method, device, system, electronic equipment and storage medium |
| CN114726711A (en) * | 2022-03-23 | 2022-07-08 | 海能达通信股份有限公司 | Method and system for collaboratively processing business between devices |
| CN114895660B (en) * | 2022-04-27 | 2025-04-01 | 达闼机器人股份有限公司 | Control method, device, medium and equipment for unmanned equipment |
| CN118170107B (en) * | 2024-05-16 | 2024-08-13 | 青岛国创智能家电研究院有限公司 | Operating system scheduling method, device and system based on abstractable equipment function |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1602606A (en) * | 2002-10-04 | 2005-03-30 | 索尼株式会社 | Electronic equipment with communication functions |
| CN101711387A (en) * | 2007-04-04 | 2010-05-19 | 香港科技大学 | Peer-to-peer sharing of functionality of mobile devices |
| CN106257960A (en) * | 2015-06-18 | 2016-12-28 | 中兴通讯股份有限公司 | The method and apparatus of many equipment collaborations operation |
| CN108092862A (en) * | 2017-12-15 | 2018-05-29 | 四川爱联科技有限公司 | WiFi ad hoc network control systems based on Internet of Things |
| US10048987B1 (en) * | 2015-12-21 | 2018-08-14 | EMC IP Holding Company LLC | Methods and apparatus for a resource sharing platform having resource quality estimation |
| CN109359798A (en) * | 2018-08-21 | 2019-02-19 | 平安科技(深圳)有限公司 | Task allocation method, device and storage medium |
| CN109561340A (en) * | 2017-09-25 | 2019-04-02 | 北京小鸟听听科技有限公司 | Multimedia service processing method, equipment, multimedia service group and storage medium |
| CN109803003A (en) * | 2018-12-29 | 2019-05-24 | 华为技术有限公司 | A kind of control method, system and relevant device |
| CN109842658A (en) * | 2017-11-27 | 2019-06-04 | 华为技术有限公司 | Method and device for multi-terminal collaborative safe work |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5074516B2 (en) * | 2006-12-05 | 2012-11-14 | クゥアルコム・インコーポレイテッド | ZEROOSINGLEPOINTOFFAILULOADLOADLANCANCER EQUIPMENT AND METHOD FOR ZERO SINGLE POINT LOAD BALANCER |
| US8553660B2 (en) * | 2010-01-03 | 2013-10-08 | Mitsubishi Electric Research Laboratories, Inc. | Cooperative relay communication in wireless OFDMA star networks |
| US9398211B2 (en) * | 2010-09-23 | 2016-07-19 | Intel Corporation | Multi-device alignment for collaborative media capture |
-
2019
- 2019-10-31 CN CN201911058552.7A patent/CN112752048B/en active Active
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1602606A (en) * | 2002-10-04 | 2005-03-30 | 索尼株式会社 | Electronic equipment with communication functions |
| CN101711387A (en) * | 2007-04-04 | 2010-05-19 | 香港科技大学 | Peer-to-peer sharing of functionality of mobile devices |
| CN106257960A (en) * | 2015-06-18 | 2016-12-28 | 中兴通讯股份有限公司 | The method and apparatus of many equipment collaborations operation |
| US10048987B1 (en) * | 2015-12-21 | 2018-08-14 | EMC IP Holding Company LLC | Methods and apparatus for a resource sharing platform having resource quality estimation |
| CN109561340A (en) * | 2017-09-25 | 2019-04-02 | 北京小鸟听听科技有限公司 | Multimedia service processing method, equipment, multimedia service group and storage medium |
| CN109842658A (en) * | 2017-11-27 | 2019-06-04 | 华为技术有限公司 | Method and device for multi-terminal collaborative safe work |
| CN108092862A (en) * | 2017-12-15 | 2018-05-29 | 四川爱联科技有限公司 | WiFi ad hoc network control systems based on Internet of Things |
| CN109359798A (en) * | 2018-08-21 | 2019-02-19 | 平安科技(深圳)有限公司 | Task allocation method, device and storage medium |
| CN109803003A (en) * | 2018-12-29 | 2019-05-24 | 华为技术有限公司 | A kind of control method, system and relevant device |
Non-Patent Citations (1)
| Title |
|---|
| "基于宽带载波及蓝牙技术的家居智能组网控制系统研究";王彧;《中国优秀硕士学位论文全文数据库(电子期刊)》;20180715;全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112752048A (en) | 2021-05-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112752048B (en) | Cooperative work method, device, storage medium and cooperative system | |
| US10356365B2 (en) | Framework to support a hybrid of meshed endpoints with non-meshed endpoints | |
| JP7313473B2 (en) | DATA TRANSMISSION METHOD, DEVICE, COMPUTER PROGRAM AND COMPUTER DEVICE | |
| US11172530B2 (en) | Communication establishment method and terminal | |
| CN109586929B (en) | Conference content transmission method and device, electronic equipment and storage medium | |
| CN110944067B (en) | A load balancing method and server | |
| CN1647458A (en) | Method and apparatus for communications using distributed services in a mobile ad hoc network (manet) | |
| CN115209393B (en) | Data transmission method, system, electronic equipment and storage medium | |
| JP2013243471A (en) | Transmission management system, transmission system, and program for transmission management system | |
| WO2021196968A1 (en) | Method and apparatus for distributed processing of ux element | |
| CN119030823A (en) | A distributed soft bus-based networking method, system and terminal | |
| CN116016556A (en) | Control method of screen projection system, display device and readable storage medium | |
| WO2013166762A1 (en) | Networking method and system for personal area network devices | |
| CN116339184A (en) | Sound box multi-terminal control method, device, equipment and medium based on distributed system | |
| CN112953992A (en) | Network system, communication and networking method, device and storage medium | |
| CN115942255B (en) | Channel configuration method and device | |
| CN114915511B (en) | A control method and device for split equipment | |
| WO2025044384A1 (en) | Data transmission method and apparatus, storage medium, and computer device | |
| CN118827756A (en) | Electronic device and method for exposing services in multiple clusters | |
| CN115297093B (en) | Edge device data access method, related device and computer program product | |
| WO2021219118A1 (en) | Capability based content rendering in multi-device | |
| US9960925B2 (en) | Server apparatus program, server apparatus, and communication apparatus program | |
| US20250247294A1 (en) | System and method for determining configurations for a plurality of peripheral devices based on prior experiential compliance or least common device functionality compliance | |
| CN114827097B (en) | Communication network construction method, device and computer equipment | |
| US12381784B1 (en) | System and method for intelligent transference of peripheral device operational configurations across peripheral device workspaces based on shared usage patterns |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |