[go: up one dir, main page]

CN106341476B - Cloud device connection method and intelligent terminal - Google Patents

Cloud device connection method and intelligent terminal Download PDF

Info

Publication number
CN106341476B
CN106341476B CN201610818378.1A CN201610818378A CN106341476B CN 106341476 B CN106341476 B CN 106341476B CN 201610818378 A CN201610818378 A CN 201610818378A CN 106341476 B CN106341476 B CN 106341476B
Authority
CN
China
Prior art keywords
smart terminal
cloud
cloud device
mentioned
message
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.)
Expired - Fee Related
Application number
CN201610818378.1A
Other languages
Chinese (zh)
Other versions
CN106341476A (en
Inventor
刘合东
李宗骏
唐荣政
张强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610818378.1A priority Critical patent/CN106341476B/en
Priority to CN201810255136.5A priority patent/CN108462753A/en
Publication of CN106341476A publication Critical patent/CN106341476A/en
Application granted granted Critical
Publication of CN106341476B publication Critical patent/CN106341476B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a cloud device connection method and an intelligent terminal, wherein the cloud device connection method comprises the following steps: detecting whether the intelligent terminal is in a receiving preparation state of a specified message; if the intelligent terminal is detected to be in a receiving preparation state of the specified message, the following steps are carried out: determining cloud equipment which can be currently connected with the intelligent terminal, wherein the cloud equipment has a function of providing services related to the specified message to the intelligent terminal; traversing all the determined cloud end devices which can be currently connected with the intelligent terminal, and determining an optimal cloud end device from all the cloud end devices; and triggering the intelligent terminal to connect with the optimal cloud equipment so as to provide services related to the specified message for the intelligent terminal through the optimal cloud equipment. According to the technical scheme provided by the invention, the interaction rate of the intelligent terminal and the cloud equipment can be effectively improved.

Description

云端设备连接方法和智能终端Cloud device connection method and intelligent terminal

技术领域technical field

本发明涉及通信技术领域,具体涉及一种云端设备连接方法和智能终端。The invention relates to the field of communication technology, in particular to a cloud device connection method and an intelligent terminal.

背景技术Background technique

随着网络技术的普及和智能终端技术的发展,智能终端和网络已逐渐成为人们生活不可分割的一部分。With the popularization of network technology and the development of smart terminal technology, smart terminals and networks have gradually become an inseparable part of people's lives.

用户可通过智能终端与云端设备(例如服务器)进行网络交互,获得各种各样的资讯和服务,这也使得智能终端与云端设备之间通过网络实现的交互活动越来越频繁。然而,由于各个智能终端所处的网络状态、软硬件结构等的差异,即使多个智能终端同时与同一云端设备交互,各个智能终端与同一云端设备实际的交互速率也可能有所不同。对于用户而言,必然是希望智能终端能够更快地与云端设备交互,因此,如何提升智能终端与云端设备的交互速率成为业内一直探讨和关注的热点问题。Users can interact with cloud devices (such as servers) through the network through smart terminals to obtain various information and services, which also makes the interactive activities between smart terminals and cloud devices through the network more and more frequent. However, due to the differences in the network status, software and hardware structure of each smart terminal, even if multiple smart terminals interact with the same cloud device at the same time, the actual interaction rate between each smart terminal and the same cloud device may also be different. For users, it is inevitable that smart terminals can interact with cloud devices faster. Therefore, how to improve the interaction speed between smart terminals and cloud devices has become a hot issue that has been discussed and concerned in the industry.

发明内容Contents of the invention

有鉴于此,本发明实施例提供一种云端设备连接方法和智能终端,用于提升智能终端与云端设备的交互速率。In view of this, embodiments of the present invention provide a cloud device connection method and a smart terminal, which are used to increase the interaction rate between the smart terminal and the cloud device.

本发明实施例第一方面提供云端设备连接方法,包括:The first aspect of the embodiment of the present invention provides a cloud device connection method, including:

检测智能终端是否处于指定消息的接收准备状态;Detect whether the smart terminal is ready to receive the specified message;

若检测到上述智能终端处于指定消息的接收准备状态,则:If it is detected that the above-mentioned intelligent terminal is in the state of receiving the specified message, then:

确定上述智能终端当前可连接的云端设备,其中,上述云端设备具备向上述智能终端提供与上述指定消息相关的服务的功能;Determine the cloud device currently connectable to the smart terminal, wherein the cloud device has the function of providing services related to the specified message to the smart terminal;

遍历确定出的上述智能终端当前可连接的所有云端设备,从上述所有云端设备中确定一最优云端设备;Traversing through all the cloud devices that are currently connected to the above-mentioned smart terminal, and determining an optimal cloud device from all the above-mentioned cloud devices;

触发上述智能终端连接上述最优云端设备,以便通过上述最优云端设备为上述智能终端提供与上述指定消息相关的服务。Triggering the smart terminal to connect to the optimal cloud device, so as to provide the smart terminal with services related to the specified message through the optimal cloud device.

基于本发明实施例第一方面,在第一种可能的实现方式中,上述确定上述智能终端当前可连接的云端设备,包括:Based on the first aspect of the embodiment of the present invention, in a first possible implementation manner, the above-mentioned determination of the cloud device that the above-mentioned smart terminal can currently connect to includes:

获取上述智能终端当前所处的地理位置信息;Obtain the current geographical location information of the above-mentioned smart terminal;

将位于上述智能终端当前所处的地理位置信息的预设范围内的所有云端设备确定为上述智能终端当前可连接的云端设备。All cloud devices located within the preset range of the geographic location information where the smart terminal is currently located are determined as cloud devices that the smart terminal can currently connect to.

基于本发明实施例第一方面,或者本发明第一方面的第一种可能的实现方式,在第二种可能的实现方式中,上述遍历确定出的上述智能终端当前可连接的所有云端设备,从上述所有云端设备中确定一最优云端设备,包括:Based on the first aspect of the embodiment of the present invention, or the first possible implementation of the first aspect of the present invention, in the second possible implementation, all cloud devices that are currently connected to the smart terminal determined by the above traversal, Determine an optimal cloud device from all the above cloud devices, including:

触发上述智能终端分别与上述所有云端设备中的各个云端设备进行数据传输,根据上述数据传输的状况检测上述各个云端设备的丢包率;Trigger the above-mentioned smart terminal to perform data transmission with each of the above-mentioned cloud devices respectively, and detect the packet loss rate of each of the above-mentioned cloud devices according to the status of the above-mentioned data transmission;

将上述丢包率最小的云端设备确定为最优云端设备。The cloud device with the smallest packet loss rate is determined as the optimal cloud device.

基于本发明实施例第一方面,或者本发明第一方面的第一种可能的实现方式,在第三种可能的实现方式中,上述遍历确定出的上述智能终端当前可连接的所有云端设备,从上述所有云端设备中确定一最优云端设备,包括:Based on the first aspect of the embodiment of the present invention, or the first possible implementation of the first aspect of the present invention, in the third possible implementation, all cloud devices that are currently connected to the smart terminal determined by the above traversal, Determine an optimal cloud device from all the above cloud devices, including:

触发上述智能终端同时向上述所有云端设备中的各个云端设备发送数据请求消息,以便上述各个云端设备在接收到上述数据请求消息后向上述智能终端反馈数据响应消息;triggering the above-mentioned smart terminal to send a data request message to each of the above-mentioned cloud devices at the same time, so that each of the above-mentioned cloud devices feeds back a data response message to the above-mentioned smart terminal after receiving the above-mentioned data request message;

将发送最先到达上述智能终端的数据响应消息的云端设备确定为最优云端设备。The cloud device that sends the data response message that first arrives at the smart terminal is determined as the optimal cloud device.

基于本发明实施例第一方面,或者本发明实施例第一方面的第一种可能的实现方式,在第四种可能的实现方式中,检测上述智能终端是否接收到通知消息,其中,上述通知消息用以通知上述智能终端有待接收的指定消息;Based on the first aspect of the embodiments of the present invention, or the first possible implementation of the first aspect of the embodiments of the present invention, in a fourth possible implementation, it is detected whether the smart terminal receives a notification message, wherein the notification The message is used to notify the above-mentioned intelligent terminal of the specified message to be received;

当检测到上述智能终端接收到上述通知消息时,确定上述智能终端处于指定消息的接收准备状态。When it is detected that the smart terminal has received the notification message, it is determined that the smart terminal is in a ready state for receiving a specified message.

本发明实施例第二方面提供一种智能终端,包括:The second aspect of the embodiment of the present invention provides an intelligent terminal, including:

检测单元,用于检测智能终端是否处于指定消息的接收准备状态;A detection unit, configured to detect whether the smart terminal is in a ready state for receiving a specified message;

第一确定单元,用于当上述检测单元检测到上述智能终端处于指定消息的接收准备状态时,确定上述智能终端当前可连接的云端设备,其中,上述云端设备具备向上述智能终端提供与上述指定消息相关的服务的功能;The first determination unit is configured to determine the cloud device currently connectable to the smart terminal when the detection unit detects that the smart terminal is in a state ready to receive a specified message, wherein the cloud device is capable of providing the smart terminal with the specified Functionality of message-related services;

第二确定单元,用于遍历上述第一确定单元确定出的上述智能终端当前可连接的所有云端设备,从上述所有云端设备中确定一最优云端设备;The second determining unit is configured to traverse all the cloud devices currently connectable to the above-mentioned smart terminal determined by the above-mentioned first determining unit, and determine an optimal cloud device from all the above-mentioned cloud devices;

触发单元,用于触发上述智能终端连接上述最优云端设备,以便通过上述最优云端设备为上述智能终端提供与上述指定消息相关的服务。The triggering unit is configured to trigger the smart terminal to connect to the optimal cloud device, so as to provide the smart terminal with services related to the specified message through the optimal cloud device.

基于本发明实施例第二方面,在第一种可能的实现方式中,上述第一确定单元包括:Based on the second aspect of the embodiments of the present invention, in a first possible implementation manner, the above-mentioned first determining unit includes:

获取单元,用于获取上述智能终端当前所处的地理位置信息;An acquisition unit, configured to acquire the current geographic location information of the above-mentioned smart terminal;

子确定单元,用于将位于上述智能终端当前所处的地理位置信息的预设范围内的所有云端设备确定为上述智能终端当前可连接的云端设备。The sub-determining unit is configured to determine all cloud devices located within the preset range of the geographic location information where the smart terminal is currently located as cloud devices that the smart terminal can currently connect to.

基于本发明实施例第二方面,或者本发明第二方面的第一种可能的实现方式,在第二种可能的实现方式中,上述第二确定单元具体用于:触发上述智能终端分别与上述所有云端设备中的各个云端设备进行数据传输,根据上述数据传输的状况检测上述各个云端设备的丢包率;将上述丢包率最小的云端设备确定为最优云端设备。Based on the second aspect of the embodiment of the present invention, or the first possible implementation of the second aspect of the present invention, in the second possible implementation, the above-mentioned second determination unit is specifically configured to: trigger the above-mentioned smart terminal to communicate with the above-mentioned Each of the cloud devices in all the cloud devices performs data transmission, and detects the packet loss rate of each of the above-mentioned cloud devices according to the status of the data transmission; and determines the cloud device with the smallest packet loss rate as the optimal cloud device.

基于本发明实施例第二方面,或者本发明第二方面的第一种可能的实现方式,在第三种可能的实现方式中,上述第二确定单元具体用于:触发上述智能终端同时向上述所有云端设备中的各个云端设备发送数据请求消息,以便上述各个云端设备在接收到上述数据请求消息后向上述智能终端反馈数据响应消息;将发送最先到达上述智能终端的数据响应消息的云端设备确定为最优云端设备。Based on the second aspect of the embodiment of the present invention, or the first possible implementation of the second aspect of the present invention, in a third possible implementation, the above-mentioned second determination unit is specifically configured to: trigger the above-mentioned smart terminal to send the above-mentioned Each cloud device in all cloud devices sends a data request message, so that each of the above-mentioned cloud devices feeds back a data response message to the above-mentioned smart terminal after receiving the above-mentioned data request message; the cloud device that will send the data response message that first reaches the above-mentioned smart terminal Determined as the best cloud device.

基于本发明实施例第二方面,或者本发明实施例第二方面的第一种可能的实现方式,在第四种可能的实现方式中,上述检测单元具体用于:检测上述智能终端是否接收到通知消息,其中,上述通知消息用以通知上述智能终端有待接收的指定消息;当检测到上述智能终端接收到上述通知消息时,确定上述智能终端处于指定消息的接收准备状态。Based on the second aspect of the embodiments of the present invention, or the first possible implementation of the second aspect of the embodiments of the present invention, in a fourth possible implementation, the detection unit is specifically configured to: detect whether the smart terminal has received A notification message, wherein the notification message is used to notify the smart terminal of a specified message to be received; when it is detected that the smart terminal has received the notification message, it is determined that the smart terminal is in a ready state for receiving the specified message.

本发明第三方面实施例提供一种智能终端,包括:The embodiment of the third aspect of the present invention provides an intelligent terminal, including:

处理器,用于检测智能终端是否处于指定消息的接收准备状态;A processor, configured to detect whether the smart terminal is in a ready state for receiving a specified message;

所述处理器还用于:若检测到所述智能终端处于指定消息的接收准备状态,则:确定所述智能终端当前可连接的云端设备,其中,所述云端设备具备向所述智能终端提供与所述指定消息相关的服务的功能;遍历确定出的所述智能终端当前可连接的所有云端设备,从所述所有云端设备中确定一最优云端设备;触发所述智能终端连接所述最优云端设备,以便通过所述最优云端设备为所述智能终端提供与所述指定消息相关的服务。The processor is further configured to: if it is detected that the smart terminal is in a ready state for receiving a specified message, then: determine a cloud device that the smart terminal can currently connect to, wherein the cloud device is capable of providing the smart terminal with The function of the service related to the specified message; traverse all the determined cloud devices that the smart terminal can currently connect to, and determine an optimal cloud device from all the cloud devices; trigger the smart terminal to connect to the most Optimizing the cloud device, so as to provide the smart terminal with services related to the specified message through the optimal cloud device.

由上可见,本发明实施例中在检测到智能终端处于指定消息的接收准备状态时,确定上述智能终端当前可连接的云端设备,通过遍历确定出的上述智能终端当前可连接的所有云端设备,从上述所有云端设备中确定一最优云端设备,并触发上述智能终端连接上述最优云端设备,使得上述智能终端能够通过上述最优云端设备获得与上述指定消息相关的服务,从而使得该智能终端能够更快地接收到上述指定消息,也即,提高了智能终端与云端设备的交互速率。It can be seen from the above that in the embodiment of the present invention, when it is detected that the smart terminal is in the state of receiving the specified message, the cloud device that the above-mentioned smart terminal can currently connect to is determined, and all the cloud devices that the above-mentioned smart terminal is currently connected to are determined by traversing, Determine an optimal cloud device from all the above-mentioned cloud devices, and trigger the above-mentioned smart terminal to connect to the above-mentioned optimal cloud device, so that the above-mentioned smart terminal can obtain services related to the above-mentioned specified message through the above-mentioned optimal cloud device, so that the smart terminal The above specified message can be received faster, that is, the interaction rate between the smart terminal and the cloud device is improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1-a为本发明提供的一种云端设备连接方法一个实施例流程示意图;Figure 1-a is a schematic flow chart of an embodiment of a cloud device connection method provided by the present invention;

图1-b为应用图1-a所示的云端设备连接方法的一种系统架构示意图;Figure 1-b is a schematic diagram of a system architecture applying the cloud device connection method shown in Figure 1-a;

图2为本发明提供的一种智能终端一个实施例结构示意图;FIG. 2 is a schematic structural diagram of an embodiment of an intelligent terminal provided by the present invention;

图3为本发明提供的一种智能终端另一个实施例结构示意图;FIG. 3 is a schematic structural diagram of another embodiment of an intelligent terminal provided by the present invention;

图4为本发明提供的一种智能终端再一个实施例结构示意图。Fig. 4 is a schematic structural diagram of another embodiment of an intelligent terminal provided by the present invention.

具体实施方式Detailed ways

为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而非全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本发明实施例提供一种云端设备连接方法,包括检测智能终端是否处于指定消息的接收准备状态;若检测到上述智能终端处于指定消息的接收准备状态,则:确定上述智能终端当前可连接的云端设备,其中,上述云端设备具备向上述智能终端提供与上述指定消息相关的服务的功能;遍历确定出的上述智能终端当前可连接的所有云端设备,从上述所有云端设备中确定一最优云端设备;触发上述智能终端连接上述最优云端设备,以便通过上述最优云端设备为上述智能终端提供与上述指定消息相关的服务。本发明实施例还提供相应的智能终端,以下分别进行详细说明。An embodiment of the present invention provides a method for connecting a cloud device, which includes detecting whether the smart terminal is in the ready state for receiving a specified message; device, wherein the above-mentioned cloud device has the function of providing the above-mentioned smart terminal with a service related to the above-mentioned specified message; traversing through all the cloud devices that the above-mentioned smart terminal can currently connect to, and determining an optimal cloud device from all the above-mentioned cloud devices ; triggering the smart terminal to connect to the optimal cloud device, so as to provide the smart terminal with services related to the specified message through the optimal cloud device. The embodiment of the present invention also provides a corresponding smart terminal, which will be described in detail below.

下面对本发明实施例提供的一种云端设备连接方法进行描述,请参阅图1-a,本发明实施例中的云端设备连接方法包括:A cloud device connection method provided by the embodiment of the present invention is described below. Please refer to FIG. 1-a. The cloud device connection method in the embodiment of the present invention includes:

101、检测智能终端是否处于指定消息的接收准备状态;101. Detecting whether the smart terminal is in a ready state for receiving a specified message;

本发明实施例中,指定消息特指某一种消息(例如电子红包或者其它被指定的消息),该指定消息自云端设备(例如服务器)。In the embodiment of the present invention, the specified message specifically refers to a certain type of message (such as an electronic red envelope or other specified messages), and the specified message comes from a cloud device (such as a server).

本发明实施例中,可通过如下几种方式检测智能终端是否处于指定消息的接收准备状态:In the embodiment of the present invention, the following methods can be used to detect whether the smart terminal is in the state of receiving the specified message:

(1)针对指定的应用程序设置网络交互的系统接口,上述指定消息通过该应用程序接收。在步骤101中,检测该应用程序是否处于开启状态,若是,则判定上述智能终端处于指定消息的接收准备状态,进入步骤102;若否,则判定上述智能终端未处于指定消息的接收准备状态,可立即、或者等待预设时长或者等待预设事件发生时返回步骤101。举例说明,设上述指定消息为电子红包,通过智能终端上已安装的某一第三方应用程序(为便于描述,后续将该第三方应用程序描述为程序A)可接收电子红包。在步骤101中,检测智能终端中的程序A是否处于开启状态,若是,则判定上述智能终端处于电子红包的接收准备状态,若否,则判定上述智能终端未处于电子红包的接收准备状态。当智能终端上可以接收上述指定消息的应用程序有多个时,在步骤101中,可以检测上述智能终端中能接收上述指定消息的多个应用程序中的任一应用程序是否处于开启状态,若检测到上述多个应用程序中的任一应用程序处于开启状态,则判定上述智能终端处于指定消息的接收准备状态,若检测到上述多个应用程序均未处于开启状态,则判定上述智能终端未处于指定消息的接收状态。以指定消息为电子红包为例进行说明,当上述智能终端中能够接收电子红包的第三方应用程序有多个时,例如除了程序A,还包括程序B和程序C。在步骤101中,检测智能终端中的程序A或程序B或程序C是否处于开启状态,若检测到程序A或程序B或程序C处于开启状态,则判定上述智能终端处于电子红包的接收准备状态,若检测到程序A、程序B以及程序C均未处于开启状态,则判定上述智能终端未处于电子红包的接收准备状态。(1) A system interface for network interaction is set for a designated application program, and the above-mentioned designated message is received through the application program. In step 101, it is detected whether the application program is in an open state, if so, then it is determined that the above-mentioned intelligent terminal is in the state of receiving the designated message, and enters step 102; if not, then it is determined that the above-mentioned intelligent terminal is not in the state of receiving the designated message, Return to step 101 immediately, or wait for a preset time period or wait for a preset event to occur. For example, assuming that the above-mentioned specified message is an electronic red envelope, the electronic red envelope can be received through a third-party application program installed on the smart terminal (for ease of description, the third-party application program will be described as program A later). In step 101, it is detected whether the program A in the smart terminal is in an open state, if so, it is determined that the smart terminal is in the ready state for receiving electronic red envelopes, if not, it is determined that the smart terminal is not in the ready state for receiving electronic red envelopes. When there are multiple application programs on the smart terminal that can receive the specified message, in step 101, it can be detected whether any application program in the multiple application programs that can receive the specified message in the above-mentioned smart terminal is in an open state, if It is detected that any of the above-mentioned multiple application programs is in the open state, then it is determined that the above-mentioned smart terminal is in the state of receiving the specified message, and if it is detected that none of the above-mentioned multiple application programs is in the open state, then it is determined that the above-mentioned smart terminal is not In receive state for the specified message. Taking the specified message as an electronic red envelope as an example for illustration, when there are multiple third-party application programs capable of receiving electronic red envelopes in the above-mentioned smart terminal, for example, program B and program C are also included in addition to program A. In step 101, it is detected whether the program A, program B or program C in the smart terminal is in the open state, and if it is detected that the program A, program B or program C is in the open state, then it is determined that the above-mentioned smart terminal is in the ready state for receiving electronic red envelopes , if it is detected that the program A, program B and program C are not in the open state, then it is determined that the above-mentioned smart terminal is not in the ready state for receiving the electronic red envelope.

(2)上述指定消息通过如下交互模式传输:当云端设备需要向智能终端发送上述指定消息之前,先向上述智能终端发送一通知消息,以通知上述智能终端有待接收的指定消息。当上述智能终端接收到该通知消息时,向上述云端设备发送用于请求获取上述指定消息的请求消息,上述云端设备接收到上述智能终端反馈的上述请求消息后,向上述智能终端发送上述指定消息。(2) The specified message is transmitted through the following interactive mode: before the cloud device needs to send the specified message to the smart terminal, it first sends a notification message to the smart terminal to notify the smart terminal of the specified message to be received. When the smart terminal receives the notification message, it sends a request message to the cloud device for requesting to obtain the specified message, and the cloud device sends the specified message to the smart terminal after receiving the request message fed back by the smart terminal .

由于在本应用场景中,云端设备在向智能终端发送上述指定消息之前,会先向上述智能终端下发通知消息,故在步骤101,可以通过检测上述智能终端是否接收到上述通知消息的方式检测上述智能终端是否处于指定消息的接收准备状态。即步骤101具体表现为:检测智能终端是否接收到通知消息,其中,上述通知消息用于通知有待下发的指定消息;当检测到上述智能终端接收到上述通知消息时,判定上述智能终端处于上述指定消息的接收准备状态,进入步骤102;当检测到上述智能终端未接收到上述通知消息时,判定上述智能终端未处于指定消息的接收准备状态,可立即、或者等待预设时长或者等待预设事件发生时返回步骤101。Since in this application scenario, the cloud device will first send a notification message to the above-mentioned smart terminal before sending the above-mentioned specified message to the smart terminal, so in step 101, it can be detected by detecting whether the above-mentioned smart terminal has received the above-mentioned notification message Whether the above-mentioned intelligent terminal is in the state of receiving the specified message. That is, step 101 is specifically expressed as: detecting whether the smart terminal has received a notification message, wherein the notification message is used to notify the specified message to be delivered; when it is detected that the smart terminal has received the notification message, it is determined that the smart terminal is in the above Specify the receiving preparation state of the message and enter step 102; when it is detected that the above-mentioned intelligent terminal has not received the above-mentioned notification message, it is determined that the above-mentioned intelligent terminal is not in the receiving preparation state of the specified message, and it can immediately, or wait for a preset period of time or wait for a preset Return to step 101 when an event occurs.

以指定消息为电子红包为例进行说明,设一用户(为便于区分,后续描述为用户1)已登录智能终端(为便于区分,后续描述为智能终端1)中的程序A,另一用户(为便于区分,后续描述为用户2)也已登录智能终端(为便于区分,后续描述为智能终端2)中的程序A,服务器C为程序A提供服务。当用户1使用程序A向用户2或用户2所在的用户群组派发电子红包时,服务器C向用户2登录的程序A发送通知消息,该通知消息用于通知有待下发的电子红包,用户2登录的程序A向服务器C返回用于请求获取电子红包的请求消息,服务器C接收到用户2登录的程序A返回的上述请求消息后,向用户2登录的程序A发送上述电子红包,上述电子红包在智能终端2的程序A的预设界面呈现。故在此应用场景中,当检测到智能终端2接收到上述通知消息时,可判定智能终端2处于电子红包的接收准备状态。Taking the specified message as an electronic red envelope as an example, suppose a user (for ease of distinction, subsequently described as user 1) has logged in to program A in the smart terminal (for ease of distinction, subsequently described as smart terminal 1), and another user ( For ease of distinction, it will be described later that user 2) has also logged in to program A in the smart terminal (for ease of distinction, it will be described later as smart terminal 2), and server C provides services for program A. When user 1 uses program A to distribute electronic red envelopes to user 2 or the user group in which user 2 belongs, server C sends a notification message to program A logged in by user 2. The notification message is used to notify the electronic red envelopes to be distributed, and user 2 The logged-in program A returns to the server C a request message for requesting to obtain the electronic red envelope. After receiving the above-mentioned request message returned by the program A logged in by the user 2, the server C sends the above-mentioned electronic red envelope to the program A logged in by the user 2. The above-mentioned electronic red envelope Presented on the preset interface of program A of the smart terminal 2. Therefore, in this application scenario, when it is detected that the smart terminal 2 has received the above-mentioned notification message, it can be determined that the smart terminal 2 is in a ready state for receiving the electronic red envelope.

需要说明的是,若步骤101采用上述方式(1)进行检测,则可以在上述智能终端上电启动之后,持续或者周期性或者在预设事件触发时执行步骤101;或者检测到该智能终端的当前用户的心率和/或脉搏在预设的阈值范围内时,触发步骤101的执行。若步骤101采用上述方式(2)进行检测,则可以在上述智能终端上电启动之后,持续或者周期性或者在预设事件触发时执行步骤101;或者当检测到该智能终端的当前用户的心率和/或脉搏在预设的阈值范围内时,触发步骤101的执行;或者,也可以在上述智能终端中的能够接收上述指定消息的应用程序启动之后,持续或者周期性或者在预设事件触发时执行步骤101;或者,也可以在上述智能终端中的能够接收上述指定消息的应用程序处于前台运行状态时,持续或者周期性或者在预设事件触发时执行步骤101。本发明实施例不对步骤101的触发方式进行限定。It should be noted that, if step 101 uses the above-mentioned method (1) for detection, step 101 may be performed continuously or periodically or when a preset event is triggered after the above-mentioned smart terminal is powered on; When the heart rate and/or pulse of the current user are within the preset threshold range, the execution of step 101 is triggered. If step 101 is detected in the above method (2), step 101 may be performed continuously or periodically or when a preset event is triggered after the smart terminal is powered on and started; or when the heart rate of the current user of the smart terminal is detected And/or when the pulse is within the preset threshold range, the execution of step 101 is triggered; or, after the application program in the above-mentioned smart terminal that can receive the above-mentioned specified message is started, it can be triggered continuously or periodically or at a preset event or execute step 101 continuously or periodically or when triggered by a preset event when the application in the above-mentioned smart terminal capable of receiving the above-mentioned specified message is running in the foreground. The embodiment of the present invention does not limit the triggering manner of step 101.

当然,除上述方式(1)和方式(2)之外,本发明实施例也可以采用其它方式检测智能终端是否处于指定消息的接收准备状态,例如,当上述智能终端发生应用程序切换时,判断将要切换到前台的应用程序是否为指定应用程序,若是,则判定上述智能终端处于指定消息的接收准备状态,若否,则判定上述智能终端未处于指定消息的接收准备状态。其中,上述指定应用程序为能够接收上述指定消息的应用程序。本发明实施例中不对步骤101的具体检测方式进行限定。Of course, in addition to the above method (1) and method (2), the embodiment of the present invention can also use other methods to detect whether the smart terminal is in the state of receiving the specified message. Whether the application program to be switched to the foreground is a specified application program, if so, then determine that the above-mentioned intelligent terminal is in the receiving ready state of the specified message, if not, then determine that the above-mentioned intelligent terminal is not in the receiving ready state of the specified message. Wherein, the specified application program is an application program capable of receiving the specified message. The specific detection manner of step 101 is not limited in the embodiment of the present invention.

102、若检测到上述智能终端处于指定消息的接收准备状态,则确定上述智能终端当前可连接的云端设备;102. If it is detected that the above-mentioned smart terminal is in the state of receiving the specified message, then determine the cloud device that the above-mentioned smart terminal can currently connect to;

本发明实施例中的云端设备具备向上述智能终端提供与上述指定消息相关的服务的功能。例如,当上述指定消息为电子红包时,该云端设备具备向上述智能终端提供与该电子红包相关的服务的功能(与该电子红包相关的服务例如为接收电子红包、处理电子红包、转发电子红包等)。该云端设备例如可以为服务器。具体的,由图1-b所示的一种系统架构图,上述智能终端可通过网络与云端设备连接,以便从上述云端设备中获得与上述指定消息相关的服务。The cloud device in the embodiment of the present invention has a function of providing services related to the specified message to the above-mentioned intelligent terminal. For example, when the above specified message is an electronic red packet, the cloud device has the function of providing services related to the electronic red packet to the above-mentioned smart terminal (services related to the electronic red packet are, for example, receiving electronic red packets, processing electronic red packets, forwarding electronic red packets Wait). The cloud device can be, for example, a server. Specifically, according to a system architecture diagram shown in FIG. 1-b, the above-mentioned intelligent terminal can be connected to a cloud device through a network, so as to obtain services related to the above-mentioned specified message from the above-mentioned cloud device.

在一种应用场景中,当检测到上述智能终端处于指定消息的接收准备状态时,获取上述智能终端当前所处的地理位置信息(例如可以通过全球定位系统(GPS,GlobalPositioning System)技术)或其它定位技术获取上述智能终端当前所处的地理位置信息),并将位于上述智能终端当前所处的地理位置信息的预设范围内的所有云端设备确定为上述智能终端当前可连接的云端设备。具体的,可以在上述智能终端每次连接上述云端设备时,将该智能终端所连接的云端设备的地址信息(例如IP地址、端口号等)和该云端设备所在的地理位置信息关联存储在一数组中,则当检测到上述智能终端处于指定消息的接收准备状态时,获取上述智能终端当前所处的地理位置信息,并可依据该数组中存储的记录,将位于上述智能终端当前所处的地理位置信息的预设范围内的所有云端设备确定为上述智能终端当前可连接的云端设备。当然,也可以上述智能终端也可以从一指定设备(例如基站、基站控制器或者云端服务的管理设备等)获取到各个云端设备的地理位置信息和地址信息,并根据获取到各个云端设备的地理位置信息和地址信息,从中查找到位于上述智能终端当前所处的地理位置信息的预设范围内的所有云端设备,此处不作限定。In an application scenario, when it is detected that the above-mentioned smart terminal is in a state of receiving a specified message, the current geographic location information of the above-mentioned smart terminal is obtained (for example, through the Global Positioning System (GPS, Global Positioning System) technology) or other The positioning technology obtains the geographical location information of the smart terminal currently located), and determines all cloud devices located within the preset range of the geographical location information of the smart terminal currently located as the cloud devices currently connectable to the smart terminal. Specifically, each time the smart terminal connects to the cloud device, the address information (such as IP address, port number, etc.) of the cloud device connected to the smart terminal and the geographic location information of the cloud device are stored in a In the array, when it is detected that the above-mentioned smart terminal is in the state of receiving the specified message, the current geographical location information of the above-mentioned smart terminal is obtained, and according to the records stored in the array, the location where the above-mentioned smart terminal is currently located All cloud devices within the preset range of the geographic location information are determined as the cloud devices currently connectable to the smart terminal. Of course, the above-mentioned intelligent terminal can also obtain the geographic location information and address information of each cloud device from a designated device (such as a base station, a base station controller, or a cloud service management device, etc.), Location information and address information, from which all cloud devices located within the preset range of the geographical location information where the smart terminal is currently located are found, which is not limited here.

