WO2019085340A1 - 应用程序唤醒方法及唤醒设备 - Google Patents

应用程序唤醒方法及唤醒设备 Download PDF

Info

Publication number
WO2019085340A1
WO2019085340A1 PCT/CN2018/076229 CN2018076229W WO2019085340A1 WO 2019085340 A1 WO2019085340 A1 WO 2019085340A1 CN 2018076229 W CN2018076229 W CN 2018076229W WO 2019085340 A1 WO2019085340 A1 WO 2019085340A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
wake
source device
mac address
communication port
Prior art date
Application number
PCT/CN2018/076229
Other languages
English (en)
French (fr)
Inventor
萧维廷
文振兴
Original Assignee
青岛海信电器股份有限公司
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 青岛海信电器股份有限公司 filed Critical 青岛海信电器股份有限公司
Priority to US16/112,636 priority Critical patent/US20190132140A1/en
Publication of WO2019085340A1 publication Critical patent/WO2019085340A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Definitions

  • the embodiments of the present invention relate to the field of network communication technologies, and in particular, to an application wake-up method and a wake-up device.
  • the remote wake-up function of network devices has been around for a long time. This function was first proposed by AMD. It defines the Wake on LAN (WOL) standard and uses Media Access Control (Media Access Control).
  • WOL Wake on LAN
  • Media Access Control Media Access Control
  • the magic packet of the MAC address is transmitted through the LAN of the source device and the destination device through a User Datagram Protocol (UDP) and an Internet Protocol (IP).
  • UDP User Datagram Protocol
  • IP Internet Protocol
  • the network device of the source device receives the magic packet with its own MAC address, it will restore the working mode of the device from the sleep mode to the normal mode, and complete the wake-up procedure.
  • An embodiment of the present application provides an application wake-up method and a wake-up device for waking up an application in another device through one device.
  • a first aspect of the embodiments of the present application provides an application wakeup method, where the method includes:
  • the application of the source device starts the network wake-up function
  • the first notification message further includes: at a first time, the MAC address that represents the communication port is valid before the first time is reached.
  • the obtaining the MAC address of the communication port of the source device includes:
  • the obtaining the MAC address of the communication port of the source device includes:
  • the first notification message is a message frame in which the wake-up function is enabled, where the message frame includes a command identifier bar, an application identifier bar, a MAC address bar, and multiple or all of the timeout setting columns.
  • a second aspect of the embodiments of the present application provides an application wakeup method, where the method includes:
  • the target device After establishing a connection between the target device and the source device, receiving at least one first notification message sent by the source device, where the first notification message includes a MAC address of a communication port of the source device and an application of the source device Identification;
  • a wakeup message is sent to the MAC address corresponding to the identity of the application of the source device.
  • a third aspect of the embodiments of the present application provides a wake-up device, including a memory for storing computer instructions, and a processor coupled to the memory, the processor configured to execute an instruction stored in the memory to implement:
  • the first notification message further includes: at a first time, the MAC address that represents the communication port is valid before the first time is reached.
  • the processor acquires a MAC address of a communication port of the wake-up device by:
  • the processor acquires a MAC address of a communication port of the wake-up device by acquiring an operation, and acquiring a MAC address of at least two communication ports of the wake-up device.
  • the first notification message is a message frame in which the wake-up function is enabled, where the message frame includes a command identification field, an application identifier field, a MAC address field, and a plurality of or all of the timeout setting columns.
  • a fourth aspect of the embodiments of the present application provides a wake-up device, including a memory for storing computer instructions, and a processor coupled to the memory, the processor being configured to execute an instruction stored in the memory to implement:
  • the source device After establishing a connection with the source device, receiving at least one first notification message sent by the source device, where the first notification message includes a MAC address of a communication port of the source device and an identifier of an application of the source device ;as well as
  • a wakeup message is sent to the MAC address corresponding to the identity of the application of the source device.
  • FIG. 1 is a flowchart of an application wake-up method according to an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a first notification message according to an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of a second notification message according to an embodiment of the present disclosure.
  • FIG. 4 is a flowchart of an application wake-up method according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a wake-up device according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a wake-up device according to an embodiment of the present disclosure.
  • FIG. 1 is a flowchart of an application wake-up method according to an embodiment of the present application. As shown in FIG. 1 , the method includes the following steps:
  • Step 101 After establishing a connection between the source device and the target device, the application of the source device starts the network wake-up function.
  • the source device and the target device involved in this embodiment may be devices with a network wake-up function such as a mobile phone, a tablet computer, a television, a notebook computer, and the like.
  • only one application can be woken up at the same time in one device, but multiple applications supporting the network wake-up function can be set simultaneously in one device.
  • connection between the source device and the target device may be a connection between the device and the device, or may be a connection between the application and the application.
  • a case where a connection is established between an application and an application is taken as an example for description.
  • the search, pairing, and connection establishment between the source device and the target device are in accordance with the existing Universal Plug and Play Protocol (UPNP) or other specifications, and the specific implementation process is not described here.
  • UPNP Universal Plug and Play Protocol
  • Step 102 Obtain a MAC address of a communication port of the source device and an identifier of an application of the source device.
  • the application when the application of the source device starts the network wake-up function, the application sends a first request message to the wake-up device, where the first request message carries at least the identifier of the application of the source device, and optionally, can also carry The type information of the communication port of the source device, the IP address of the application of the source device, and the IP address of the application of the target device connected to the application of the source device.
  • the type information of the communication port is used to identify the requirement of the application to receive the communication port of the wake-up message (such as the requirement to receive only the wake-up message of the wired port), and the IP address of the application of the target device establishes the connection between the source device and the target device. Obtained after the line.
  • the MAC address of the communication port of the source device that is obtained in this embodiment includes the MAC address of the wireless port of the source device and/or the MAC address of the wired port. Preferably, at least two available communication ports of the source device are obtained in this embodiment. MAC address. "Available" means that these ports are available on the physical layer and do not limit whether these ports are active.
  • the wake-up device when the type information of the communication port is included in the first request message, the wake-up device only obtains the MAC address of the communication port in the source device that matches the type information.
  • the wake-up device when the application requires only receiving the wake-up message of the wired port, the wake-up device only obtains the MAC address of at least one wired port available on the source device. That is, the MAC address of the communication port that matches the type information in the source device in this embodiment may be exemplarily expressed as obtaining a MAC address of a wireless communication port that matches the application, or a cable matching the application.
  • the MAC address of the communication port may be exemplarily expressed as obtaining a MAC address of a wireless communication port that matches the application, or a cable matching the application.
  • the MAC address of the communication port is for illustrative purposes only and is not a limitation of the application.
  • Step 103 Send at least one first notification message to the target device, so that the target device wakes up an application of the source device according to the first notification message, where the first notification message includes the source device The MAC address of the communication port and the identity of the application of the source device.
  • the first notification message in this embodiment includes at least the identifier of the application of the source device and the MAC address of the communication port of the source device obtained above.
  • the first time for the timeout setting and the IP address of the communication port of the source device may be further included, where the first time is used to indicate how long the validity period of the obtained MAC address is, and the foregoing time before the first time arrives.
  • the obtained MAC address is valid, and the MAC address obtained above fails after the first time arrives.
  • the first time may be that the application of the source device is carried in the first request message when the first request message is sent, or may be set by the source device according to the preset policy. This embodiment is not for the first time.
  • the setting method is specifically limited.
  • the source device sends multiple first notification messages to the target device, where each first notification message includes a MAC address of the source device and an identifier of the application of the source device. Until the MAC address of all source devices obtained is sent to the target device.
  • FIG. 2 is a schematic structural diagram of a first notification message according to an embodiment of the present disclosure.
  • the first notification message may be in the form of a message frame as shown in FIG. 2.
  • the message frame includes at least a command identification bar, an application identifier bar, a MAC address bar, and a timeout.
  • the setting column is as shown in FIG. 2, wherein when the character under the command recognition column is a preset character form ("0x01" in FIG.
  • the first notification message (in the form of a message frame) is used to open Wake-up function, at this time, 16 bytes in the application identifier column is the identifier of the application, and 6 bytes in the MAC address column are used to indicate the MAC address corresponding to the application of the source device, and 2 in the timeout setting column.
  • the byte is used to represent the value of the first time.
  • this is for illustrative purposes only and is not a limitation of the application.
  • the target device After the target device receives the at least one first notification message, the identifier of the application carried in the first notification message is stored in association with the MAC address.
  • Table 1 shows an example of the correspondence between the application ID and MAC address stored by the target device:
  • the application identifier UUID1 and the application identifier UUID3 respectively represent two applications running on the same device, the device has three available communication ports, and the application represented by UUID1 Three communication ports can be allowed to wake up, but the application represented by UUID3 only allows one of the communication ports (MAC address -33:56:6A:23:1B:C7) to wake up.
  • the application represented by UUID2 runs on another device. Different applications have different first time, but different wake-up ports of the same application will have the same first time.
  • Table 1 is merely illustrative of how the target device stores the application identification and MAC address, and is not a limitation of the present invention.
  • Application identification UUID IP address MAC address first timing UUID1 192.168.1.123 33:56:6A:23:1B:C7 1200s UUID1 192.168.1.125 A0:12:45:67:09:12 1200s UUID1 192.168.1.133 A0:73:27:56:90:09 1200s UUID2 192.168.1.100 56:78:12:09:88:A2 3000s UUID3 192.168.1.123 33:56:6A:23:1B:C7 1800s
  • the target device When performing the operation of initiating the wake-up application, the target device locally searches for all MAC addresses corresponding to the identifier according to the identifier of the application. Further, the target device may select to send a wake-up message to all MAC addresses obtained by the search, or may choose to Find one or more of the obtained MAC addresses to send a wake-up message.
  • the embodiment may further include a method for turning off the network wake-up function of the application. Specifically, when the wake-up device receives the second request message that the application in the source device requests to disable the network wake-up function, first obtaining the identifier of the application of the source device from the second request message, and then identifying the identifier of the application of the source device. The device is sent to the target device in the second notification message, so that the target device deletes the correspondence between the locally stored identifier of the application and the MAC address according to the second notification message, so as to close the service that wakes up the application.
  • FIG. 3 is a schematic structural diagram of a second notification message according to an embodiment of the present disclosure.
  • the second notification message may be in the form of a message frame as shown in FIG. 3, as shown in FIG. 3, where the command identifies a character under a column as
  • the preset character form (“0x02" in FIG. 3) indicates that the second notification message (in the form of a message frame) is used to turn off the wake-up function, and the 16 bytes in the application identification column are the source devices.
  • the identity of the app is for illustrative purposes only and is not a limitation of the application.
  • the MAC address of the communication port of the source device and the identifier of the application of the source device are obtained, and Transmitting, to the target device, a first notification message including a MAC address of the communication port of the source device and an identifier of the application of the source device, thereby enabling the target device to transmit to the MAC address corresponding to the identifier of the application based on the first notification message Wake up the application's wake-up message to achieve the purpose of waking up the source device application.
  • the target device can send the wakeup message to the multiple MAC addresses corresponding to the identifier of the application in this embodiment, the success rate of the wakeup can be improved compared to the prior art that sends the wakeup message to the single MAC address.
  • FIG. 4 is a flowchart of an application wake-up method according to an embodiment of the present disclosure. As shown in FIG. 4, the method includes:
  • Step 401 After establishing a connection between the target device and the source device, receive at least one first notification message sent by the source device, where the first notification message includes a MAC address of a communication port of the source device, and a source device of the source device The identity of the application.
  • the receiving, by the source device, the at least one first notification message includes:
  • each message frame including a MAC address and an identifier of an application in the source device.
  • Step 402 Send a wakeup message to the MAC address corresponding to the identifier of the application of the source device when performing the operation of waking up the application.
  • the first notification message in this embodiment may further include: at a first time, the MAC address of the at least one available communication port carried in the first notification message is valid before the first time is reached.
  • the method provided in this embodiment may further include: receiving a second notification message sent by the source device, where the second notification message includes an identifier of an application in the source device; deleting the locally stored The correspondence between the application's identity and the MAC address to turn off the service that wakes up the application.
  • FIG. 5 is a schematic structural diagram of a wake-up device according to an embodiment of the present disclosure. As shown in FIG. 5, the wake-up device includes:
  • the obtaining module 11 is configured to establish a connection between the wake-up device and the target device, and acquire, when the application running by the wake-up device starts the network wake-up function, the MAC address of the communication port of the wake-up device and the wake-up device The identity of the application;
  • the sending module 12 is configured to send the at least one first notification message to the target device, so that the target device wakes up an application of the source device according to the first notification message, where the first notification message includes The MAC address of the communication port of the wake-up device and the identity of the application of the wake-up device.
  • the first notification message further includes: at a first time, the MAC address that represents the at least one available communication port is valid before the first time is reached.
  • the acquiring module is configured to:
  • the acquiring module is configured to acquire a MAC address of at least two communication ports of the wake-up device.
  • the sending module is configured to send a message frame to the target device, where each message frame includes a MAC address and an identifier of the application, until all MAC addresses of the obtained communication port are sent to The target device is up to now.
  • the wake-up device further includes:
  • a second receiving module configured to receive a second request message that the application of the wake-up device requests to disable the network wake-up function, where the second request message includes an identifier of the application;
  • a second sending module configured to send a second notification message to the target device, where the second notification message includes an identifier of the application, so that the target device turns off the application that wakes up the application according to the second notification message. service.
  • the awake device provided in this embodiment can perform the technical solution of the embodiment of FIG. 1 , and the execution manner and the beneficial effects are similar, and details are not described herein again.
  • the present application also provides a wake-up device including a memory for storing computer instructions, a processor coupled to the memory, the processor configured to execute instructions stored in the memory to implement: between the target device Establishing a connection, and when the application running by the wake-up device starts the network wake-up function, acquiring a MAC address of the communication port of the wake-up device and an identifier of an application of the wake-up device; and transmitting at least the target device a first notification message, so that the target device wakes up an application of the source device according to the first notification message, where the first notification message includes a MAC address of the communication port of the wake-up device and the wake-up The identity of the device's application.
  • the processor in the wake-up device of this embodiment may also be configured to perform the application wake-up method provided by the embodiment of FIG. 1 of the present application, and the implementation principles thereof are similar, and details are not described herein again.
  • FIG. 6 is a schematic structural diagram of a wake-up device according to an embodiment of the present disclosure. As shown in FIG. 6, the wake-up device includes:
  • the receiving module 21 is configured to receive, after the connection between the awake device and the source device, the at least one first notification message sent by the source device, where the first notification message includes a MAC address and a location of the communication port of the source device.
  • the sending module 22 is configured to send a wakeup message to the MAC address corresponding to the identifier of the application of the source device when performing the operation of waking up the application.
  • the first notification message further includes: at a first time, the MAC address that represents the at least one available communication port is valid before the first time is reached.
  • the receiving module is configured to receive at least one message frame sent by the source device, where each message frame includes a MAC address and an identifier of an application in the source device.
  • the wake-up device further includes:
  • a second receiving module configured to receive a second notification message sent by the source device, where the second notification message includes an identifier of an application in the source device;
  • the deletion module is configured to delete the correspondence between the locally stored identifier of the application and the MAC address to close the service that wakes up the application.
  • the awake device provided in this embodiment can perform the technical solution of the embodiment of FIG. 4, and the execution manner and the beneficial effects are similar, and details are not described herein again.
  • the present application also provides a wake-up device including a memory for storing computer instructions, a processor coupled to the memory, the processor configured to execute instructions stored in the memory to implement: between the source device and the source device After establishing the connection, receiving at least one first notification message sent by the source device, where the first notification message includes a MAC address of a communication port of the source device and an identifier of an application of the source device; and performing a wakeup When the operation of the application is described, a wake-up message is sent to the MAC address corresponding to the identifier of the application of the source device.
  • the processor in the device of this embodiment may be configured to perform the application wake-up method provided by the embodiment of FIG. 4 of the present application, and the implementation principles thereof are similar, and details are not described herein again.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM).
  • Each functional unit in the embodiment of the present application may be integrated into one processing module, or may be physically existed separately for each unit, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as separate products, may also be stored in a computer readable storage medium.
  • the storage medium mentioned above may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

一种应用程序唤醒方法及唤醒设备,其中,该方法包括:源设备和目标设备之间建立连线后,所述源设备的应用程序开启网络唤醒功能(101);获取所述源设备的通信端口的MAC地址和所述源设备的应用程序的标识(102);向所述目标设备发送至少一个第一通知消息,以使所述目标设备根据所述第一通知消息唤醒所述源设备的应用程序,所述第一通知消息中包括所述源设备的通信端口的MAC地址和所述源设备的应用程序的标识(103)。该方法及唤醒设备,能够通过一个设备唤醒另一个设备中的应用程序。

Description

应用程序唤醒方法及唤醒设备
相关申请交叉引用
本申请要求于2017年10月31日提交中国专利局、申请号为201711046413.3、发明名称为“应用程序唤醒方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及网络通信技术领域,尤其涉及一种应用程序唤醒方法及唤醒设备。
背景技术
网络设备的远端唤醒功能由来已久,这个功能最早由AMD公司提出,其定义了网络唤醒(Wake on LAN,简称WOL)标准,使用携带有源端设备的媒体访问控制(Media Access Control,简称MAC)地址的魔术包,透过用户数据报协议(User Datagram Protocol,简称UDP)及网络之间互连的协议(Internet Protocol,简称IP)在源端设备和目标端设备所处的局域网进行发送。当源端设备的网卡收到带有自己MAC地址的魔术包时,便会将设备的工作模式从睡眠模式恢复成正常模式,完成唤醒的程序。
发明内容
本申请实施例提供一种应用程序唤醒方法及唤醒设备,用以通过一个设备唤醒另一个设备中的应用程序。
本申请实施例第一方面提供一种应用程序唤醒方法,该方法包括:
源设备和目标设备之间建立连线后,所述源设备的应用程序开启网络唤醒功能;
获取所述源设备的通信端口的MAC地址和所述源设备的应用程序的标识;以及
向所述目标设备发送至少一个第一通知消息,以使所述目标设备根据所述第一通知消息唤醒所述源设备的应用程序,所述第一通知消息中包括所述源设备的通信端口的MAC地址和所述源设备的应用程序的标识。
可选的,所述第一通知消息中还包括:第一时间,表征所述通信端口的MAC地址在到达所述第一时间之前有效。
可选的,所述获取所述源设备的通信端口的MAC地址,包括:
获取与所述应用程序匹配的无线通信端口的MAC地址,或与所述应用程序匹配的有线通信端口的MAC地址。
可选的,所述获取所述源设备的通信端口的MAC地址,包括:
获取所述源设备的至少两个通信端口的MAC地址。
可选的,所述第一通知消息为开启唤醒功能的消息帧,其中所述消息帧包括命令识别栏、应用程序标识栏、MAC地址栏以及超时设置栏中的多种或全部
本申请实施例第二方面提供一种应用程序唤醒方法,该方法包括:
目标设备和源设备之间建立连线后,接收源设备发送的至少一个第一通知消息,所述第一通知消息包括所述源设备的通信端口的MAC地址和所述源设备的应用程序的标识;以及
在执行唤醒所述应用程序的操作时,向所述源设备的应用程序的标识所对应的MAC地址发送唤醒消息。
本申请实施例第三方面提供一种唤醒设备,包括存储器,用于存储计算机指令;处理器,与所述存储器连接,该处理器配置为执行存储在所述存储器中的指令以实现:
在与目标设备之间建立连线,且在所述唤醒设备运行的应用程序开启网络唤醒功能时,获取所述唤醒设备的通信端口的MAC地址和所述唤醒设备的应用程序的标识;以及
向所述目标设备发送至少一个第一通知消息,以使所述目标设备根据所述第一通知消息唤醒所述源设备的应用程序,所述第一通知消息中包括所述唤醒设备的通信端口的MAC地址和所述唤醒设备的应用程序的标识。
可选的,所述第一通知消息中还包括:第一时间,表征所述通信端口的MAC地址在到达所述第一时间之前有效。
可选的,所述处理器通过下述操作获取所述唤醒设备的的通信端口的MAC地址:
获取与所述应用程序匹配的无线通信端口的MAC地址,或与所述应用程序匹配的有线通信端口的MAC地址。
可选的,所述处理器通过下述操作获取所述唤醒设备的通信端口的MAC地址,获取所述唤醒设备的至少两个通信端口的MAC地址。
可选的,所述第一通知消息为开启唤醒功能的消息帧,其中所述消息帧包括命令识别栏、应用程序标识栏、MAC地址栏以及超时设置栏中的多个或全部。
本申请实施例第四方面提供一种唤醒设备,包括存储器,用于存储计算机指令;处理器,与所述存储器连接,该处理器配置为执行存储在所述存储器中的指令以实现:
在与源设备之间建立连线后,接收源设备发送的至少一个第一通知消息,所述第一通知消息包括所述源设备的通信端口的MAC地址和所述源设备的应用程序的标识;以及
在执行唤醒所述应用程序的操作时,向所述源设备的应用程序的标识所对应的MAC地址发送唤醒消息。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本申请一实施例提供的一种应用程序唤醒方法的流程图;
图2为本申请一实施例提供的第一通知消息的结构示意图;
图3为本申请一实施例提供的第二通知消息的结构示意图;
图4为本申请一实施例提供的一种应用程序唤醒方法的流程图;
图5为本申请一实施例提供的一种唤醒设备的结构示意图;
图6为本申请一实施例提供的一种唤醒设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤的过程或结构的装置不必限于清楚地列出的那些结构或步骤而是可包括没有清楚地列出的或对于这些过程或装置固有的其它步骤或结构。
本申请实施例提供一种应用程序唤醒方法。该方法可以由一种应用程序唤醒设备(简称唤醒设备)来执行,该唤醒设备设置在下述的源设备中。参见图1,图1为本申请一实施例提供的一种应用程序唤醒方法的流程图,如图1所示,该方法包括如下步骤:
步骤101、源设备和目标设备之间建立连线后,所述源设备的应用程序开启网络唤醒功能。
本实施例中涉及的源设备和目标设备可以是手机,平板电脑,电视、笔记本电脑等具有网络唤醒功能的设备。
本实施例中一个设备中同时只能唤醒一个应用程序,但是一个设备中可以同时设置多个支持网络唤醒功能的应用程序。
本实施例中源设备和目标设备之间的连线可以是设备和设备之间的连线,也可以是应用程序和应用程序之间的连线。本实施例中以应用程序和应用程序之间建立连线的情况为例来进行说明。其中,源设备和目标设备之间的搜索、配对和连线建立均遵循现有的通用即插即用协议(UPNP)或者其他规范,其具体执行过程在这里不再赘述。
步骤102、获取所述源设备的通信端口的MAC地址和所述源设备的应用程序的标识。
本实施例中,当源设备的应用程序开启网络唤醒功能时,应用程序向唤醒设备发送第一请求消息,第一请求消息中至少携带源设备的应用程序的标识,可选的,还可以携带源设备的通信端口的类型信息、源设备的应用程序的IP地址和与源设备的应用程序连线的目标设备的应用程序的IP地址。其中,通信端口的类型信息用于表征应用程序对接收唤醒消息的通信端口的要求(比如只接收有线端口的唤醒消息的要求),目标设备的应用程序的IP地址为源设备和目标设备建立连线后获得的。
本实施例中获取到的源设备的通信端口的MAC地址包括源设备的无线端口的MAC地址和/或有线端口的MAC地址,优选的,本实施例中获取源设备的至少两个可用通信端口的MAC地址。其中“可用”是指这些端口在物理层上可用,而不限定这些端口是否处于激活状态。
可选的,当第一请求消息中包括通信端口的类型信息,唤醒设备只获取源设备中与该类型信息相匹配的通信端口的MAC地址。比如应用程序要求只接收有线端口的唤醒消息时,唤醒设备只获取源设备上可用的至少一个有线端口的MAC地址。也就是说,本实施例中获取源设备中与该类型信息相匹配的通信端口的MAC地址可示例性的表述为获取与应用程序匹配的无线通信端口的MAC地址,或与应用程序匹配的有线通信端口的MAC地址。当然这里仅为示例说明而不是对本申请的唯一限定。
步骤103、向所述目标设备发送至少一个第一通知消息,以使所述目标设备根据所述第一通知消息唤醒所述源设备的应用程序,所述第一通知消息中包括所述源设备的通信端口的MAC地址和所述源设备的应用程序的标识。
具体的,本实施例中第一通知消息至少包括源设备的应用程序的标识和上述获得的源设备的通信端口的MAC地址。可选的,还可以包括用于超时设置的第一时间以及源设备的通信端口的IP地址,其中,第一时间用于指示上述获得的MAC地址的有效期是多久,在第一时间到达之前上述获得的MAC地址有效,第一时间到达之后上述获得的MAC地址失效。
其中,第一时间可以是源设备的应用程序发送第一请求消息时携带在第一请求消息中的,也可以是源设备根据预设的策略自行设定的,本实施例不对第一时间的设定方式做具体限定。
当获取到的源设备的MAC地址为多个时,源设备向目标设备发送多个第一通知消息,每个第一通知消息中均包括一个源设备的MAC地址和源设备的应用程序的标识,直至将获取到的所有源设备的MAC地址发送给目标设备为止。
图2为本申请一实施例提供的第一通知消息的结构示意图。第一通知消息可以是如图2所示的消息帧形式,当第一通知消息为开启唤醒功能的消息帧时,所述消息帧至少包括命令识别栏、应用程序标识栏、MAC地址栏以及超时设置栏,如图2所示,其中当命令识别栏下的字符为预设的字符形式(图2中为“0x01”)时表示该第一通知消息(以消息帧的形式)是用于开启唤醒功能,此时应用程序标识栏中的16个字节为应用程序的标识,MAC地址栏中的6个字节用于表示源设备的应用程序对应的MAC地址,超时设置栏中的2个字节用于表示第一时间的值。当然这里仅为示例说明而不是对本申请的唯一限定。
当目标设备接收到至少一个第一通知消息后,将第一通知消息中携带的应用程序的标识和MAC地址进行关联存储。
表一为目标设备存储的应用程序标识和MAC地址之间对应关系的一个示例:
如表一所示,在表一所示的场景中应用程序标识UUID1和应用程序标识UUID3分别代表运行在同一个设备上的两个应用程序,该设备有三个可用通信端口,UUID1代表的应用程序可允许三个通信端口唤醒,但UUID3代表的应用程序只允许其中一个通信端口(MAC地址-33:56:6A:23:1B:C7)唤醒。UUID2代表的应用程序运行在另一个设备上。而不同的应用程序都有不同的第一时间,但同一个应用程序的不同唤醒端口会有相同的第一时间。当然,表一仅为示例性的说明目标设备是怎样存储应用程序标识和MAC地址的,而不是对本发明的唯一限定。
表一
应用识别UUID IP地址 MAC地址 第一时间
UUID1 192.168.1.123 33:56:6A:23:1B:C7 1200s
UUID1 192.168.1.125 A0:12:45:67:09:12 1200s
UUID1 192.168.1.133 A0:73:27:56:90:09 1200s
UUID2 192.168.1.100 56:78:12:09:88:A2 3000s
UUID3 192.168.1.123 33:56:6A:23:1B:C7 1800s
在执行发起唤醒应用程序的操作时,目标设备根据应用程序的标识从本地查找该标识对应的所有MAC地址,进一步的,目标设备可以选择向查找获得的所有MAC地址发送唤醒消息,也可以选择向查找获得的所有MAC地址中的一个或多个MAC地址发送唤醒消息。
可选的,本实施例还可以包括关闭应用程序的网络唤醒功能的方法。具体的,当唤醒设备接收到源设备中应用程序请求关闭网络唤醒功能的第二请求消息时,首先从第二请求消息中获取源设备的应用程序的标识,再将源设备的应用程序的标识携带在第二通知消息中发送给目标设备,进而使得目标设备根据第二通知消息删除本地存储的该应用程序的标识和MAC地址之间的对应关系,以关闭唤醒该应用程序的服务。
图3为本申请一实施例提供的第二通知消息的结构示意图,第二通知消息可以是如图3所示的消息帧形式,如图3所示,其中当命令识别一栏下的字符为预设的字符形式(图3中为“0x02”)时表示该第二通知消息(以消息帧的形式)是用于关闭唤醒功能,此时应用程序标识栏中的16个字节为源设备的应用程序的标识。当然这里仅为示例说明而不是对本申请的唯一限定。
本申请实施例,通过在源设备和目标设备之间建立连接,且源设备的应用程序开启网络唤醒功能时,获取源设备的通信端口的MAC地址和所述源设备的应用程序的标识,并向目标设备发送包括源设备的通信端口的MAC地址和源设备的应用程序的标识的第一通知消息,从而使得目标设备能够基于第一通知消息,向应用程序的标识对应的MAC地址发送用于唤醒该应用程序的唤醒消息,从而达到唤醒源设备应用程序的目的。并且由于本实施例中目标设备可以向应用程序的标识对应的多个MAC地址发送唤醒消息,因此,相较于向单一MAC地址发送唤醒消息的现有技术,能够提高唤醒的成功率。
本申请实施例提供一种应用程序唤醒方法。该方法可以由一种应用程序唤醒设备(简称唤醒设备)来执行,该唤醒设备设置在下述的目标设备中。参见图4,图4为本申请一实施例提供的一种应用程序唤醒方法的流程图,如图4所示,该方法包括:
步骤401、目标设备和源设备之间建立连线后,接收源设备发送的至少一个第一通知消息,所述第一通知消息包括所述源设备的通信端口的MAC地址和所述源设备的应用程序的标识。
可选的,本实施例中,接收源设备发送的至少一个第一通知消息,包括:
接收源设备发送的至少一个消息帧,每个消息帧中均包括一个MAC地址和所述源设备中应用程序的标识。
步骤402、在执行唤醒所述应用程序的操作时,向所述源设备的应用程序的标识所对应的MAC地址发送唤醒消息。
可选的,本实施例中第一通知消息还可以包括:第一时间,在到达第一时间之前第一通知消息中携带的至少一个可用通信端口的MAC地址有效。
可选的,本实施例提供的方法还可以包括:接收所述源设备发送的第二通知消息,所述第二通知消息包括所述源设备中的应用程序的标识;删除本地存储的所述应用程序的标识和MAC地址之间的对应关系,以关闭唤醒所述该应用程序的服务。
本实施例提供的方法其具体执行方式和有益效果与图1实施例类似,在这里不再赘述。
图5为本申请一实施例提供的一种唤醒设备的结构示意图,如图5所示,该唤醒设备包括:
获取模块11,用于在唤醒设备与目标设备之间建立连线,且在所述唤醒设备运行的应用程序开启网络唤醒功能时,获取所述唤醒设备的通信端口的MAC地址和所述唤醒设备的应用程序的标识;以及
发送模块12,用于向所述目标设备发送至少一个第一通知消息,以使所述目标设备根据所述第一通知消息唤醒所述源设备的应用程序,所述第一通知消息中包括所述唤醒设备的通信端口的MAC地址和所述唤醒设备的应用程序的标识。
可选的,所述第一通知消息中还包括:第一时间,表征所述至少一个可用通信端口的MAC地址在到达所述第一时间之前有效。
可选的,所述获取模块,用于;
获取与所述应用程序匹配的无线通信端口的MAC地址,或与所述应用程序匹配的有线通信端口的MAC地址。
可选的,所述获取模块,用于获取所述唤醒设备的至少两个通信端口的MAC地址。
可选的,所述发送模块,用于向所述目标设备发送消息帧,每个消息帧中包括一个MAC地址和所述应用程序的标识,直至将获取到的通信端口的MAC地址全部发送给所述目标设备为止。
可选的,所述唤醒设备还包括:
第二接收模块,用于接收所述唤醒设备的应用程序请求关闭网络唤醒功能的第二请求消息,所述第二请求消息中包括该应用程序的标识;
第二发送模块,用于向所述目标设备发送第二通知消息,所述第二通知消息包括该应用程序的标识,以使所述目标设备根据所述第二通知消息关闭唤醒该应用程序的服务。
本实施例提供的唤醒设备能够执行图1实施例的技术方案,其执行方式和有益效果类似,在这里不再赘述。
本申请还提供一种唤醒设备,包括存储器,用于存储计算机指令;处理器,与所述存储器连接,该处理器配置为执行存储在所述存储器中的指令以实现:在与目标设备之间建立连线,且在所述唤醒设备运行的应用程序开启网络唤醒功能时,获取所述唤醒设备的通信端口的MAC地址和所述唤醒设备的应用程序的标识;以及向所述目标设备发送至少一个第一通知消息,以使所述目标设备根据所述第一通知消息唤醒所述源设备的应用程序,所述第一通知消息中包括所述唤醒设备的通信端口的MAC地址和所述唤醒设备的应用程序的标识。
本实施例的唤醒设备中的处理器还可被配置用于执行本申请图1实施例提供的应用程序唤醒方法,其实现原理相类似,此处不再赘述。
图6为本申请一实施例提供的一种唤醒设备的结构示意图,如图6所示,该唤醒设备包括:
接收模块21,用于在唤醒设备与源设备之间建立连线后,接收源设备发送的至少一个第一通知消息,所述第一通知消息包括所述源设备的通信端口的MAC地址和所述源设备的应用程序的标识;以及
发送模块22,用于在执行唤醒所述应用程序的操作时,向所述源设备的应用程序的标识所对应的MAC地址发送唤醒消息。
可选的,所述第一通知消息中还包括:第一时间,表征所述至少一个可用通信端口的MAC地址在到达所述第一时间之前有效。
可选的,所述接收模块,用于接收源设备发送的至少一个消息帧,每个消息帧中均包括一个MAC地址和所述源设备中应用程序的标识。
可选的,所述唤醒设备还包括:
第二接收模块,用于接收所述源设备发送的第二通知消息,所述第二通知消息包括所述源设备中的应用程序的标识;
删除模块,用于删除本地存储的该应用程序的标识和MAC地址之间的对应关系,以关闭唤醒该应用程序的服务。
本实施例提供的唤醒设备能够执行图4实施例的技术方案,其执行方式和有益效果类似,在这里不再赘述。
本申请还提供一种唤醒设备,包括存储器,用于存储计算机指令;处理器,与所述存储器连接,该处理器配置为执行存储在所述存储器中的指令以实现:在与源设备之间建立连线后,接收源设备发送的至少一个第一通知消息,所述第一通知消息包括所述源设备的通信端口的MAC地址和所述源设备的应用程序的标识;以及在执行唤醒所述应用程序的操作时,向所述源设备的应用程序的标识所对应的MAC地址发送唤醒消息。
本实施例的设备中的处理器还可被配置用于执行本申请图4实施例提供的应用程序唤醒方法,其实现原理相类似,此处不再赘述。
最后需要说明的是,本领域普通技术人员可以理解上述实施例方法中的全部或者部分流程,是可以通过计算机程序来指令相关的硬件完成,所述的程序可存储于一计算机可读存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可以为磁盘、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。
本申请实施例中的各个功能单元可以集成在一个处理模块中,也可以是各个单元单独的物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现,并作为独立的产品销售或使用时,也可以存储在一个计算机可读存储介质中。上述提到的存储介质可以是只读存储器、磁盘或光盘等。
以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施 例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (12)

  1. 一种应用程序唤醒方法,其特征在于,包括:
    源设备和目标设备之间建立连线后,所述源设备的应用程序开启网络唤醒功能;
    获取所述源设备的通信端口的媒体访问控制(MAC)地址和所述源设备的应用程序的标识;以及
    向所述目标设备发送至少一个第一通知消息,以使所述目标设备根据所述第一通知消息唤醒所述源设备的应用程序,所述第一通知消息中包括所述源设备的通信端口的MAC地址和所述源设备的应用程序的标识。
  2. 根据权利要求1所述的方法,其特征在于,所述第一通知消息中还包括:第一时间,表征所述通信端口的MAC地址在到达所述第一时间之前有效。
  3. 根据权利要求1所述的方法,其特征在于,所述获取所述源设备的通信端口的MAC地址,包括:
    获取与所述应用程序匹配的无线通信端口的MAC地址,或与所述应用程序匹配的有线通信端口的MAC地址。
  4. 根据权利要求1所述的方法,其特征在于,所述获取所述源设备的通信端口的MAC地址,包括:
    获取所述源设备的至少两个通信端口的MAC地址。
  5. 根据权利要求1所述的方法,其特征在于,所述第一通知消息为开启唤醒功能的消息帧,其中所述消息帧包括命令识别栏、应用程序标识栏、MAC地址栏以及超时设置栏中的多种或全部。
  6. 一种应用程序唤醒方法,其特征在于,包括:
    目标设备和源设备之间建立连线后,接收源设备发送的至少一个第一通知消息, 所述第一通知消息包括所述源设备的通信端口的媒体访问控制(MAC)地址和所述源设备的应用程序的标识;以及
    在执行唤醒所述应用程序的操作时,向所述源设备的应用程序的标识所对应的MAC地址发送唤醒消息。
  7. 一种唤醒设备,包括存储器,用于存储计算机指令;处理器,与所述存储器连接,该处理器配置为执行存储在所述存储器中的指令以实现:
    在与目标设备之间建立连线,且在所述唤醒设备运行的应用程序开启网络唤醒功能时,获取所述唤醒设备的通信端口的媒体访问控制(MAC)地址和所述唤醒设备的应用程序的标识;以及
    向所述目标设备发送至少一个第一通知消息,以使所述目标设备根据所述第一通知消息唤醒所述源设备的应用程序,所述第一通知消息中包括所述唤醒设备的通信端口的MAC地址和所述唤醒设备的应用程序的标识。
  8. 根据权利要求7所述的唤醒设备,所述第一通知消息中还包括:第一时间,表征所述通信端口的MAC地址在到达所述第一时间之前有效。
  9. 根据权利要求7所述的唤醒设备,所述处理器通过下述操作获取所述唤醒设备的通信端口的MAC地址:
    获取与所述应用程序匹配的无线通信端口的MAC地址,或与所述应用程序匹配的有线通信端口的MAC地址。
  10. 根据权利要求7所述的唤醒设备,所述处理器通过下述操作获取所述唤醒设备的通信端口的MAC地址:
    获取所述唤醒设备的至少两个通信端口的MAC地址。
  11. 根据权利要求7所述的唤醒设备,其特征在于,所述第一通知消息为开启唤醒功能的消息帧,其中所述消息帧包括命令识别栏、应用程序标识栏、MAC地址栏以及超时设置栏中的多个或全部。
  12. 一种唤醒设备,包括存储器,用于存储计算机指令;处理器,与所述存储器连接,该处理器配置为执行存储在所述存储器中的指令以实现:
    在与源设备之间建立连线后,接收源设备发送的至少一个第一通知消息,所述第一通知消息包括所述源设备的通信端口的媒体访问控制(MAC)地址和所述源设备的应用程序的标识;以及
    在执行唤醒所述应用程序的操作时,向所述源设备的应用程序的标识所对应的MAC地址发送唤醒消息。
PCT/CN2018/076229 2017-10-31 2018-02-11 应用程序唤醒方法及唤醒设备 WO2019085340A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/112,636 US20190132140A1 (en) 2017-10-31 2018-08-24 Method for waking on application and wake on device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711046413.3 2017-10-31
CN201711046413.3A CN107864042B (zh) 2017-10-31 2017-10-31 应用程序唤醒方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/112,636 Continuation US20190132140A1 (en) 2017-10-31 2018-08-24 Method for waking on application and wake on device

Publications (1)

Publication Number Publication Date
WO2019085340A1 true WO2019085340A1 (zh) 2019-05-09

Family

ID=61697136

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/076229 WO2019085340A1 (zh) 2017-10-31 2018-02-11 应用程序唤醒方法及唤醒设备

Country Status (2)

Country Link
CN (1) CN107864042B (zh)
WO (1) WO2019085340A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109787778A (zh) * 2019-01-02 2019-05-21 紫光华山信息技术有限公司 一种设备的唤醒方法和装置
CN109981299B (zh) * 2019-03-05 2021-06-01 青岛海信传媒网络技术有限公司 唤醒方法和装置
CN112350895B (zh) * 2020-11-05 2023-04-07 深圳Tcl新技术有限公司 应用程序的保活方法及装置、设备、计算机可读存储介质
CN114443152B (zh) * 2022-01-19 2023-07-14 苏州浪潮智能科技有限公司 网络唤醒开机方法及计算机设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562545A (zh) * 2008-04-15 2009-10-21 英业达股份有限公司 网络唤醒的测试方法
CN104079596A (zh) * 2013-03-26 2014-10-01 腾讯科技(深圳)有限公司 一种远程唤醒方法及装置
CN104469451A (zh) * 2014-11-12 2015-03-25 海信集团有限公司 一种终端设备的唤醒方法和装置
CN106302616A (zh) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 网络唤醒方法、远程服务器和网络交换设备

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101431443B (zh) * 2007-11-08 2011-04-13 英业达股份有限公司 网络唤醒测试系统及其方法
US20090210519A1 (en) * 2008-02-18 2009-08-20 Microsoft Corporation Efficient and transparent remote wakeup
US8213971B2 (en) * 2009-04-27 2012-07-03 Qualcomm Incorporated Apparatus and method for activating computer applications with SMS messaging
JP5108070B2 (ja) * 2010-09-21 2012-12-26 株式会社バッファロー 通信装置
US9473312B2 (en) * 2013-09-06 2016-10-18 Dell Products, L.P. Wake on application
CN105656846B (zh) * 2014-11-12 2019-01-08 宏碁股份有限公司 保持远端连接方法、电子装置与服务器
CN105897869B (zh) * 2016-03-29 2019-09-06 杭州数梦工场科技有限公司 一种app休眠的管理方法和装置
CN106791004B (zh) * 2016-11-28 2020-01-10 北京安云世纪科技有限公司 应用的自动唤醒方法、装置及移动终端
CN107231679B (zh) * 2017-06-20 2020-04-14 维沃移动通信有限公司 一种数据包处理方法及移动终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562545A (zh) * 2008-04-15 2009-10-21 英业达股份有限公司 网络唤醒的测试方法
CN104079596A (zh) * 2013-03-26 2014-10-01 腾讯科技(深圳)有限公司 一种远程唤醒方法及装置
CN104469451A (zh) * 2014-11-12 2015-03-25 海信集团有限公司 一种终端设备的唤醒方法和装置
CN106302616A (zh) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 网络唤醒方法、远程服务器和网络交换设备

Also Published As

Publication number Publication date
CN107864042B (zh) 2021-02-09
CN107864042A (zh) 2018-03-30

Similar Documents

Publication Publication Date Title
WO2019085340A1 (zh) 应用程序唤醒方法及唤醒设备
TWI646799B (zh) 遠端喚醒方法、連線伺服器及具有休眠模式的連網裝置
US9152195B2 (en) Wake on cloud
WO2018090830A1 (zh) 一种智能终端设备接入互联网的方法及装置
US20120278636A1 (en) Remote wake mechanism for a network system and remote wake method thereof
US10834185B2 (en) Activating a peer-to-peer communication channel
US20160234783A1 (en) Method for Waking Up Access Point Device, Device, and System
WO2016197866A1 (zh) 网络唤醒方法、远程服务器和网络交换设备
JP5823627B2 (ja) ネットワーク上でコンピュータ・システムを安全にウェイクするシステムおよび方法
US9288269B2 (en) Network presence offload
WO2015143871A1 (zh) 一种待机方法、家庭智能设备及待机系统
CN103475751A (zh) 一种ip地址切换的方法及装置
WO2016101545A1 (zh) 设备管理方法、装置及系统
US9819640B2 (en) Method for keeping remote connection, electronic device and server
WO2016095105A1 (zh) 一种唤醒无线保真网络的方法和终端
WO2017181682A1 (zh) 一种网关设备的管理系统及方法
WO2020220694A1 (zh) 路由器、网络连接方法及移动终端
KR20160123149A (ko) 전자 장치, 그 전자 장치를 턴-온시키기 위한 웨이크 업 장치, 웨이크 업 시스템 및 그 제어 방법
US10630532B2 (en) Wireless communication system, communication method, and information processing apparatus
TWI766035B (zh) 用於裝置管理之系統及方法
WO2021239032A1 (zh) 蓝牙协议连接方法、装置、存储介质及相关设备
WO2022027513A1 (zh) 通信方法、装置及系统
US20190132140A1 (en) Method for waking on application and wake on device
WO2016180141A1 (zh) 虚拟机状态管理方法及装置
WO2021134766A1 (zh) 确定设备状态的方法、装置、设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18874703

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18874703

Country of ref document: EP

Kind code of ref document: A1