CN118796335A - Cloud application interaction method, device, equipment and storage medium based on smart device - Google Patents
Cloud application interaction method, device, equipment and storage medium based on smart device Download PDFInfo
- Publication number
- CN118796335A CN118796335A CN202311672009.2A CN202311672009A CN118796335A CN 118796335 A CN118796335 A CN 118796335A CN 202311672009 A CN202311672009 A CN 202311672009A CN 118796335 A CN118796335 A CN 118796335A
- Authority
- CN
- China
- Prior art keywords
- cloud application
- target
- information
- server
- target cloud
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45562—Creating, deleting, cloning virtual machine instances
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/4557—Distribution of virtual machine instances; Migration and load balancing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45575—Starting, stopping, suspending or resuming virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本发明提供一种基于智能设备的云应用交互方法、装置、设备和存储介质,涉及智能设备技术领域。方法包括:接收云应用启动指令,基于云应用启动指令确定待启动的第一目标云应用,并生成用于启动第一目标云应用的云应用启动请求;将云应用启动请求发送至服务端,以供服务端基于云应用启动请求获取第一目标云应用的云应用信息和智能设备的设备信息,设备信息用于分配启动第一目标云应用的第一云应用服务节点,云应用信息用于分配启动第一目标云应用的第一目标虚拟机;接收服务端响应于云应用启动请求所返回的交互数据,并输出交互数据。本发明可以确保智能设备上可使用的应用数量不受限制,以及确保云应用和本地应用的体验一致性。
The present invention provides a cloud application interaction method, apparatus, device and storage medium based on smart devices, and relates to the technical field of smart devices. The method includes: receiving a cloud application startup instruction, determining a first target cloud application to be started based on the cloud application startup instruction, and generating a cloud application startup request for starting the first target cloud application; sending the cloud application startup request to a server, so that the server obtains cloud application information of the first target cloud application and device information of the smart device based on the cloud application startup request, the device information is used to allocate a first cloud application service node for starting the first target cloud application, and the cloud application information is used to allocate a first target virtual machine for starting the first target cloud application; receiving the interaction data returned by the server in response to the cloud application startup request, and outputting the interaction data. The present invention can ensure that the number of applications that can be used on smart devices is not limited, and ensure the consistency of experience between cloud applications and local applications.
Description
技术领域Technical Field
本发明涉及智能设备技术领域,尤其涉及一种基于智能设备的云应用交互方法、装置、设备和存储介质。The present invention relates to the field of smart device technology, and in particular to a cloud application interaction method, device, equipment and storage medium based on a smart device.
背景技术Background Art
随着科技的迅速发展,智能设备的应用范围越来越广泛。例如,智能家居设备在家庭生活中越来越普遍,其也具有越来越多的功能。为实现智能设备的智能化,需要在智能设备上安装应用。With the rapid development of science and technology, the application scope of smart devices is becoming more and more extensive. For example, smart home devices are becoming more and more common in family life, and they also have more and more functions. In order to realize the intelligence of smart devices, applications need to be installed on smart devices.
目前,智能设备的应用均安装在设备本地。然而,大多智能设备的硬件配置较低,且存储空间有限,以及计算能力有限,导致智能设备可安装的应用数量较少,且无法安装配置要求较高的应用,进而导致智能设备上可使用的应用数量较少,且可使用的应用受到限制,最终导致智能设备的智能化实现受到限制。At present, all applications of smart devices are installed locally on the devices. However, most smart devices have low hardware configuration, limited storage space, and limited computing power, which results in a small number of applications that can be installed on smart devices, and the inability to install applications with high configuration requirements, which in turn results in a small number of applications that can be used on smart devices, and the applications that can be used are limited, which ultimately limits the intelligent realization of smart devices.
发明内容Summary of the invention
本发明提供一种基于智能设备的云应用交互方法、装置、设备和存储介质,用以解决现有技术中智能设备上可使用的应用数量较少,且可使用的应用受到限制的缺陷。The present invention provides a cloud application interaction method, apparatus, device and storage medium based on smart devices, which are used to solve the defects in the prior art that the number of applications that can be used on smart devices is small and the applications that can be used are limited.
本发明提供一种基于智能设备的云应用交互方法,应用于智能设备,所述方法包括:The present invention provides a cloud application interaction method based on a smart device, which is applied to the smart device. The method comprises:
接收云应用启动指令,基于所述云应用启动指令确定待启动的第一目标云应用,并生成用于启动所述第一目标云应用的云应用启动请求;receiving a cloud application startup instruction, determining a first target cloud application to be started based on the cloud application startup instruction, and generating a cloud application startup request for starting the first target cloud application;
将所述云应用启动请求发送至服务端,以供所述服务端基于所述云应用启动请求获取所述第一目标云应用的云应用信息和所述智能设备的设备信息,所述设备信息用于分配启动所述第一目标云应用的第一云应用服务节点,所述云应用信息用于分配启动所述第一目标云应用的第一目标虚拟机;Sending the cloud application startup request to the server, so that the server obtains the cloud application information of the first target cloud application and the device information of the smart device based on the cloud application startup request, the device information is used to allocate a first cloud application service node for starting the first target cloud application, and the cloud application information is used to allocate a first target virtual machine for starting the first target cloud application;
接收所述服务端响应于所述云应用启动请求所返回的交互数据,并输出所述交互数据,所述交互数据为所述第一目标云应用在启动时所需呈现给用户的数据。Receive interaction data returned by the server in response to the cloud application startup request, and output the interaction data, where the interaction data is data that the first target cloud application needs to present to the user when it is started.
本发明还提供一种基于智能设备的云应用交互方法,应用于服务端,所述方法包括:The present invention also provides a cloud application interaction method based on a smart device, which is applied to a server, and the method comprises:
接收智能设备发送的用于启动第一目标云应用的云应用启动请求;Receiving a cloud application start request for starting a first target cloud application sent by a smart device;
基于所述云应用启动请求,获取所述第一目标云应用的云应用信息和所述智能设备的设备信息;Based on the cloud application start request, obtaining cloud application information of the first target cloud application and device information of the smart device;
将所述设备信息和所述第一目标云应用的云应用信息发送至云应用中心节点,以供所述云应用中心节点基于所述设备信息分配启动所述第一目标云应用的第一云应用服务节点,并将所述第一目标云应用的云应用信息发送至所述第一云应用服务节点,所述第一目标云应用的云应用信息用于分配启动所述第一目标云应用的第一目标虚拟机;Send the device information and the cloud application information of the first target cloud application to a cloud application center node, so that the cloud application center node allocates and starts a first cloud application service node for the first target cloud application based on the device information, and sends the cloud application information of the first target cloud application to the first cloud application service node, where the cloud application information of the first target cloud application is used to allocate and start a first target virtual machine for the first target cloud application;
接收所述第一云应用服务节点返回的交互数据,将所述交互数据发送至所述智能设备,所述交互数据为所述第一目标云应用在启动时所需呈现给用户的数据。Receive the interaction data returned by the first cloud application service node, and send the interaction data to the smart device, where the interaction data is the data that the first target cloud application needs to present to the user when starting.
本发明还提供一种基于智能设备的云应用交互方法,应用于云应用服务节点,所述方法包括:The present invention also provides a cloud application interaction method based on a smart device, which is applied to a cloud application service node. The method comprises:
接收云应用中心节点发送的第一目标云应用的云应用信息;Receive cloud application information of a first target cloud application sent by a cloud application center node;
基于所述第一目标云应用的云应用信息,分配启动所述第一目标云应用的第一目标虚拟机;Based on the cloud application information of the first target cloud application, allocating and starting a first target virtual machine of the first target cloud application;
获取所述第一目标云应用启动时所需呈现给用户的交互数据,将所述交互数据发送至服务端,以供所述服务端将所述交互数据转发至智能设备。The interactive data required to be presented to the user when the first target cloud application is started is obtained, and the interactive data is sent to the server so that the server forwards the interactive data to the smart device.
本发明还提供一种基于智能设备的云应用交互方法,应用于云应用中心节点,所述方法包括:The present invention also provides a cloud application interaction method based on a smart device, which is applied to a cloud application center node, and the method includes:
接收服务端发送的第一目标云应用的云应用信息和智能设备的设备信息;Receive cloud application information of the first target cloud application and device information of the smart device sent by the server;
基于所述设备信息,分配启动所述第一目标云应用的第一云应用服务节点;Based on the device information, allocating and starting a first cloud application service node for the first target cloud application;
将所述第一目标云应用的云应用信息发送至所述第一云应用服务节点,以供所述第一云应用服务节点基于所述第一目标云应用的云应用信息分配启动所述第一目标云应用的第一目标虚拟机。The cloud application information of the first target cloud application is sent to the first cloud application service node, so that the first cloud application service node allocates and starts the first target virtual machine of the first target cloud application based on the cloud application information of the first target cloud application.
本发明还提供一种基于智能设备的云应用交互装置,部署于智能设备,所述装置包括:The present invention also provides a cloud application interaction device based on a smart device, which is deployed on the smart device, and the device includes:
第一接收模块,用于接收云应用启动指令,基于所述云应用启动指令确定待启动的第一目标云应用,并生成用于启动所述第一目标云应用的云应用启动请求;A first receiving module is used to receive a cloud application startup instruction, determine a first target cloud application to be started based on the cloud application startup instruction, and generate a cloud application startup request for starting the first target cloud application;
第一发送模块,用于将所述云应用启动请求发送至服务端,以供所述服务端基于所述云应用启动请求获取所述第一目标云应用的云应用信息和所述智能设备的设备信息,所述设备信息用于分配启动所述第一目标云应用的第一云应用服务节点,所述云应用信息用于分配启动所述第一目标云应用的第一目标虚拟机;A first sending module, used to send the cloud application startup request to the server, so that the server obtains the cloud application information of the first target cloud application and the device information of the smart device based on the cloud application startup request, the device information is used to allocate a first cloud application service node for starting the first target cloud application, and the cloud application information is used to allocate a first target virtual machine for starting the first target cloud application;
第二接收模块,用于接收所述服务端响应于所述云应用启动请求所返回的交互数据,并输出所述交互数据,所述交互数据为所述第一目标云应用在启动时所需呈现给用户的数据。The second receiving module is used to receive the interaction data returned by the server in response to the cloud application startup request, and output the interaction data, where the interaction data is the data that the first target cloud application needs to present to the user when it is started.
本发明还提供一种基于智能设备的云应用交互装置,部署于服务端,所述装置包括:The present invention also provides a cloud application interaction device based on a smart device, which is deployed on a server, and the device includes:
第三接收模块,用于接收智能设备发送的用于启动第一目标云应用的云应用启动请求;A third receiving module, configured to receive a cloud application startup request sent by a smart device to start a first target cloud application;
第一获取模块,用于基于所述云应用启动请求,获取所述第一目标云应用的云应用信息和所述智能设备的设备信息;A first acquisition module, configured to acquire cloud application information of the first target cloud application and device information of the smart device based on the cloud application startup request;
第二发送模块,用于将所述设备信息和所述第一目标云应用的云应用信息发送至云应用中心节点,以供所述云应用中心节点基于所述设备信息分配启动所述第一目标云应用的第一云应用服务节点,并将所述第一目标云应用的云应用信息发送至所述第一云应用服务节点,所述第一目标云应用的云应用信息用于分配启动所述第一目标云应用的第一目标虚拟机;A second sending module is used to send the device information and the cloud application information of the first target cloud application to a cloud application central node, so that the cloud application central node allocates and starts a first cloud application service node for the first target cloud application based on the device information, and sends the cloud application information of the first target cloud application to the first cloud application service node, and the cloud application information of the first target cloud application is used to allocate and start a first target virtual machine for the first target cloud application;
第四接收模块,用于接收所述第一云应用服务节点返回的交互数据,将所述交互数据发送至所述智能设备,所述交互数据为所述第一目标云应用在启动时所需呈现给用户的数据。The fourth receiving module is used to receive the interaction data returned by the first cloud application service node, and send the interaction data to the smart device, where the interaction data is the data that the first target cloud application needs to present to the user when it is started.
本发明还提供一种基于智能设备的云应用交互装置,部署于云应用服务节点,所述装置包括:The present invention also provides a cloud application interaction device based on a smart device, which is deployed in a cloud application service node, and the device includes:
第五接收模块,用于接收云应用中心节点发送的第一目标云应用的云应用信息;A fifth receiving module, used to receive cloud application information of the first target cloud application sent by the cloud application center node;
第一分配模块,用于基于所述第一目标云应用的云应用信息,分配启动所述第一目标云应用的第一目标虚拟机;A first allocation module, configured to allocate and start a first target virtual machine of the first target cloud application based on the cloud application information of the first target cloud application;
第二获取模块,用于获取所述第一目标云应用启动时所需呈现给用户的交互数据,将所述交互数据发送至服务端,以供所述服务端将所述交互数据转发至智能设备。The second acquisition module is used to acquire the interaction data that needs to be presented to the user when the first target cloud application is started, and send the interaction data to the server so that the server forwards the interaction data to the smart device.
本发明还提供一种基于智能设备的云应用交互装置,部署于云应用中心节点,所述装置包括:The present invention also provides a cloud application interaction device based on a smart device, which is deployed in a cloud application center node, and the device includes:
第六接收模块,用于接收服务端发送的第一目标云应用的云应用信息和智能设备的设备信息;A sixth receiving module, configured to receive the cloud application information of the first target cloud application and the device information of the smart device sent by the server;
第二分配模块,用于基于所述设备信息,分配启动所述第一目标云应用的第一云应用服务节点;A second allocation module, configured to allocate and start a first cloud application service node for the first target cloud application based on the device information;
第三发送模块,用于将所述第一目标云应用的云应用信息发送至所述第一云应用服务节点,以供所述第一云应用服务节点基于所述第一目标云应用的云应用信息分配启动所述第一目标云应用的第一目标虚拟机。The third sending module is used to send the cloud application information of the first target cloud application to the first cloud application service node, so that the first cloud application service node can allocate and start the first target virtual machine of the first target cloud application based on the cloud application information of the first target cloud application.
本发明还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述任一种所述基于智能设备的云应用交互方法。The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the cloud application interaction method based on smart devices as described above is implemented.
本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述任一种所述基于智能设备的云应用交互方法。The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the cloud application interaction methods based on smart devices as described above.
本发明提供的基于智能设备的云应用交互方法、装置、设备和存储介质,接收云应用启动指令,基于云应用启动指令确定待启动的第一目标云应用,并生成用于启动第一目标云应用的云应用启动请求,以将该云应用启动请求发送至服务端,以供服务端基于该云应用启动请求获取该第一目标云应用的云应用信息和该智能设备的设备信息,且该设备信息用于分配启动第一目标云应用的第一云应用服务节点,该云应用信息用于分配启动第一目标云应用的第一目标虚拟机,从而可以在第一云应用服务节点上安装和启动第一目标云应用,无需在智能设备上安装第一目标云应用,进而确保智能设备上可使用的应用数量不受限制,且确保可使用的应用大小也不受限制,进而确保智能设备的智能化实现不受限制;同时,基于设备信息合理分配启动第一目标云应用的第一云应用服务节点,且基于云应用信息合理分配启动第一目标云应用的第一目标虚拟机,确保第一目标云应用的正常启动和运行,进而确保智能设备可以正常使用第一目标云应用;此外,接收服务端响应于云应用启动请求所返回的交互数据,并输出该交互数据,且该交互数据为第一目标云应用在启动时所需呈现给用户的数据,从而确保第一目标云应用在第一目标虚拟机上所呈现的交互数据与在智能设备上所呈现的交互数据一致,进而确保云应用和本地应用的体验一致性,进而提高用户体验感。The cloud application interaction method, apparatus, device and storage medium based on smart devices provided by the present invention receive a cloud application startup instruction, determine a first target cloud application to be started based on the cloud application startup instruction, and generate a cloud application startup request for starting the first target cloud application, so as to send the cloud application startup request to a server, so that the server can obtain cloud application information of the first target cloud application and device information of the smart device based on the cloud application startup request, and the device information is used to allocate a first cloud application service node for starting the first target cloud application, and the cloud application information is used to allocate a first target virtual machine for starting the first target cloud application, so that the first target cloud application can be installed and started on the first cloud application service node without installing the first target cloud application on the smart device, thereby ensuring that the number of applications available on the smart device is not limited and ensuring The size of the application that can be used is also not limited, thereby ensuring that the intelligent realization of the smart device is not limited; at the same time, the first cloud application service node for starting the first target cloud application is reasonably allocated based on the device information, and the first target virtual machine for starting the first target cloud application is reasonably allocated based on the cloud application information, ensuring the normal startup and operation of the first target cloud application, thereby ensuring that the smart device can use the first target cloud application normally; in addition, the interaction data returned by the server in response to the cloud application startup request is received, and the interaction data is output, and the interaction data is the data that the first target cloud application needs to present to the user when it is started, thereby ensuring that the interaction data presented by the first target cloud application on the first target virtual machine is consistent with the interaction data presented on the smart device, thereby ensuring the experience consistency of the cloud application and the local application, thereby improving the user experience.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
图1为本发明提供的基于智能设备的云应用交互方法的流程示意图之一;FIG1 is a flow chart of a cloud application interaction method based on a smart device provided by the present invention;
图2为本发明提供的基于智能设备的云应用交互方法的流程示意图之二;FIG. 2 is a second flow chart of the cloud application interaction method based on smart devices provided by the present invention;
图3为本发明提供的基于智能设备的云应用交互方法的流程示意图之三;FIG3 is a third flow chart of the cloud application interaction method based on smart devices provided by the present invention;
图4为本发明提供的基于智能设备的云应用交互方法的流程示意图之四;FIG4 is a fourth flow chart of the cloud application interaction method based on smart devices provided by the present invention;
图5为本发明提供的基于智能设备的云应用交互系统的结构示意图;FIG5 is a schematic diagram of the structure of a cloud application interaction system based on smart devices provided by the present invention;
图6为本发明提供的基于智能设备的云应用交互方法的流程示意图之五;FIG6 is a fifth flow chart of the cloud application interaction method based on smart devices provided by the present invention;
图7为本发明提供的基于智能设备的云应用交互方法的流程示意图之六;FIG7 is a sixth flow chart of the cloud application interaction method based on smart devices provided by the present invention;
图8为本发明提供的基于智能设备的云应用交互方法的流程示意图之七;FIG8 is a seventh flow chart of the cloud application interaction method based on smart devices provided by the present invention;
图9为本发明提供的基于智能设备的云应用交互方法的流程示意图之八;FIG9 is a flowchart of the eighth method for interacting with cloud applications based on smart devices provided by the present invention;
图10为本发明提供的基于智能设备的云应用交互装置的结构示意图之一;FIG10 is a schematic diagram of a structure of a cloud application interaction device based on a smart device provided by the present invention;
图11为本发明提供的基于智能设备的云应用交互装置的结构示意图之二;FIG11 is a second structural diagram of the cloud application interaction device based on smart devices provided by the present invention;
图12为本发明提供的基于智能设备的云应用交互装置的结构示意图之三;FIG12 is a third structural diagram of the cloud application interaction device based on smart devices provided by the present invention;
图13为本发明提供的基于智能设备的云应用交互装置的结构示意图之四;FIG13 is a fourth structural diagram of the cloud application interaction device based on smart devices provided by the present invention;
图14为本发明提供的电子设备的结构示意图。FIG. 14 is a schematic diagram of the structure of an electronic device provided by the present invention.
具体实施方式DETAILED DESCRIPTION
为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
随着科技的迅速发展,智能设备的应用范围越来越广泛。例如,智能家居设备在家庭生活中越来越普遍,其也具有越来越多的功能。为实现智能设备的智能化,需要在智能设备上安装应用。With the rapid development of science and technology, the application scope of smart devices is becoming more and more extensive. For example, smart home devices are becoming more and more common in family life, and they also have more and more functions. In order to realize the intelligence of smart devices, applications need to be installed on smart devices.
目前,智能设备的应用均安装在设备本地。然而,大多智能设备的硬件配置较低,且存储空间有限,以及计算能力有限,导致智能设备可安装的应用数量较少,且无法安装配置要求较高的应用,进而导致智能设备上可使用的应用数量较少,且可使用的应用受到限制,最终导致智能设备的智能化实现受到限制。At present, all applications of smart devices are installed locally on the devices. However, most smart devices have low hardware configuration, limited storage space, and limited computing power, which results in a small number of applications that can be installed on smart devices, and the inability to install applications with high configuration requirements, which in turn results in a small number of applications that can be used on smart devices, and the applications that can be used are limited, which ultimately limits the intelligent realization of smart devices.
示例性的,智能音箱在人们的生活中占有越来越大的比重。然而,现有的智能音箱硬件配置不高,且存储空间有限,以及计算能力有限,导致应用安装在智能音箱本地,可安装的应用数量较少,且无法安装配置要求较高的应用。For example, smart speakers play an increasingly important role in people's lives. However, existing smart speakers have low hardware configuration, limited storage space, and limited computing power, which results in applications being installed locally on the smart speakers, a small number of applications that can be installed, and applications with high configuration requirements cannot be installed.
针对上述问题,本发明提出以下各实施例。In view of the above problems, the present invention proposes the following embodiments.
本发明提出一种基于智能设备的云应用交互方法,该方法应用于智能设备。图1为本发明提供的基于智能设备的云应用交互方法的流程示意图之一,如图1所示,该应用于智能设备的基于智能设备的云应用交互方法包括:The present invention proposes a cloud application interaction method based on a smart device, and the method is applied to a smart device. FIG1 is one of the flow diagrams of the cloud application interaction method based on a smart device provided by the present invention. As shown in FIG1 , the cloud application interaction method based on a smart device applied to a smart device includes:
步骤110,接收云应用启动指令,基于云应用启动指令确定待启动的第一目标云应用,并生成用于启动第一目标云应用的云应用启动请求。Step 110: Receive a cloud application startup instruction, determine a first target cloud application to be started based on the cloud application startup instruction, and generate a cloud application startup request for starting the first target cloud application.
在本发明实施例中,为便于理解,以智能设备为智能音箱为例进行说明。应理解,该智能设备上设有云应用市场,以供选择更多的云应用,即选择不限制数量且不限制硬件配置的云应用。In the embodiment of the present invention, for ease of understanding, the smart device is taken as an example of a smart speaker. It should be understood that the smart device is provided with a cloud application market for selecting more cloud applications, that is, cloud applications with no limit on quantity and hardware configuration.
在一实施例中,智能设备包括本地应用管理模块、云应用管理模块、声学模块和通信模块。该本地应用管理模块用于负责智能设备本地安装的应用管理,其主要管理一些依赖硬件功能或者需要后台运行的应用。该云应用管理模块用于负责云应用的管理,其具体包括应用列表展示、应用启动、应用语音操控、应用手势操控和应用显示等等。该声学模块用于负责声学的回音消除、降噪以及拾音等等。该通信模块用于负责和服务端进行通信,其包括传递语音流以及接收控制信息等等。In one embodiment, the smart device includes a local application management module, a cloud application management module, an acoustic module and a communication module. The local application management module is responsible for the management of applications installed locally on the smart device, which mainly manages some applications that rely on hardware functions or need to run in the background. The cloud application management module is responsible for the management of cloud applications, which specifically includes application list display, application startup, application voice control, application gesture control and application display, etc. The acoustic module is responsible for acoustic echo cancellation, noise reduction and sound pickup, etc. The communication module is responsible for communicating with the server, including transmitting voice streams and receiving control information, etc.
此处,云应用启动指令用于指示启动(打开)云应用,该云应用启动指令可以指示所需启动的第一目标云应用。该云应用启动指令可以由用户基于智能设备进行触发,其触发方式可以包括但不限于以下至少一种:触摸操控(如点击操作)、语音操控、手势操控、姿态操控和表情操控等等。Here, the cloud application startup instruction is used to instruct to start (open) a cloud application, and the cloud application startup instruction may indicate the first target cloud application to be started. The cloud application startup instruction may be triggered by a user based on a smart device, and its triggering method may include but is not limited to at least one of the following: touch control (such as click operation), voice control, gesture control, posture control, expression control, etc.
此处,第一目标云应用为安装于云应用服务节点的应用。基于云应用启动指令确定的第一目标云应用可以通过云应用唯一标识信息进行表征。Here, the first target cloud application is an application installed in the cloud application service node. The first target cloud application determined based on the cloud application startup instruction can be characterized by the cloud application unique identification information.
此处,云应用启动请求用于请求服务端启动该第一目标云应用,应理解,实际启动第一目标云应用是在云应用服务节点。Here, the cloud application start request is used to request the server to start the first target cloud application. It should be understood that the first target cloud application is actually started at the cloud application service node.
在一实施例中,生成第一目标云应用和智能设备对应的云应用启动请求,以使该云应用启动请求可以用于指示该第一目标云应用和智能设备。更为具体地,基于第一目标云应用对应的云应用唯一标识信息,以及智能设备对应的设备唯一标识信息,生成云应用启动请求,以使该云应用启动请求可以用于指示该唯一标识信息和该设备唯一标识信息。In one embodiment, a cloud application startup request corresponding to the first target cloud application and the smart device is generated, so that the cloud application startup request can be used to indicate the first target cloud application and the smart device. More specifically, based on the cloud application unique identification information corresponding to the first target cloud application and the device unique identification information corresponding to the smart device, the cloud application startup request is generated, so that the cloud application startup request can be used to indicate the unique identification information and the device unique identification information.
在另一实施例中,获取第一目标云应用的云应用信息,以及智能设备的设备信息,基于该第一目标云应用的云应用信息,以及该智能设备的设备信息,生成云应用启动请求,以使云应用启动请求指示有该云应用信息和该设备信息。In another embodiment, cloud application information of a first target cloud application and device information of a smart device are obtained, and a cloud application startup request is generated based on the cloud application information of the first target cloud application and the device information of the smart device, so that the cloud application startup request indicates the cloud application information and the device information.
在另一实施例中,获取第一目标云应用的云应用信息,基于该第一目标云应用的云应用信息,生成智能设备对应的云应用启动请求,以使云应用启动请求指示有该云应用信息,且指示该智能设备。更为具体地,基于该云应用信息,以及智能设备对应的设备唯一标识信息,生成云应用启动请求,以使该云应用启动请求可以用于指示该云应用信息和该设备唯一标识信息。In another embodiment, cloud application information of a first target cloud application is obtained, and based on the cloud application information of the first target cloud application, a cloud application startup request corresponding to the smart device is generated, so that the cloud application startup request indicates the cloud application information and indicates the smart device. More specifically, based on the cloud application information and the device unique identification information corresponding to the smart device, a cloud application startup request is generated, so that the cloud application startup request can be used to indicate the cloud application information and the device unique identification information.
在另一实施例中,获取智能设备的设备信息,基于该设备信息,生成第一目标云应用对应的云应用启动请求,以使云应用启动请求指示有该设备信息,且指示该第一目标云应用。更为具体地,基于该设备信息,以及第一目标云应用对应的云应用唯一标识信息,生成云应用启动请求,以使该云应用启动请求可以用于指示该设备信息和该云应用唯一标识信息。In another embodiment, the device information of the smart device is obtained, and based on the device information, a cloud application startup request corresponding to the first target cloud application is generated, so that the cloud application startup request indicates the device information and indicates the first target cloud application. More specifically, based on the device information and the cloud application unique identification information corresponding to the first target cloud application, the cloud application startup request is generated, so that the cloud application startup request can be used to indicate the device information and the cloud application unique identification information.
步骤120,将云应用启动请求发送至服务端,以供服务端基于云应用启动请求获取第一目标云应用的云应用信息和智能设备的设备信息。Step 120: Send the cloud application start request to the server, so that the server can obtain the cloud application information of the first target cloud application and the device information of the smart device based on the cloud application start request.
其中,设备信息用于分配启动第一目标云应用的第一云应用服务节点,云应用信息用于分配启动第一目标云应用的第一目标虚拟机。The device information is used to allocate a first cloud application service node for starting a first target cloud application, and the cloud application information is used to allocate a first target virtual machine for starting a first target cloud application.
此处,服务端为该智能设备对应的云端(云端服务节点)。对于服务端来说,服务端接收智能设备发送的该云应用启动请求;基于该云应用启动请求,获取第一目标云应用的云应用信息和智能设备的设备信息;将该设备信息和该第一目标云应用的云应用信息发送至云应用中心节点,以供云应用中心节点基于该设备信息分配启动该第一目标云应用的第一云应用服务节点,并将该第一目标云应用的云应用信息发送至第一云应用服务节点。对于第一云应用服务节点来说,第一云应用服务节点接收云应用中心节点发送的第一目标云应用的云应用信息;基于该云应用信息,分配启动第一目标云应用的第一目标虚拟机。Here, the server is the cloud (cloud service node) corresponding to the smart device. For the server, the server receives the cloud application startup request sent by the smart device; based on the cloud application startup request, obtains the cloud application information of the first target cloud application and the device information of the smart device; sends the device information and the cloud application information of the first target cloud application to the cloud application center node, so that the cloud application center node can allocate the first cloud application service node to start the first target cloud application based on the device information, and send the cloud application information of the first target cloud application to the first cloud application service node. For the first cloud application service node, the first cloud application service node receives the cloud application information of the first target cloud application sent by the cloud application center node; based on the cloud application information, allocates and starts the first target virtual machine of the first target cloud application.
考虑到云应用固定在某个云应用服务节点上运行,以及固定在某个虚拟机上运行的话,并不能合理分配运行资源,且该云应用需要一直暂用运行资源,从而浪费服务器资源;基于此,要对第一目标云应用的运行资源进行合理分配。Considering that cloud applications are fixed to run on a certain cloud application service node and a certain virtual machine, the running resources cannot be reasonably allocated, and the cloud application needs to temporarily use the running resources all the time, thus wasting server resources; based on this, the running resources of the first target cloud application should be reasonably allocated.
此处,设备信息用于表征智能设备的配置信息,从而基于该设备信息可以确定其需求,进而确定满足其需求的云应用服务节点(边缘节点),进而基于该设备信息可以分配启动第一目标云应用的第一云应用服务节点。该设备信息可以包括但不限于以下至少一项:外网IP地址、带宽、显示屏的分辨率、是否支持软解和是否支持硬解等等。Here, the device information is used to characterize the configuration information of the smart device, so that its needs can be determined based on the device information, and then the cloud application service node (edge node) that meets its needs can be determined, and then the first cloud application service node that starts the first target cloud application can be allocated based on the device information. The device information may include but is not limited to at least one of the following: external network IP address, bandwidth, display resolution, whether soft decoding is supported and whether hard decoding is supported, etc.
此处,云应用信息用于表征云应用的配置需求信息,从而基于该云应用信息可以确定云应用的需求,进而确定满足其需求的虚拟机,进而基于该云应用信息可以分配启动第一目标云应用的第一目标虚拟机。该云应用信息可以包括但不限于以下至少一项:云应用所需的运行内存(RAM)、云应用对应的包体积(即云应用所需的存储空间ROM)、云应用所需的CPU配置(例如CPU核心数)、云应用所需的带宽,以及云应用所需的其它运行配置等等。例如,该云应用对应的包体积可以为APK(Android Application Package,安卓应用程序包)的体积。Here, the cloud application information is used to characterize the configuration requirement information of the cloud application, so that the requirements of the cloud application can be determined based on the cloud application information, and then the virtual machine that meets the requirements can be determined, and then the first target virtual machine for starting the first target cloud application can be allocated based on the cloud application information. The cloud application information may include but is not limited to at least one of the following: the running memory (RAM) required by the cloud application, the package volume corresponding to the cloud application (i.e., the storage space ROM required by the cloud application), the CPU configuration required by the cloud application (such as the number of CPU cores), the bandwidth required by the cloud application, and other running configurations required by the cloud application, etc. For example, the package volume corresponding to the cloud application can be the volume of APK (Android Application Package).
步骤130,接收服务端响应于云应用启动请求所返回的交互数据,并输出交互数据,交互数据为第一目标云应用在启动时所需呈现给用户的数据。Step 130, receiving the interaction data returned by the server in response to the cloud application startup request, and outputting the interaction data, where the interaction data is the data that the first target cloud application needs to present to the user when it is started.
此处,交互数据为人机交互数据,即第一目标云应用在启动时需要与用户进行交互的交互数据。Here, the interaction data refers to human-computer interaction data, that is, the interaction data that the first target cloud application needs to interact with the user when it is started.
在一实施例中,该交互数据通过webRTC协议传递给智能设备,以降低数据传输时延,确保第一目标云应用的实时同步显示,进而提高用户体验感。In one embodiment, the interactive data is transmitted to the smart device via the webRTC protocol to reduce data transmission delay, ensure real-time synchronous display of the first target cloud application, and thus improve user experience.
在一实施例中,该交互数据为预设格式的数据,即第一目标虚拟机将交互数据进行处理得到预设格式的交互数据。示例性的,第一目标虚拟机将第一目标云应用的应用页面信息压缩成h256格式音视频流传输至智能设备。In one embodiment, the interaction data is data in a preset format, that is, the first target virtual machine processes the interaction data to obtain interaction data in a preset format. Exemplarily, the first target virtual machine compresses the application page information of the first target cloud application into an h256 format audio and video stream and transmits it to the smart device.
在一具体实施例中,该交互数据包括音频数据和/或视频数据,以将第一目标云应用在启动时的页面也在智能设备上显示,并将第一目标云应用在启动时的声音也在智能设备上输出,以确保云应用和本地应用体验一致性。该视频数据可以在智能设备的显示屏上输出,该音频数据可以在智能设备的音频输出装置输出。示例性的,智能设备在获取到视频数据的第一帧信息时就开始展示第一目标云应用的应用页面,以呈现给用户。In a specific embodiment, the interaction data includes audio data and/or video data, so that the page of the first target cloud application when it is started is also displayed on the smart device, and the sound of the first target cloud application when it is started is also output on the smart device to ensure the consistency of the cloud application and local application experience. The video data can be output on the display screen of the smart device, and the audio data can be output on the audio output device of the smart device. Exemplarily, when the smart device obtains the first frame information of the video data, it starts to display the application page of the first target cloud application to present it to the user.
对于第一云应用服务节点来说,第一云应用服务节点在第一目标云应用启动(打开)时,获取第一目标云应用启动时所需呈现给用户的交互数据,将该交互数据发送至服务端。对于服务端来说,服务端接收第一云应用服务节点返回的交互数据,将该交互数据转发至智能设备。For the first cloud application service node, when the first target cloud application is started (opened), the first cloud application service node obtains the interaction data required to be presented to the user when the first target cloud application is started, and sends the interaction data to the server. For the server, the server receives the interaction data returned by the first cloud application service node and forwards the interaction data to the smart device.
可以理解的是,智能设备仅用于与用户进行人机交互,而云应用安装于云应用服务节点,且应用的数据处理过程也由云应用服务节点执行,只需智能设备与其对应的服务端进行交互即可,从而减少智能设备的存储压力,且不会受到智能设备的计算能力限制。基于此,可以进一步减小智能设备的体积和重量,从而降低智能设备的成本,并提升其便携性,最终提高用户体验感。It is understandable that smart devices are only used for human-computer interaction with users, while cloud applications are installed on cloud application service nodes, and the data processing process of applications is also executed by cloud application service nodes. Smart devices only need to interact with their corresponding servers, thereby reducing the storage pressure of smart devices and will not be limited by the computing power of smart devices. Based on this, the size and weight of smart devices can be further reduced, thereby reducing the cost of smart devices, improving their portability, and ultimately improving user experience.
本发明实施例提供的基于智能设备的云应用交互方法,接收云应用启动指令,基于云应用启动指令确定待启动的第一目标云应用,并生成用于启动第一目标云应用的云应用启动请求,以将该云应用启动请求发送至服务端,以供服务端基于该云应用启动请求获取该第一目标云应用的云应用信息和该智能设备的设备信息,且该设备信息用于分配启动第一目标云应用的第一云应用服务节点,该云应用信息用于分配启动第一目标云应用的第一目标虚拟机,从而可以在第一云应用服务节点上安装和启动第一目标云应用,无需在智能设备上安装第一目标云应用,进而确保智能设备上可使用的应用数量不受限制,且确保可使用的应用大小也不受限制,进而确保智能设备的智能化实现不受限制;同时,基于设备信息合理分配启动第一目标云应用的第一云应用服务节点,且基于云应用信息合理分配启动第一目标云应用的第一目标虚拟机,确保第一目标云应用的正常启动和运行,进而确保智能设备可以正常使用第一目标云应用;此外,接收服务端响应于云应用启动请求所返回的交互数据,并输出该交互数据,且该交互数据为第一目标云应用在启动时所需呈现给用户的数据,从而确保第一目标云应用在第一目标虚拟机上所呈现的交互数据与在智能设备上所呈现的交互数据一致,进而确保云应用和本地应用的体验一致性,进而提高用户体验感。The cloud application interaction method based on smart devices provided in an embodiment of the present invention receives a cloud application startup instruction, determines a first target cloud application to be started based on the cloud application startup instruction, and generates a cloud application startup request for starting the first target cloud application, so as to send the cloud application startup request to a server, so that the server can obtain cloud application information of the first target cloud application and device information of the smart device based on the cloud application startup request, and the device information is used to allocate a first cloud application service node for starting the first target cloud application, and the cloud application information is used to allocate a first target virtual machine for starting the first target cloud application, so that the first target cloud application can be installed and started on the first cloud application service node, without installing the first target cloud application on the smart device, thereby ensuring that the number of applications available on the smart device is not limited, and ensuring that the first target cloud application can be used The application size is also not limited, thereby ensuring that the intelligent realization of smart devices is not limited; at the same time, the first cloud application service node for starting the first target cloud application is reasonably allocated based on the device information, and the first target virtual machine for starting the first target cloud application is reasonably allocated based on the cloud application information, ensuring the normal startup and operation of the first target cloud application, thereby ensuring that the smart device can use the first target cloud application normally; in addition, the interaction data returned by the receiving server in response to the cloud application startup request is output, and the interaction data is the data that the first target cloud application needs to present to the user when it is started, thereby ensuring that the interaction data presented by the first target cloud application on the first target virtual machine is consistent with the interaction data presented on the smart device, thereby ensuring the experience consistency of the cloud application and the local application, thereby improving the user experience.
基于上述任一实施例,该方法还包括:Based on any of the above embodiments, the method further includes:
获取用户操控指令;Obtain user control instructions;
确定用户操控指令为对第二目标云应用进行操控的指令,将用户操控指令发送至服务端,以供服务端基于用户操控指令确定第二目标云应用是否已启动;Determining that the user control instruction is an instruction to control the second target cloud application, and sending the user control instruction to the server, so that the server determines whether the second target cloud application has been started based on the user control instruction;
接收服务端响应于用户操控指令所返回的第一响应数据。The first response data returned by the receiving server in response to the user's control instruction.
此处,用户操控指令可以由用户基于智能设备进行触发,其触发方式可以包括但不限于以下至少一种:触摸操控(如点击操作)、语音操控、手势操控、姿态操控和表情操控等等。Here, the user control instruction can be triggered by the user based on the smart device, and the triggering method may include but is not limited to at least one of the following: touch control (such as click operation), voice control, gesture control, posture control and expression control, etc.
应理解,用户操控指令可以为对云应用进行操控的指令,也可以为其他操控指令,例如,其为对本地应用进行操控的指令,或者为调整音量的指令等等。基于此,需要确定该用户操控指令是否为对第二目标云应用进行操控的指令。示例性的,当用户在手动点击或者语音点播一个内容时,获取内容所归属方,当内容所归属方为云应用时,将用户操控指令发送至服务端。It should be understood that the user control instruction can be an instruction to control the cloud application, or it can be other control instructions, for example, it is an instruction to control the local application, or it is an instruction to adjust the volume, etc. Based on this, it is necessary to determine whether the user control instruction is an instruction to control the second target cloud application. Exemplarily, when a user manually clicks or voice orders a content, the party to which the content belongs is obtained. When the party to which the content belongs is a cloud application, the user control instruction is sent to the server.
若用户操控指令为对第二目标云应用进行操控的指令,该用户操控指令可以指示所需操控的第二目标云应用。进一步地,用户操控指令指示的第二目标云应用可以通过云应用唯一标识信息进行表征。进一步地,该用户操控指令还指示操控内容数据,以供第二目标云应用可以基于该操控内容数据执行相应的步骤,确保云应用和本地应用的体验一致性,进而提高用户体验感。If the user manipulation instruction is an instruction to manipulate the second target cloud application, the user manipulation instruction may indicate the second target cloud application to be manipulated. Furthermore, the second target cloud application indicated by the user manipulation instruction may be characterized by the cloud application unique identification information. Furthermore, the user manipulation instruction also indicates the manipulation content data, so that the second target cloud application can perform corresponding steps based on the manipulation content data, thereby ensuring the consistency of the experience of the cloud application and the local application, thereby improving the user experience.
应理解,第二目标云应用可以和上述第一目标云应用为同一个云应用,也可以为不同云应用。It should be understood that the second target cloud application may be the same cloud application as the first target cloud application, or may be a different cloud application.
其中,在第二目标云应用未启动的情况下,用户操控指令用于分配启动第二目标云应用的第二云应用服务节点和第二目标虚拟机,以及用于对在第二目标虚拟机上的第二目标云应用进行操控;在第二目标云应用已启动的情况下,用户操控指令用于对在第二目标虚拟机上的第二目标云应用进行操控。Among them, when the second target cloud application is not started, the user control instruction is used to allocate the second cloud application service node and the second target virtual machine for starting the second target cloud application, and to control the second target cloud application on the second target virtual machine; when the second target cloud application is already started, the user control instruction is used to control the second target cloud application on the second target virtual machine.
需要说明的是,在第二目标云应用未启动的情况下,需要先启动第二目标云应用,即需要先为第二目标云应用分配云应用服务节点和虚拟机资源,再对第二目标云应用进行操控;在第二目标云应用已启动的情况下,可以直接对第二目标云应用进行操控。It should be noted that if the second target cloud application is not started, it is necessary to start the second target cloud application first, that is, it is necessary to allocate cloud application service nodes and virtual machine resources to the second target cloud application first, and then operate the second target cloud application; if the second target cloud application is already started, the second target cloud application can be directly operated.
对于服务端来说,服务端接收智能设备发送的用户操控指令,基于该用户操控指令,确定待操控的第二目标云应用;确定该第二目标云应用未启动,基于该用户操控指令,获取该第二目标云应用的云应用信息和该智能设备的设备信息,以基于第二目标云应用的云应用信息和该智能设备的设备信息为第二目标云应用分配第二云应用服务节点和第二目标虚拟机,以实现第二目标云应用的启动;确定第二目标云应用已启动,直接将用户操控指令发送至启动第二目标云应用的第二云应用服务节点。对于第二云应用服务节点来说,第二云应用服务节点接收服务端发送的用户操控指令。For the server, the server receives the user control instruction sent by the smart device, determines the second target cloud application to be controlled based on the user control instruction; determines that the second target cloud application is not started, obtains the cloud application information of the second target cloud application and the device information of the smart device based on the user control instruction, allocates the second cloud application service node and the second target virtual machine to the second target cloud application based on the cloud application information of the second target cloud application and the device information of the smart device, so as to start the second target cloud application; determines that the second target cloud application is started, and directly sends the user control instruction to the second cloud application service node that starts the second target cloud application. For the second cloud application service node, the second cloud application service node receives the user control instruction sent by the server.
此处,第一响应数据为第二目标云应用响应于用户操控指令所返回的响应数据。Here, the first response data is the response data returned by the second target cloud application in response to the user's manipulation instruction.
在一实施例中,该第一响应数据通过webRTC协议传递给智能设备,以降低数据传输时延,确保第二目标云应用的实时同步显示,进而提高用户体验感。In one embodiment, the first response data is transmitted to the smart device via the webRTC protocol to reduce data transmission delay, ensure real-time synchronous display of the second target cloud application, and thus improve user experience.
在一实施例中,该第一响应数据为预设格式的数据,即第二目标虚拟机将第一响应数据进行处理得到预设格式的交互数据。示例性的,第二目标虚拟机将第二目标云应用的应用页面信息压缩成h256格式音视频流传输至智能设备。In one embodiment, the first response data is data in a preset format, that is, the second target virtual machine processes the first response data to obtain interactive data in a preset format. Exemplarily, the second target virtual machine compresses the application page information of the second target cloud application into an h256 format audio and video stream and transmits it to the smart device.
在一具体实施例中,该第一响应数据包括音频数据和/或视频数据和/或文本数据和/或控制信息,以确保云应用和本地应用体验一致性。In a specific embodiment, the first response data includes audio data and/or video data and/or text data and/or control information to ensure consistency in experience between the cloud application and the local application.
本发明实施例提供的基于智能设备的云应用交互方法,获取用户操控指令,确定该用户操控指令为对第二目标云应用进行操控的指令,将该用户操控指令发送至服务端,以供服务端基于用户操控指令确定第二目标云应用是否已启动,且用户操控指令用于对在第二目标虚拟机上的第二目标云应用进行操控,从而可以在第二云应用服务节点上对第二目标云应用进行操控,进而确保在智能设备上对第二目标云应用进行的操控也可以在第二目标虚拟机上执行,从而确保云应用和本地应用的体验一致性,进而提高用户体验感;此外,接收服务端响应于用户操控指令所返回的第一响应数据,从而确保第二目标云应用在第二目标虚拟机上所呈现的响应数据与在智能设备上所呈现的响应数据一致,进而确保云应用和本地应用的体验一致性,进而提高用户体验感。The cloud application interaction method based on smart devices provided in an embodiment of the present invention obtains a user control instruction, determines that the user control instruction is an instruction to control a second target cloud application, and sends the user control instruction to a server, so that the server can determine whether the second target cloud application has been started based on the user control instruction, and the user control instruction is used to control the second target cloud application on the second target virtual machine, so that the second target cloud application can be controlled on the second cloud application service node, thereby ensuring that the control of the second target cloud application on the smart device can also be executed on the second target virtual machine, thereby ensuring the consistency of experience between the cloud application and the local application, thereby improving the user experience; in addition, the first response data returned by the server in response to the user control instruction is received, thereby ensuring that the response data presented by the second target cloud application on the second target virtual machine is consistent with the response data presented on the smart device, thereby ensuring the consistency of experience between the cloud application and the local application, thereby improving the user experience.
基于上述任一实施例,在上述步骤130之后,该方法还包括:Based on any of the above embodiments, after the above step 130, the method further includes:
采集对第一目标云应用进行操控的语音数据;Collecting voice data for controlling the first target cloud application;
将语音数据发送至服务端,以供服务端对语音数据进行意图识别,得到对第一目标云应用进行操控的操控意图;Sending the voice data to the server so that the server can perform intent recognition on the voice data and obtain a control intention to control the first target cloud application;
接收服务端响应于语音数据所返回的第二响应数据。The receiving server returns second response data in response to the voice data.
需要说明的是,用户可以在智能设备上,通过语音对云应用进行操控。基于此,智能设备可以采集对第一目标云应用进行操控的语音数据。例如,该语音数据为用户说出的云应用唤醒词对应的数据。It should be noted that the user can control the cloud application through voice on the smart device. Based on this, the smart device can collect voice data for controlling the first target cloud application. For example, the voice data is the data corresponding to the cloud application wake-up word spoken by the user.
对于服务端来说,服务端接收智能设备发送的语音数据;对语音数据进行意图识别,得到对第一目标云应用进行操控的操控意图;将操控意图发送至第一云应用服务节点,以供第一云应用服务节点基于操控意图对第一目标云应用进行操控;接收第一云应用服务节点响应于操控意图所返回的第二响应数据,将第二响应数据发送至智能设备。对于第一云应用服务节点来说,第一云应用服务节点接收服务端发送的操控意图;基于该操控意图对第一目标云应用进行操控,获得第二响应数据;将第二响应数据发送至服务端。For the server, the server receives the voice data sent by the smart device; performs intent recognition on the voice data to obtain the control intention of controlling the first target cloud application; sends the control intention to the first cloud application service node, so that the first cloud application service node can control the first target cloud application based on the control intention; receives the second response data returned by the first cloud application service node in response to the control intention, and sends the second response data to the smart device. For the first cloud application service node, the first cloud application service node receives the control intention sent by the server; controls the first target cloud application based on the control intention to obtain the second response data; and sends the second response data to the server.
此处,第二响应数据为第一目标云应用响应于操控意图所返回的响应数据。Here, the second response data is the response data returned by the first target cloud application in response to the manipulation intention.
在一实施例中,该第二响应数据通过webRTC协议传递给智能设备,以降低数据传输时延,确保第一目标云应用的实时同步显示,进而提高用户体验感。In one embodiment, the second response data is transmitted to the smart device via the webRTC protocol to reduce data transmission delay, ensure real-time synchronous display of the first target cloud application, and thus improve user experience.
在一实施例中,该第二响应数据为预设格式的数据,即第一目标虚拟机将第二响应数据进行处理得到预设格式的交互数据。示例性的,第一目标虚拟机将第一目标云应用的应用页面信息压缩成h256格式音视频流传输至智能设备。In one embodiment, the second response data is data in a preset format, that is, the first target virtual machine processes the second response data to obtain interactive data in a preset format. Exemplarily, the first target virtual machine compresses the application page information of the first target cloud application into an h256 format audio and video stream and transmits it to the smart device.
在一具体实施例中,该第二响应数据包括音频数据和/或视频数据和/或文本数据和/或控制信息(如详情页播放、快进、暂停、上/下集等等),以确保云应用和本地应用体验一致性。In a specific embodiment, the second response data includes audio data and/or video data and/or text data and/or control information (such as detail page play, fast forward, pause, previous/next episode, etc.) to ensure consistency in experience between the cloud application and the local application.
本发明实施例提供的基于智能设备的云应用交互方法,采集对第一目标云应用进行操控的语音数据;将语音数据发送至服务端,以供服务端对语音数据进行意图识别,得到对第一目标云应用进行操控的操控意图,从而可以在智能设备上通过语音操控的方式操控云应用,进而提高用户体验感,且可以在第一云应用服务节点上对第一目标云应用进行操控,进而确保在智能设备上对第一目标云应用进行的操控也可以在第一目标虚拟机上执行,从而确保云应用和本地应用的体验一致性,进而提高用户体验感;此外,接收服务端响应于语音数据所返回的第二响应数据,从而确保第一目标云应用在第一目标虚拟机上所呈现的响应数据与在智能设备上所呈现的响应数据一致,进而确保云应用和本地应用的体验一致性,进而提高用户体验感。The cloud application interaction method based on smart devices provided in an embodiment of the present invention collects voice data for controlling a first target cloud application; sends the voice data to a server so that the server can perform intent recognition on the voice data to obtain the control intention for controlling the first target cloud application, so that the cloud application can be controlled by voice control on the smart device, thereby improving the user experience, and the first target cloud application can be controlled on the first cloud application service node, thereby ensuring that the control of the first target cloud application on the smart device can also be executed on the first target virtual machine, thereby ensuring the experience consistency of the cloud application and the local application, thereby improving the user experience; in addition, the second response data returned by the server in response to the voice data is received, thereby ensuring that the response data presented by the first target cloud application on the first target virtual machine is consistent with the response data presented on the smart device, thereby ensuring the experience consistency of the cloud application and the local application, thereby improving the user experience.
基于上述任一实施例,本发明还提供一种基于智能设备的云应用交互方法,该方法应用于服务端。图2为本发明提供的基于智能设备的云应用交互方法的流程示意图之二,如图2所示,该应用于服务端的基于智能设备的云应用交互方法包括:Based on any of the above embodiments, the present invention further provides a cloud application interaction method based on a smart device, which is applied to a server. FIG2 is a second flow chart of a cloud application interaction method based on a smart device provided by the present invention. As shown in FIG2 , the cloud application interaction method based on a smart device applied to a server includes:
步骤210,接收智能设备发送的用于启动第一目标云应用的云应用启动请求。Step 210: Receive a cloud application start request for starting a first target cloud application sent by a smart device.
此处,服务端为该智能设备对应的云端(云端服务节点)。云应用启动请求用于请求服务端启动该第一目标云应用,应理解,实际启动第一目标云应用是在云应用服务节点。Here, the server is the cloud (cloud service node) corresponding to the smart device. The cloud application startup request is used to request the server to start the first target cloud application. It should be understood that the first target cloud application is actually started at the cloud application service node.
步骤220,基于云应用启动请求,获取第一目标云应用的云应用信息和智能设备的设备信息。Step 220: Based on the cloud application start request, obtain cloud application information of the first target cloud application and device information of the smart device.
在一实施例中,该云应用启动请求可以用于指示该第一目标云应用和智能设备,基于此,基于云应用启动请求,可以确定第一目标云应用和智能设备,进而获取该第一目标云应用的云应用信息和该智能设备的设备信息。更为具体地,该云应用启动请求可以用于指示第一目标云应用的唯一标识信息和智能设备的设备唯一标识信息,基于此,基于云应用启动请求,可以确定第一目标云应用和智能设备,进而获取该第一目标云应用的云应用信息和该智能设备的设备信息。该云应用信息和设备信息可以预先存储在服务端,也可以不存储在服务端。In one embodiment, the cloud application startup request can be used to indicate the first target cloud application and the smart device, based on which, based on the cloud application startup request, the first target cloud application and the smart device can be determined, and then the cloud application information of the first target cloud application and the device information of the smart device are obtained. More specifically, the cloud application startup request can be used to indicate the unique identification information of the first target cloud application and the device unique identification information of the smart device, based on which, based on the cloud application startup request, the first target cloud application and the smart device can be determined, and then the cloud application information of the first target cloud application and the device information of the smart device are obtained. The cloud application information and the device information may be pre-stored on the server side, or may not be stored on the server side.
在另一实施例中,该云应用启动请求指示有该云应用信息和该设备信息,基于此,基于云应用启动请求,可以直接解析获得第一目标云应用的云应用信息和智能设备的设备信息。In another embodiment, the cloud application start request indicates the cloud application information and the device information. Based on this, based on the cloud application start request, the cloud application information of the first target cloud application and the device information of the smart device can be directly parsed and obtained.
在另一实施例中,该云应用启动请求指示有该云应用信息,且指示该智能设备,基于此,基于云应用启动请求,可以直接解析获得第一目标云应用的云应用信息,并确定该智能设备,进而获取该智能设备的设备信息。该设备信息可以预先存储在服务端,也可以不存储在服务端。In another embodiment, the cloud application startup request indicates the cloud application information and the smart device, based on which, based on the cloud application startup request, the cloud application information of the first target cloud application can be directly parsed and the smart device can be determined, and then the device information of the smart device can be obtained. The device information can be pre-stored on the server side or not.
在另一实施例中,该云应用启动请求指示有该设备信息,且指示该第一目标云应用,基于此,基于云应用启动请求,可以直接解析获得智能设备的设备信息,并确定该第一目标云应用,进而获取该第一目标云应用的云应用信息。该云应用信息可以预先存储在服务端,也可以不存储在服务端。In another embodiment, the cloud application startup request indicates the device information and the first target cloud application, based on which, based on the cloud application startup request, the device information of the smart device can be directly parsed and the first target cloud application can be determined, and then the cloud application information of the first target cloud application can be obtained. The cloud application information can be pre-stored on the server side or not.
步骤230,将设备信息和第一目标云应用的云应用信息发送至云应用中心节点,以供云应用中心节点基于设备信息分配启动第一目标云应用的第一云应用服务节点,并将第一目标云应用的云应用信息发送至第一云应用服务节点。Step 230, sends the device information and the cloud application information of the first target cloud application to the cloud application center node, so that the cloud application center node can allocate and start the first cloud application service node of the first target cloud application based on the device information, and sends the cloud application information of the first target cloud application to the first cloud application service node.
其中,第一目标云应用的云应用信息用于分配启动第一目标云应用的第一目标虚拟机。The cloud application information of the first target cloud application is used to allocate and start the first target virtual machine of the first target cloud application.
此处,设备信息用于表征智能设备的配置信息,从而基于该设备信息可以确定其需求,进而确定满足其需求的云应用服务节点,进而基于该设备信息可以分配启动第一目标云应用的第一云应用服务节点。该设备信息可以包括但不限于以下至少一项:外网IP地址、带宽、显示屏的分辨率、是否支持软解和是否支持硬解等等。Here, the device information is used to characterize the configuration information of the smart device, so that its needs can be determined based on the device information, and then the cloud application service node that meets its needs can be determined, and then the first cloud application service node for starting the first target cloud application can be allocated based on the device information. The device information may include but is not limited to at least one of the following: external network IP address, bandwidth, display resolution, whether soft decoding is supported, whether hard decoding is supported, etc.
此处,云应用信息用于表征云应用的配置需求信息,从而基于该云应用信息可以确定云应用的需求,进而确定满足其需求的虚拟机,进而基于该云应用信息可以分配启动第一目标云应用的第一目标虚拟机。该云应用信息可以包括但不限于以下至少一项:云应用所需的运行内存(RAM)、云应用对应的包体积(即云应用所需的存储空间ROM)、云应用所需的CPU配置(例如CPU核心数)、云应用所需的带宽,以及云应用所需的其它运行配置等等。例如,该云应用对应的包体积可以为APK的体积。Here, the cloud application information is used to characterize the configuration requirement information of the cloud application, so that the requirements of the cloud application can be determined based on the cloud application information, and then the virtual machine that meets the requirements can be determined, and then the first target virtual machine for starting the first target cloud application can be allocated based on the cloud application information. The cloud application information may include but is not limited to at least one of the following: the running memory (RAM) required by the cloud application, the package volume corresponding to the cloud application (i.e., the storage space ROM required by the cloud application), the CPU configuration required by the cloud application (such as the number of CPU cores), the bandwidth required by the cloud application, and other running configurations required by the cloud application, etc. For example, the package volume corresponding to the cloud application can be the volume of the APK.
此处,云应用中心节点(云应用服务中心)用于分配启动云应用的云应用服务节点,一个云应用中心节点对应多个云应用服务节点,即该云应用中心节点为多个云应用服务节点的调控中心。Here, the cloud application center node (cloud application service center) is used to allocate cloud application service nodes for starting cloud applications. One cloud application center node corresponds to multiple cloud application service nodes, that is, the cloud application center node is the control center of multiple cloud application service nodes.
对于云应用中心节点来说,接收服务端发送的第一目标云应用的云应用信息和智能设备的设备信息;基于设备信息,分配启动第一目标云应用的第一云应用服务节点;将第一目标云应用的云应用信息发送至第一云应用服务节点,以供第一云应用服务节点基于第一目标云应用的云应用信息分配启动第一目标云应用的第一目标虚拟机。For the cloud application center node, it receives the cloud application information of the first target cloud application and the device information of the smart device sent by the server; based on the device information, it allocates and starts the first cloud application service node of the first target cloud application; and sends the cloud application information of the first target cloud application to the first cloud application service node, so that the first cloud application service node allocates and starts the first target virtual machine of the first target cloud application based on the cloud application information of the first target cloud application.
进一步地,在上述步骤230之后,建立第一目标云应用与智能设备的映射关系,并存储该映射关系。例如,在第一目标云应用启动(打开)时,建立该映射关系并保存。Furthermore, after the above step 230, a mapping relationship between the first target cloud application and the smart device is established and stored. For example, when the first target cloud application is started (opened), the mapping relationship is established and saved.
步骤240,接收第一云应用服务节点返回的交互数据,将交互数据发送至智能设备,交互数据为第一目标云应用在启动时所需呈现给用户的数据。Step 240: Receive the interaction data returned by the first cloud application service node, and send the interaction data to the smart device. The interaction data is the data that the first target cloud application needs to present to the user when starting.
此处,交互数据为人机交互数据,即第一目标云应用在启动时需要与用户进行交互的交互数据。Here, the interaction data refers to human-computer interaction data, that is, the interaction data that the first target cloud application needs to interact with the user when it is started.
在一实施例中,该交互数据通过webRTC协议传递给服务端,以降低数据传输时延,确保第一目标云应用的实时同步显示,进而提高用户体验感。In one embodiment, the interactive data is transmitted to the server via the webRTC protocol to reduce data transmission delay, ensure real-time synchronous display of the first target cloud application, and thus improve user experience.
在一实施例中,该交互数据为预设格式的数据,即第一目标虚拟机将交互数据进行处理得到预设格式的交互数据。示例性的,第一目标虚拟机将第一目标云应用的应用页面信息压缩成h256格式音视频流传输至服务端。In one embodiment, the interaction data is data in a preset format, that is, the first target virtual machine processes the interaction data to obtain interaction data in a preset format. Exemplarily, the first target virtual machine compresses the application page information of the first target cloud application into an h256 format audio and video stream and transmits it to the server.
在一具体实施例中,该交互数据包括音频数据和/或视频数据,以将第一目标云应用在启动时的页面也在智能设备上显示,并将第一目标云应用在启动时的声音也在智能设备上输出,以确保云应用和本地应用体验一致性。In a specific embodiment, the interaction data includes audio data and/or video data, so that the page of the first target cloud application when it is started is also displayed on the smart device, and the sound of the first target cloud application when it is started is also output on the smart device, so as to ensure the consistency of the cloud application and local application experience.
对于第一云应用服务节点来说,第一云应用服务节点在第一目标云应用启动(打开)时,获取第一目标云应用启动时所需呈现给用户的交互数据,将该交互数据发送至服务端。For the first cloud application service node, when the first target cloud application is started (opened), the first cloud application service node obtains the interaction data required to be presented to the user when the first target cloud application is started, and sends the interaction data to the server.
本发明实施例提供的基于智能设备的云应用交互方法,接收智能设备发送的用于启动第一目标云应用的云应用启动请求,以基于云应用启动请求,获取第一目标云应用的云应用信息和智能设备的设备信息,以将设备信息和第一目标云应用的云应用信息发送至云应用中心节点,以供云应用中心节点基于设备信息分配启动第一目标云应用的第一云应用服务节点,并将第一目标云应用的云应用信息发送至第一云应用服务节点,且第一目标云应用的云应用信息用于分配启动第一目标云应用的第一目标虚拟机,从而可以在第一云应用服务节点上安装和启动第一目标云应用,无需在智能设备上安装第一目标云应用,进而确保智能设备上可使用的应用数量不受限制,且确保可使用的应用大小也不受限制,进而确保智能设备的智能化实现不受限制;同时,基于设备信息合理分配启动第一目标云应用的第一云应用服务节点,且基于云应用信息合理分配启动第一目标云应用的第一目标虚拟机,确保第一目标云应用的正常启动和运行,进而确保智能设备可以正常使用第一目标云应用;此外,接收第一云应用服务节点返回的交互数据,将交互数据发送至智能设备,且该交互数据为第一目标云应用在启动时所需呈现给用户的数据,从而确保第一目标云应用在第一目标虚拟机上所呈现的交互数据与在智能设备上所呈现的交互数据一致,进而确保云应用和本地应用的体验一致性,进而提高用户体验感。The cloud application interaction method based on smart devices provided in an embodiment of the present invention receives a cloud application startup request sent by a smart device for starting a first target cloud application, obtains cloud application information of the first target cloud application and device information of the smart device based on the cloud application startup request, and sends the device information and the cloud application information of the first target cloud application to a cloud application center node, so that the cloud application center node can allocate a first cloud application service node for starting the first target cloud application based on the device information, and sends the cloud application information of the first target cloud application to the first cloud application service node, and the cloud application information of the first target cloud application is used to allocate a first target virtual machine for starting the first target cloud application, so that the first target cloud application can be installed and started on the first cloud application service node without installing the first target cloud application on the smart device, thereby ensuring that the number of applications available on the smart device is The amount is not limited, and the size of the available applications is not limited, thereby ensuring that the intelligent realization of the smart device is not limited; at the same time, the first cloud application service node for starting the first target cloud application is reasonably allocated based on the device information, and the first target virtual machine for starting the first target cloud application is reasonably allocated based on the cloud application information, ensuring the normal startup and operation of the first target cloud application, thereby ensuring that the smart device can use the first target cloud application normally; in addition, the interaction data returned by the first cloud application service node is received, and the interaction data is sent to the smart device, and the interaction data is the data that the first target cloud application needs to present to the user when it is started, thereby ensuring that the interaction data presented by the first target cloud application on the first target virtual machine is consistent with the interaction data presented on the smart device, thereby ensuring the experience consistency of the cloud application and the local application, thereby improving the user experience.
基于上述任一实施例,该方法还包括:Based on any of the above embodiments, the method further includes:
接收智能设备发送的用户操控指令,基于用户操控指令,确定待操控的第二目标云应用;Receiving a user control instruction sent by the smart device, and determining a second target cloud application to be controlled based on the user control instruction;
确定第二目标云应用未启动,基于用户操控指令,获取第二目标云应用的云应用信息和智能设备的设备信息;将设备信息和第二目标云应用的云应用信息发送至云应用中心节点,以供云应用中心节点基于设备信息分配启动第二目标云应用的第二云应用服务节点,并将第二目标云应用的云应用信息发送至第二云应用服务节点,第二目标云应用的云应用信息用于分配启动第二目标云应用的第二目标虚拟机;将用户操控指令发送至第二云应用服务节点;Determine that the second target cloud application is not started, and based on the user control instruction, obtain the cloud application information of the second target cloud application and the device information of the smart device; send the device information and the cloud application information of the second target cloud application to the cloud application center node, so that the cloud application center node can allocate a second cloud application service node for starting the second target cloud application based on the device information, and send the cloud application information of the second target cloud application to the second cloud application service node, and the cloud application information of the second target cloud application is used to allocate and start the second target virtual machine of the second target cloud application; send the user control instruction to the second cloud application service node;
确定第二目标云应用已启动,将用户操控指令发送至启动第二目标云应用的第二云应用服务节点;Determining that the second target cloud application has been started, and sending the user control instruction to the second cloud application service node that starts the second target cloud application;
接收第二云应用服务节点响应于用户操控指令所返回的第一响应数据,将第一响应数据发送至智能设备;Receiving first response data returned by the second cloud application service node in response to the user manipulation instruction, and sending the first response data to the smart device;
其中,用户操控指令用于对在第二目标虚拟机上的第二目标云应用进行操控。The user control instruction is used to control the second target cloud application on the second target virtual machine.
此处,用户操控指令可以指示所需操控的第二目标云应用。进一步地,用户操控指令指示的第二目标云应用可以通过云应用唯一标识信息进行表征。进一步地,该用户操控指令还指示操控内容数据,以在将用户操控指令发送至第二云应用服务节点后,第二目标云应用可以基于该操控内容数据执行相应的步骤,确保云应用和本地应用的体验一致性,进而提高用户体验感;例如,在第二目标云应用已启动的情况下,将该操控内容数据传递给第二目标云应用,以供第二目标云应用进行展示。Here, the user manipulation instruction can indicate the second target cloud application that needs to be manipulated. Furthermore, the second target cloud application indicated by the user manipulation instruction can be characterized by the cloud application unique identification information. Furthermore, the user manipulation instruction also indicates the manipulation content data, so that after the user manipulation instruction is sent to the second cloud application service node, the second target cloud application can execute corresponding steps based on the manipulation content data to ensure the experience consistency between the cloud application and the local application, thereby improving the user experience; for example, when the second target cloud application has been started, the manipulation content data is passed to the second target cloud application for display by the second target cloud application.
在一具体实施例中,查询是否存在第二目标云应用与智能设备的映射关系,若存在则确定第二目标云应用已启动,若不存在则确定第二目标云应用未启动。In a specific embodiment, it is queried whether there is a mapping relationship between the second target cloud application and the smart device. If so, it is determined that the second target cloud application has been started; if not, it is determined that the second target cloud application has not been started.
需要说明的是,在第二目标云应用未启动的情况下,需要先启动第二目标云应用,即需要先为第二目标云应用分配云应用服务节点和虚拟机资源,再对第二目标云应用进行操控;在第二目标云应用已启动的情况下,可以直接对第二目标云应用进行操控。It should be noted that if the second target cloud application is not started, it is necessary to start the second target cloud application first, that is, it is necessary to allocate cloud application service nodes and virtual machine resources to the second target cloud application first, and then operate the second target cloud application; if the second target cloud application is already started, the second target cloud application can be directly operated.
此处,分配启动第二目标云应用的第二云应用服务节点与分配启动第一目标云应用的第一云应用服务节点的具体步骤基本相同,分配启动第二目标云应用的第二目标虚拟机与分配启动第一目标云应用的第一目标虚拟机的具体步骤基本相同,此处不再一一赘述。Here, the specific steps of allocating and starting the second cloud application service node of the second target cloud application are basically the same as those of allocating and starting the first cloud application service node of the first target cloud application. The specific steps of allocating and starting the second target virtual machine of the second target cloud application are basically the same as those of allocating and starting the first target virtual machine of the first target cloud application, and they will not be repeated here one by one.
此处,第一响应数据为第二目标云应用响应于用户操控指令所返回的响应数据。Here, the first response data is the response data returned by the second target cloud application in response to the user's manipulation instruction.
在一实施例中,该第一响应数据通过webRTC协议传递给服务端,以降低数据传输时延,确保第二目标云应用的实时同步显示,进而提高用户体验感。In one embodiment, the first response data is transmitted to the server via the webRTC protocol to reduce data transmission delay, ensure real-time synchronous display of the second target cloud application, and thus improve user experience.
在一实施例中,该第一响应数据为预设格式的数据,即第二目标虚拟机将第一响应数据进行处理得到预设格式的交互数据。示例性的,第二目标虚拟机将第二目标云应用的应用页面信息压缩成h256格式音视频流传输至服务端。In one embodiment, the first response data is data in a preset format, that is, the second target virtual machine processes the first response data to obtain interactive data in a preset format. Exemplarily, the second target virtual machine compresses the application page information of the second target cloud application into an h256 format audio and video stream and transmits it to the server.
在一具体实施例中,该第一响应数据包括音频数据和/或视频数据和/或文本数据和/或控制信息,以确保云应用和本地应用体验一致性。In a specific embodiment, the first response data includes audio data and/or video data and/or text data and/or control information to ensure consistency in experience between the cloud application and the local application.
本发明实施例提供的基于智能设备的云应用交互方法,通过上述方式,可以在第二云应用服务节点上对第二目标云应用进行操控,进而确保在智能设备上对第二目标云应用进行的操控也可以在第二目标虚拟机上执行,从而确保云应用和本地应用的体验一致性,进而提高用户体验感;此外,接收第二云应用服务节点响应于用户操控指令所返回的第一响应数据,将第一响应数据发送至智能设备,从而确保第二目标云应用在第二目标虚拟机上所呈现的响应数据与在智能设备上所呈现的响应数据一致,进而确保云应用和本地应用的体验一致性,进而提高用户体验感。The cloud application interaction method based on smart devices provided in an embodiment of the present invention can manipulate the second target cloud application on the second cloud application service node through the above-mentioned method, thereby ensuring that the manipulation of the second target cloud application on the smart device can also be executed on the second target virtual machine, thereby ensuring the experience consistency of the cloud application and the local application, thereby improving the user experience; in addition, receiving the first response data returned by the second cloud application service node in response to the user manipulation instruction, and sending the first response data to the smart device, thereby ensuring that the response data presented by the second target cloud application on the second target virtual machine is consistent with the response data presented on the smart device, thereby ensuring the experience consistency of the cloud application and the local application, thereby improving the user experience.
基于上述任一实施例,在上述步骤230之后,该方法还包括:Based on any of the above embodiments, after the above step 230, the method further includes:
接收第一云应用服务节点发送的信息查询请求;Receiving an information query request sent by the first cloud application service node;
基于信息查询请求,获取智能设备的设备标识信息和/或智能设备的账号信息;Based on the information query request, obtain device identification information of the smart device and/or account information of the smart device;
将设备标识信息和/或账号信息发送至第一云应用服务节点,设备标识信息和/或账号信息用于对第一目标云应用进行登录。The device identification information and/or account information is sent to the first cloud application service node, and the device identification information and/or account information is used to log in to the first target cloud application.
此处,信息查询请求用于第一云应用服务节点请求服务端返回智能设备的设备标识信息和/或智能设备的账号信息。对于第一云应用服务节点来说,第一云应用服务节点在第一目标云应用启动(打开)时,会进行鉴权,基于此,第一云应用服务节点发送信息查询请求至服务端,以接收服务端发送的设备标识信息和/或账号信息,并将设备标识信息和/或账号信息发送至第一目标云应用的云平台,以对第一目标云应用进行登录。进一步地,该信息查询请求指示有智能设备。Here, the information query request is used by the first cloud application service node to request the server to return the device identification information of the smart device and/or the account information of the smart device. For the first cloud application service node, the first cloud application service node will perform authentication when the first target cloud application is started (opened). Based on this, the first cloud application service node sends an information query request to the server to receive the device identification information and/or account information sent by the server, and sends the device identification information and/or account information to the cloud platform of the first target cloud application to log in to the first target cloud application. Further, the information query request indicates that there is a smart device.
此处,设备标识信息可以包括但不限于以下至少一种:SN、MAC地址、设备型号、设备厂商信息等等。账号信息为智能设备对应的用户的用户信息。Here, the device identification information may include but is not limited to at least one of the following: SN, MAC address, device model, device manufacturer information, etc. The account information is user information of the user corresponding to the smart device.
若设备标识信息在服务端中已存储保存,则直接获取智能设备的设备标识信息。若设备标识信息在服务端中未存储保存,则将信息查询请求发送至智能设备,以供智能设备基于信息查询请求,获取获取智能设备的设备标识信息,并将该设备标识信息发送至服务端;进一步地,基于服务端预先保存的映射关系,确定信息查询请求对应的智能设备,并将该信息查询请求发送至该智能设备。If the device identification information has been stored in the server, the device identification information of the smart device is directly obtained. If the device identification information is not stored in the server, an information query request is sent to the smart device, so that the smart device can obtain the device identification information of the smart device based on the information query request, and send the device identification information to the server; further, based on the mapping relationship pre-stored by the server, the smart device corresponding to the information query request is determined, and the information query request is sent to the smart device.
若账号信息在服务端中已存储保存,则直接获取智能设备的账号信息。若账号信息在服务端中未存储保存,则将信息查询请求发送至智能设备,以供智能设备基于信息查询请求,获取获取智能设备的账号信息,并将该账号信息发送至服务端;进一步地,基于服务端预先保存的映射关系,确定信息查询请求对应的智能设备,并将该信息查询请求发送至该智能设备。If the account information has been stored in the server, the account information of the smart device is directly obtained. If the account information is not stored in the server, an information query request is sent to the smart device, so that the smart device can obtain the account information of the smart device based on the information query request and send the account information to the server; further, based on the mapping relationship pre-stored by the server, the smart device corresponding to the information query request is determined, and the information query request is sent to the smart device.
应理解,设备标识信息和账号信息均可以用于登录第一目标云应用,以进行权益查询以及账号绑定,从而实现用户的账号统一,云应用实现免登录(即开即用),并且可以查询上次使用时的一些个人数据(例如收藏信息、播放记录、权益信息、应用个性化设置信息以及账号权益有效期等等)。It should be understood that both the device identification information and the account information can be used to log in to the first target cloud application to perform rights and interests query and account binding, thereby realizing the unification of user accounts, and the cloud application can be login-free (ready-to-use), and some personal data from the last use can be queried (such as collection information, playback records, rights and interests information, application personalization settings information, and account rights and interests validity period, etc.).
本发明实施例提供的基于智能设备的云应用交互方法,通过上述方式,可以实现云应用的免登录,即不需要用户去登录第一目标云应用,而是由上述交互方式实现登录,进而提高用户体验感。且通过上述方式,可以进行账号绑定,进而可以查询个人数据,确保云应用和本地应用的体验一致性,进而提高用户体验感。The cloud application interaction method based on smart devices provided by the embodiment of the present invention can realize the cloud application login-free through the above method, that is, the user does not need to log in to the first target cloud application, but logs in through the above interaction method, thereby improving the user experience. And through the above method, account binding can be performed, and personal data can be queried, ensuring the consistency of experience between cloud applications and local applications, thereby improving the user experience.
基于上述任一实施例,在上述步骤240之后,该方法还包括:Based on any of the above embodiments, after the above step 240, the method further includes:
接收智能设备发送的语音数据,语音数据为对第一目标云应用进行操控的数据;receiving voice data sent by the smart device, where the voice data is data for controlling the first target cloud application;
对语音数据进行意图识别,得到对第一目标云应用进行操控的操控意图;Performing intent recognition on the voice data to obtain a control intention for controlling the first target cloud application;
将操控意图发送至第一云应用服务节点,以供第一云应用服务节点基于操控意图对第一目标云应用进行操控;Sending the manipulation intention to the first cloud application service node, so that the first cloud application service node can manipulate the first target cloud application based on the manipulation intention;
接收第一云应用服务节点响应于操控意图所返回的第二响应数据,将第二响应数据发送至智能设备。Receive second response data returned by the first cloud application service node in response to the manipulation intention, and send the second response data to the smart device.
具体地,对语音数据进行语音识别,得到文本数据;对该文本数据进行语义理解和意图识别,得到对第一目标云应用进行操控的操控意图。其具体执行步骤可以参照NLP(Natural Language Processing,自然语言处理)的各种算法,此处不做具体赘述。Specifically, speech recognition is performed on the speech data to obtain text data; semantic understanding and intent recognition are performed on the text data to obtain the control intention of controlling the first target cloud application. The specific execution steps can refer to various algorithms of NLP (Natural Language Processing), which will not be described in detail here.
在一实施例中,该第二响应数据通过webRTC协议传递给服务端,以降低数据传输时延,确保第一目标云应用的实时同步显示,进而提高用户体验感。In one embodiment, the second response data is transmitted to the server via the webRTC protocol to reduce data transmission delay, ensure real-time synchronous display of the first target cloud application, and thus improve user experience.
在一实施例中,该第二响应数据为预设格式的数据,即第一目标虚拟机将第二响应数据进行处理得到预设格式的交互数据。示例性的,第一目标虚拟机将第一目标云应用的应用页面信息压缩成h256格式音视频流传输至服务端。In one embodiment, the second response data is data in a preset format, that is, the first target virtual machine processes the second response data to obtain interactive data in a preset format. Exemplarily, the first target virtual machine compresses the application page information of the first target cloud application into an h256 format audio and video stream and transmits it to the server.
在一具体实施例中,该第二响应数据包括音频数据和/或视频数据和/或文本数据和/或控制信息(如详情页播放、快进、暂停、上/下集等等),以确保云应用和本地应用体验一致性。In a specific embodiment, the second response data includes audio data and/or video data and/or text data and/or control information (such as detail page play, fast forward, pause, previous/next episode, etc.) to ensure consistency in experience between the cloud application and the local application.
本发明实施例提供的基于智能设备的云应用交互方法,通过上述方式,从而可以在智能设备上通过语音操控的方式操控云应用,进而提高用户体验感,且可以在第一云应用服务节点上对第一目标云应用进行操控,进而确保在智能设备上对第一目标云应用进行的操控也可以在第一目标虚拟机上执行,从而确保云应用和本地应用的体验一致性,进而提高用户体验感;此外,接收第一云应用服务节点响应于操控意图所返回的第二响应数据,并将第二响应数据发送至智能设备,从而确保第一目标云应用在第一目标虚拟机上所呈现的响应数据与在智能设备上所呈现的响应数据一致,进而确保云应用和本地应用的体验一致性,进而提高用户体验感。The cloud application interaction method based on smart devices provided in an embodiment of the present invention can control the cloud application through voice control on the smart device through the above-mentioned method, thereby improving the user experience, and can control the first target cloud application on the first cloud application service node, thereby ensuring that the control of the first target cloud application on the smart device can also be executed on the first target virtual machine, thereby ensuring the experience consistency of the cloud application and the local application, thereby improving the user experience; in addition, the second response data returned by the first cloud application service node in response to the control intention is received, and the second response data is sent to the smart device, thereby ensuring that the response data presented by the first target cloud application on the first target virtual machine is consistent with the response data presented on the smart device, thereby ensuring the experience consistency of the cloud application and the local application, thereby improving the user experience.
基于上述任一实施例,该方法中,对语音数据进行意图识别,得到对第一目标云应用进行操控的操控意图,包括:Based on any of the above embodiments, in the method, performing intent recognition on the voice data to obtain a control intention for controlling the first target cloud application includes:
发送页面信息获取请求至第一云应用服务节点;Sending a page information acquisition request to the first cloud application service node;
接收第一云应用服务节点响应于页面信息获取请求所返回的页面信息,页面信息包括第一目标云应用的当前页面对应的若干个可操控信息;Receiving page information returned by the first cloud application service node in response to the page information acquisition request, where the page information includes a plurality of controllable information corresponding to the current page of the first target cloud application;
获取页面信息对应的热词集合,热词集合包括多个具备权重的热词;Obtain a hot word set corresponding to the page information, the hot word set including multiple hot words with weights;
对语音数据进行语音识别,得到文本数据;Perform speech recognition on the speech data to obtain text data;
基于热词集合,对文本数据进行纠正处理;Based on the hot word set, the text data is corrected;
对纠正处理后的文本数据进行意图识别,得到对第一目标云应用进行操控的操控意图。Intent recognition is performed on the corrected text data to obtain the control intention for controlling the first target cloud application.
此处,页面信息获取请求用于请求第一云应用服务节点返回第一目标云应用的页面信息。对于第一云应用服务节点来说,第一云应用服务节点响应页面信息获取请求,获得第一目标云应用的当前页面对应的若干个可操控信息,并封装若干个可操控信息得到页面信息,以将页面信息发送至服务端。Here, the page information acquisition request is used to request the first cloud application service node to return the page information of the first target cloud application. For the first cloud application service node, the first cloud application service node responds to the page information acquisition request, obtains a number of controllable information corresponding to the current page of the first target cloud application, and encapsulates the several controllable information to obtain the page information, so as to send the page information to the server.
在一具体实施例中,在收到智能设备的第一包语音数据时,发送页面信息获取请求至第一云应用服务节点。进一步地,在收到智能设备的第一包语音数据时,基于预先保存的映射关系,确定对应的第一云应用服务节点,并发送页面信息获取请求至该第一云应用服务节点。In a specific embodiment, when the first packet of voice data from the smart device is received, a page information acquisition request is sent to the first cloud application service node. Further, when the first packet of voice data from the smart device is received, the corresponding first cloud application service node is determined based on the pre-stored mapping relationship, and a page information acquisition request is sent to the first cloud application service node.
在一实施例中,若干个可操控信息为可以语音操控的页面信息。示例性的,可操控信息为预定义指令,如播放、页面跳转等等。In one embodiment, the plurality of controllable information is page information that can be controlled by voice. Exemplarily, the controllable information is predefined instructions, such as play, page jump, etc.
在一具体实施例中,基于信息-集合映射关系,获取页面信息对应的热词集合。该信息-集合映射关系可以预先存储,其用于表征多个页面信息分别与每一热词集合的对应关系。In a specific embodiment, based on the information-set mapping relationship, the hot word set corresponding to the page information is obtained. The information-set mapping relationship can be pre-stored, which is used to represent the corresponding relationship between multiple page information and each hot word set.
具体地,从热词集合中匹配该文本数据对应的目标热词,将该文本数据更新为该目标热词。例如,热词集合包括“第三页”的热词,而识别的文本数据为“第三夜”,则将第三夜强转成第三页。若从热词集合中匹配不到该文本数据对应的目标热词,则无需对文本数据进行纠正处理。Specifically, the target hot word corresponding to the text data is matched from the hot word set, and the text data is updated to the target hot word. For example, if the hot word set includes the hot word "third page", and the recognized text data is "third night", the third night is forcibly converted to the third page. If the target hot word corresponding to the text data cannot be matched from the hot word set, there is no need to correct the text data.
在一具体实施例中,对纠正处理后的文本数据进行进行词槽切分,以对切分后的文本数据进行意图识别。进一步地,可以基于该热词集合,确定切分后的文本数据对应的操控意图,即热词集合包括操控意图对应的热词。若从热词集合中匹配不到该文本数据对应的操控意图,则直接对文本数据进行意图识别。In a specific embodiment, the corrected text data is segmented into word slots to perform intent recognition on the segmented text data. Further, the manipulation intent corresponding to the segmented text data can be determined based on the hot word set, that is, the hot word set includes hot words corresponding to the manipulation intent. If the manipulation intent corresponding to the text data cannot be matched from the hot word set, the text data is directly subjected to intent recognition.
示例性的,热词集合包括“电影名称”、页面切换指令、播控指令等等。对语音数据进行语音识别得到文本数据,且在识别过程中会对文本数据进行纠偏,会向热词集合中权重比较大的热词进行强转,且会对文本数据(如我想看xxx电影)进行词槽切分,以转换为动作(如看)、热词名称(xxx电影),且在完成切分后会对热词对应的播控指令意图进行绑定,以得到操控意图。Exemplarily, the hot word set includes "movie name", page switching instructions, broadcast control instructions, etc. Speech recognition is performed on the voice data to obtain text data, and the text data will be corrected during the recognition process, and the hot words with relatively large weights in the hot word set will be forcibly converted, and the text data (such as I want to watch xxx movie) will be segmented into word slots to convert into actions (such as watch) and hot word names (xxx movie), and after the segmentation is completed, the broadcast control instruction intent corresponding to the hot word will be bound to obtain the control intent.
本发明实施例提供的基于智能设备的云应用交互方法,通过上述方式,可以提高意图识别的准确性,进而提高语音操控的准确性,最终提高用户体验感。The cloud application interaction method based on smart devices provided in the embodiment of the present invention can improve the accuracy of intent recognition, thereby improving the accuracy of voice control and ultimately improving the user experience through the above-mentioned method.
基于上述任一实施例,本发明还提供一种基于智能设备的云应用交互方法,该方法应用于云应用服务节点。图3为本发明提供的基于智能设备的云应用交互方法的流程示意图之三,如图3所示,该应用于云应用服务节点的基于智能设备的云应用交互方法包括:Based on any of the above embodiments, the present invention further provides a cloud application interaction method based on smart devices, which is applied to a cloud application service node. FIG3 is a flow chart of a cloud application interaction method based on smart devices provided by the present invention. As shown in FIG3 , the cloud application interaction method based on smart devices applied to a cloud application service node includes:
步骤310,接收云应用中心节点发送的第一目标云应用的云应用信息。Step 310: Receive cloud application information of the first target cloud application sent by the cloud application center node.
此处,云应用信息用于表征云应用的配置需求信息,从而基于该云应用信息可以确定云应用的需求,进而确定满足其需求的虚拟机,进而基于该云应用信息可以分配启动第一目标云应用的第一目标虚拟机。该云应用信息可以包括但不限于以下至少一项:云应用所需的运行内存(RAM)、云应用对应的包体积(即云应用所需的存储空间ROM)、云应用所需的CPU配置(例如CPU核心数)、云应用所需的带宽,以及云应用所需的其它运行配置等等。例如,该云应用对应的包体积可以为APK的体积。Here, the cloud application information is used to characterize the configuration requirement information of the cloud application, so that the requirements of the cloud application can be determined based on the cloud application information, and then the virtual machine that meets the requirements can be determined, and then the first target virtual machine for starting the first target cloud application can be allocated based on the cloud application information. The cloud application information may include but is not limited to at least one of the following: the running memory (RAM) required by the cloud application, the package volume corresponding to the cloud application (i.e., the storage space ROM required by the cloud application), the CPU configuration required by the cloud application (such as the number of CPU cores), the bandwidth required by the cloud application, and other running configurations required by the cloud application, etc. For example, the package volume corresponding to the cloud application can be the volume of the APK.
步骤320,基于第一目标云应用的云应用信息,分配启动第一目标云应用的第一目标虚拟机。Step 320: Based on the cloud application information of the first target cloud application, allocate and start a first target virtual machine of the first target cloud application.
在一具体实施例中,确定虚拟机池中存在第一目标云应用的云应用信息对应的第一目标虚拟机,将第一目标虚拟机分配为启动第一目标云应用的虚拟机;确定虚拟机池中不存在第一目标云应用的云应用信息对应的虚拟机,创建第一目标云应用的云应用信息对应的第一目标虚拟机,将第一目标虚拟机分配为启动第一目标云应用的虚拟机。In a specific embodiment, it is determined that a first target virtual machine corresponding to the cloud application information of the first target cloud application exists in the virtual machine pool, and the first target virtual machine is allocated as a virtual machine for starting the first target cloud application; it is determined that a virtual machine corresponding to the cloud application information of the first target cloud application does not exist in the virtual machine pool, a first target virtual machine corresponding to the cloud application information of the first target cloud application is created, and the first target virtual machine is allocated as a virtual machine for starting the first target cloud application.
可以理解的是,云应用服务节点具有虚拟机池,在存在可使用的虚拟机时不再进行创建以提高云应用打开的响应速度,进而提升用户体验感。It is understandable that the cloud application service node has a virtual machine pool, and no virtual machine will be created when there is an available virtual machine to improve the response speed of opening the cloud application, thereby improving the user experience.
应理解,分配启动第一目标云应用的第一目标虚拟机后,第一目标虚拟机会启动运行该第一目标云应用。此外,在创建第一目标虚拟机的同时,可以将预置的第一目标云应用设于第一目标虚拟机。It should be understood that after the first target virtual machine for starting the first target cloud application is allocated, the first target virtual machine will start running the first target cloud application. In addition, when the first target virtual machine is created, the preset first target cloud application can be set in the first target virtual machine.
步骤330,获取第一目标云应用启动时所需呈现给用户的交互数据,将交互数据发送至服务端,以供服务端将交互数据转发至智能设备。Step 330, obtaining the interaction data required to be presented to the user when the first target cloud application is started, and sending the interaction data to the server, so that the server forwards the interaction data to the smart device.
在第一目标云应用启动(打开)时,云应用服务节点会和服务端建立通信连接。When the first target cloud application is started (opened), the cloud application service node will establish a communication connection with the server.
此处,交互数据为人机交互数据,即第一目标云应用在启动时需要与用户进行交互的交互数据。Here, the interaction data refers to human-computer interaction data, that is, the interaction data that the first target cloud application needs to interact with the user when it is started.
在一实施例中,该交互数据通过webRTC协议传递给服务端,以降低数据传输时延,确保第一目标云应用的实时同步显示,进而提高用户体验感。In one embodiment, the interactive data is transmitted to the server via the webRTC protocol to reduce data transmission delay, ensure real-time synchronous display of the first target cloud application, and thus improve user experience.
在一实施例中,该交互数据为预设格式的数据,即第一目标虚拟机将交互数据进行处理得到预设格式的交互数据。示例性的,第一目标虚拟机将第一目标云应用的应用页面信息压缩成h256格式音视频流传输至服务端。In one embodiment, the interaction data is data in a preset format, that is, the first target virtual machine processes the interaction data to obtain interaction data in a preset format. Exemplarily, the first target virtual machine compresses the application page information of the first target cloud application into an h256 format audio and video stream and transmits it to the server.
在一具体实施例中,该交互数据包括音频数据和/或视频数据,以将第一目标云应用在启动时的页面也在智能设备上显示,并将第一目标云应用在启动时的声音也在智能设备上输出,以确保云应用和本地应用体验一致性。In a specific embodiment, the interaction data includes audio data and/or video data, so that the page of the first target cloud application when it is started is also displayed on the smart device, and the sound of the first target cloud application when it is started is also output on the smart device, so as to ensure the consistency of the cloud application and local application experience.
本发明实施例提供的基于智能设备的云应用交互方法,接收云应用中心节点发送的第一目标云应用的云应用信息,以基于该第一目标云应用的云应用信息,分配启动第一目标云应用的第一目标虚拟机,从而可以在云应用服务节点上安装和启动第一目标云应用,无需在智能设备上安装第一目标云应用,进而确保智能设备上可使用的应用数量不受限制,且确保可使用的应用大小也不受限制,进而确保智能设备的智能化实现不受限制;同时,基于第一目标云应用的云应用信息,分配启动第一目标云应用的第一目标虚拟机,确保第一目标云应用的正常启动和运行,进而确保智能设备可以正常使用第一目标云应用;此外,获取第一目标云应用启动时所需呈现给用户的交互数据,将交互数据发送至服务端,以供服务端将交互数据转发至智能设备,从而确保第一目标云应用在第一目标虚拟机上所呈现的交互数据与在智能设备上所呈现的交互数据一致,进而确保云应用和本地应用的体验一致性,进而提高用户体验感。The cloud application interaction method based on smart devices provided in an embodiment of the present invention receives cloud application information of a first target cloud application sent by a cloud application center node, and allocates a first target virtual machine for starting the first target cloud application based on the cloud application information of the first target cloud application, so that the first target cloud application can be installed and started on the cloud application service node without installing the first target cloud application on the smart device, thereby ensuring that the number of applications that can be used on the smart device is not limited, and ensuring that the size of the applications that can be used is also not limited, thereby ensuring that the intelligentization of the smart device is not limited; at the same time, based on the cloud application information of the first target cloud application, allocates a first target virtual machine for starting the first target cloud application, ensuring the normal startup and operation of the first target cloud application, thereby ensuring that the smart device can use the first target cloud application normally; in addition, the interaction data required to be presented to the user when the first target cloud application is started is obtained, and the interaction data is sent to the server end, so that the server end forwards the interaction data to the smart device, thereby ensuring that the interaction data presented by the first target cloud application on the first target virtual machine is consistent with the interaction data presented on the smart device, thereby ensuring the experience consistency of the cloud application and the local application, thereby improving the user experience.
基于上述任一实施例,该方法还包括:Based on any of the above embodiments, the method further includes:
在第二目标云应用未启动的情况下,接收云应用中心节点发送的第二目标云应用的云应用信息;When the second target cloud application is not started, receiving cloud application information of the second target cloud application sent by the cloud application center node;
基于第二目标云应用的云应用信息,分配启动第二目标云应用的第二目标虚拟机;Based on the cloud application information of the second target cloud application, allocating and starting a second target virtual machine of the second target cloud application;
接收服务端发送的对第二目标云应用进行操控的用户操控指令;Receiving a user control instruction sent by the server to control the second target cloud application;
在第二目标云应用已启动的情况下,接收服务端发送的对第二目标云应用进行操控的用户操控指令;When the second target cloud application has been started, receiving a user control instruction sent by the server to control the second target cloud application;
响应用户操控指令获得第一响应数据,将第一响应数据发送至服务端,以供服务端将第一响应数据转发至智能设备。In response to the user's control instruction, first response data is obtained, and the first response data is sent to the server, so that the server forwards the first response data to the smart device.
此处,用户操控指令可以指示所需操控的第二目标云应用。进一步地,用户操控指令指示的第二目标云应用可以通过云应用唯一标识信息进行表征。进一步地,该用户操控指令还指示操控内容数据,以供第二目标云应用可以基于该操控内容数据执行相应的步骤,确保云应用和本地应用的体验一致性,进而提高用户体验感;例如,在第二目标云应用已启动的情况下,将该操控内容数据传递给第二目标云应用,以供第二目标云应用进行展示。Here, the user manipulation instruction can indicate the second target cloud application that needs to be manipulated. Furthermore, the second target cloud application indicated by the user manipulation instruction can be characterized by the cloud application unique identification information. Furthermore, the user manipulation instruction also indicates the manipulation content data, so that the second target cloud application can perform corresponding steps based on the manipulation content data, ensuring the experience consistency between the cloud application and the local application, thereby improving the user experience; for example, when the second target cloud application has been started, the manipulation content data is passed to the second target cloud application for display by the second target cloud application.
此处,分配启动第二目标云应用的第二目标虚拟机与分配启动第一目标云应用的第一目标虚拟机的具体步骤基本相同,此处不再一一赘述。Here, the specific steps of allocating and starting the second target virtual machine of the second target cloud application and allocating and starting the first target virtual machine of the first target cloud application are basically the same, and will not be repeated here.
此处,第一响应数据为第二目标云应用响应于用户操控指令所返回的响应数据。Here, the first response data is the response data returned by the second target cloud application in response to the user's manipulation instruction.
在一实施例中,该第一响应数据通过webRTC协议传递给服务端,以降低数据传输时延,确保第二目标云应用的实时同步显示,进而提高用户体验感。In one embodiment, the first response data is transmitted to the server via the webRTC protocol to reduce data transmission delay, ensure real-time synchronous display of the second target cloud application, and thus improve user experience.
在一实施例中,该第一响应数据为预设格式的数据,即第二目标虚拟机将第一响应数据进行处理得到预设格式的交互数据。示例性的,第二目标虚拟机将第二目标云应用的应用页面信息压缩成h256格式音视频流传输至服务端。In one embodiment, the first response data is data in a preset format, that is, the second target virtual machine processes the first response data to obtain interactive data in a preset format. Exemplarily, the second target virtual machine compresses the application page information of the second target cloud application into an h256 format audio and video stream and transmits it to the server.
在一具体实施例中,该第一响应数据包括音频数据和/或视频数据和/或文本数据和/或控制信息,以确保云应用和本地应用体验一致性。In a specific embodiment, the first response data includes audio data and/or video data and/or text data and/or control information to ensure consistency in experience between the cloud application and the local application.
进一步地,在响应用户操控指令获得第一响应数据之前,对该用户操控指令进行转换,以得到第二目标云应用对应的操控指令,进而响应该操控指令获得第一响应数据。Furthermore, before obtaining the first response data in response to the user manipulation instruction, the user manipulation instruction is converted to obtain a manipulation instruction corresponding to the second target cloud application, and then the first response data is obtained in response to the manipulation instruction.
示例性的,若用户操控指令是基于手动点击触发的,则用户操控指令记录有触摸事件,该触摸事件包括智能设备的点击坐标以及分辨率信息,基于此,云应用服务节点根据该触摸事件,映射到第二目标虚拟机需要模拟该触摸事件的坐标系坐标,并在第二目标云应用进行点击显示,以实现同步显示,进而确保云应用和本地应用的体验一致性,进而提高用户体验感。Exemplarily, if the user manipulation instruction is triggered based on a manual click, the user manipulation instruction records a touch event, which includes the click coordinates and resolution information of the smart device. Based on this, the cloud application service node maps the touch event to the coordinate system coordinates that need to simulate the touch event on the second target virtual machine, and performs click display on the second target cloud application to achieve synchronous display, thereby ensuring the consistency of experience between the cloud application and the local application, and thereby improving the user experience.
示例性的,若用户操控指令是基于语音触发的,基于用户操控指令,通过deeplink协议打开第二目标云应用的对应页面,即根据deeplink协议解析用户操控指令,以进行数据的搜索以及页面展示等。Exemplarily, if the user control instruction is triggered by voice, the corresponding page of the second target cloud application is opened through the deeplink protocol based on the user control instruction, that is, the user control instruction is parsed according to the deeplink protocol to search for data and display pages, etc.
本发明实施例提供的基于智能设备的云应用交互方法,通过上述方式,可以在云应用服务节点上对第二目标云应用进行操控,进而确保在智能设备上对第二目标云应用进行的操控也可以在第二目标虚拟机上执行,从而确保云应用和本地应用的体验一致性,进而提高用户体验感;此外,响应用户操控指令获得第一响应数据,并将第一响应数据发送至服务端,以供服务端将第一响应数据转发至智能设备,从而确保第二目标云应用在第二目标虚拟机上所呈现的响应数据与在智能设备上所呈现的响应数据一致,进而确保云应用和本地应用的体验一致性,进而提高用户体验感。The cloud application interaction method based on smart devices provided in an embodiment of the present invention can manipulate the second target cloud application on the cloud application service node through the above-mentioned method, thereby ensuring that the manipulation of the second target cloud application on the smart device can also be executed on the second target virtual machine, thereby ensuring the experience consistency of the cloud application and the local application, thereby improving the user experience; in addition, in response to the user manipulation instruction, first response data is obtained, and the first response data is sent to the server, so that the server forwards the first response data to the smart device, thereby ensuring that the response data presented by the second target cloud application on the second target virtual machine is consistent with the response data presented on the smart device, thereby ensuring the experience consistency of the cloud application and the local application, thereby improving the user experience.
基于上述任一实施例,在上述步骤320之后,该方法还包括:Based on any of the above embodiments, after the above step 320, the method further includes:
发送信息查询请求至服务端,以供服务端基于信息查询请求,获取智能设备的设备标识信息和/或智能设备的账号信息;Sending an information query request to the server, so that the server can obtain device identification information and/or account information of the smart device based on the information query request;
接收服务端发送的设备标识信息和/或账号信息;Receive device identification information and/or account information sent by the server;
将设备标识信息和/或账号信息发送至第一目标云应用的云平台,以对第一目标云应用进行登录。The device identification information and/or account information is sent to the cloud platform of the first target cloud application to log in to the first target cloud application.
此处,信息查询请求用于请求服务端返回智能设备的设备标识信息和/或智能设备的账号信息。进一步地,该信息查询请求指示有智能设备。Here, the information query request is used to request the server to return the device identification information of the smart device and/or the account information of the smart device. Further, the information query request indicates that there is a smart device.
具体地,在第一目标云应用启动(打开)时,会进行鉴权,基于此,发送信息查询请求至服务端。Specifically, when the first target cloud application is started (opened), authentication is performed, based on which an information query request is sent to the server.
此处,设备标识信息可以包括但不限于以下至少一种:SN、MAC地址、设备型号、设备厂商信息等等。账号信息为智能设备对应的用户的用户信息。Here, the device identification information may include but is not limited to at least one of the following: SN, MAC address, device model, device manufacturer information, etc. The account information is the user information of the user corresponding to the smart device.
应理解,设备标识信息和账号信息均可以用于登录第一目标云应用,以进行权益查询以及账号绑定,从而实现用户的账号统一,云应用实现免登录(即开即用),并且可以查询上次使用时的一些个人数据(例如收藏信息、播放记录、权益信息、应用个性化设置信息以及账号权益有效期等等)。It should be understood that both the device identification information and the account information can be used to log in to the first target cloud application to perform rights and interests query and account binding, thereby realizing the unification of user accounts, and the cloud application can be login-free (ready-to-use), and some personal data from the last use can be queried (such as collection information, playback records, rights and interests information, application personalization settings information, and account rights and interests validity period, etc.).
进一步地,在将设备标识信息和/或账号信息发送至第一目标云应用的云平台之后,接收该云平台返回的个人数据。再进一步地,可以将个人数据发送至服务端,以供服务端将个人数据转发至智能设备。Further, after sending the device identification information and/or account information to the cloud platform of the first target cloud application, the personal data returned by the cloud platform is received. Still further, the personal data can be sent to the server so that the server forwards the personal data to the smart device.
本发明实施例提供的基于智能设备的云应用交互方法,通过上述方式,可以实现云应用的免登录,即不需要用户去登录第一目标云应用,而是由上述交互方式实现登录,进而提高用户体验感。且通过上述方式,可以进行账号绑定,进而可以查询个人数据,确保云应用和本地应用的体验一致性,进而提高用户体验感。The cloud application interaction method based on smart devices provided by the embodiment of the present invention can realize the cloud application login-free through the above method, that is, the user does not need to log in to the first target cloud application, but logs in through the above interaction method, thereby improving the user experience. And through the above method, account binding can be performed, and personal data can be queried, ensuring the consistency of experience between cloud applications and local applications, thereby improving the user experience.
基于上述任一实施例,在上述步骤330之后,该方法还包括:Based on any of the above embodiments, after the above step 330, the method further includes:
接收服务端发送的对第一目标云应用进行操控的操控意图,操控意图是由服务端对智能设备发送的语音数据进行意图识别得到的;receiving a control intention for controlling the first target cloud application sent by the server, where the control intention is obtained by the server performing intent recognition on the voice data sent by the smart device;
基于操控意图对第一目标云应用进行操控,获得第二响应数据;Manipulate the first target cloud application based on the manipulation intention to obtain second response data;
将第二响应数据发送至服务端,以供服务端将第二响应数据转发至智能设备。The second response data is sent to the server, so that the server forwards the second response data to the smart device.
在一实施例中,该第二响应数据通过webRTC协议传递给服务端,以降低数据传输时延,确保第一目标云应用的实时同步显示,进而提高用户体验感。In one embodiment, the second response data is transmitted to the server via the webRTC protocol to reduce data transmission delay, ensure real-time synchronous display of the first target cloud application, and thus improve user experience.
在一实施例中,该第二响应数据为预设格式的数据,即第一目标虚拟机将第二响应数据进行处理得到预设格式的交互数据。示例性的,第一目标虚拟机将第一目标云应用的应用页面信息压缩成h256格式音视频流传输至服务端。In one embodiment, the second response data is data in a preset format, that is, the first target virtual machine processes the second response data to obtain interactive data in a preset format. Exemplarily, the first target virtual machine compresses the application page information of the first target cloud application into an h256 format audio and video stream and transmits it to the server.
在一具体实施例中,该第二响应数据包括音频数据和/或视频数据和/或文本数据和/或控制信息(如详情页播放、快进、暂停、上/下集等等),以确保云应用和本地应用体验一致性。In a specific embodiment, the second response data includes audio data and/or video data and/or text data and/or control information (such as detail page play, fast forward, pause, previous/next episode, etc.) to ensure consistency in experience between the cloud application and the local application.
本发明实施例提供的基于智能设备的云应用交互方法,通过上述方式,从而可以在智能设备上通过语音操控的方式操控云应用,进而提高用户体验感,且可以在云应用服务节点上对第一目标云应用进行操控,进而确保在智能设备上对第一目标云应用进行的操控也可以在第一目标虚拟机上执行,从而确保云应用和本地应用的体验一致性,进而提高用户体验感;此外,将第二响应数据发送至服务端,以供服务端将第二响应数据转发至智能设备,从而确保第一目标云应用在第一目标虚拟机上所呈现的响应数据与在智能设备上所呈现的响应数据一致,进而确保云应用和本地应用的体验一致性,进而提高用户体验感。The cloud application interaction method based on smart devices provided in an embodiment of the present invention can control the cloud application through voice control on the smart device through the above-mentioned method, thereby improving the user experience, and can control the first target cloud application on the cloud application service node, thereby ensuring that the control of the first target cloud application on the smart device can also be executed on the first target virtual machine, thereby ensuring the experience consistency of the cloud application and the local application, thereby improving the user experience; in addition, the second response data is sent to the server so that the server forwards the second response data to the smart device, thereby ensuring that the response data presented by the first target cloud application on the first target virtual machine is consistent with the response data presented on the smart device, thereby ensuring the experience consistency of the cloud application and the local application, thereby improving the user experience.
基于上述任一实施例,在接收服务端发送的对第一目标云应用进行操控的操控意图之前,该方法还包括:Based on any of the above embodiments, before receiving the control intention sent by the server to control the first target cloud application, the method further includes:
接收服务端发送的页面信息获取请求;Receive the page information acquisition request sent by the server;
响应页面信息获取请求,获得第一目标云应用的当前页面对应的若干个可操控信息;In response to the page information acquisition request, obtain a number of controllable information corresponding to the current page of the first target cloud application;
封装若干个可操控信息得到页面信息,将页面信息发送至服务端。Encapsulate several controllable information to obtain page information, and send the page information to the server.
在一实施例中,若干个可操控信息为可以语音操控的页面信息。示例性的,可操控信息为预定义指令,如播放、页面跳转等等。In one embodiment, the plurality of controllable information is page information that can be controlled by voice. Exemplarily, the controllable information is predefined instructions, such as play, page jump, etc.
例如,对第一目标云应用的当前页面可以控制的数据进行组装,得到页面信息,完成组装后则发送给服务端。进一步地,该页面信息为JSON格式的数据。For example, the data that can be controlled by the current page of the first target cloud application is assembled to obtain page information, which is then sent to the server after assembly is completed. Further, the page information is data in JSON format.
本发明实施例提供的基于智能设备的云应用交互方法,通过上述方式,将页面信息发送至服务端,可以提高服务端进行意图识别的准确性,进而提高语音操控的准确性,最终提高用户体验感。The cloud application interaction method based on smart devices provided in an embodiment of the present invention sends page information to the server in the above manner, which can improve the accuracy of intent recognition by the server, thereby improving the accuracy of voice control and ultimately improving the user experience.
基于上述任一实施例,本发明还提供一种基于智能设备的云应用交互方法,该方法应用于云应用中心节点。图4为本发明提供的基于智能设备的云应用交互方法的流程示意图之四,如图4所示,该应用于云应用中心节点的基于智能设备的云应用交互方法包括:Based on any of the above embodiments, the present invention further provides a cloud application interaction method based on smart devices, which is applied to a cloud application center node. FIG4 is a fourth flow chart of a cloud application interaction method based on smart devices provided by the present invention. As shown in FIG4 , the cloud application interaction method based on smart devices applied to a cloud application center node includes:
步骤410,接收服务端发送的第一目标云应用的云应用信息和智能设备的设备信息。Step 410: Receive cloud application information of the first target cloud application and device information of the smart device sent by the server.
此处,云应用中心节点(云应用服务中心)用于分配启动云应用的云应用服务节点,一个云应用中心节点对应多个云应用服务节点,即该云应用中心节点为多个云应用服务节点的调控中心。Here, the cloud application center node (cloud application service center) is used to allocate cloud application service nodes for starting cloud applications. One cloud application center node corresponds to multiple cloud application service nodes, that is, the cloud application center node is the control center of multiple cloud application service nodes.
步骤420,基于设备信息,分配启动第一目标云应用的第一云应用服务节点。Step 420: Based on the device information, allocate and start a first cloud application service node for the first target cloud application.
此处,设备信息用于表征智能设备的配置信息,从而基于该设备信息可以确定其需求,进而确定满足其需求的云应用服务节点,进而基于该设备信息可以分配启动第一目标云应用的第一云应用服务节点。该设备信息可以包括但不限于以下至少一项:外网IP地址、带宽、显示屏的分辨率、是否支持软解和是否支持硬解等等。Here, the device information is used to characterize the configuration information of the smart device, so that its needs can be determined based on the device information, and then the cloud application service node that meets its needs can be determined, and then the first cloud application service node for starting the first target cloud application can be allocated based on the device information. The device information may include but is not limited to at least one of the following: external network IP address, bandwidth, display resolution, whether soft decoding is supported, whether hard decoding is supported, etc.
步骤430,将第一目标云应用的云应用信息发送至第一云应用服务节点,以供第一云应用服务节点基于第一目标云应用的云应用信息分配启动第一目标云应用的第一目标虚拟机。Step 430: Send the cloud application information of the first target cloud application to the first cloud application service node, so that the first cloud application service node can allocate and start the first target virtual machine of the first target cloud application based on the cloud application information of the first target cloud application.
此处,云应用信息用于表征云应用的配置需求信息,从而基于该云应用信息可以确定云应用的需求,进而确定满足其需求的虚拟机,进而基于该云应用信息可以分配启动第一目标云应用的第一目标虚拟机。该云应用信息可以包括但不限于以下至少一项:云应用所需的运行内存(RAM)、云应用对应的包体积(即云应用所需的存储空间ROM)、云应用所需的CPU配置(例如CPU核心数)、云应用所需的带宽,以及云应用所需的其它运行配置等等。例如,该云应用对应的包体积可以为APK的体积。Here, the cloud application information is used to characterize the configuration requirement information of the cloud application, so that the requirements of the cloud application can be determined based on the cloud application information, and then the virtual machine that meets the requirements can be determined, and then the first target virtual machine for starting the first target cloud application can be allocated based on the cloud application information. The cloud application information may include but is not limited to at least one of the following: the running memory (RAM) required by the cloud application, the package volume corresponding to the cloud application (i.e., the storage space ROM required by the cloud application), the CPU configuration required by the cloud application (such as the number of CPU cores), the bandwidth required by the cloud application, and other running configurations required by the cloud application, etc. For example, the package volume corresponding to the cloud application can be the volume of the APK.
本发明实施例提供的基于智能设备的云应用交互方法,接收服务端发送的第一目标云应用的云应用信息和智能设备的设备信息,以基于设备信息,分配启动第一目标云应用的第一云应用服务节点,并将第一目标云应用的云应用信息发送至第一云应用服务节点,以供第一云应用服务节点基于第一目标云应用的云应用信息分配启动第一目标云应用的第一目标虚拟机,从而可以在第一云应用服务节点上安装和启动第一目标云应用,无需在智能设备上安装第一目标云应用,进而确保智能设备上可使用的应用数量不受限制,且确保可使用的应用大小也不受限制,进而确保智能设备的智能化实现不受限制;同时,基于设备信息合理分配启动第一目标云应用的第一云应用服务节点,且基于云应用信息合理分配启动第一目标云应用的第一目标虚拟机,确保第一目标云应用的正常启动和运行,进而确保智能设备可以正常使用第一目标云应用;此外,服务端可以接收第一云应用服务节点返回的交互数据,将交互数据发送至智能设备,且该交互数据为第一目标云应用在启动时所需呈现给用户的数据,从而确保第一目标云应用在第一目标虚拟机上所呈现的交互数据与在智能设备上所呈现的交互数据一致,进而确保云应用和本地应用的体验一致性,进而提高用户体验感。The cloud application interaction method based on smart devices provided in the embodiment of the present invention receives cloud application information of a first target cloud application and device information of a smart device sent by a server, allocates a first cloud application service node for starting the first target cloud application based on the device information, and sends the cloud application information of the first target cloud application to the first cloud application service node, so that the first cloud application service node allocates a first target virtual machine for starting the first target cloud application based on the cloud application information of the first target cloud application, so that the first target cloud application can be installed and started on the first cloud application service node without installing the first target cloud application on the smart device, thereby ensuring that the number of applications that can be used on the smart device is not limited, and ensuring that the size of the applications that can be used is also not limited, thereby ensuring that the smart device The energy-saving implementation is not restricted; at the same time, the first cloud application service node for starting the first target cloud application is reasonably allocated based on the device information, and the first target virtual machine for starting the first target cloud application is reasonably allocated based on the cloud application information, ensuring the normal startup and operation of the first target cloud application, thereby ensuring that the smart device can use the first target cloud application normally; in addition, the server can receive the interaction data returned by the first cloud application service node, and send the interaction data to the smart device, and the interaction data is the data that the first target cloud application needs to present to the user when it is started, thereby ensuring that the interaction data presented by the first target cloud application on the first target virtual machine is consistent with the interaction data presented on the smart device, thereby ensuring the experience consistency of the cloud application and the local application, thereby improving the user experience.
下面对本发明提供的基于智能设备的云应用交互系统进行描述,下文描述的基于智能设备的云应用交互系统与上文描述的基于智能设备的云应用交互方法可相互对应参照。The cloud application interaction system based on smart devices provided by the present invention is described below. The cloud application interaction system based on smart devices described below and the cloud application interaction method based on smart devices described above can be referenced to each other.
图5为本发明提供的基于智能设备的云应用交互系统的结构示意图,如图5所示,该基于智能设备的云应用交互系统,包括:智能设备、服务端、云应用服务节点和云应用中心节点。FIG5 is a schematic diagram of the structure of the cloud application interaction system based on smart devices provided by the present invention. As shown in FIG5 , the cloud application interaction system based on smart devices includes: smart devices, a server, a cloud application service node and a cloud application center node.
其中,智能设备、服务端、云应用服务节点和云应用中心节点之间可以通过互联网进行通信连接。Among them, smart devices, servers, cloud application service nodes and cloud application center nodes can communicate and connect through the Internet.
示例性的,智能设备通过网络与服务端进行通讯,以传递语音流、接收技能信息以及TTS(Text To Speech,文本到语音)音频流。服务端和云应用服务节点通过网络进行通讯,以传递与云应用有关的信息。云应用中心节点和云应用服务节点通过网络进行通讯。云应用服务节点与服务端通过网络进行通讯。Exemplarily, the smart device communicates with the server through the network to transmit voice streams, receive skill information and TTS (Text To Speech) audio streams. The server and the cloud application service node communicate through the network to transmit information related to the cloud application. The cloud application center node and the cloud application service node communicate through the network. The cloud application service node communicates with the server through the network.
为便于理解以上各实施例,此处以一具体实施例进行说明。如图6所示,启动云应用的交互步骤包括:To facilitate understanding of the above embodiments, a specific embodiment is used for illustration. As shown in FIG6 , the interactive steps for starting a cloud application include:
S101,智能设备将云应用启动请求发送至服务端。具体地,智能设备接收云应用启动指令,基于云应用启动指令确定待启动的第一目标云应用,并生成用于启动第一目标云应用的云应用启动请求;将云应用启动请求发送至服务端,以供服务端基于云应用启动请求获取第一目标云应用的云应用信息和智能设备的设备信息;S101, the smart device sends a cloud application startup request to the server. Specifically, the smart device receives a cloud application startup instruction, determines a first target cloud application to be started based on the cloud application startup instruction, and generates a cloud application startup request for starting the first target cloud application; sends the cloud application startup request to the server, so that the server obtains cloud application information of the first target cloud application and device information of the smart device based on the cloud application startup request;
S102,服务端将设备信息和云应用信息发送至云应用中心节点。具体地,服务端接收智能设备发送的用于启动第一目标云应用的云应用启动请求;基于云应用启动请求,获取第一目标云应用的云应用信息和智能设备的设备信息;将设备信息和第一目标云应用的云应用信息发送至云应用中心节点,以供云应用中心节点基于设备信息分配启动第一目标云应用的云应用服务节点;S102, the server sends the device information and cloud application information to the cloud application center node. Specifically, the server receives a cloud application startup request sent by the smart device for starting the first target cloud application; based on the cloud application startup request, obtains the cloud application information of the first target cloud application and the device information of the smart device; sends the device information and the cloud application information of the first target cloud application to the cloud application center node, so that the cloud application center node allocates a cloud application service node for starting the first target cloud application based on the device information;
S103,云应用中心节点将云应用信息发送至云应用服务节点。具体地,云应用中心节点接收服务端发送的第一目标云应用的云应用信息和智能设备的设备信息;基于设备信息,分配启动第一目标云应用的第一云应用服务节点;将第一目标云应用的云应用信息发送至第一云应用服务节点,以供第一云应用服务节点基于第一目标云应用的云应用信息分配启动第一目标云应用的第一目标虚拟机;S103, the cloud application center node sends the cloud application information to the cloud application service node. Specifically, the cloud application center node receives the cloud application information of the first target cloud application and the device information of the smart device sent by the server; based on the device information, allocates and starts the first cloud application service node of the first target cloud application; sends the cloud application information of the first target cloud application to the first cloud application service node, so that the first cloud application service node allocates and starts the first target virtual machine of the first target cloud application based on the cloud application information of the first target cloud application;
S104,云应用服务节点返回交互数据至服务端。具体地,云应用服务节点接收云应用中心节点发送的第一目标云应用的云应用信息;基于第一目标云应用的云应用信息,分配启动第一目标云应用的第一目标虚拟机;获取第一目标云应用启动时所需呈现给用户的交互数据,将交互数据发送至服务端;S104, the cloud application service node returns the interaction data to the server. Specifically, the cloud application service node receives the cloud application information of the first target cloud application sent by the cloud application center node; based on the cloud application information of the first target cloud application, allocates a first target virtual machine to start the first target cloud application; obtains the interaction data required to be presented to the user when the first target cloud application is started, and sends the interaction data to the server;
S105,服务端返回交互数据至智能设备。具体地,服务端接收第一云应用服务节点返回的交互数据,将交互数据发送至智能设备,以供智能设备接收服务端响应于云应用启动请求所返回的交互数据,并输出交互数据。S105, the server returns the interaction data to the smart device. Specifically, the server receives the interaction data returned by the first cloud application service node, sends the interaction data to the smart device, so that the smart device receives the interaction data returned by the server in response to the cloud application startup request, and outputs the interaction data.
为便于理解以上各实施例,此处以一具体实施例进行说明。如图7(未示出启动云应用的交互步骤)所示,操控云应用的交互步骤包括:To facilitate understanding of the above embodiments, a specific embodiment is used for explanation. As shown in FIG. 7 (the interactive steps of starting the cloud application are not shown), the interactive steps of controlling the cloud application include:
S201,智能设备发送用户操控指令至服务端。具体地,智能设备获取用户操控指令;确定用户操控指令为对第二目标云应用进行操控的指令,将用户操控指令发送至服务端,以供服务端基于用户操控指令确定第二目标云应用是否已启动;S201, the smart device sends a user control instruction to the server. Specifically, the smart device obtains the user control instruction; determines that the user control instruction is an instruction to control the second target cloud application, and sends the user control instruction to the server, so that the server determines whether the second target cloud application has been started based on the user control instruction;
S202,服务端发送用户操控指令至云应用服务节点。具体地,服务端接收智能设备发送的用户操控指令,基于用户操控指令,确定待操控的第二目标云应用;确定第二目标云应用未启动,基于用户操控指令,获取第二目标云应用的云应用信息和智能设备的设备信息,将设备信息和第二目标云应用的云应用信息发送至云应用中心节点,将用户操控指令发送至云应用服务节点,将用户操控指令发送至启动第二目标云应用的云应用服务节点;确定第二目标云应用已启动,将用户操控指令发送至启动第二目标云应用的云应用服务节点;S202, the server sends the user control instruction to the cloud application service node. Specifically, the server receives the user control instruction sent by the smart device, and determines the second target cloud application to be controlled based on the user control instruction; determines that the second target cloud application is not started, obtains the cloud application information of the second target cloud application and the device information of the smart device based on the user control instruction, sends the device information and the cloud application information of the second target cloud application to the cloud application center node, sends the user control instruction to the cloud application service node, and sends the user control instruction to the cloud application service node that starts the second target cloud application; determines that the second target cloud application is started, and sends the user control instruction to the cloud application service node that starts the second target cloud application;
S203,云应用服务节点返回第一响应数据至服务端。具体地,云应用服务节点在第二目标云应用未启动的情况下,接收云应用中心节点发送的第二目标云应用的云应用信息,基于第二目标云应用的云应用信息,分配启动第二目标云应用的第二目标虚拟机,接收服务端发送的对第二目标云应用进行操控的用户操控指令;在第二目标云应用已启动的情况下,接收服务端发送的对第二目标云应用进行操控的用户操控指令;响应用户操控指令获得第一响应数据,将第一响应数据发送至服务端。S203, the cloud application service node returns the first response data to the server. Specifically, when the second target cloud application is not started, the cloud application service node receives the cloud application information of the second target cloud application sent by the cloud application center node, allocates a second target virtual machine to start the second target cloud application based on the cloud application information of the second target cloud application, receives the user control instruction sent by the server to control the second target cloud application; when the second target cloud application is started, receives the user control instruction sent by the server to control the second target cloud application; obtains the first response data in response to the user control instruction, and sends the first response data to the server.
S204,服务端返回第一响应数据至智能设备。具体地,服务端接收云应用服务节点响应于用户操控指令所返回的第一响应数据,将第一响应数据发送至智能设备。S204, the server returns the first response data to the smart device. Specifically, the server receives the first response data returned by the cloud application service node in response to the user control instruction, and sends the first response data to the smart device.
为便于理解以上各实施例,此处以一具体实施例进行说明。如图8所示,语音操控云应用的交互步骤包括:To facilitate understanding of the above embodiments, a specific embodiment is used for illustration. As shown in FIG8 , the interaction steps of voice-controlled cloud applications include:
S301,智能设备发送语音数据至服务端。具体地,智能设备采集对第一目标云应用进行操控的语音数据;将语音数据发送至服务端;S301, the smart device sends voice data to the server. Specifically, the smart device collects voice data for controlling the first target cloud application and sends the voice data to the server;
S302,服务端发送页面信息获取请求至云应用服务节点。具体地,服务端接收智能设备发送的语音数据,发送页面信息获取请求至云应用服务节点;S302, the server sends a page information acquisition request to the cloud application service node. Specifically, the server receives the voice data sent by the smart device and sends a page information acquisition request to the cloud application service node;
S303,云应用服务节点返回页面信息至服务端。具体地,云应用服务节点接收服务端发送的页面信息获取请求;响应页面信息获取请求,获得第一目标云应用的当前页面对应的若干个可操控信息;封装若干个可操控信息得到页面信息,将页面信息发送至服务端;S303, the cloud application service node returns the page information to the server. Specifically, the cloud application service node receives the page information acquisition request sent by the server; responds to the page information acquisition request, obtains a number of controllable information corresponding to the current page of the first target cloud application; encapsulates the several controllable information to obtain the page information, and sends the page information to the server;
S304,服务端发送操控意图至云应用服务节点。具体地,服务端接收第一云应用服务节点响应于页面信息获取请求所返回的页面信息;获取页面信息对应的热词集合;对语音数据进行语音识别,得到文本数据;基于热词集合,对文本数据进行纠正处理;对纠正处理后的文本数据进行意图识别,得到对第一目标云应用进行操控的操控意图;将操控意图发送至云应用服务节点;S304, the server sends the manipulation intention to the cloud application service node. Specifically, the server receives the page information returned by the first cloud application service node in response to the page information acquisition request; obtains the hot word set corresponding to the page information; performs speech recognition on the speech data to obtain text data; performs correction processing on the text data based on the hot word set; performs intent recognition on the corrected text data to obtain the manipulation intention of manipulating the first target cloud application; and sends the manipulation intention to the cloud application service node;
S305,云应用服务节点返回第二响应数据至服务端。具体地,云应用服务节点接收服务端发送的对第一目标云应用进行操控的操控意图;基于操控意图对第一目标云应用进行操控,获得第二响应数据;将第二响应数据发送至服务端;S305, the cloud application service node returns the second response data to the server. Specifically, the cloud application service node receives the control intention sent by the server to control the first target cloud application; controls the first target cloud application based on the control intention, obtains the second response data; and sends the second response data to the server;
S306,服务端返回第二响应数据至智能设备。具体地,服务端接收云应用服务节点响应于操控意图所返回的第二响应数据,将第二响应数据发送至智能设备。S306, the server returns the second response data to the smart device. Specifically, the server receives the second response data returned by the cloud application service node in response to the manipulation intention, and sends the second response data to the smart device.
为便于理解以上各实施例,此处以一具体实施例进行说明。如图9所示,登录云应用的交互步骤包括:To facilitate understanding of the above embodiments, a specific embodiment is used for illustration. As shown in FIG9 , the interactive steps for logging into a cloud application include:
S401,云应用服务节点发送信息查询请求至服务端;S401, the cloud application service node sends an information query request to the server;
S402,服务端返回设备标识信息和/或账号信息至云应用服务节点。具体地,服务端接收第一云应用服务节点发送的信息查询请求;基于信息查询请求,获取智能设备的设备标识信息和/或智能设备的账号信息;将设备标识信息和/或账号信息发送至第一云应用服务节点;S402, the server returns the device identification information and/or account information to the cloud application service node. Specifically, the server receives the information query request sent by the first cloud application service node; based on the information query request, obtains the device identification information and/or account information of the smart device; sends the device identification information and/or account information to the first cloud application service node;
S403,云应用服务节点发送设备标识信息和/或账号信息至云平台。具体地,云应用服务节点接收服务端发送的设备标识信息和/或账号信息;将设备标识信息和/或账号信息发送至第一目标云应用的云平台,以对第一目标云应用进行登录。S403, the cloud application service node sends the device identification information and/or account information to the cloud platform. Specifically, the cloud application service node receives the device identification information and/or account information sent by the server; and sends the device identification information and/or account information to the cloud platform of the first target cloud application to log in to the first target cloud application.
基于上述各实施例,本发明可以降低智能设备的硬件成本,提高智能设备的应用丰富度以及可玩性,增加用户的使用粘性。Based on the above embodiments, the present invention can reduce the hardware cost of smart devices, improve the application richness and playability of smart devices, and increase user stickiness.
下面对本发明提供的基于智能设备的云应用交互装置进行描述,下文描述的基于智能设备的云应用交互装置与上文描述的基于智能设备的云应用交互方法可相互对应参照。The cloud application interaction device based on a smart device provided by the present invention is described below. The cloud application interaction device based on a smart device described below and the cloud application interaction method based on a smart device described above can be referenced to each other.
图10为本发明提供的基于智能设备的云应用交互装置的结构示意图之一,如图10所示,该部署于智能设备的基于智能设备的云应用交互装置,包括:FIG. 10 is one of the structural schematic diagrams of the cloud application interaction device based on the smart device provided by the present invention. As shown in FIG. 10 , the cloud application interaction device based on the smart device deployed on the smart device includes:
第一接收模块1010,用于接收云应用启动指令,基于云应用启动指令确定待启动的第一目标云应用,并生成用于启动第一目标云应用的云应用启动请求;The first receiving module 1010 is used to receive a cloud application startup instruction, determine a first target cloud application to be started based on the cloud application startup instruction, and generate a cloud application startup request for starting the first target cloud application;
第一发送模块1020,用于将云应用启动请求发送至服务端,以供服务端基于云应用启动请求获取第一目标云应用的云应用信息和智能设备的设备信息,设备信息用于分配启动第一目标云应用的第一云应用服务节点,云应用信息用于分配启动第一目标云应用的第一目标虚拟机;The first sending module 1020 is used to send a cloud application startup request to the server, so that the server can obtain cloud application information of the first target cloud application and device information of the smart device based on the cloud application startup request, the device information is used to allocate a first cloud application service node for starting the first target cloud application, and the cloud application information is used to allocate a first target virtual machine for starting the first target cloud application;
第二接收模块1030,用于接收服务端响应于云应用启动请求所返回的交互数据,并输出交互数据,交互数据为第一目标云应用在启动时所需呈现给用户的数据。The second receiving module 1030 is used to receive the interaction data returned by the server in response to the cloud application startup request, and output the interaction data, where the interaction data is the data that the first target cloud application needs to present to the user when it is started.
图11为本发明提供的基于智能设备的云应用交互装置的结构示意图之二,如图11所示,该部署于服务端的基于智能设备的云应用交互装置,包括:FIG. 11 is a second structural diagram of the cloud application interaction device based on smart devices provided by the present invention. As shown in FIG. 11 , the cloud application interaction device based on smart devices deployed on the server side includes:
第三接收模块1110,用于接收智能设备发送的用于启动第一目标云应用的云应用启动请求;The third receiving module 1110 is used to receive a cloud application startup request sent by a smart device to start a first target cloud application;
第一获取模块1120,用于基于云应用启动请求,获取第一目标云应用的云应用信息和智能设备的设备信息;A first acquisition module 1120 is used to acquire cloud application information of a first target cloud application and device information of a smart device based on a cloud application startup request;
第二发送模块1130,用于将设备信息和第一目标云应用的云应用信息发送至云应用中心节点,以供云应用中心节点基于设备信息分配启动第一目标云应用的第一云应用服务节点,并将第一目标云应用的云应用信息发送至第一云应用服务节点,第一目标云应用的云应用信息用于分配启动第一目标云应用的第一目标虚拟机;The second sending module 1130 is used to send the device information and the cloud application information of the first target cloud application to the cloud application center node, so that the cloud application center node allocates and starts the first cloud application service node of the first target cloud application based on the device information, and sends the cloud application information of the first target cloud application to the first cloud application service node, and the cloud application information of the first target cloud application is used to allocate and start the first target virtual machine of the first target cloud application;
第四接收模块1140,用于接收第一云应用服务节点返回的交互数据,将交互数据发送至智能设备,交互数据为第一目标云应用在启动时所需呈现给用户的数据。The fourth receiving module 1140 is used to receive the interaction data returned by the first cloud application service node, and send the interaction data to the smart device. The interaction data is the data that the first target cloud application needs to present to the user when starting.
图12为本发明提供的基于智能设备的云应用交互装置的结构示意图之三,如图12所示,该部署于云应用服务节点的基于智能设备的云应用交互装置,包括:FIG. 12 is a third structural schematic diagram of the cloud application interaction device based on smart devices provided by the present invention. As shown in FIG. 12 , the cloud application interaction device based on smart devices deployed in the cloud application service node includes:
第五接收模块1210,用于接收云应用中心节点发送的第一目标云应用的云应用信息;The fifth receiving module 1210 is used to receive the cloud application information of the first target cloud application sent by the cloud application center node;
第一分配模块1220,用于基于第一目标云应用的云应用信息,分配启动第一目标云应用的第一目标虚拟机;The first allocation module 1220 is used to allocate and start a first target virtual machine of the first target cloud application based on the cloud application information of the first target cloud application;
第二获取模块1230,用于获取第一目标云应用启动时所需呈现给用户的交互数据,将交互数据发送至服务端,以供服务端将交互数据转发至智能设备。The second acquisition module 1230 is used to acquire the interaction data that needs to be presented to the user when the first target cloud application is started, and send the interaction data to the server so that the server forwards the interaction data to the smart device.
图13为本发明提供的基于智能设备的云应用交互装置的结构示意图之四,如图13所示,该部署于云应用中心节点的基于智能设备的云应用交互装置,包括:FIG. 13 is a fourth structural diagram of the cloud application interaction device based on smart devices provided by the present invention. As shown in FIG. 13 , the cloud application interaction device based on smart devices deployed in the cloud application center node includes:
第六接收模块1310,用于接收服务端发送的第一目标云应用的云应用信息和智能设备的设备信息;The sixth receiving module 1310 is used to receive the cloud application information of the first target cloud application and the device information of the smart device sent by the server;
第二分配模块1320,用于基于设备信息,分配启动第一目标云应用的第一云应用服务节点;The second allocation module 1320 is used to allocate a first cloud application service node for starting a first target cloud application based on the device information;
第三发送模块1330,用于将第一目标云应用的云应用信息发送至第一云应用服务节点,以供第一云应用服务节点基于第一目标云应用的云应用信息分配启动第一目标云应用的第一目标虚拟机。The third sending module 1330 is used to send the cloud application information of the first target cloud application to the first cloud application service node, so that the first cloud application service node can allocate and start the first target virtual machine of the first target cloud application based on the cloud application information of the first target cloud application.
图14示例了一种电子设备的实体结构示意图,如图14所示,该电子设备可以包括:处理器(processor)1410、通信接口(Communications Interface)1420、存储器(memory)1430和通信总线1440,其中,处理器1410,通信接口1420,存储器1430通过通信总线1440完成相互间的通信。处理器1410可以调用存储器1430中的逻辑指令,以执行上述各实施例描述的基于智能设备的云应用交互方法。FIG14 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG14 , the electronic device may include: a processor 1410, a communication interface 1420, a memory 1430, and a communication bus 1440, wherein the processor 1410, the communication interface 1420, and the memory 1430 communicate with each other through the communication bus 1440. The processor 1410 may call the logic instructions in the memory 1430 to execute the cloud application interaction method based on the smart device described in the above embodiments.
此外,上述的存储器1430中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the logic instructions in the above-mentioned memory 1430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
又一方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各实施例的基于智能设备的云应用交互方法。On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the cloud application interaction method based on smart devices of the above-mentioned embodiments.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM/RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311672009.2A CN118796335A (en) | 2023-12-06 | 2023-12-06 | Cloud application interaction method, device, equipment and storage medium based on smart device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311672009.2A CN118796335A (en) | 2023-12-06 | 2023-12-06 | Cloud application interaction method, device, equipment and storage medium based on smart device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118796335A true CN118796335A (en) | 2024-10-18 |
Family
ID=93020599
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311672009.2A Pending CN118796335A (en) | 2023-12-06 | 2023-12-06 | Cloud application interaction method, device, equipment and storage medium based on smart device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118796335A (en) |
-
2023
- 2023-12-06 CN CN202311672009.2A patent/CN118796335A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9208786B2 (en) | Speech recognition using loosely coupled components | |
EP3084633B1 (en) | Attribute-based audio channel arbitration | |
WO2020221190A1 (en) | Applet state synchronization method, device and computer storage medium | |
CN109448709A (en) | A kind of terminal throws the control method and terminal of screen | |
CN107426432A (en) | Resource allocation method and Related product | |
CN108877804B (en) | Voice service method, system, electronic device and storage medium | |
WO2020062670A1 (en) | Method and apparatus for controlling electrical appliance, electrical appliance, and medium | |
WO2003083829A1 (en) | Controlling home entertainment systems using a natural language server | |
US20190034234A1 (en) | Method For Resource Allocation And Terminal Device | |
CN106911831A (en) | The data processing method and the terminal with microphone of a kind of microphone of terminal | |
JP7311707B2 (en) | Human-machine interaction processing method | |
CN110136713A (en) | User's dialogue method and system in multimodal interaction | |
WO2022017007A1 (en) | Audio data processing method, server, and storage medium | |
CN112468402A (en) | Voice control intelligent router | |
CN102427465A (en) | Voice service agent method and device and system for integrating voice application through agent | |
CN113568672B (en) | Cloud application startup method, device, electronic device and computer storage medium | |
CN114466230B (en) | Display equipment function expanding method and device, screen projector and storage medium | |
US11803606B2 (en) | Device augmentation of real time communications | |
CN118796335A (en) | Cloud application interaction method, device, equipment and storage medium based on smart device | |
CN113452853A (en) | Voice interaction method and device, electronic equipment and storage medium | |
CN111263100A (en) | Video call method, device, equipment and storage medium | |
CN104506896B (en) | The operation processing method and device of smart television | |
CN108989437B (en) | Plug-in calling method and device | |
CN116074688A (en) | Audio playing method, device and computer readable storage medium | |
CN111554291A (en) | Device control method, voice input terminal, voice platform and storage medium |
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 |