在另一种应用场景中,当检测到上述智能终端处于指定消息的接收准备状态时,获取上述智能终端当前所处的地理位置信息,并向一指定设备(例如基站、基站控制器或者云端服务的管理设备等)发送一云端设备信息请求消息,并在该云端设备信息请求消息中携带上述智能终端当前所处的地理位置信息,以便上述指定设备根据该云端设备信息请求消息,确定位于上述智能终端当前所处的地理位置信息的预设范围内的所有云端设备,并向上述智能终端反馈上述所有云端设备的地址信息,上述智能终端根据上述指定设备反馈的上述所有云端设备的地址信息,将上述所有云端设备确定为上述智能终端当前可连接的云端设备。In another application scenario, when it is detected that the above-mentioned smart terminal is in the state of receiving a designated message, the current geographical location information of the above-mentioned smart terminal is obtained, and the information is sent to a designated device (such as a base station, a base station controller, or a cloud service management device, etc.) to send a cloud device information request message, and carry the geographical location information of the above-mentioned smart terminal in the cloud device information request message, so that the above-mentioned designated device can determine the location of the above-mentioned smart terminal based on the cloud device information request message. All cloud devices within the preset range of the geographic location information where the terminal is currently located, and feed back the address information of all the above-mentioned cloud devices to the above-mentioned smart terminal, and the above-mentioned smart terminal will send All the above-mentioned cloud devices are determined as the cloud devices that the above-mentioned smart terminal can currently connect to.

当然,本发明实施例中也可以通过其它方式确定当前上述智能终端可连接的云端设备,此处不作限定。Of course, in the embodiment of the present invention, other methods may also be used to determine the cloud device to which the aforementioned smart terminal can be connected, which is not limited here.

103、遍历确定出的上述智能终端当前可连接的所有云端设备,从上述所有云端设备中确定一最优云端设备;103. Traversing through all the cloud devices that are currently connected to the above-mentioned smart terminal determined, and determining an optimal cloud device from all the above-mentioned cloud devices;

本发明实施例中,遍历步骤102确定出的上述智能终端当前可连接的所有云端设备,从上述所有云端设备中确定一最优云端设备。In the embodiment of the present invention, all the cloud devices that are currently connected to the smart terminal determined in step 102 are traversed, and an optimal cloud device is determined from all the above-mentioned cloud devices.

在一种应用场景中,步骤103包括:触发上述智能终端分别与上述所有云端设备中的各个云端设备进行数据传输,根据上述数据传输的状况检测上述各个云端设备的丢包率,并将上述丢包率最小的云端设备确定为优云端设备。其中,上述丢包率也即单位时间内丢包的个数占比。丢包率越小说明云端设备延时越小,响应速度快,故步骤103可将上述丢包率最小的云端设备确定为优云端设备。In one application scenario, step 103 includes: triggering the above-mentioned intelligent terminal to perform data transmission with each of the above-mentioned cloud devices respectively, detecting the packet loss rate of each of the above-mentioned cloud devices according to the status of the above-mentioned data transmission, and sending the above-mentioned The cloud device with the smallest packet rate is determined to be an excellent cloud device. Wherein, the aforementioned packet loss rate is also the proportion of the number of lost packets per unit time. The smaller the packet loss rate, the smaller the delay of the cloud device and the faster the response speed. Therefore, in step 103, the cloud device with the smallest packet loss rate can be determined as an excellent cloud device.

在另一种应用场景中,步骤103包括:触发上述智能终端同时向上述所有云端设备中的各个云端设备发送数据请求消息,以便上述各个云端设备在接收到上述数据请求消息后向上述智能终端反馈数据响应消息;将发送最先到达上述智能终端的数据响应消息的云端设备确定为最优云端设备。举例说明,设上述所有云端设备分别为云端设备1、云端设备2和云端设备3,在步骤103中,触发上述智能终端同时向云端设备1、云端设备2和云端设备3发送数据请求消息,云端设备1、云端设备2和云端设备3在接收到上述数据请求消息时,向上述智能终端反馈数据响应消息。设云端设备1向上述智能终端反馈的数据响应消息为数据响应消息A1,云端设备2向上述智能终端反馈的数据响应消息为数据响应消息A2,云端设备3向上述智能终端反馈的数据响应消息为数据响应消息A3,数据响应消息A1、数据响应消息A2、数据响应消息A3到达上述智能终端的时间点分别为T1、T2和T3,且存在T1晚于T2,且T2晚于T3,则可将发送数据响应消息A3的云端设备3确定为最优云端设备。In another application scenario, step 103 includes: triggering the above-mentioned smart terminal to send a data request message to each of the above-mentioned all cloud devices at the same time, so that each of the above-mentioned cloud devices can send feedback to the above-mentioned smart terminal after receiving the above-mentioned data request message Data response message: The cloud device that sends the data response message that arrives first at the smart terminal is determined as the optimal cloud device. For example, assuming that all the above-mentioned cloud devices are respectively cloud device 1, cloud device 2 and cloud device 3, in step 103, the above-mentioned smart terminal is triggered to simultaneously send a data request message to cloud device 1, cloud device 2 and cloud device 3, and the cloud The device 1, the cloud device 2 and the cloud device 3 feed back a data response message to the smart terminal when receiving the data request message. Suppose the data response message fed back by cloud device 1 to the smart terminal is data response message A1, the data response message fed back by cloud device 2 to the smart terminal is data response message A2, and the data response message fed back by cloud device 3 to the smart terminal is The time points when data response message A3, data response message A1, data response message A2, and data response message A3 arrive at the smart terminal are T1, T2, and T3 respectively, and T1 is later than T2, and T2 is later than T3, then the The cloud device 3 that sends the data response message A3 is determined to be the optimal cloud device.

当然,本发明实施例中也可以采用其它方式从上述所有云端设备中确定一最优云端设备,此处不作限定。Of course, in the embodiment of the present invention, other methods may also be used to determine an optimal cloud device from all the above cloud devices, which is not limited here.

步骤104、触发上述智能终端连接上述最优云端设备;Step 104, triggering the above-mentioned smart terminal to connect to the above-mentioned optimal cloud device;

本发明实施例中,在步骤103确定最优云端设备之后,触发上述智能终端连接上述最优云端设备,以便通过上述最优云端设备为上述智能终端提供与上述指定消息相关的服务。In the embodiment of the present invention, after the optimal cloud device is determined in step 103, the above-mentioned intelligent terminal is triggered to connect to the above-mentioned optimal cloud device, so as to provide the above-mentioned smart terminal with services related to the above-mentioned specified message through the above-mentioned optimal cloud device.

需要说明的是,本发明实施例中的云端设备连接方法可以由智能终端实现,上述智能终端具体可以是智能手机、平板电脑、PC、PDA、笔记本或其它智能终端,此处不作限定。It should be noted that the cloud device connection method in the embodiment of the present invention can be implemented by a smart terminal, which specifically can be a smart phone, a tablet computer, a PC, a PDA, a notebook or other smart terminals, which are not limited here.

由上可见,本发明实施例中在检测到智能终端处于指定消息的接收准备状态时,确定上述智能终端当前可连接的云端设备,通过遍历确定出的上述智能终端当前可连接的所有云端设备,从上述所有云端设备中确定一最优云端设备,并触发上述智能终端连接上述最优云端设备,使得上述智能终端能够通过上述最优云端设备获得与上述指定消息相关的服务,从而使得该智能终端能够更快地接收到上述指定消息,也即,提高了智能终端与云端设备的交互速率。It can be seen from the above that in the embodiment of the present invention, when it is detected that the smart terminal is in the state of receiving the specified message, the cloud device that the above-mentioned smart terminal can currently connect to is determined, and all the cloud devices that the above-mentioned smart terminal is currently connected to are determined by traversing, Determine an optimal cloud device from all the above-mentioned cloud devices, and trigger the above-mentioned smart terminal to connect to the above-mentioned optimal cloud device, so that the above-mentioned smart terminal can obtain services related to the above-mentioned specified message through the above-mentioned optimal cloud device, so that the smart terminal The above specified message can be received faster, that is, the interaction rate between the smart terminal and the cloud device is improved.

应当理解,对于前述的方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其它顺序或者同时进行。It should be understood that for the foregoing method embodiments, for the sake of simplicity of description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to this According to the invention, certain steps may be performed in other order or simultaneously.

本发明实施例还提供一种智能终端,如图2所示,本发明实施例中的智能终端200,包括:The embodiment of the present invention also provides an intelligent terminal. As shown in FIG. 2, the intelligent terminal 200 in the embodiment of the present invention includes:

检测单元201,用于检测智能终端是否处于指定消息的接收准备状态;A detection unit 201, configured to detect whether the smart terminal is in a ready state for receiving a specified message;

第一确定单元202,用于当检测单元201检测到上述智能终端处于指定消息的接收准备状态时,确定上述智能终端当前可连接的云端设备,其中,上述云端设备具备向上述智能终端提供与上述指定消息相关的服务的功能;The first determination unit 202 is configured to determine the cloud device currently connectable to the smart terminal when the detection unit 201 detects that the smart terminal is in a state ready to receive a specified message, wherein the cloud device is capable of providing the smart terminal with the above-mentioned Specify the functionality of the message-related service;

第二确定单元203,用于遍历第一确定单元202确定出的上述智能终端当前可连接的所有云端设备,从上述所有云端设备中确定一最优云端设备;The second determining unit 203 is configured to traverse all the cloud devices that the above-mentioned smart terminal is currently connected to as determined by the first determining unit 202, and determine an optimal cloud device from all the above-mentioned cloud devices;

触发单元204,用于触发上述智能终端连接上述最优云端设备,以便通过上述最优云端设备为上述智能终端提供与上述指定消息相关的服务。The triggering unit 204 is configured to trigger the smart terminal to connect to the optimal cloud device, so as to provide the smart terminal with services related to the specified message through the optimal cloud device.

可选的,第一确定单元202包括:Optionally, the first determining unit 202 includes:

获取单元,用于获取上述智能终端当前所处的地理位置信息;An acquisition unit, configured to acquire the current geographic location information of the above-mentioned smart terminal;

子确定单元,用于将位于上述智能终端当前所处的地理位置信息的预设范围内的所有云端设备确定为上述智能终端当前可连接的云端设备。The sub-determining unit is configured to determine all cloud devices located within the preset range of the geographic location information where the smart terminal is currently located as cloud devices that the smart terminal can currently connect to.

可选的,第二确定单元203具体用于:触发上述智能终端分别与上述所有云端设备中的各个云端设备进行数据传输,根据上述数据传输的状况检测上述各个云端设备的丢包率;将上述丢包率最小的云端设备确定为最优云端设备。Optionally, the second determining unit 203 is specifically configured to: trigger the above-mentioned smart terminal to perform data transmission with each of the above-mentioned cloud devices respectively, and detect the packet loss rate of each of the above-mentioned cloud devices according to the status of the above-mentioned data transmission; The cloud device with the smallest packet loss rate is determined to be the optimal cloud device.

可选的,第二确定单元204具体用于:触发上述智能终端同时向上述所有云端设备中的各个云端设备发送数据请求消息,以便上述各个云端设备在接收到上述数据请求消息后向上述智能终端反馈数据响应消息;将发送最先到达上述智能终端的数据响应消息的云端设备确定为最优云端设备。Optionally, the second determination unit 204 is specifically configured to: trigger the above-mentioned smart terminal to send a data request message to each of the above-mentioned all cloud devices at the same time, so that each of the above-mentioned cloud devices sends the above-mentioned smart terminal after receiving the above-mentioned data request message. Feedback a data response message; determine the cloud device that sends the data response message that first arrives at the smart terminal as the optimal cloud device.

可选的,检测单元201具体用于:检测上述智能终端是否接收到通知消息,其中,上述通知消息用以通知上述智能终端有待接收的指定消息;当检测到上述智能终端接收到上述通知消息时,确定上述智能终端处于指定消息的接收准备状态。Optionally, the detection unit 201 is specifically configured to: detect whether the above-mentioned smart terminal receives a notification message, wherein the above-mentioned notification message is used to notify the above-mentioned smart terminal of a specified message to be received; when it is detected that the above-mentioned smart terminal receives the above-mentioned notification message , to determine that the above-mentioned smart terminal is in a ready state for receiving the specified message.

需要说明的是,本发明实施例中的智能终端具体可以是智能手机、平板电脑、PC、PDA、笔记本或其它智能终端,此处不作限定。It should be noted that the smart terminal in the embodiment of the present invention may specifically be a smart phone, a tablet computer, a PC, a PDA, a notebook or other smart terminals, which are not limited herein.

需要说明的是,本发明实施例中的智能终端可以如上述方法实施例中提及的智能终端,可以用于实现上述方法实施例中的全部技术方案,其各个功能模块的功能可以根据上述方法实施例中的方法具体实现,其具体实现过程可参照上述实施例中的相关描述,此处不再赘述。It should be noted that the smart terminal in the embodiment of the present invention can be like the smart terminal mentioned in the above-mentioned method embodiment, and can be used to realize all the technical solutions in the above-mentioned method embodiment, and the functions of each functional module can be based on the above-mentioned method The methods in the embodiments are specifically implemented, and the specific implementation process may refer to the relevant descriptions in the above embodiments, and details are not repeated here.

由上可见,本发明实施例中的智能终端在检测到智能终端处于指定消息的接收准备状态时,确定上述智能终端当前可连接的云端设备,通过遍历确定出的上述智能终端当前可连接的所有云端设备,从上述所有云端设备中确定一最优云端设备,并触发上述智能终端连接上述最优云端设备,使得上述智能终端能够通过上述最优云端设备获得与上述指定消息相关的服务,从而使得该智能终端能够更快地接收到上述指定消息,也即,提高了智能终端与云端设备的交互速率。It can be seen from the above that when the smart terminal in the embodiment of the present invention detects that the smart terminal is in the state of receiving the specified message, it determines the cloud device that the smart terminal can currently connect to, and traverses all the devices that the smart terminal can currently connect to. The cloud device determines an optimal cloud device from all the above-mentioned cloud devices, and triggers the above-mentioned intelligent terminal to connect to the above-mentioned optimal cloud device, so that the above-mentioned intelligent terminal can obtain services related to the above-mentioned specified message through the above-mentioned optimal cloud device, so that The smart terminal can receive the above specified message faster, that is, the interaction rate between the smart terminal and the cloud device is improved.

本发明实施例提供另一种智能终端,请参阅图3,本发明实施例中的智能终端包括:一个或多个处理器301(图3中仅示出一个)。其中:The embodiment of the present invention provides another smart terminal, please refer to FIG. 3 , the smart terminal in the embodiment of the present invention includes: one or more processors 301 (only one is shown in FIG. 3 ). in:

处理器301用于:检测智能终端是否处于指定消息的接收准备状态;若检测到上述智能终端处于指定消息的接收准备状态,则:确定上述智能终端当前可连接的云端设备,其中,上述云端设备具备向上述智能终端提供与上述指定消息相关的服务的功能;遍历确定出的上述智能终端当前可连接的所有云端设备,从上述所有云端设备中确定一最优云端设备;触发上述智能终端连接上述最优云端设备,以便通过上述最优云端设备为上述智能终端提供与上述指定消息相关的服务。The processor 301 is used to: detect whether the smart terminal is in the state of receiving the specified message; if it is detected that the above-mentioned smart terminal is in the state of receiving the specified message, then: determine the cloud device that the above-mentioned smart terminal can currently connect to, wherein the above-mentioned cloud device Possess the function of providing services related to the above-mentioned specified message to the above-mentioned smart terminal; traverse all the cloud devices that the above-mentioned smart terminal can currently connect to, and determine an optimal cloud device from all the above-mentioned cloud devices; trigger the above-mentioned smart terminal to connect to the above-mentioned The optimal cloud device, so as to provide the above-mentioned smart terminal with services related to the above-mentioned specified message through the above-mentioned optimal cloud device.

可选的,处理器301通过如下方式确定当前上述智能终端可连接的云端设备:获取上述智能终端当前所处的地理位置信息;将位于上述智能终端当前所处的地理位置信息的预设范围内的所有云端设备确定为上述智能终端当前可连接的云端设备。Optionally, the processor 301 determines the current cloud device that the above-mentioned smart terminal can connect to in the following manner: obtain the current geographic location information of the above-mentioned smart terminal; and locate within a preset range of the current geographic location information of the above-mentioned smart terminal All cloud devices of the above-mentioned smart terminals are determined to be currently connectable cloud devices.

可选的,处理器301通过如下方式遍历确定出的上述智能终端当前可连接的所有云端设备,从上述所有云端设备中确定一最优云端设备:触发上述智能终端分别与上述所有云端设备中的各个云端设备进行数据传输,根据上述数据传输的状况检测上述各个云端设备的丢包率;将上述丢包率最小的云端设备确定为最优云端设备。Optionally, the processor 301 traverses all the cloud devices that are currently connected to the above-mentioned intelligent terminal in the following manner, and determines an optimal cloud device from among all the above-mentioned cloud devices: Each cloud device performs data transmission, and detects the packet loss rate of each of the above-mentioned cloud devices according to the status of the above-mentioned data transmission; and determines the cloud device with the smallest packet loss rate as the optimal cloud device.

可选的,处理器301通过如下方式遍历确定出的上述智能终端当前可连接的所有云端设备,从上述所有云端设备中确定一最优云端设备:触发上述智能终端同时向上述所有云端设备中的各个云端设备发送数据请求消息,以便上述各个云端设备在接收到上述数据请求消息后向上述智能终端反馈数据响应消息;将发送最先到达上述智能终端的数据响应消息的云端设备确定为最优云端设备。Optionally, the processor 301 traverses all cloud devices that are currently connected to the above-mentioned smart terminal in the following manner, and determines an optimal cloud device from all the above-mentioned cloud devices: Each cloud device sends a data request message, so that each of the above-mentioned cloud devices feeds back a data response message to the above-mentioned smart terminal after receiving the above-mentioned data request message; the cloud device that sends the data response message that first arrives at the above-mentioned smart terminal is determined as the optimal cloud device. equipment.

可选的,处理器301通过如下方式检测智能终端是否处于指定消息的接收准备状态:检测上述智能终端是否接收到通知消息,其中,上述通知消息用以通知上述智能终端有待接收的指定消息;当检测到上述智能终端接收到上述通知消息时,确定上述智能终端处于指定消息的接收准备状态。Optionally, the processor 301 detects whether the smart terminal is in the state of receiving the specified message in the following manner: detects whether the smart terminal receives a notification message, wherein the notification message is used to notify the smart terminal of the specified message to be received; When it is detected that the smart terminal has received the notification message, it is determined that the smart terminal is in a ready state for receiving the specified message.

进一步,如图3所示,智能终端还可包括:一个或多个输入设备302(图3中仅示出一个),一个或多个输出设备303(图3中仅示出一个)、存储器304和显示器305。上述处理器301、输入设备302、输出设备303、存储器304和显示器305通过总线306连接。存储器302用于存储指令,处理器301还用于执行存储器302存储的指令。Further, as shown in FIG. 3 , the smart terminal may also include: one or more input devices 302 (only one is shown in FIG. 3 ), one or more output devices 303 (only one is shown in FIG. 3 ), memory 304 and display 305 . The aforementioned processor 301 , input device 302 , output device 303 , memory 304 and display 305 are connected through a bus 306 . The memory 302 is used to store instructions, and the processor 301 is also used to execute the instructions stored in the memory 302 .

存储器304用于存储软件程序以及模块,处理器301通过运行存储在存储器304的软件程序以及单元,从而执行各种功能应用以及数据处理,以获取上述预设事件对应的资源。The memory 304 is used to store software programs and modules. The processor 301 executes various functional applications and data processing by running the software programs and units stored in the memory 304 to obtain resources corresponding to the aforementioned preset events.

应当理解,在本发明实施例中,所称处理器301可以是中央处理单元(CentralProcessing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DigitalSignal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in the embodiment of the present invention, the so-called processor 301 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), dedicated Integrated Circuit (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.

输入设备302可以包括触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备303可以包括显示器(LCD等)、扬声器等。The input device 302 may include a touch panel, a fingerprint sensor (for collecting the user's fingerprint information and fingerprint direction information), a microphone, etc., and the output device 303 may include a display (LCD, etc.), a speaker, and the like.

存储器304可以包括只读存储器和随机存取存储器,并向处理器301提供指令和数据。存储器304的一部分还可以包括非易失性随机存取存储器。例如,存储器304还可以存储设备类型的信息。The memory 304 may include read-only memory and random-access memory, and provides instructions and data to the processor 301 . A portion of memory 304 may also include non-volatile random access memory. For example, memory 304 may also store device type information.

显示器305可用于显示由用户输入的信息或提供给用户的信息等。显示器305可包括显示面板,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板。进一步的,上述显示器305还可包括触控面板,上述触控面板可覆盖显示面板,当触控面板检测到在其上或附近的触摸操作后,传送给处理器301以确定触摸事件的类型,随后处理器301根据触摸事件的类型在显示面板上提供相应的视觉输出。The display 305 can be used to display information input by the user or information provided to the user, and the like. The display 305 may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Further, the above-mentioned display 305 may also include a touch panel, and the above-mentioned touch panel may cover the display panel, and when the touch panel detects a touch operation on or near it, it transmits to the processor 301 to determine the type of the touch event, Then the processor 301 provides corresponding visual output on the display panel according to the type of the touch event.

由上可见,本发明实施例中的智能终端在检测到智能终端处于指定消息的接收准备状态时,确定上述智能终端当前可连接的云端设备,通过遍历确定出的上述智能终端当前可连接的所有云端设备,从上述所有云端设备中确定一最优云端设备,并触发上述智能终端连接上述最优云端设备,使得上述智能终端能够通过上述最优云端设备获得与上述指定消息相关的服务,从而使得该智能终端能够更快地接收到上述指定消息,也即,提高了智能终端与云端设备的交互速率。It can be seen from the above that when the smart terminal in the embodiment of the present invention detects that the smart terminal is in the state of receiving the specified message, it determines the cloud device that the smart terminal can currently connect to, and traverses all the devices that the smart terminal can currently connect to. The cloud device determines an optimal cloud device from all the above-mentioned cloud devices, and triggers the above-mentioned intelligent terminal to connect to the above-mentioned optimal cloud device, so that the above-mentioned intelligent terminal can obtain services related to the above-mentioned specified message through the above-mentioned optimal cloud device, so that The smart terminal can receive the above specified message faster, that is, the interaction rate between the smart terminal and the cloud device is improved.

本发明实施例还提供另一种智能终端,下面对本发明实施例中的智能终端进行描述,请参阅图4,本发明实施例中的智能终端400包括:一个或一个以上计算机可读存储介质的存储器401、输入单元402、显示单元403、一个或者一个以上处理核心的处理器404、以及电源405等部件。本领域技术人员可以理解,图4中示出的智能终端结构并不构成对智能终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:The embodiment of the present invention also provides another intelligent terminal. The intelligent terminal in the embodiment of the present invention is described below. Please refer to FIG. 4. The intelligent terminal 400 in the embodiment of the present invention includes: one or more computer-readable storage media Memory 401 , input unit 402 , display unit 403 , processor 404 of one or more processing cores, power supply 405 and other components. Those skilled in the art can understand that the smart terminal structure shown in FIG. 4 does not constitute a limitation on the smart terminal, and may include more or less components than shown in the figure, or combine some components, or arrange different components. in:

存储器401可用于存储软件程序以及模块,处理器404通过运行存储在存储器401的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器401可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据智能终端400的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器401可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器401还可以包括存储器控制器,以提供处理器404和输入单元402对存储器401的访问。The memory 401 can be used to store software programs and modules, and the processor 404 executes various functional applications and data processing by running the software programs and modules stored in the memory 401 . The memory 401 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); The data created by using the smart terminal 400 (such as audio data, phone book, etc.) and the like. In addition, the memory 401 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 401 may further include a memory controller to provide access to the memory 401 by the processor 404 and the input unit 402 .

输入单元402可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元402包括触敏表面4021以及其他输入设备4022。触敏表面4021,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面4021上或在触敏表面4021附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面4021可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器404,并能接收处理器404发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面4021。除了触敏表面4021,输入单元402还可以包括其他输入设备4022。具体地,其他输入设备4022可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 402 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 402 includes a touch-sensitive surface 4021 and other input devices 4022 . The touch-sensitive surface 4021, also referred to as a touch display screen or a touchpad, can collect user touch operations on or near it (for example, the user uses any suitable object or accessory such as a finger, a stylus, etc. on the touch-sensitive surface 4021 or The operation near the touch-sensitive surface 4021), and drive the corresponding connection device according to the preset program. Optionally, the touch-sensitive surface 4021 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 404, and can receive and execute commands sent by the processor 404. In addition, the touch-sensitive surface 4021 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 4021 , the input unit 402 may also include other input devices 4022 . Specifically, other input devices 4022 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

显示单元403可用于显示由用户输入的信息或提供给用户的信息以及智能终端400的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元403可包括显示面板4031,可选的,可以采用液晶显示器(LCD,LiquidCrystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板4031。进一步的,触敏表面4021可覆盖显示面板4031,当触敏表面4021检测到在其上或附近的触摸操作后,传送给处理器404以确定触摸事件的类型,随后处理器404根据触摸事件的类型在显示面板4031上提供相应的视觉输出。虽然在图4中,触敏表面4021与显示面板4031是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面4021与显示面板4031集成而实现输入和输出功能。The display unit 403 can be used to display information input by the user or provided to the user and various graphical user interfaces of the smart terminal 400. These graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. The display unit 403 may include a display panel 4031. Optionally, the display panel 4031 may be configured in the form of a Liquid Crystal Display (LCD, Liquid Crystal Display), an Organic Light-Emitting Diode (OLED, Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 4021 can cover the display panel 4031, and when the touch-sensitive surface 4021 detects a touch operation on or near it, it is sent to the processor 404 to determine the type of the touch event, and then the processor 404 The type provides a corresponding visual output on the display panel 4031. Although in FIG. 4, the touch-sensitive surface 4021 and the display panel 4031 are used as two independent components to realize input and input functions, in some embodiments, the touch-sensitive surface 4021 and the display panel 4031 can be integrated to realize input. and output functions.

处理器404是智能终端400的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器401内的软件程序和/或模块,以及调用存储在存储器401内的数据,执行智能终端400的各种功能和处理数据,从而对智能终端400进行整体监控。可选的,处理器404可包括一个或多个处理核心;优选的,处理器404可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器404中。The processor 404 is the control center of the smart terminal 400. It uses various interfaces and lines to connect various parts of the entire mobile phone, and runs or executes software programs and/or modules stored in the memory 401, and calls data stored in the memory 401. , executing various functions of the smart terminal 400 and processing data, so as to monitor the smart terminal 400 as a whole. Optionally, the processor 404 may include one or more processing cores; preferably, the processor 404 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 404 .

智能终端400还包括给各个部件供电的电源405(比如电池),优选的,电源可以通过电源管理系统与处理器404逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源405还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The smart terminal 400 also includes a power supply 405 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 404 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system. . The power supply 405 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

尽管未示出,智能终端400还可以包括RF(Radio Frequency,射频)电路、传感器、音频电路、无线保真(WiFi,wireless fidelity)模块、摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,智能终端400还包括一个或者一个以上程序存储于存储器401中,且经配置以由一个或者一个以上处理器404执行上述一个或者一个以上程序,其中包含用于执行以下操作的指令:Although not shown, the smart terminal 400 may also include an RF (Radio Frequency, radio frequency) circuit, a sensor, an audio circuit, a wireless fidelity (WiFi, wireless fidelity) module, a camera, a Bluetooth module, etc., which will not be repeated here. Specifically, in this embodiment, the smart terminal 400 also includes one or more programs stored in the memory 401, and is configured to be executed by one or more processors 404, including for performing the following operations The command:

检测智能终端是否处于指定消息的接收准备状态;Detect whether the smart terminal is ready to receive the specified message;

若检测到上述智能终端处于指定消息的接收准备状态,则:If it is detected that the above-mentioned intelligent terminal is in the state of receiving the specified message, then:

确定上述智能终端当前可连接的云端设备,其中,上述云端设备具备向上述智能终端提供与上述指定消息相关的服务的功能;Determine the cloud device currently connectable to the smart terminal, wherein the cloud device has the function of providing services related to the specified message to the smart terminal;

遍历确定出的上述智能终端当前可连接的所有云端设备,从上述所有云端设备中确定一最优云端设备;Traversing through all the cloud devices that are currently connected to the above-mentioned smart terminal, and determining an optimal cloud device from all the above-mentioned cloud devices;

触发上述智能终端连接上述最优云端设备,以便通过上述最优云端设备为上述智能终端提供与上述指定消息相关的服务。Triggering the smart terminal to connect to the optimal cloud device, so as to provide the smart terminal with services related to the specified message through the optimal cloud device.

假设上述为第一种可能的实施方式,则在第一种可能的实施方式作为基础而提供的第二种可能的实施方式中,上述确定当前上述智能终端可连接的云端设备,包括:Assuming that the above is the first possible implementation manner, then in the second possible implementation manner provided on the basis of the first possible implementation manner, the above-mentioned determination of the cloud device that can be connected to the above-mentioned smart terminal at present includes:

获取上述智能终端当前所处的地理位置信息;Obtain the current geographical location information of the above-mentioned smart terminal;

将位于上述智能终端当前所处的地理位置信息的预设范围内的所有云端设备确定为上述智能终端当前可连接的云端设备。All cloud devices located within the preset range of the geographic location information where the smart terminal is currently located are determined as cloud devices that the smart terminal can currently connect to.

在上述第一种可能的实施方式或者上述第二种可能的实施方式作为基础而提供的第三种可能的实施方式中,上述遍历确定出的上述智能终端当前可连接的所有云端设备,从上述所有云端设备中确定一最优云端设备,包括:In the third possible implementation manner provided on the basis of the above first possible implementation manner or the above second possible implementation manner, all cloud devices currently connected to the above smart terminal determined by the above traversal, from the above Determine an optimal cloud device among all cloud devices, including:

触发上述智能终端分别与上述所有云端设备中的各个云端设备进行数据传输,根据上述数据传输的状况检测上述各个云端设备的丢包率;Trigger the above-mentioned smart terminal to perform data transmission with each of the above-mentioned cloud devices respectively, and detect the packet loss rate of each of the above-mentioned cloud devices according to the status of the above-mentioned data transmission;

将上述丢包率最小的云端设备确定为最优云端设备。The cloud device with the smallest packet loss rate is determined as the optimal cloud device.

在上述第一种可能的实施方式或者上述第二种可能的实施方式作为基础而提供的第四种可能的实施方式中,上述遍历确定出的上述智能终端当前可连接的所有云端设备,从上述所有云端设备中确定一最优云端设备,包括:In the fourth possible implementation manner provided on the basis of the above first possible implementation manner or the above second possible implementation manner, all cloud devices currently connected to the above smart terminal determined by the above traversal, from the above Determine an optimal cloud device among all cloud devices, including:

触发上述智能终端同时向上述所有云端设备中的各个云端设备发送数据请求消息,以便上述各个云端设备在接收到上述数据请求消息后向上述智能终端反馈数据响应消息;triggering the above-mentioned smart terminal to send a data request message to each of the above-mentioned cloud devices at the same time, so that each of the above-mentioned cloud devices feeds back a data response message to the above-mentioned smart terminal after receiving the above-mentioned data request message;

将发送最先到达上述智能终端的数据响应消息的云端设备确定为最优云端设备。The cloud device that sends the data response message that first arrives at the smart terminal is determined as the optimal cloud device.

在上述第一种可能的实施方式或者上述第二种可能的实施方式作为基础而提供的第五种可能的实施方式中,检测上述智能终端是否接收到通知消息,其中,上述通知消息用以通知上述智能终端有待接收的指定消息;In the fifth possible implementation manner provided on the basis of the above-mentioned first possible implementation manner or the above-mentioned second possible implementation manner, it is detected whether the above-mentioned smart terminal receives a notification message, wherein the above-mentioned notification message is used to notify The specified message to be received by the above-mentioned smart terminal;

当检测到上述智能终端接收到上述通知消息时,确定上述智能终端处于指定消息的接收准备状态。When it is detected that the smart terminal has received the notification message, it is determined that the smart terminal is in a ready state for receiving a specified message.

需要说明的是,上述智能终端具体可以是智能手机、平板电脑、PC、PDA、笔记本或其它能够智能终端,此处不作限定。It should be noted that the above-mentioned smart terminal may specifically be a smart phone, a tablet computer, a PC, a PDA, a notebook or other smart terminals, which are not limited herein.

上述智能终端可以如上述方法实施例中的智能终端,可以用于实现上述方法实施例中的全部技术方案,其各个功能模块的功能可以根据上述方法实施例中的方法具体实现,其具体实现过程可参照上述实施例中的相关描述,此处不再赘述。The above-mentioned intelligent terminal can be like the intelligent terminal in the above-mentioned method embodiment, and can be used to realize all the technical solutions in the above-mentioned method embodiment. Reference may be made to relevant descriptions in the foregoing embodiments, and details are not repeated here.

由上可见,本发明实施例中的智能终端在检测到该智能终端处于指定消息的接收准备状态时,确定上述智能终端当前可连接的云端设备,通过遍历确定出的上述智能终端当前可连接的所有云端设备,从上述所有云端设备中确定一最优云端设备,并触发上述智能终端连接上述最优云端设备,使得上述智能终端能够通过上述最优云端设备获得与上述指定消息相关的服务,从而使得该智能终端能够更快地接收到上述指定消息,也即,提高了智能终端与云端设备的交互速率。It can be seen from the above that when the smart terminal in the embodiment of the present invention detects that the smart terminal is in the state of receiving the specified message, it determines the cloud device that the smart terminal can currently connect to, and the smart terminal that is currently connected to the smart terminal determined by traversal For all cloud devices, determine an optimal cloud device from all the above-mentioned cloud devices, and trigger the above-mentioned smart terminal to connect to the above-mentioned optimal cloud device, so that the above-mentioned smart terminal can obtain services related to the above-mentioned specified message through the above-mentioned optimal cloud device, thereby This enables the smart terminal to receive the above specified message faster, that is, increases the interaction rate between the smart terminal and the cloud device.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the above units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above 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 may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例上述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the above integrated units are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the above-mentioned methods in various embodiments 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), magnetic disk or optical disk, and other media that can store program codes.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本发明所必须的。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments. Those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

以上为对本发明所提供的一种云端设备连接方法和智能终端的描述,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。The above is a description of a cloud device connection method and an intelligent terminal provided by the present invention. For those of ordinary skill in the art, according to the idea of the embodiment of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this specification should not be construed as limiting the present invention.

Claims (6)

1.一种智能终端的云端设备连接方法,其特征在于,包括:1. A cloud device connection method of an intelligent terminal, characterized in that, comprising: 检测智能终端是否处于指定消息的接收准备状态,包括:检测所述智能终端是否接收到通知消息,其中,所述通知消息用以通知所述智能终端有待接收的指定消息;当检测到所述智能终端接收到所述通知消息时,确定所述智能终端处于指定消息的接收准备状态;Detecting whether the smart terminal is in a state ready to receive a specified message includes: detecting whether the smart terminal has received a notification message, wherein the notification message is used to notify the smart terminal of a specified message to be received; when the smart terminal is detected When receiving the notification message, the terminal determines that the smart terminal is in a ready state for receiving a specified message; 若检测到所述智能终端处于指定消息的接收准备状态,则:If it is detected that the intelligent terminal is in the state of receiving the specified message, then: 确定所述智能终端当前可连接的云端设备,包括:获取所述智能终端当前所处的地理位置信息;将位于所述智能终端当前所处的地理位置信息的预设范围内的所有云端设备确定为所述智能终端当前可连接的云端设备;其中,所述云端设备具备向所述智能终端提供与所述指定消息相关的服务的功能,所述智能终端当前所处的地理位置信息通过全球定位系统获取;Determining the cloud device currently connectable to the smart terminal includes: obtaining the geographic location information where the smart terminal is currently located; determining all cloud devices within a preset range of the geographic location information where the smart terminal is currently located It is a cloud device currently connectable to the smart terminal; wherein, the cloud device has the function of providing services related to the specified message to the smart terminal, and the current geographic location information of the smart terminal is obtained through global positioning System acquisition; 遍历确定出的所述智能终端当前可连接的所有云端设备,从所述所有云端设备中确定一最优云端设备;Iterating through all the cloud devices that are currently connected to the smart terminal, and determining an optimal cloud device from all the cloud devices; 触发所述智能终端连接所述最优云端设备,以便通过所述最优云端设备为所述智能终端提供与所述指定消息相关的服务;triggering the smart terminal to connect to the optimal cloud device, so as to provide the smart terminal with services related to the specified message through the optimal cloud device; 其中,所述将位于所述智能终端当前所处的地理位置信息的预设范围内的所有云端设备确定为所述智能终端当前可连接的云端设备的步骤,依据关联存储有云端设备的地址信息和云端设备所在的地理位置信息的数组,或者从一指定设备获取各个云端设备的地址信息和地理位置信息。Wherein, the step of determining all cloud devices located within the preset range of the geographic location information where the smart terminal is currently located as the cloud devices that the smart terminal can currently connect to is based on the associated stored address information of the cloud devices and the array of geographic location information of cloud devices, or obtain the address information and geographic location information of each cloud device from a specified device. 2.根据权利要求1所述的方法,其特征在于,所述遍历确定出的所述智能终端当前可连接的所有云端设备,从所述所有云端设备中确定一最优云端设备,包括:2. The method according to claim 1, wherein the traversal determines all cloud devices currently connectable to the smart terminal, and determines an optimal cloud device from all the cloud devices, including: 触发所述智能终端分别与所述所有云端设备中的各个云端设备进行数据传输,根据所述数据传输的状况检测所述各个云端设备的丢包率;triggering the smart terminal to perform data transmission with each of the cloud devices respectively, and detecting the packet loss rate of each of the cloud devices according to the status of the data transmission; 将所述丢包率最小的云端设备确定为最优云端设备。The cloud device with the smallest packet loss rate is determined as the optimal cloud device. 3.根据权利要求1所述的方法,其特征在于,所述遍历确定出的所述智能终端当前可连接的所有云端设备,从所述所有云端设备中确定一最优云端设备,包括:3. The method according to claim 1, wherein the traversal determines all cloud devices currently connectable to the smart terminal, and determines an optimal cloud device from all the cloud devices, comprising: 触发所述智能终端同时向所述所有云端设备中的各个云端设备发送数据请求消息,以便所述各个云端设备在接收到所述数据请求消息后向所述智能终端反馈数据响应消息;triggering the smart terminal to send a data request message to each of the cloud devices at the same time, so that each of the cloud devices feeds back a data response message to the smart terminal after receiving the data request message; 将发送最先到达所述智能终端的数据响应消息的云端设备确定为最优云端设备。The cloud device that sends the data response message that arrives first at the smart terminal is determined as the optimal cloud device. 4.一种智能终端,其特征在于,包括:4. An intelligent terminal, characterized in that, comprising: 检测单元,用于检测智能终端是否处于指定消息的接收准备状态,具体为:检测所述智能终端是否接收到通知消息,其中,所述通知消息用以通知所述智能终端有待接收的指定消息;当检测到所述智能终端接收到所述通知消息时,确定所述智能终端处于指定消息的接收准备状态;The detection unit is configured to detect whether the smart terminal is in a state of receiving a designated message, specifically: detect whether the smart terminal has received a notification message, wherein the notification message is used to notify the smart terminal of a designated message to be received; When it is detected that the smart terminal has received the notification message, it is determined that the smart terminal is in a ready state for receiving a specified message; 第一确定单元,用于当所述检测单元检测到所述智能终端处于指定消息的接收准备状态时,确定所述智能终端当前可连接的云端设备;其中,所述第一确定单元包括:获取单元,用于获取所述智能终端当前所处的地理位置信息;子确定单元,用于将位于所述智能终端当前所处的地理位置信息的预设范围内的所有云端设备确定为所述智能终端当前可连接的云端设备;所述云端设备具备向所述智能终端提供与所述指定消息相关的服务的功能;所述智能终端当前所处的地理位置信息通过全球定位系统获取;其中,在子确定单元将位于所述智能终端当前所处的地理位置信息的预设范围内的所有云端设备确定为所述智能终端当前可连接的云端设备时,依据关联存储有云端设备的地址信息和云端设备所在的地理位置信息的数组,或者从一指定设备获取各个云端设备的地址信息和地理位置信息。The first determination unit is configured to determine the cloud device currently connectable to the smart terminal when the detection unit detects that the smart terminal is in a ready state for receiving a specified message; wherein, the first determination unit includes: acquiring A unit, configured to acquire the geographic location information where the smart terminal is currently located; a sub-determining unit, configured to determine all cloud devices within a preset range of the geographic location information where the smart terminal is currently located as the smart terminal A cloud device that the terminal can currently connect to; the cloud device has the function of providing the smart terminal with a service related to the specified message; the geographic location information of the smart terminal is currently obtained through a global positioning system; wherein, in When the sub-determining unit determines all cloud devices located within the preset range of the geographic location information where the smart terminal is currently located as the cloud devices that the smart terminal can currently connect to, according to the associated stored address information of the cloud devices and the cloud An array of geographic location information where the device is located, or obtain the address information and geographic location information of each cloud device from a specified device. 第二确定单元,用于遍历所述第一确定单元确定出的所述智能终端当前可连接的所有云端设备,从所述所有云端设备中确定一最优云端设备;The second determining unit is configured to traverse all the cloud devices currently connectable to the smart terminal determined by the first determining unit, and determine an optimal cloud device from all the cloud devices; 触发单元,用于触发所述智能终端连接所述最优云端设备,以便通过所述最优云端设备为所述智能终端提供与所述指定消息相关的服务。A triggering unit, configured to trigger the smart terminal to connect to the optimal cloud device, so as to provide the smart terminal with services related to the specified message through the optimal cloud device. 5.根据权利要求4所述的智能终端,其特征在于,所述第二确定单元具体用于:触发所述智能终端分别与所述所有云端设备中的各个云端设备进行数据传输,根据所述数据传输的状况检测所述各个云端设备的丢包率;将所述丢包率最小的云端设备确定为最优云端设备。5. The intelligent terminal according to claim 4, wherein the second determining unit is specifically configured to: trigger the intelligent terminal to perform data transmission with each of the cloud devices in the cloud devices, according to the The status of data transmission detects the packet loss rate of each cloud device; the cloud device with the smallest packet loss rate is determined as the optimal cloud device. 6.根据权利要求4所述的智能终端,其特征在于,所述第二确定单元具体用于:触发所述智能终端同时向所述所有云端设备中的各个云端设备发送数据请求消息,以便所述各个云端设备在接收到所述数据请求消息后向所述智能终端反馈数据响应消息;将发送最先到达所述智能终端的数据响应消息的云端设备确定为最优云端设备。6. The intelligent terminal according to claim 4, wherein the second determination unit is specifically configured to: trigger the intelligent terminal to send a data request message to each of the cloud devices at the same time, so that the After each cloud device receives the data request message, it feeds back a data response message to the smart terminal; the cloud device that sends the data response message to the smart terminal first is determined as the optimal cloud device.
CN201610818378.1A 2016-09-12 2016-09-12 Cloud device connection method and intelligent terminal Expired - Fee Related CN106341476B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610818378.1A CN106341476B (en) 2016-09-12 2016-09-12 Cloud device connection method and intelligent terminal
CN201810255136.5A CN108462753A (en) 2016-09-12 2016-09-12 Cloud device connection method and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610818378.1A CN106341476B (en) 2016-09-12 2016-09-12 Cloud device connection method and intelligent terminal

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201810255136.5A Division CN108462753A (en) 2016-09-12 2016-09-12 Cloud device connection method and intelligent terminal

Publications (2)

Publication Number Publication Date
CN106341476A CN106341476A (en) 2017-01-18
CN106341476B true CN106341476B (en) 2018-06-29

Family

ID=57838884

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201610818378.1A Expired - Fee Related CN106341476B (en) 2016-09-12 2016-09-12 Cloud device connection method and intelligent terminal
CN201810255136.5A Pending CN108462753A (en) 2016-09-12 2016-09-12 Cloud device connection method and intelligent terminal

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201810255136.5A Pending CN108462753A (en) 2016-09-12 2016-09-12 Cloud device connection method and intelligent terminal

Country Status (1)

Country Link
CN (2) CN106341476B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273843A (en) * 2017-06-12 2017-10-20 哈尔滨理工大学 Fingerprint network management system based on ARM Cortex M4

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102340554A (en) * 2011-09-29 2012-02-01 奇智软件(北京)有限公司 Method and device for selecting optimal application server of domain name system DNS
CN103166980A (en) * 2011-12-08 2013-06-19 腾讯科技(深圳)有限公司 Internet data pulling method and system
CN103812934A (en) * 2014-01-28 2014-05-21 浙江大学 Remote sensing data publishing method based on cloud storage system
CN103888485A (en) * 2012-12-19 2014-06-25 华为技术有限公司 Method for distributing cloud computing resource, device thereof and system thereof

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7886023B1 (en) * 2000-01-21 2011-02-08 Cisco Technology, Inc. Method and apparatus for a minimalist approach to implementing server selection
US6944678B2 (en) * 2001-06-18 2005-09-13 Transtech Networks Usa, Inc. Content-aware application switch and methods thereof
CN101287105B (en) * 2008-06-03 2011-05-25 中兴通讯股份有限公司 Load balancing method and apparatus for edge EPG server, implementing method for user login
CN101834799B (en) * 2010-05-06 2012-12-19 工业和信息化部电信传输研究所 Selection method of server of mobile IPTV (Internet Protocol Television), client, server and system
CN102769819A (en) * 2011-05-03 2012-11-07 中国移动通信集团公司 Content distribution method in wireless communication system and corresponding system and server
CN104753779B (en) * 2013-12-27 2018-05-18 北京东方正龙数字技术有限公司 A kind of implementation method of cloud group virtual flow-line system
CN103716251B (en) * 2014-01-14 2017-06-27 三星电子(中国)研发中心 For the load-balancing method and equipment of content distributing network
CN104038540B (en) * 2014-06-03 2017-03-22 山东乾云启创信息科技股份有限公司 Method and system for automatically selecting application proxy server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102340554A (en) * 2011-09-29 2012-02-01 奇智软件(北京)有限公司 Method and device for selecting optimal application server of domain name system DNS
CN103166980A (en) * 2011-12-08 2013-06-19 腾讯科技(深圳)有限公司 Internet data pulling method and system
CN103888485A (en) * 2012-12-19 2014-06-25 华为技术有限公司 Method for distributing cloud computing resource, device thereof and system thereof
CN103812934A (en) * 2014-01-28 2014-05-21 浙江大学 Remote sensing data publishing method based on cloud storage system

Also Published As

Publication number Publication date
CN106341476A (en) 2017-01-18
CN108462753A (en) 2018-08-28

Similar Documents

Publication Publication Date Title
CN106327166A (en) Information processing method and mobile terminal
CN104915241A (en) Virtual machine migration control method and device
CN106161176A (en) Cluster conversation message treatment method and device
CN108039963B (en) Container configuration method and device and storage medium
CN106412093A (en) Method, device and system for uploading data
CN107278380A (en) Method for connecting bluetooth device and terminal device
CN106383654A (en) Method for adjusting touch screen parameters and mobile terminal
CN106502808B (en) Method, device and terminal for copying files
CN106326073B (en) The method and mobile terminal of information processing
CN107786424A (en) Audio/video communication method, terminal and server
CN106326072B (en) Information processing method and mobile terminal
CN107145386A (en) Data migration method, terminal device and computer-readable recording medium
CN106454936A (en) Network control method and intelligent terminal
CN106209608A (en) A method and device for distinguishing and synchronizing chat information
CN112003978A (en) Conference management interface display method and device, storage medium and terminal equipment
CN106339862A (en) Information processing method and mobile terminal
CN107197493A (en) A network switching method, network switching device and intelligent terminal
CN106341476B (en) Cloud device connection method and intelligent terminal
CN115589432A (en) Message push management method, device, medium and equipment
CN105100361A (en) Mobile terminal recording method and device
CN111400072B (en) Interface calling method, storage medium and related equipment
CN106339268B (en) Application program control method and intelligent terminal
CN106375966B (en) Message treatment method and intelligent terminal
CN107682902A (en) Method for controlling electronic equipment and electronic equipment
CN103648078B (en) User facility positioning method and user equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180629