WO2018133300A1 - Method and device for establishing data communication - Google Patents

Method and device for establishing data communication Download PDF

Info

Publication number
WO2018133300A1
WO2018133300A1 PCT/CN2017/087952 CN2017087952W WO2018133300A1 WO 2018133300 A1 WO2018133300 A1 WO 2018133300A1 CN 2017087952 W CN2017087952 W CN 2017087952W WO 2018133300 A1 WO2018133300 A1 WO 2018133300A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
wur
wake
message
window
Prior art date
Application number
PCT/CN2017/087952
Other languages
French (fr)
Chinese (zh)
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 CN201780066442.8A priority Critical patent/CN109891944B/en
Publication of WO2018133300A1 publication Critical patent/WO2018133300A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

Embodiments of the present invention relate to the technical field of communications, disclosed therein are a method and a device for establishing data communication, capable of solving the problem of the power consumption of a sender being too high in the process of establishing data communication. The method comprises: after a first device sending a first WUR message generated by the first device by means of a Wi-Fi interface of the first device in a working state, switching the state of the Wi-Fi interface of the first device from a working state to a non-working state or an intermittent working state; a second device receiving the first WUR message sent by the first device by means of a WUR interface of the second device in a working state, waking up a Wi-Fi interface of the second device, and sending a second WUR message generated by the second device to a WUR interface of the first device by means of the Wi-Fi interface of the second device; the first device receiving the second WUR message by means of the WUR interface of the first device, and waking up the Wi-Fi interface of the first device; then, the first device communicating with the Wi-Fi interface of the second device by means of the Wi-Fi interface of the first device. The embodiments of the present invention are suitable for establishing data communication.

Description

一种建立数据通信的方法及装置Method and device for establishing data communication
本申请要求于2017年1月19日提交中国专利局、申请号为201710044675.X、发明名称为“一种传输WUR消息的方法和设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application, filed on Jan. 19, 2017, filed Jan. In this application.
技术领域Technical field
本发明实施例涉及通信技术领域,尤其涉及一种建立数据通信的方法及装置。The embodiments of the present invention relate to the field of communications technologies, and in particular, to a method and an apparatus for establishing data communications.
背景技术Background technique
目前,若要实现发送者与接收者之间的数据通信,往往需要由通信过程的发起端(即发送者)通过发送唤醒包(wake-up packet)的方式唤醒接收者,其中,唤醒包可以为发送者发送的唤醒无线电/唤醒接收机(Wake-Up Radio/Receiver,WUR)消息。以支持802.11协议的接入点(Access Point,AP)为发送者、支持802.11协议的站点(Station,STA)为接收者为例,STA在传统无线保真(WIreless-Fidelity,Wi-Fi)接口的基础上,引入一个WUR接口。在STA中,STA的Wi-Fi接口通常处于休眠模式,只有在STA的WUR接口接收到AP通过AP自身的Wi-Fi接口发送的唤醒包,且STA的WUR接口向STA的Wi-Fi接口发送唤醒信号后,STA的Wi-Fi接口才会被激活,并实现与AP之间的数据通信。At present, in order to implement data communication between the sender and the receiver, it is often necessary for the originator (ie, the sender) of the communication process to wake up the receiver by sending a wake-up packet, wherein the wake-up packet can Wake-Up Radio/Receiver (WUR) message sent to the sender. The access point (AP) supporting the 802.11 protocol is the sender, the station supporting the 802.11 protocol (Station, STA) is the receiver, and the STA is in the traditional wireless fidelity (Wi-Fi) interface. Based on the introduction of a WUR interface. In the STA, the Wi-Fi interface of the STA is usually in the sleep mode. Only the WUR interface of the STA receives the wake-up packet sent by the AP through the Wi-Fi interface of the AP itself, and the WUR interface of the STA sends the Wi-Fi interface to the STA. After the wake-up signal, the STA's Wi-Fi interface is activated and data communication with the AP is achieved.
然而,上述实现过程虽然能够有效唤醒接收者的Wi-Fi接口,但会存在如下问题:接收者Wi-Fi接口的醒来需要较长时间,比如,需要几个毫秒(ms)级别;此外,接收者的Wi-Fi接口在醒来后不能立刻与AP之间进行数据通信,该Wi-Fi接口还需要耗费一定时间设置自身的网络分配矢量(network allocation vector,NAV),或是等待探询延迟(probe delay)的时间后才能向发送者发送Wi-Fi消息。However, although the above implementation process can effectively wake up the recipient's Wi-Fi interface, there is a problem that the wakeup of the receiver Wi-Fi interface takes a long time, for example, several milliseconds (ms) is required; The Wi-Fi interface of the receiver cannot immediately communicate with the AP after waking up. The Wi-Fi interface also takes a certain amount of time to set its own network allocation vector (NAV), or wait for the inquiry delay. The sender can send a Wi-Fi message to the sender after the time of (probe delay).
由于接收者的Wi-Fi接口从开始唤醒到正常工作的时间周期较长,因此,在这段时间内,发送者的Wi-Fi接口虽然一直处于工作状态,却一直未得到使用。而在这段时间内,发送者的Wi-Fi接口需要不断检查Wi-Fi信道并等待接收者发送Wi-Fi消息,因此,发送者Wi-Fi接口的耗电量会增加,进而增加发送者的耗电量。Since the receiver's Wi-Fi interface has a long period of time from the start of wake-up to normal operation, during this time, the sender's Wi-Fi interface has been in use, but has not been used. During this time, the sender's Wi-Fi interface needs to constantly check the Wi-Fi channel and wait for the receiver to send Wi-Fi messages. Therefore, the power consumption of the sender's Wi-Fi interface will increase, thereby increasing the sender. Power consumption.
发明内容Summary of the invention
本发明实施例提供一种建立数据通信的方法及装置,解决在建立数据通信过程中,发送者耗电量过高的问题。Embodiments of the present invention provide a method and an apparatus for establishing data communication, which solve the problem that a sender consumes too much power in establishing a data communication process.
为达到上述目的,本发明实施例采用如下技术方案:To achieve the above objective, the embodiment of the present invention adopts the following technical solutions:
第一方面,本发明实施例提供一种建立数据通信的方法。该方法具体包 括:在第一设备生成第一WUR消息后,第一设备通过第一设备的Wi-Fi接口向第二设备的WUR接口发送携带有反向唤醒指示信息的第一WUR消息,之后第一设备将第一设备的Wi-Fi接口状态从工作状态切换至非工作状态或间歇式工作状态,并通过第一设备的WUR接口,接收第二设备通过第二设备的Wi-Fi接口发送的第二WUR消息。在第一设备接收第二WUR消息后,第一设备唤醒第一设备的Wi-Fi接口,并通过第一设备的Wi-Fi接口与第二设备的Wi-Fi接口通信。其中,第一WUR消息用于指示第二设备唤醒第二设备的Wi-Fi接口,并通过第二设备的Wi-Fi接口发送第二WUR消息;反向唤醒指示信息用于指示第二设备通过第二设备的Wi-Fi接口发送第二WUR消息;第二WUR消息用于指示第一设备唤醒第一设备的Wi-Fi接口。相比较于现有技术中,在唤醒接收者的Wi-Fi接口的过程中,发送者的Wi-Fi接口虽然一直处于工作状态,却一直未得到使用的情况而言,在本发明实施例中,在第一设备通过第一设备的Wi-Fi接口发出第一WUR消息后,便将第一设备的Wi-Fi接口的状态切换到耗电量较低的状态,比如,非工作状态或间歇式工作状态。这样一来,在第二设备的Wi-Fi接口被唤醒前,第一设备的Wi-Fi接口并不会因为一直处于工作状态而增加第一设备的耗电量。也就意味着,在本发明实施例中,在唤醒第二设备的Wi-Fi接口后,通过反向唤醒处于非工作状态或间歇式工作状态的第一设备的Wi-Fi接口,以达到节省第一设备耗电量的目的。因此,在建立数据通信的过程中,降低了作为通信过程发起端的第一设备的耗电量。In a first aspect, an embodiment of the present invention provides a method for establishing data communication. Specific method package After the first device generates the first WUR message, the first device sends a first WUR message carrying the reverse wakeup indication information to the WUR interface of the second device by using the Wi-Fi interface of the first device, and then the first device Switching the Wi-Fi interface status of the first device from the working state to the non-working state or the intermittent working state, and receiving the second device sends the second device through the Wi-Fi interface of the second device through the WUR interface of the first device WUR message. After the first device receives the second WUR message, the first device wakes up the Wi-Fi interface of the first device, and communicates with the Wi-Fi interface of the second device through the Wi-Fi interface of the first device. The first WUR message is used to instruct the second device to wake up the Wi-Fi interface of the second device, and send the second WUR message through the Wi-Fi interface of the second device; the reverse wake-up indication information is used to indicate that the second device passes The Wi-Fi interface of the second device sends a second WUR message, where the second WUR message is used to instruct the first device to wake up the Wi-Fi interface of the first device. Compared with the prior art, in the process of waking up the Wi-Fi interface of the receiver, in the case where the sender's Wi-Fi interface is always in the working state but has not been used, in the embodiment of the present invention, After the first device sends the first WUR message through the Wi-Fi interface of the first device, the state of the Wi-Fi interface of the first device is switched to a state with a low power consumption, for example, a non-working state or an intermittent state. Working state. In this way, before the Wi-Fi interface of the second device is woken up, the Wi-Fi interface of the first device does not increase the power consumption of the first device because it is always in the working state. In other words, in the embodiment of the present invention, after waking up the Wi-Fi interface of the second device, the Wi-Fi interface of the first device in the non-working state or the intermittent working state is reversely awake to save the saving. The purpose of the first device to consume power. Therefore, in the process of establishing data communication, the power consumption of the first device as the originating end of the communication process is reduced.
在一种可能的设计中,在第一设备通过处于工作状态的第一设备的Wi-Fi接口向第二设备的WUR接口发送第一WUR消息时,第二设备的WUR接口处于第一醒来窗口,第一醒来窗口包括第二设备的WUR接口的一个醒来窗口、第一设备的Wi-Fi接口的一个醒来窗口、以及第一设备的Wi-Fi接口的一个醒来窗口和第二设备的WUR接口的一个醒来窗口之间重叠的醒来窗口中的任意一项。其中,醒来窗口用于表示接口处于工作状态的时间。由于第二设备的WUR接口在需要接收第一设备的Wi-Fi接口发送的第一WUR消息时处于工作状态,因此,能够确保第一设备发出的第一WUR消息被第二设备的WUR接口接收,从而使第二设备唤醒第二设备的Wi-Fi接口,进而完成后续反向唤醒及使用Wi-Fi消息通信的过程。In a possible design, when the first device sends the first WUR message to the WUR interface of the second device through the Wi-Fi interface of the first device in the working state, the WUR interface of the second device wakes up first. a window, the first wake-up window includes a wake-up window of the WUR interface of the second device, a wake-up window of the Wi-Fi interface of the first device, and a wake-up window and the first device's Wi-Fi interface Any of the wake-up windows that overlap between a wake-up window of the WUR interface of the second device. Among them, the wake-up window is used to indicate the time when the interface is in working state. The WUR interface of the second device is in the working state when it needs to receive the first WUR message sent by the Wi-Fi interface of the first device, so that the first WUR message sent by the first device can be received by the WUR interface of the second device. So that the second device wakes up the Wi-Fi interface of the second device, thereby completing the process of subsequent reverse wake-up and communication using Wi-Fi messages.
在一种可能的设计中,非工作状态包括等待状态(standby state)、浅休眠状态(shallow sleep state)、空闲状态(idle state)、省电状态(power saving state)、睡眠状态(sleep state)和休眠状态(doze state)中的任意一种。上述例举的各种非空闲状态仅为一种可能的示例,在本发明实施例中,相同接口在同一时间段内,处于非工作状态或间歇式工作状态所耗费的电量,小于处于工作状态所耗费的电量。In one possible design, the non-working state includes a standby state, a shallow sleep state, an idle state, a power saving state, and a sleep state. And any of the doze states. The various non-idle states exemplified above are only one possible example. In the embodiment of the present invention, the power consumption of the same interface in the non-working state or the intermittent working state in the same time period is less than the working state. The amount of electricity consumed.
在一种可能的设计中,第一WUR消息中携带有时间信息。该时间信息用于指示第二设备向第一设备发送第二WUR消息的时间。这样一来,就能为第二WUR消息预留出充足的信道资源,供第二设备向第一设备发送第二WUR消 息使用。In one possible design, the first WUR message carries time information. The time information is used to indicate when the second device sends the second WUR message to the first device. In this way, sufficient channel resources can be reserved for the second WUR message, and the second device sends the second WUR to the first device. Use.
在一种可能的设计中,第一设备通过第一设备的WUR接口,接收第二设备通过第二设备的Wi-Fi接口发送的第二WUR消息,可以具体实现为:第一设备在时间信息指示的时间范围内,通过第一设备的WUR接口,接收第二设备通过第二设备的Wi-Fi接口发送的第二WUR消息。这样一来,第一设备就能通过预留的信道资源接收第二设备发送的第二WUR消息。In a possible design, the first device receives the second WUR message sent by the second device through the Wi-Fi interface of the second device by using the WUR interface of the first device, and may be implemented as: The second WUR message sent by the second device through the Wi-Fi interface of the second device is received by the WUR interface of the first device in the indicated time range. In this way, the first device can receive the second WUR message sent by the second device by using the reserved channel resource.
在一种可能的设计中,第一WUR消息携带有无线保真前导Wi-Fi preamble。其中,Wi-Fi preamble中的长度域携带的时间长度至少包括第一设备发送第一WUR消息和第二设备发送第二WUR消息所需要的总时间。通过携带总时间的方式,可以告知第二设备将Wi-Fi接口置于工作状态的时间,同时也可以达到预留信道资源的目的。In one possible design, the first WUR message carries a wireless fidelity preamble Wi-Fi preamble. The length of the length field carried in the Wi-Fi preamble includes at least a total time required for the first device to send the first WUR message and the second device to send the second WUR message. By carrying the total time, the second device can be informed of the time when the Wi-Fi interface is placed in the working state, and the purpose of reserving the channel resources can also be achieved.
在一种可能的设计中,在第一设备将第一设备的Wi-Fi接口状态从工作状态切换至非工作状态或间歇式工作状态之后,若第一设备的WUR接口处于非工作状态、间歇式工作状态或关闭状态,则第一设备将第一设备的WUR接口状态切换至工作状态。在第一设备调整了第一设备Wi-Fi接口的状态之后,为了确保第一设备仍然能够接收到第二设备发出的第二WUR消息,则需要将第一设备的WUR接口置于工作状态。由此可见,若第一设备的WUR接口处于非工作状态、间歇式工作状态或关闭状态,则为了确保第二WUR消息的接收,需要调整第一设备的WUR接口的状态。In a possible design, after the first device switches the Wi-Fi interface state of the first device from the working state to the non-working state or the intermittent working state, if the WUR interface of the first device is in a non-working state, intermittent The working state or the closed state, the first device switches the WUR interface state of the first device to the working state. After the first device adjusts the state of the Wi-Fi interface of the first device, in order to ensure that the first device can still receive the second WUR message sent by the second device, the WUR interface of the first device needs to be placed in an active state. Therefore, if the WUR interface of the first device is in an inactive state, an intermittent working state, or a closed state, the state of the WUR interface of the first device needs to be adjusted to ensure the reception of the second WUR message.
在一种可能的设计中,为了提高数据传输的安全性,第一设备所生成的第一WUR消息中还可以携带有第一验证值。在第二设备通过第二设备的WUR接口接收到第一WUR消息后,可以通过生成第二验证值的方式,来确定第一验证值是否满足预先定义的数据传输条件,即第二设备是否具有解析第一设备发送的第一WUR消息的身份,或是第一设备是否具有向第二设备发送第一WUR消息的身份,若第一验证值与第二验证值匹配,则认为通过身份验证,即第一设备与第二设备之间可以继续进行后续的反向唤醒操作。In a possible design, in order to improve the security of the data transmission, the first WUR message generated by the first device may also carry the first verification value. After the second device receives the first WUR message through the WUR interface of the second device, whether the first verification value meets the predefined data transmission condition, that is, whether the second device has the second verification value, may be determined by generating the second verification value. Determining the identity of the first WUR message sent by the first device, or whether the first device has the identity of sending the first WUR message to the second device, and if the first verification value matches the second verification value, it is considered to be authenticated. That is, the subsequent reverse wake-up operation can be continued between the first device and the second device.
第二方面,本发明实施例提供一种建立数据通信的方法。该方法具体包括:第二设备通过第二设备的WUR接口,接收第一设备通过第一设备的WUR接口发送的携带有反向唤醒指示信息的第一WUR消息,并按照第一WUR消息的指示,唤醒第二设备的Wi-Fi接口,且生成用于指示第一设备唤醒第一设备的Wi-Fi接口的第二WUR消息。之后第二设备通过第二设备的Wi-Fi接口,向第一设备的WUR接口发送第二WUR消息,并在第二设备发送第二WUR消息后,第二设备通过第二设备的Wi-Fi接口与第一设备的Wi-Fi接口通信。相比较于现有技术中,在唤醒接收者的Wi-Fi接口的过程中,发送者的Wi-Fi接口虽然一直处于工作状态,却一直未得到使用的情况而言,在本发明实施例中,第二设备在接收到第一设备通过第一设备的WUR接口发送的第一WUR消息后,不仅需要唤醒第二设备的Wi-Fi接口,还要提供触发第一设备唤醒第一设备Wi-Fi接口的触发消息,即由第二设备通过第二设备的Wi-Fi接口向第一设备的WUR接口发送第二WUR消息。这样一来,第一设备在接收到第 二WUR消息后,就能够直接唤醒第一设备的Wi-Fi接口。由此可见,对于第一设备的Wi-Fi接口而言,是在第二设备的Wi-Fi接口被唤醒后才被唤醒的,因此,就不会存在现有技术中,作为发送者的第一设备,在唤醒第二设备(作为接收者)的Wi-Fi接口的过程中因Wi-Fi接口一直处于工作状态而持续耗电的情况,从而解决在建立数据通信过程中,第一设备耗电量过高的问题。In a second aspect, an embodiment of the present invention provides a method for establishing data communication. The method specifically includes: receiving, by the WUR interface of the second device, the second device, by using the WUR interface of the first device, the first WUR message carrying the reverse wakeup indication information, and according to the indication of the first WUR message Awakening the Wi-Fi interface of the second device, and generating a second WUR message for instructing the first device to wake up the Wi-Fi interface of the first device. After the second device sends the second WUR message to the WUR interface of the first device by using the Wi-Fi interface of the second device, and after the second device sends the second WUR message, the second device passes the Wi-Fi of the second device. The interface communicates with the Wi-Fi interface of the first device. Compared with the prior art, in the process of waking up the Wi-Fi interface of the receiver, in the case where the sender's Wi-Fi interface is always in the working state but has not been used, in the embodiment of the present invention, After receiving the first WUR message sent by the first device by using the WUR interface of the first device, the second device needs to wake up the Wi-Fi interface of the second device, and also provide the first device to wake up the first device Wi- The trigger message of the Fi interface, that is, the second device sends a second WUR message to the WUR interface of the first device by using the Wi-Fi interface of the second device. In this way, the first device receives the first After the second WUR message, the Wi-Fi interface of the first device can be directly awake. Therefore, the Wi-Fi interface of the first device is awakened after the Wi-Fi interface of the second device is woken up. Therefore, there is no prior art as the sender. In the process of waking up the Wi-Fi interface of the second device (as the receiver), the Wi-Fi interface continues to consume power due to the Wi-Fi interface, thereby solving the problem of the first device in the process of establishing data communication. The problem of excessive power.
在一种可能的设计中,在第二设备通过第二设备的WUR接口,接收第一设备通过第一设备的Wi-Fi接口向第二设备的WUR接口发送的第一WUR消息时,第二设备的WUR接口处于第一醒来窗口,第一醒来窗口包括第二设备的WUR接口的一个醒来窗口、第一设备的WUR接口的一个醒来窗口、以及第一设备的WUR接口的一个醒来窗口和第二设备的WUR接口的一个醒来窗口之间重叠的醒来窗口中的任意一项。其中,醒来窗口用于表示接口处于工作状态的时间。由于第二设备的WUR接口在需要接收第一设备的Wi-Fi接口发送的第一WUR消息时处于工作状态,因此,能够确保第一设备发出的第一WUR消息被第二设备的WUR接口接收,从而使第二设备唤醒第二设备的Wi-Fi接口,进而完成后续反向唤醒及使用Wi-Fi消息通信的过程。In a possible design, when the second device receives the first WUR message sent by the first device through the Wi-Fi interface of the first device to the WUR interface of the second device, the second device passes the WUR interface of the second device, and the second device The WUR interface of the device is in the first wake-up window, and the first wake-up window includes a wake-up window of the WUR interface of the second device, a wake-up window of the WUR interface of the first device, and a WUR interface of the first device Wake up any of the awake windows that overlap between the window and a wake-up window of the WUR interface of the second device. Among them, the wake-up window is used to indicate the time when the interface is in working state. The WUR interface of the second device is in the working state when it needs to receive the first WUR message sent by the Wi-Fi interface of the first device, so that the first WUR message sent by the first device can be received by the WUR interface of the second device. So that the second device wakes up the Wi-Fi interface of the second device, thereby completing the process of subsequent reverse wake-up and communication using Wi-Fi messages.
在一种可能的设计中,第一WUR消息中携带有时间信息。第二设备通过第二设备的Wi-Fi接口,向第一设备发的WUR接口送第二WUR消息,可以具体实现为:第二设备在时间信息指示的时间范围内,通过第二设备的Wi-Fi接口,向第一设备的WUR接口发送第二WUR消息。这样一来,第二设备就能通过预留的信道资源向第一设备发送的第二WUR消息。In one possible design, the first WUR message carries time information. The second device sends the second WUR message to the WUR interface sent by the first device by using the Wi-Fi interface of the second device, which may be implemented as follows: the second device passes the Wi of the second device within the time range indicated by the time information. The -Fi interface sends a second WUR message to the WUR interface of the first device. In this way, the second device can send the second WUR message to the first device through the reserved channel resource.
在一种可能的设计中,第一WUR消息携带有Wi-Fi preamble。其中,Wi-Fi preamble中的长度域携带的时间长度至少包括第一设备发送第一WUR消息和第二设备发送第二WUR消息所需要的总时间。通过携带总时间的方式,可以告知第二设备将Wi-Fi接口置于工作状态的时间,同时也可以达到预留信道资源的目的。In one possible design, the first WUR message carries a Wi-Fi preamble. The length of the length field carried in the Wi-Fi preamble includes at least a total time required for the first device to send the first WUR message and the second device to send the second WUR message. By carrying the total time, the second device can be informed of the time when the Wi-Fi interface is placed in the working state, and the purpose of reserving the channel resources can also be achieved.
在一种可能的设计中,在第二设备通过第二设备的Wi-Fi接口,向第一设备的WUR接口发送第二WUR消息时,第一设备的WUR接口处于第二醒来窗口,第二醒来窗口包括第一设备的WUR接口的一个醒来窗口、第二设备的Wi-Fi接口的一个醒来窗口、以及第一设备的WUR接口的一个醒来窗口和第二设备的Wi-Fi接口的一个醒来窗口之间重叠的醒来窗口中的任意一项。其中,醒来窗口用于表示接口处于工作状态的时间。由于第一设备的WUR接口在需要接收第二设备的Wi-Fi接口发送的第二WUR消息时处于工作状态,因此,能够确保第二设备发出的第二WUR消息被第一设备的WUR接口接收,从而使第一设备唤醒第一设备的Wi-Fi接口,进而完成后续使用Wi-Fi消息通信的过程。In a possible design, when the second device sends the second WUR message to the WUR interface of the first device through the Wi-Fi interface of the second device, the WUR interface of the first device is in the second wake-up window, The wake-up window includes a wake-up window of the WUR interface of the first device, a wake-up window of the Wi-Fi interface of the second device, and a wake-up window of the WUR interface of the first device and Wi- of the second device. Any of the waking windows that overlap between a wake-up window of the Fi interface. Among them, the wake-up window is used to indicate the time when the interface is in working state. The WUR interface of the first device is in a working state when it needs to receive the second WUR message sent by the Wi-Fi interface of the second device. Therefore, it can be ensured that the second WUR message sent by the second device is received by the WUR interface of the first device. So that the first device wakes up the Wi-Fi interface of the first device, thereby completing the process of subsequently using the Wi-Fi message communication.
在一种可能的设计中,为了提高数据传输的安全性,第一设备所生成的第一WUR消息中还可以携带有第一验证值。在第二设备通过第二设备的WUR接口接收到第一WUR消息后,可以通过生成第二验证值的方式,来确定第一验证值是否满足预先定义的数据传输条件,即第二设备是否具有解析第一设 备发送的第一WUR消息的身份,或是第一设备是否具有向第二设备发送第一WUR消息的身份,若第一验证值与第二验证值匹配,则认为通过身份验证,即第一设备与第二设备之间可以继续进行后续的反向唤醒操作。In a possible design, in order to improve the security of the data transmission, the first WUR message generated by the first device may also carry the first verification value. After the second device receives the first WUR message through the WUR interface of the second device, whether the first verification value meets the predefined data transmission condition, that is, whether the second device has the second verification value, may be determined by generating the second verification value. Analyze the first set The identity of the first WUR message to be sent, or whether the first device has the identity of sending the first WUR message to the second device. If the first verification value matches the second verification value, it is considered to be authenticated, that is, the first A subsequent reverse wakeup operation can continue between the device and the second device.
第三方面,本发明实施例提供一种建立数据通信的装置,应用于第一设备。该装置可以实现上述任一方法实施例中第一设备所实现的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个上述功能相应的模块。In a third aspect, an embodiment of the present invention provides an apparatus for establishing data communication, which is applied to a first device. The device may implement the functions implemented by the first device in any of the foregoing method embodiments, and the functions may be implemented by using hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions.
在一种可能的设计中,该装置的结构中包括处理器、WUR接口和Wi-Fi接口,该处理器被配置为支持该装置执行上述各方法实施例中相应的功能。该WUR接口和Wi-Fi接口用于支持该装置与其他设备之间的通信。该装置还可以包括存储器,该存储器用于与处理器耦合,其保存该装置必要的程序指令和数据。所述处理器、WUR接口、Wi-Fi接口和存储器的数量均可以为一个或多个。In one possible design, the apparatus includes a processor, a WUR interface, and a Wi-Fi interface, the processor being configured to support the apparatus to perform the corresponding functions of the various method embodiments described above. The WUR interface and Wi-Fi interface are used to support communication between the device and other devices. The apparatus can also include a memory for coupling with the processor that retains the program instructions and data necessary for the apparatus. The number of the processor, the WUR interface, the Wi-Fi interface, and the memory may each be one or more.
第四方面,本发明实施例提供一种建立数据通信的装置,应用于第二设备。该装置可以实现上述任一方法实施例中第二设备所实现的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个上述功能相应的模块。In a fourth aspect, an embodiment of the present invention provides an apparatus for establishing data communication, which is applied to a second device. The device can implement the functions implemented by the second device in any of the foregoing method embodiments, and the functions can be implemented by using hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions.
在一种可能的设计中,该装置的结构中包括处理器、WUR接口和Wi-Fi接口,该处理器被配置为支持该装置执行上述各方法实施例中相应的功能。该WUR接口和Wi-Fi接口用于支持该装置与其他设备之间的通信。该装置还可以包括存储器,该存储器用于与处理器耦合,其保存该装置必要的程序指令和数据。所述处理器、WUR接口、Wi-Fi接口和存储器的数量均可以为一个或多个。In one possible design, the apparatus includes a processor, a WUR interface, and a Wi-Fi interface, the processor being configured to support the apparatus to perform the corresponding functions of the various method embodiments described above. The WUR interface and Wi-Fi interface are used to support communication between the device and other devices. The apparatus can also include a memory for coupling with the processor that retains the program instructions and data necessary for the apparatus. The number of the processor, the WUR interface, the Wi-Fi interface, and the memory may each be one or more.
第五方面,本发明实施例提供一种计算机存储介质,用于储存第一设备为实现上述功能所用的计算机软件指令,其包含用于执行上述任一方法实施例中第一设备所实现的功能所设计的程序。In a fifth aspect, an embodiment of the present invention provides a computer storage medium, configured to store computer software instructions used by the first device to implement the foregoing functions, and includes functions for performing the first device in any one of the foregoing method embodiments. The program designed.
第六方面,本发明实施例提供一种计算机存储介质,用于储存第二设备为实现上述功能所用的计算机软件指令,其包含用于执行上述任一方法实施例中第二设备所实现的功能所设计的程序。In a sixth aspect, an embodiment of the present invention provides a computer storage medium, configured to store computer software instructions used by the second device to implement the foregoing functions, and includes functions for performing the second device in any one of the foregoing method embodiments. The program designed.
附图说明DRAWINGS
图1为本发明实施例提供的一种通信网络系统的结构示意图;1 is a schematic structural diagram of a communication network system according to an embodiment of the present invention;
图2为本发明实施例提供的一种建立数据通信的方法流程图;2 is a flowchart of a method for establishing data communication according to an embodiment of the present invention;
图3为本发明实施例提供的一种第一设备发起建立数据通信的过程示意图;FIG. 3 is a schematic diagram of a process for initiating establishing data communication by a first device according to an embodiment of the present disclosure;
图4至图7为本发明实施例提供的另一种建立数据通信的方法流程图;4 to FIG. 7 are flowcharts of another method for establishing data communication according to an embodiment of the present invention;
图8为本发明实施例提供的一种数据结构的示意图;FIG. 8 is a schematic diagram of a data structure according to an embodiment of the present disclosure;
图9为本发明实施例提供的一种建立数据通信的装置结构示意图;FIG. 9 is a schematic structural diagram of an apparatus for establishing data communication according to an embodiment of the present invention;
图10至图12为本发明实施例提供的另一种建立数据通信的装置结构示 意图。FIG. 10 to FIG. 12 are diagrams showing another structure of an apparatus for establishing data communication according to an embodiment of the present invention. intention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述。本文所涉及的技术术语的中英文对照参见表一内容。The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention. See Table 1 for the Chinese and English comparison of the technical terms involved in this article.
表一Table I
Figure PCTCN2017087952-appb-000001
Figure PCTCN2017087952-appb-000001
本发明实施例可以用于一种通信网络系统,在该通信网络系统中,至少 包括第一设备和第二设备。其中,第二设备的数量为至少一个。对于第一设备而言,可以通过单播、组播、广播等形式发出第一WUR消息,之后由至少一个第二设备接收。Embodiments of the present invention may be used in a communication network system in which at least The first device and the second device are included. The number of the second devices is at least one. For the first device, the first WUR message may be sent in the form of unicast, multicast, broadcast, etc., and then received by at least one second device.
如图1所示为一种可能的通信网络系统的结构示意图。其中,第一设备和第二设备中均设置有WUR接口和Wi-Fi接口,在同一设备中的WUR接口与Wi-Fi接口之间能够进行数据交互;在第一设备中,WUR接口与Wi-Fi接口共用一根天线,而在第二设备中,WUR接口与Wi-Fi接口的天线分别设置。需要说明的是,第一设备与第二设备的接口及天线布局上,可以相同或是不同,并且,由于Wi-Fi接口也可以发送、接收WUR消息,因此,在有的应用场景内,为了进一步节省设备的成本,也可以仅在第一设备和/或第二设备中设置Wi-Fi接口,而不单独设置WUR接口。但对于本发明实施例而言,主要是利用了在相同时间范围内,WUR接口处于工作状态所耗费的电量低于Wi-Fi接口处于工作状态的耗电量,因此,在本发明实施例所适用的应用场景中,至少第一设备中会设置WUR接口和Wi-Fi接口。另外,天线与接口之间的布局关系,也是在考虑节约成本的情况下,将同一设备的WUR接口与Wi-Fi接口所使用的天线共用,即图中第一设备的布局方式。对于这种布局方式而言,虽然Wi-Fi接口通常发送宽带信号,而WUR接口通常发送窄带信号,但是考虑到宽带信号的特性,即在将部分子载波空置的情况下,仅在WUR信号对应的窄带上传输信号,从而实现窄带信号的传输。需要说明的是,通过WUR接口传输的窄带信号,在接收、译码过程中的操作难度,远远低于通过Wi-Fi接口传输的宽带信号。FIG. 1 is a schematic structural diagram of a possible communication network system. A WUR interface and a Wi-Fi interface are provided in the first device and the second device, and data interaction can be performed between the WUR interface and the Wi-Fi interface in the same device; in the first device, the WUR interface and the Wi device The -Fi interface shares an antenna, and in the second device, the WUR interface and the antenna of the Wi-Fi interface are separately set. It should be noted that the interface and the antenna layout of the first device and the second device may be the same or different, and the Wi-Fi interface may also send and receive WUR messages. Therefore, in some application scenarios, Further saving the cost of the device, it is also possible to set the Wi-Fi interface only in the first device and/or the second device without separately setting the WUR interface. However, in the embodiment of the present invention, the power consumption of the WUR interface in the working state is lower than the power consumption of the Wi-Fi interface in the working state in the same time range. Therefore, in the embodiment of the present invention, In the applicable application scenario, at least the WUR interface and the Wi-Fi interface are set in the first device. In addition, the layout relationship between the antenna and the interface is also shared by the WUR interface of the same device and the antenna used by the Wi-Fi interface in consideration of cost saving, that is, the layout mode of the first device in the figure. For this layout, although the Wi-Fi interface usually transmits a wideband signal, and the WUR interface usually transmits a narrowband signal, considering the characteristics of the wideband signal, that is, in the case where some of the subcarriers are vacant, only the WUR signal corresponds. The signal is transmitted over a narrow band to enable transmission of narrowband signals. It should be noted that the narrowband signal transmitted through the WUR interface is much less difficult to operate in the receiving and decoding process than the wideband signal transmitted through the Wi-Fi interface.
在本发明实施例中,第一设备、第二设备可以为AP、STA等设备,比如,第一设备具体可以为手环、第二设备具体可以为智能手机等。对于上述示例的情况而言,第一设备的电池容量远小于第二设备的电池容量,因此,采用背景技术中唤醒第二设备Wi-Fi接口的实现方式,往往会耗费第一设备的大量电量,因此,本发明实施例以节省第一设备电量为目的,提出了一种建立数据通信的方法实现方案。In the embodiment of the present invention, the first device and the second device may be devices such as an AP and an STA. For example, the first device may be a wristband, and the second device may be a smart phone. For the case of the above example, the battery capacity of the first device is much smaller than the battery capacity of the second device. Therefore, the implementation of waking up the Wi-Fi interface of the second device in the background art often consumes a large amount of power of the first device. Therefore, in order to save the power of the first device, the embodiment of the present invention proposes a method for establishing a data communication.
本发明实施例提供一种建立数据通信的方法,如图2所示,该方法可以由如图1所示的第一设备和第二设备共同完成,该方法具体包括:An embodiment of the present invention provides a method for establishing data communication. As shown in FIG. 2, the method may be implemented by the first device and the second device, as shown in FIG.
步骤101、第一设备生成第一WUR消息。Step 101: The first device generates a first WUR message.
其中,第一WUR消息用于指示第二设备唤醒第二设备的Wi-Fi接口,并通过第二设备的Wi-Fi接口发送第二WUR消息;第一WUR消息携带有反向唤醒指示信息,其中,反向唤醒指示信息用于指示第二设备通过第二设备的Wi-Fi接口发送第二WUR消息,该第二WUR消息用于指示第一设备唤醒第一设备的Wi-Fi接口。此外,第一WUR消息还可以携带有Wi-Fi preamble,Wi-Fi preamble中的长度域携带的时间长度至少包括第一设备发送第一WUR消息和第二设备发送第二WUR消息所需要的总时间,具体可以参见后文关于图13的描述;第一WUR消息还可以携带有第一验证值,以便在第二设备接收到第一WUR消息后对第一设备的身份进行认证,以提高第一设备与第二设备之间数据 传输过程的安全性;第一WUR消息中还可以携带有时间信息,该时间信息用于指示第二设备向第一设备发送第二WUR消息的时间,以便预留信道资源供第一设备与第二设备进行数据通信时使用。The first WUR message is used to instruct the second device to wake up the Wi-Fi interface of the second device, and send the second WUR message through the Wi-Fi interface of the second device; the first WUR message carries the reverse wakeup indication information. The reverse wake-up indication information is used to instruct the second device to send a second WUR message by using the Wi-Fi interface of the second device, where the second WUR message is used to instruct the first device to wake up the Wi-Fi interface of the first device. In addition, the first WUR message may also carry a Wi-Fi preamble, and the length of the length field carried in the Wi-Fi preamble includes at least a total length required by the first device to send the first WUR message and the second device to send the second WUR message. For details, refer to the following description about FIG. 13; the first WUR message may further carry a first verification value, so as to authenticate the identity of the first device after the second device receives the first WUR message, to improve the Data between a device and a second device The security of the transmission process; the first WUR message may also carry time information, where the time information is used to indicate the time when the second device sends the second WUR message to the first device, so as to reserve channel resources for the first device and the first device. The second device is used for data communication.
需要说明的是,第一WUR消息中还可以携带有其他信息,比如,第一WUR消息中还可以携带有第一设备的标识;在第一设备向第二设备发送第一WUR消息时,第一WUR消息中还应携带有第二设备的标识等。在本发明实施例中,对于第一WUR消息所携带的信息内容不做限定,上述举例仅为一种可能的示例。It should be noted that the first WUR message may also carry other information, for example, the first WUR message may also carry the identifier of the first device; when the first device sends the first WUR message to the second device, A WUR message should also carry the identity of the second device, and the like. In the embodiment of the present invention, the content of the information carried in the first WUR message is not limited, and the foregoing example is only one possible example.
如图3所示为第一设备发起建立数据通信的过程。第一设备在完成信道竞争后,生成第一WUR消息,并通过第一设备的Wi-Fi接口向第二设备的WUR接口发送第一WUR消息。第二设备通过WUR接口接收到第一WUR消息后,唤醒第二设备的Wi-Fi接口。需要说明的是,为了降低第二设备的能耗,在第二设备未接收到第一设备发送的第一WUR消息之前,第二设备的Wi-Fi接口通常处于非工作状态、间歇式工作状态或是关闭状态,因此,为了唤醒第二设备的Wi-Fi接口,则需要第一设备发送第一WUR消息。但在某些情况下,第二设备的Wi-Fi接口也可能已经处于工作状态,那么此时可以省略第二设备唤醒Wi-Fi接口的过程。之后第二设备的Wi-Fi接口需要耗费一定时间醒来,同样为了确保第二设备有足够的资源发送第二WUR消息,以实现反向唤醒,第二设备也需要竞争信道,并且,在竞争信道的过程中,第二设备还需要对第二设备的Wi-Fi接口进行一些基本的配置工作,比如,物理层设置网络分配矢量,或是,等待探询延迟时间。之后由第二设备生成第二WUR消息,并通过第二设备已处于工作状态的Wi-Fi接口向第一设备的WUR接口发送。在第一设备的WUR接口接收到第二WUR消息后,第一设备采用与第二设备相同的方式,唤醒第一设备的Wi-Fi接口。在第一设备与第二设备的Wi-Fi接口均处于工作状态后,第一设备与第二设备之间进行Wi-Fi消息的传输。需要说明的是,为了节省第一设备的能耗,在第一设备通过第一设备的Wi-Fi接口发送第一WUR消息后,第一设备可以将第一设备的Wi-Fi接口的状态进行调整,即将第一设备的Wi-Fi接口的状态调整至非工作状态、间歇式工作状态或关闭状态,同时,若第一设备的WUR接口处于关闭状态,则需要将第一设备的WUR接口开启,以确保后续接收来自于第二设备的第二WUR消息。对于第一设备开启第一设备的WUR接口的时机,可以为第二设备发送第二WUR消息之前、之时、之后,在此不做限定,对于在第二设备发送第二WUR消息之后开启第一设备的WUR接口的情况而言,只要确保第一设备能够成功接收到第二WUR消息即可。As shown in FIG. 3, the first device initiates a process of establishing data communication. After completing the channel competition, the first device generates a first WUR message, and sends a first WUR message to the WUR interface of the second device by using the Wi-Fi interface of the first device. After receiving the first WUR message through the WUR interface, the second device wakes up the Wi-Fi interface of the second device. It should be noted that, in order to reduce the power consumption of the second device, before the second device receives the first WUR message sent by the first device, the Wi-Fi interface of the second device is usually in an inactive state and intermittently working. Or the off state, therefore, in order to wake up the Wi-Fi interface of the second device, the first device needs to send the first WUR message. However, in some cases, the Wi-Fi interface of the second device may also be in a working state, and then the process of waking up the Wi-Fi interface by the second device may be omitted. After that, the Wi-Fi interface of the second device needs to wake up for a certain period of time, and also to ensure that the second device has sufficient resources to send the second WUR message to implement reverse wakeup, the second device also needs to contend for the channel, and is competing In the process of the channel, the second device also needs to perform some basic configuration work on the Wi-Fi interface of the second device, for example, the physical layer sets the network allocation vector, or waits for the inquiry delay time. The second WUR message is then generated by the second device and sent to the WUR interface of the first device through the Wi-Fi interface in which the second device is already in operation. After receiving the second WUR message on the WUR interface of the first device, the first device wakes up the Wi-Fi interface of the first device in the same manner as the second device. After the Wi-Fi interfaces of the first device and the second device are in an active state, the Wi-Fi message is transmitted between the first device and the second device. It should be noted that, in order to save energy consumption of the first device, after the first device sends the first WUR message through the Wi-Fi interface of the first device, the first device may perform the status of the Wi-Fi interface of the first device. The adjustment is to adjust the state of the Wi-Fi interface of the first device to the inactive state, the intermittent working state, or the shutdown state. If the WUR interface of the first device is in the closed state, the WUR interface of the first device needs to be enabled. To ensure subsequent reception of the second WUR message from the second device. When the second device sends the second WUR message, the second device sends the second WUR message before, after, and after the second device sends the second WUR message. In the case of a WUR interface of a device, it is only necessary to ensure that the first device can successfully receive the second WUR message.
其中,工作状态、非工作状态、间歇式工作状态与关闭状态属于Wi-Fi接口及WUR接口几种可能的状态。在本发明实施例中,上述几种状态之间不存在重叠的情况,比如,与间歇式工作状态相对的状态,为持续工作状态,但在本发明实施例中,工作状态包括持续工作状态,但与间歇式工作状态所表达的含义并不相同。对于WUR接口而言,处于工作状态的WUR接口可以接 收其他设备发送的WUR消息;对于Wi-Fi接口而言,处于工作状态的Wi-Fi接口可以接收其他设备发送的Wi-Fi消息,同时,也可以向其他设备发送Wi-Fi消息。由此可见,工作状态强调的是接口当前能够工作;而持续工作状态描述的是一段时间内,接口的工作趋势,即一直处于工作状态;同样的,间歇式工作状态描述的也是一段时间内,接口的工作趋势,即时而处于工作状态,时而不处于工作状态。在本发明实施例中,与工作状态相对的状态被定义为非工作状态,并且,在非工作状态中不包括关闭状态。其中,非工作状态可以包括等待状态、浅休眠状态、空闲状态、省电状态、睡眠状态和休眠状态中的任意一种。Among them, the working state, the non-working state, the intermittent working state and the closed state belong to several possible states of the Wi-Fi interface and the WUR interface. In the embodiment of the present invention, there is no overlap between the foregoing states. For example, the state opposite to the intermittent working state is a continuous working state, but in the embodiment of the present invention, the working state includes a continuous working state. However, it does not mean the same meaning as the intermittent working state. For the WUR interface, the working WUR interface can be connected. The WUR message sent by other devices is received; for the Wi-Fi interface, the working Wi-Fi interface can receive Wi-Fi messages sent by other devices, and can also send Wi-Fi messages to other devices. It can be seen that the working state emphasizes that the interface can work at present; while the continuous working state describes the working trend of the interface in a period of time, that is, the working state is always working; similarly, the intermittent working state describes the time period, The working trend of the interface is in the working state immediately, but not in the working state. In the embodiment of the present invention, the state opposite to the working state is defined as the non-working state, and the closed state is not included in the non-working state. The non-operation state may include any one of a wait state, a shallow sleep state, an idle state, a power saving state, a sleep state, and a sleep state.
此外,第一WUR消息还可以用于指示第二设备在第二设备的Wi-Fi接口从忙碌状态切换为空闲状态之时或之后(或,有给第一设备缓存的数据之时或之后),向第一设备发送第二WUR消息,第二WUR消息用于指示第一设备唤醒第一设备的Wi-Fi接口。需要说明的是,第一WUR消息中还可以携带有第一指示信息,并由第一指示信息指示第二设备在第二设备的Wi-Fi接口从忙碌状态切换为空闲状态之时或之后(或,有给第一设备缓存的数据之时或之后),向第一设备发送第二WUR消息,第二WUR消息用于指示第一设备唤醒第一设备的Wi-Fi接口。也就意味着,上述实现步骤不仅可以由第一WUR消息作为一种特殊定义的消息来触发,还可以由第一WUR消息中携带的第一指示信息触发。In addition, the first WUR message may also be used to indicate that the second device is at or after the second device's Wi-Fi interface is switched from the busy state to the idle state (or when there is data cached for the first device) Sending a second WUR message to the first device, where the second WUR message is used to instruct the first device to wake up the Wi-Fi interface of the first device. It should be noted that the first WUR message may further carry the first indication information, and the first indication information indicates, by the second device, when the Wi-Fi interface of the second device is switched from the busy state to the idle state. Or, when there is data for the first device, the second WUR message is sent to the first device, where the second WUR message is used to instruct the first device to wake up the Wi-Fi interface of the first device. In other words, the foregoing implementation step may be triggered not only by the first WUR message as a specially defined message, but also by the first indication information carried in the first WUR message.
或,第一WUR消息还可以用于指示第二设备在有给第一设备缓存的数据之时或之后,向第一设备发送第二WUR消息,第二WUR消息用于指示第一设备唤醒第一设备的Wi-Fi接口。同样的,第一WUR消息中还可以携带有第二指示信息,并由第二指示信息指示第二设备在有给第一设备缓存的数据之时或之后,向第一设备发送第二WUR消息,第二WUR消息用于指示第一设备唤醒第一设备的Wi-Fi接口。即上述实现步骤不仅可以由第一WUR消息作为一种特殊定义的消息来触发,还可以由第一WUR消息中携带的第二指示信息触发。Or the first WUR message may be used to indicate that the second device sends a second WUR message to the first device when the data is buffered for the first device, and the second WUR message is used to indicate that the first device wakes up. A device's Wi-Fi interface. Similarly, the first WUR message may further carry the second indication information, and the second indication information indicates, by the second indication information, that the second device sends the second WUR message to the first device when the data buffered by the first device is available. The second WUR message is used to instruct the first device to wake up the Wi-Fi interface of the first device. That is, the foregoing implementation step may be triggered not only by the first WUR message as a specially defined message, but also by the second indication information carried in the first WUR message.
或,第一WUR消息还可以用于指示第一设备将第一设备的Wi-Fi接口状态从工作状态切换至非工作状态或间歇式工作状态和/或第一设备的WUR接口处于工作状态,在第二设备有给第一设备缓存的数据之时或之后,第二设备向第一设备发送第二WUR消息,第二WUR消息用于指示第一设备唤醒第一设备的Wi-Fi接口。同样的,第一WUR消息中还可以携带有第三指示信息,并由第三指示信息指示第一设备将第一设备的Wi-Fi接口状态从工作状态切换至非工作状态或间歇式工作状态和/或第一设备的WUR接口处于工作状态,在第二设备有给第一设备缓存的数据之时或之后,第二设备向第一设备发送第二WUR消息,第二WUR消息用于指示第一设备唤醒第一设备的Wi-Fi接口。即上述实现步骤不仅可以由第一WUR消息作为一种特殊定义的消息来触发,还可以由第一WUR消息中携带的第三指示信息触发。Or the first WUR message may be used to indicate that the first device switches the Wi-Fi interface state of the first device from the working state to the inactive state or the intermittent working state, and/or the WUR interface of the first device is in the working state, The second device sends a second WUR message to the first device when the second device has the data cached by the first device, and the second WUR message is used to instruct the first device to wake up the Wi-Fi interface of the first device. Similarly, the first WUR message may further carry the third indication information, and the third indication information indicates that the first device switches the Wi-Fi interface state of the first device from the working state to the non-working state or the intermittent working state. And/or the WUR interface of the first device is in an active state, and when the second device has data cached by the first device, the second device sends a second WUR message to the first device, where the second WUR message is used to indicate The first device wakes up the Wi-Fi interface of the first device. That is, the foregoing implementation step may be triggered not only by the first WUR message as a specially defined message, but also by the third indication information carried in the first WUR message.
或,第一设备处于WUR状态或WUR模式mode,在第二设备有给第一设备缓存的数据之时或之后,第二设备向第一设备发送第二WUR消息,第二WUR消 息用于指示第一设备唤醒第一设备的Wi-Fi接口,第一设备处于WUR状态或WUR模式mode表示第一设备的WUR接口处于工作状态,此时,第一设备的WiFi接口处于非工作状态或间歇式工作状态。Or, the first device is in the WUR state or the WUR mode mode, and the second device sends the second WUR message to the first device when the second device has the data cached by the first device, and the second WUR The information is used to instruct the first device to wake up the Wi-Fi interface of the first device. The first device is in the WUR state or the WUR mode mode indicates that the WUR interface of the first device is in a working state. At this time, the WiFi interface of the first device is inactive. Status or intermittent working status.
此外,第一WUR消息还可以用于指示第二设备在第二设备的Wi-Fi接口从忙碌状态切换为空闲状态之时或之后(或,有给所述第一设备缓存的数据之时或之后,或,请求该第一设备给第二设备的缓存数据之时或之后),通过第二设备的Wi-Fi接口向第一设备发送第一Wi-Fi消息,该第一Wi-Fi消息用于指示第二设备的Wi-Fi接口此时能和该第一设备的Wi-Fi接口通信。In addition, the first WUR message may be further used to indicate that the second device is at or after the second device's Wi-Fi interface is switched from the busy state to the idle state (or when there is data cached by the first device or Afterwards, or when the first device is requested to cache data of the second device, the first Wi-Fi message is sent to the first device by using the Wi-Fi interface of the second device, where the first Wi-Fi message is sent. The Wi-Fi interface for indicating the second device can communicate with the Wi-Fi interface of the first device at this time.
需要说明的是,第一WUR消息中还可以携带有第四指示信息,并由该第四指示信息指示第二设备在第二设备的Wi-Fi接口从忙碌状态切换为空闲状态之时或之后(或,有给第一设备缓存的数据之时或之后),向第一设备发送第二WUR消息,该第二WUR消息用于指示第一设备唤醒第一设备的Wi-Fi接口。也就意味着,上述实现步骤不仅可以由第一WUR消息作为一种特殊定义的消息来触发,还可以由第一WUR消息中携带的第四指示信息触发。It should be noted that the first WUR message may further carry the fourth indication information, and the fourth indication information indicates, by the second device, when the Wi-Fi interface of the second device is switched from the busy state to the idle state. The second WUR message is used to instruct the first device to wake up the Wi-Fi interface of the first device, when the data is cached for the first device. In other words, the foregoing implementation step may be triggered not only by the first WUR message as a specially defined message, but also by the fourth indication information carried in the first WUR message.
或,第一WUR消息还可以用于指示第一设备有给第二设备的缓存数据,当所述所述第二设备需要所述第一设备给第二设备的缓存数据之时或之后,该第二设备通过第二设备的Wi-Fi接口向第一设备发送第一WiFi消息,该第一WiFi消息用于指示该第二设备的Wi-Fi接口能和该第一设备的Wi-Fi接口通信。Or the first WUR message may be further used to indicate that the first device has cache data for the second device, and when the second device needs the cached data of the first device to the second device, The second device sends a first WiFi message to the first device by using the Wi-Fi interface of the second device, where the first WiFi message is used to indicate that the Wi-Fi interface of the second device can be connected to the Wi-Fi interface of the first device. Communication.
需要说明的是,第一WUR消息中还可以携带有第五指示信息,并由该第五指示信息指示在第一设备有给第二设备的缓存数据,当该第二设备请求该第一设备给第二设备的缓存数据之时或之后,或是,当该第二设备需要该第一设备给第二设备的缓存数据之时或之后,该第二设备通过第二设备的Wi-Fi接口向第一设备发送第二Wi-Fi消息,该第二Wi-Fi消息用于指示该第二设备的Wi-Fi接口能和该第一设备的Wi-Fi接口通信。也就意味着,上述实现步骤不仅可以由第一WUR消息作为一种特殊定义的消息来触发,还可以由第一WUR消息中携带的第五指示信息触发。It should be noted that the first WUR message may further carry the fifth indication information, and the fifth indication information indicates that the first device has the cached data for the second device, and when the second device requests the first device, When the cached data is sent to the second device or after, or when the second device needs the cached data of the first device to the second device, the second device passes the Wi-Fi interface of the second device And sending, by the first device, a second Wi-Fi message, where the second Wi-Fi message is used to indicate that the Wi-Fi interface of the second device can communicate with the Wi-Fi interface of the first device. In other words, the foregoing implementation step may be triggered not only by the first WUR message as a specially defined message, but also by the fifth indication information carried in the first WUR message.
或,第一WUR消息还可以用于指示第二设备有给所述第一设备缓存的数据之时或之后,通过第二设备的Wi-Fi接口向第一设备发送第三Wi-Fi消息,该第三Wi-Fi消息用于指示第二设备向该第一设备发送该第二设备给该第一设备缓存的数据。Or the first WUR message may be further configured to: when the second device has the data cached by the first device, send a third Wi-Fi message to the first device by using the Wi-Fi interface of the second device, The third Wi-Fi message is used to instruct the second device to send, to the first device, data that is cached by the second device to the first device.
需要说明的是,第一WUR消息中还可以携带有第六指示信息,并由该第六指示信息指示有给该第一设备缓存的数据之时或之后,通过第二设备的Wi-Fi接口向第一设备发送第四WiFi消息,该第四Wi-Fi消息用于指示第二设备向该第一设备发送该第二设备给该第一设备缓存的数据。也就意味着,上述实现步骤不仅可以由第一WUR消息作为一种特殊定义的消息来触发,还可以由第一WUR消息中携带的第六指示信息触发。It should be noted that the first WUR message may further carry the sixth indication information, and when the sixth indication information indicates that there is data for the first device, or after, the Wi-Fi interface of the second device is used. Sending a fourth WiFi message to the first device, where the fourth Wi-Fi message is used to instruct the second device to send, to the first device, data that is cached by the second device to the first device. In other words, the foregoing implementation step may be triggered by the first WUR message as a specially defined message, or may be triggered by the sixth indication information carried in the first WUR message.
或,第一WUR消息还可以用于指示所述第一设备有给第二设备的缓存数据,当该第二设备需要该第一设备给第二设备的缓存数据之时或之后,该第 二设备向第一设备发送第五Wi-Fi消息,该第五Wi-Fi消息用于指示该第二设备请求该第一设备给第二设备的缓存数据。Or the first WUR message may be further used to indicate that the first device has cache data for the second device, and when the second device needs the cached data of the first device to the second device, the first The second device sends a fifth Wi-Fi message to the first device, where the fifth Wi-Fi message is used to indicate that the second device requests the cached data of the first device to the second device.
需要说明的是,第一WUR消息中还可以携带有第七指示信息,并由该第七指示信息指示该第一设备有给第二设备的缓存数据,且当该第二设备需要该第一设备给第二设备的缓存数据之时或之后,该第二设备向第一设备发送第六Wi-Fi消息,该第六Wi-Fi消息用于指示该第二设备请求该第一设备给第二设备的缓存数据。也就意味着,上述实现步骤不仅可以由第一WUR消息作为一种特殊定义的消息来触发,还可以由第一WUR消息中携带的第七指示信息触发。It should be noted that the first WUR message may further carry the seventh indication information, and the seventh indication information indicates that the first device has the cached data for the second device, and when the second device needs the first When the device sends the data to the second device, the second device sends a sixth Wi-Fi message to the first device, where the sixth Wi-Fi message is used to indicate that the second device requests the first device to The cached data of the two devices. In other words, the foregoing implementation step can be triggered not only by the first WUR message as a specially defined message but also by the seventh indication information carried in the first WUR message.
对于第一WUR消息所可能携带的信息种类在本发明实施例中不做限定,不仅限于上述反向唤醒指示信息、第一至第七指示信息,上述各类指示信息仅作为一种可能的示例。同样的,第一WUR消息本身也可以在不携带上述反向唤醒指示信息、第一至第七指示信息的条件下,以特殊定义的消息的身份来触发相应实现过程。在本发明实施例中,上述第一至第七指示信息的作用与反向唤醒指示信息的作用类似,均用于指示第二设备针对接收到的第一WUR消息中携带的指示信息完成相应操作。The types of information that may be carried in the first WUR message are not limited in the embodiment of the present invention, and are not limited to the foregoing reverse wakeup indication information and the first to seventh indication information, and the foregoing various types of indication information are only used as a possible example. . Similarly, the first WUR message itself may trigger the corresponding implementation process by the identity of the specially defined message without carrying the reverse wakeup indication information and the first to seventh indication information. In the embodiment of the present invention, the functions of the first to seventh indication information are similar to the functions of the reverse wake-up indication information, and are used to instruct the second device to complete the corresponding operation on the indication information carried in the received first WUR message. .
需要说明的是,上述第一WUR消息、反向唤醒指示信息、第一至第七指示信息,也可以仅用于第二设备在接收到第一WUR消息后执行相应流程。也就意味着,上述第一WUR消息、反向唤醒指示信息、第一至第七指示信息本身,可能并不具备指示第二设备实现相应功能的作用,而是作为一种可能实现相应功能的条件,即第二设备在接收到上述第一WUR消息、反向唤醒指示信息、第一至第七指示信息后,第二设备自身对接收到的消息进行识别,并选择性执行或是不执行相应操作。It should be noted that the foregoing first WUR message, the reverse wakeup indication information, and the first to seventh indication information may be used only by the second device to execute the corresponding process after receiving the first WUR message. In other words, the first WUR message, the reverse wakeup indication information, and the first to seventh indication information itself may not have the function of instructing the second device to implement the corresponding function, but may be implemented as a possible function. After the second device receives the first WUR message, the reverse wake-up indication information, and the first to seventh indication information, the second device identifies the received message and selectively performs or does not execute. The corresponding operation.
比如,第一设备通过第一设备的Wi-Fi接口发送第一WUR消息,该第一WUR消息用于使接收到反向唤醒指示信息的第二设备通过第二设备的Wi-Fi接口发送第二WUR消息,该第二设备通过第二设备的WUR接口接收第一WUR消息,并根据该第一WUR消息,发送第二WUR消息;For example, the first device sends a first WUR message by using the Wi-Fi interface of the first device, where the first WUR message is used to enable the second device that receives the reverse wakeup indication information to send the second device through the Wi-Fi interface of the second device. a second WUR message, the second device receives the first WUR message through the WUR interface of the second device, and sends a second WUR message according to the first WUR message;
或,第一设备通过第一设备的Wi-Fi接口发送第一WUR消息,并携带反向唤醒指示信息,该反向唤醒指示信息用于使接收到该反向唤醒指示信息的第二设备通过第二设备的Wi-Fi接口发送第二WUR消息,该第二设备接收该反向唤醒指示信息,并根据所携带的反向唤醒指示信息,通过第二设备的Wi-Fi接口发送第二WUR消息。Or the first device sends the first WUR message through the Wi-Fi interface of the first device, and carries the reverse wakeup indication information, where the reverse wakeup indication information is used to enable the second device that receives the reverse wakeup indication information to pass The Wi-Fi interface of the second device sends a second WUR message, and the second device receives the reverse wake-up indication information, and sends a second WUR through the Wi-Fi interface of the second device according to the reverse wake-up indication information carried Message.
步骤102、第一设备通过处于工作状态的第一设备的Wi-Fi接口向第二设备的WUR接口发送第一WUR消息。Step 102: The first device sends a first WUR message to the WUR interface of the second device by using the Wi-Fi interface of the first device in the working state.
考虑到建立数据通信的过程是由第一设备发起的,且背景技术中所提及的建立数据通信的方案,是第一设备在发送WUR消息后,一直处于等待状态,因此,为了明确本发明实施例中采用调整第一设备的Wi-Fi接口的状态,以解决背景技术中,第一设备耗电量过大的问题,在本发明实施例中,第一WUR消息可以由第一设备的Wi-Fi接口发送。 Considering that the process of establishing data communication is initiated by the first device, and the solution for establishing data communication mentioned in the background art is that the first device is in a waiting state after transmitting the WUR message, therefore, in order to clarify the present invention In the embodiment, the state of the Wi-Fi interface of the first device is adjusted to solve the problem that the first device consumes too much power in the background. In the embodiment of the present invention, the first WUR message may be used by the first device. Wi-Fi interface to send.
需要说明的是,在第一设备通过第一设备的Wi-Fi接口向第二设备的WUR接口发送第一WUR消息时,为了确保第二设备能够成功通过第二设备的WUR接口接收到第一WUR消息,因此,第二设备的WUR接口处于第一醒来窗口。其中,第一醒来窗口包括第二设备的WUR接口的一个醒来窗口、第一设备的Wi-Fi接口的一个醒来窗口、以及第一设备的Wi-Fi接口的一个醒来窗口和第二设备的WUR接口的一个醒来窗口之间重叠的醒来窗口中的任意一项,其中,醒来窗口用于表示接口处于工作状态的时间。也就意味着,需要确保第二设备的WUR接口处于工作状态。另外,上述几种示例的第一醒来窗口可能为相同或是不同的时间段,在此不做限定。It should be noted that, when the first device sends the first WUR message to the WUR interface of the second device by using the Wi-Fi interface of the first device, the second device can successfully receive the first through the WUR interface of the second device. WUR message, therefore, the WUR interface of the second device is in the first awake window. The first wake-up window includes a wake-up window of the WUR interface of the second device, a wake-up window of the Wi-Fi interface of the first device, and a wake-up window and a Wi-Fi interface of the first device. Any of the wake-up windows overlapped between a wake-up window of the WUR interface of the second device, wherein the wake-up window is used to indicate when the interface is in a working state. This means that you need to ensure that the WUR interface of the second device is working. In addition, the first wake-up windows of the above several examples may be the same or different time periods, which are not limited herein.
步骤103、第一设备在发送完第一WUR消息之后,将第一设备的Wi-Fi接口状态从工作状态切换至非工作状态或间歇式工作状态。Step 103: After transmitting the first WUR message, the first device switches the Wi-Fi interface state of the first device from the working state to the non-working state or the intermittent working state.
其中参照上文对于各种接口状态的介绍可以得知,在相同时间内,第一设备的Wi-Fi接口处于工作状态的耗电量大于处于非工作状态或间歇式工作状态的耗电量。需要说明的是,间歇工作状态可以包括周期性工作状态或是非周期性工作状态。对于周期的设定,在本发明实施例中不做限定。Referring to the above description of various interface states, it can be known that, during the same time, the power consumption of the Wi-Fi interface of the first device in the working state is greater than the power consumption in the non-operating state or the intermittent working state. It should be noted that the intermittent working state may include a periodic working state or a non-periodic working state. The setting of the period is not limited in the embodiment of the present invention.
在第一设备发送第一WUR消息后,为了节省第一设备的耗电,则需要切换第一设备的Wi-Fi接口状态。需要说明的是,虽然关闭第一设备的Wi-Fi接口能够更省电,但是,Wi-Fi接口的唤醒过程是需要一段时间的,为了尽可能降低第一设备与第二设备之间建立数据通信所耗费的时间,在本发明实施例中,调整后的Wi-Fi接口状态主要以容易在短时间内被唤醒的状态为主,类似于电脑的待机状态,虽然会有少量的耗电,但能在唤醒时节约大量时间。与此同时,为了确保第一设备还能够接收到第二设备发送的第二WUR消息,则需要确保第一设备的WUR接口处于工作状态。After the first device sends the first WUR message, in order to save the power consumption of the first device, the Wi-Fi interface state of the first device needs to be switched. It should be noted that although the Wi-Fi interface of the first device can be powered off, the wake-up process of the Wi-Fi interface takes a period of time, in order to reduce the data between the first device and the second device. In the embodiment of the present invention, the adjusted Wi-Fi interface state is mainly in a state that is easily awakened in a short time, similar to the standby state of the computer, although there is a small amount of power consumption, But it can save a lot of time when waking up. At the same time, in order to ensure that the first device can also receive the second WUR message sent by the second device, it is necessary to ensure that the WUR interface of the first device is in an active state.
需要说明的是,在第一设备的Wi-Fi接口处于非工作状态或间歇式工作状态时,第一设备的Wi-Fi接口无法接收来自其他设备发送的消息,同样的,第一设备也无法通过第一设备的Wi-Fi接口再发送其他消息。It should be noted that when the Wi-Fi interface of the first device is in a non-working state or an intermittent working state, the Wi-Fi interface of the first device cannot receive the message sent by the other device, and the first device cannot The other message is sent again through the Wi-Fi interface of the first device.
步骤104、第二设备通过第二设备的WUR接口,接收第一设备通过第一设备的WUR接口发送的第一WUR消息。Step 104: The second device receives the first WUR message sent by the first device by using the WUR interface of the first device by using the WUR interface of the second device.
为了确保第二设备能够通过第二设备的WUR接口接收到第一WUR消息,在第二设备通过第二设备的WUR接口,接收第一设备发送的第一WUR消息时,第二设备的WUR接口需要处于第一醒来窗口。其中,第一醒来窗口包括第二设备的WUR接口的一个醒来窗口、第一设备的WUR接口的一个醒来窗口、以及第一设备的WUR接口的一个醒来窗口和第二设备的WUR接口的一个醒来窗口之间重叠的醒来窗口中的任意一项,其中,醒来窗口用于表示接口处于工作状态的时间。To ensure that the second device can receive the first WUR message through the WUR interface of the second device, when the second device receives the first WUR message sent by the first device by using the WUR interface of the second device, the WUR interface of the second device Need to be in the first wake up window. The first wake-up window includes a wake-up window of the WUR interface of the second device, a wake-up window of the WUR interface of the first device, and a wake-up window of the WUR interface of the first device and the WUR of the second device. Any of the awake windows that overlap between an awake window of the interface, wherein the awake window is used to indicate when the interface is active.
需要说明的是,上述几种示例的第一醒来窗口可能为相同或是不同的时间段,在此不做限定。It should be noted that the first awake windows of the above several examples may be the same or different time segments, which are not limited herein.
步骤105、第二设备按照第一WUR消息的指示,唤醒第二设备的Wi-Fi接口,并生成第二WUR消息。 Step 105: The second device wakes up the Wi-Fi interface of the second device according to the indication of the first WUR message, and generates a second WUR message.
其中,第二WUR消息用于指示第一设备唤醒第一设备的Wi-Fi接口。The second WUR message is used to instruct the first device to wake up the Wi-Fi interface of the first device.
步骤106、第二设备通过第二设备的Wi-Fi接口,向第一设备的WUR接口发送第二WUR消息。Step 106: The second device sends a second WUR message to the WUR interface of the first device by using the Wi-Fi interface of the second device.
需要说明的是,在第二设备接收到第一WUR消息时,第二设备的Wi-Fi接口可能已处于工作状态,且第二设备的Wi-Fi接口已被占用,即第二设备的Wi-Fi接口当前忙碌。此时,第二设备无法通过第二设备的Wi-Fi接口向第一设备的WUR接口发送第二WUR消息。那么第二设备可以在第二设备的Wi-Fi接口从忙碌状态切换为空闲状态时,或切换为空闲状态之后,或在第二设备中存在给第一设备缓存的数据时或之后,由第二设备通过第二设备的Wi-Fi接口向第一设备的WUR接口发送第二WUR消息。It should be noted that, when the second device receives the first WUR message, the Wi-Fi interface of the second device may be in the working state, and the Wi-Fi interface of the second device is already occupied, that is, the Wi of the second device. The -Fi interface is currently busy. At this time, the second device cannot send the second WUR message to the WUR interface of the first device through the Wi-Fi interface of the second device. Then, the second device may be when the Wi-Fi interface of the second device is switched from the busy state to the idle state, or after switching to the idle state, or when the data cached for the first device exists in the second device or after The second device sends a second WUR message to the WUR interface of the first device through the Wi-Fi interface of the second device.
为了确保第一设备能够通过第一设备的WUR接口接收到第二设备发送的第二WUR消息,在第二设备通过第二设备的Wi-Fi接口,向第一设备的WUR接口发送第二WUR消息时,第一设备的WUR接口处于第二醒来窗口。其中,第二醒来窗口包括第一设备的WUR接口的一个醒来窗口、第二设备的Wi-Fi接口的一个醒来窗口、以及第一设备的WUR接口的一个醒来窗口和第二设备的Wi-Fi接口的一个醒来窗口之间重叠的醒来窗口中的任意一项,其中,醒来窗口用于表示接口处于工作状态的时间。To ensure that the first device can receive the second WUR message sent by the second device by using the WUR interface of the first device, the second device sends the second WUR to the WUR interface of the first device by using the Wi-Fi interface of the second device. In the message, the WUR interface of the first device is in the second wake-up window. The second wake-up window includes a wake-up window of the WUR interface of the first device, a wake-up window of the Wi-Fi interface of the second device, and a wake-up window and a second device of the WUR interface of the first device. Any of the wake-up windows that overlap between a wake-up window of the Wi-Fi interface, where the wake-up window is used to indicate when the interface is active.
步骤107、第一设备通过第一设备的WUR接口,接收第二设备通过第二设备的Wi-Fi接口发送的第二WUR消息。Step 107: The first device receives, by using the WUR interface of the first device, a second WUR message sent by the second device by using the Wi-Fi interface of the second device.
步骤108、在第一设备接收第二WUR消息后,第一设备唤醒第一设备的Wi-Fi接口。Step 108: After the first device receives the second WUR message, the first device wakes up the Wi-Fi interface of the first device.
步骤109、通过第一设备的Wi-Fi接口与第二设备的Wi-Fi接口通信。Step 109: Communicate with a Wi-Fi interface of the second device through a Wi-Fi interface of the first device.
在本发明实施例中,上述通信具体可以包括:在第二设备发送第二WUR消息后,第二设备通过第二设备的Wi-Fi接口向第一设备发送Wi-Fi消息,并由第一设备通过第一设备的Wi-Fi接口接收第二设备发送的Wi-Fi消息;In the embodiment of the present invention, the foregoing communication may include: after the second device sends the second WUR message, the second device sends the Wi-Fi message to the first device by using the Wi-Fi interface of the second device, and is performed by the first device. The device receives the Wi-Fi message sent by the second device by using the Wi-Fi interface of the first device;
或是,在第一设备唤醒第一设备的Wi-Fi接口之后,第一设备通过第一设备的Wi-Fi接口向第二设备发送Wi-Fi消息,并由第二设备通过第二设备的Wi-Fi接口接收第一设备发送的Wi-Fi消息。Or after the first device wakes up the Wi-Fi interface of the first device, the first device sends a Wi-Fi message to the second device through the Wi-Fi interface of the first device, and the second device passes the second device. The Wi-Fi interface receives the Wi-Fi message sent by the first device.
需要说明的是,在第一设备与第二设备的Wi-Fi接口均被唤醒后,可以执行步骤109。由于此时第一设备与第二设备之间的数据通信已经建立,因此,也可以分别由第一设备和第二设备通过各自的Wi-Fi接口向对方发送Wi-Fi消息。对于第一设备与第二设备之间传输Wi-Fi消息的方式、时机等,在本发明实施例中不做限定。It should be noted that after the Wi-Fi interfaces of the first device and the second device are both awake, step 109 may be performed. Since the data communication between the first device and the second device has been established at this time, the Wi-Fi message can also be sent to the other party through the respective Wi-Fi interfaces by the first device and the second device, respectively. The manner, timing, and the like for transmitting the Wi-Fi message between the first device and the second device are not limited in the embodiment of the present invention.
相比较于现有技术中,在唤醒接收者的Wi-Fi接口的过程中,发送者的Wi-Fi接口虽然一直处于工作状态,却一直未得到使用的情况而言,在本发明实施例中,在第一设备通过第一设备的Wi-Fi接口发出第一WUR消息后,便将第一设备的Wi-Fi接口的状态切换到耗电量较低的状态,比如,非工作状态或间歇式工作状态。这样一来,在第二设备的Wi-Fi接口被唤醒前,第一设备的Wi-Fi接口并不会因为一直处于工作状态而增加第一设备的耗电量。 也就意味着,在本发明实施例中,在唤醒第二设备的Wi-Fi接口后,通过反向唤醒处于非工作状态或间歇式工作状态的第一设备的Wi-Fi接口,以达到节省第一设备耗电量的目的。因此,在建立数据通信的过程中,降低了作为通信过程发起端的第一设备的耗电量。Compared with the prior art, in the process of waking up the Wi-Fi interface of the receiver, in the case where the sender's Wi-Fi interface is always in the working state but has not been used, in the embodiment of the present invention, After the first device sends the first WUR message through the Wi-Fi interface of the first device, the state of the Wi-Fi interface of the first device is switched to a state with a low power consumption, for example, a non-working state or an intermittent state. Working state. In this way, before the Wi-Fi interface of the second device is woken up, the Wi-Fi interface of the first device does not increase the power consumption of the first device because it is always in the working state. In other words, in the embodiment of the present invention, after waking up the Wi-Fi interface of the second device, the Wi-Fi interface of the first device in the non-working state or the intermittent working state is reversely awake to save the saving. The purpose of the first device to consume power. Therefore, in the process of establishing data communication, the power consumption of the first device as the originating end of the communication process is reduced.
而对于第二设备而言,第二设备在接收到第一设备发送的第一WUR消息后,不仅需要唤醒第二设备的Wi-Fi接口,还要提供触发第一设备唤醒第一设备Wi-Fi接口的触发消息,即由第二设备通过第二设备的Wi-Fi接口向第一设备的WUR接口发送第二WUR消息。这样一来,第一设备在接收到第二WUR消息后,就能够直接唤醒第一设备的Wi-Fi接口。由此可见,对于第一设备的Wi-Fi接口而言,是在第二设备的Wi-Fi接口被唤醒后才被唤醒的,因此,就不会存在现有技术中,作为发送者的第一设备,在唤醒作为接收者的第二设备Wi-Fi接口的过程中因Wi-Fi接口一直处于工作状态而持续耗电的情况,从而解决在建立数据通信过程中,第一设备耗电量过高的问题。For the second device, after receiving the first WUR message sent by the first device, the second device not only needs to wake up the Wi-Fi interface of the second device, but also provides a trigger for the first device to wake up the first device Wi- The trigger message of the Fi interface, that is, the second device sends a second WUR message to the WUR interface of the first device by using the Wi-Fi interface of the second device. In this way, after receiving the second WUR message, the first device can directly wake up the Wi-Fi interface of the first device. Therefore, the Wi-Fi interface of the first device is awakened after the Wi-Fi interface of the second device is woken up. Therefore, there is no prior art as the sender. A device that continuously consumes power due to the Wi-Fi interface being in a working state during the process of waking up the Wi-Fi interface of the second device as the receiver, thereby solving the power consumption of the first device during the establishment of the data communication process Too high a problem.
针对第一WUR消息中携带有时间信息的情况,该时间信息可以用于指示第二设备向第一设备发送第二WUR消息的时间。因此,在如图2所示的实现方式的基础上,还可以实现为如图4所示的实现方式。其中,步骤106第二设备通过第二设备的Wi-Fi接口,向第一设备的WUR接口发送第二WUR消息,可以具体实现为步骤201;步骤107第一设备通过第一设备的WUR接口,接收第二设备通过第二设备的Wi-Fi接口发送的第二WUR消息,可以具体实现为步骤202:For the case where the first WUR message carries the time information, the time information may be used to indicate the time when the second device sends the second WUR message to the first device. Therefore, on the basis of the implementation shown in FIG. 2, an implementation as shown in FIG. 4 can also be implemented. Step 106: The second device sends the second WUR message to the WUR interface of the first device by using the Wi-Fi interface of the second device, which may be specifically implemented as step 201. In step 107, the first device passes the WUR interface of the first device. The receiving the second WUR message sent by the second device by using the Wi-Fi interface of the second device may be specifically implemented as step 202:
步骤201、第二设备在时间信息指示的时间范围内,通过第二设备的Wi-Fi接口,向第一设备的WUR接口发送第二WUR消息。Step 201: The second device sends a second WUR message to the WUR interface of the first device by using the Wi-Fi interface of the second device in the time range indicated by the time information.
步骤202、第一设备在时间信息指示的时间范围内,通过第一设备的WUR接口,接收第二设备通过第二设备的Wi-Fi接口发送的第二WUR消息。Step 202: The first device receives, by using the WUR interface of the first device, the second WUR message sent by the second device by using the Wi-Fi interface of the second device.
时间信息可以为第一设备预留出的用于接收第二WUR消息的时间段,比如,第一设备估测出第一WUR消息发送至第二设备的WUR接口,且第二设备成功唤醒第二设备的Wi-Fi接口的总时间,之后将总时间前后分别确定出的两个时间点构成的时间范围,确定为上述时间信息指示的时间范围,之后预留出信道资源,以确保第一设备能够通过第一设备的WUR接口成功接收到第二WUR消息。需要说明的是,所分别确定的总时间前后的时间点构成的时间范围可以等于或大于总时间的时长。当然,为了确保成功接收到第二WUR消息,第一设备还需要确保在上述时间信息指示的时间范围内,第一设备的WUR接口处于工作状态。The time information may be a period of time for the first device to receive the second WUR message. For example, the first device estimates that the first WUR message is sent to the WUR interface of the second device, and the second device successfully wakes up. The total time of the Wi-Fi interface of the two devices, and then the time range formed by the two time points respectively determined before and after the total time is determined as the time range indicated by the time information, and then the channel resources are reserved to ensure the first The device can successfully receive the second WUR message through the WUR interface of the first device. It should be noted that the time range formed by the time points before and after the total time determined separately may be equal to or longer than the duration of the total time. Of course, in order to ensure that the second WUR message is successfully received, the first device also needs to ensure that the WUR interface of the first device is in the working state within the time range indicated by the time information.
这样一来,由于第一设备在发送第一WUR消息时,就已经预留了接收第二WUR消息的时间,且第二设备会在这个时间范围内向第一设备发送第二WUR消息。也就意味着,第一设备能够预留出充足的信道资源用于接收第二WUR消息,从而提高第一设备与第二设备之间成功建立数据通信的概率。In this way, since the first device sends the first WUR message, the time for receiving the second WUR message is reserved, and the second device sends the second WUR message to the first device within the time range. In other words, the first device can reserve sufficient channel resources for receiving the second WUR message, thereby improving the probability of successfully establishing data communication between the first device and the second device.
无论是第一设备还是第二设备,都是在WUR接口接收到来自对方的WUR消息后,通过与处于同一设备的Wi-Fi接口之间进行数据交互,以唤醒位于 同一设备的Wi-Fi接口。Whether the first device or the second device receives the WUR message from the other party after the WUR interface performs data interaction with the Wi-Fi interface that is in the same device to wake up Wi-Fi interface of the same device.
对于第一设备而言,在如图2或图4所示的实现方式的基础上,以图2为例,还可以实现为如图5所示的实现方式。其中,步骤108在第一设备接收第二WUR消息后,第一设备唤醒第一设备的Wi-Fi接口,可以具体实现为步骤301:For the first device, based on the implementation shown in FIG. 2 or FIG. 4, FIG. 2 as an example, it can also be implemented as shown in FIG. 5. After the first device receives the second WUR message, the first device wakes up the Wi-Fi interface of the first device, which may be specifically implemented as step 301:
步骤301、在第一设备通过第一设备的WUR接口接收第二WUR消息后,第一设备的WUR接口向第一设备的Wi-Fi接口发送唤醒消息,以唤醒第一设备的Wi-Fi接口。Step 301: After the first device receives the second WUR message through the WUR interface of the first device, the WUR interface of the first device sends a wake-up message to the Wi-Fi interface of the first device to wake up the Wi-Fi interface of the first device. .
其中,唤醒后第一设备的Wi-Fi接口处于工作状态、间歇式工作状态或非工作状态。The Wi-Fi interface of the first device is in an active state, an intermittent working state, or a non-working state after waking up.
对于第二设备而言,在如图2、图4、图5中任意一项所示的实现方式的基础上,以图2为例,还可以实现为如图6所示的实现方式。其中,步骤105第二设备按照第一WUR消息的指示,唤醒第二设备的Wi-Fi接口,并生成第二WUR消息,可以具体实现为步骤302和步骤303:For the second device, based on the implementation shown in any one of FIG. 2, FIG. 4, and FIG. 5, FIG. 2 can also be implemented as an implementation manner as shown in FIG. 6. In step 105, the second device wakes up the Wi-Fi interface of the second device according to the indication of the first WUR message, and generates a second WUR message, which may be specifically implemented as step 302 and step 303:
步骤302、在第二设备通过第二设备的WUR接口接收第一WUR消息后,第二设备的WUR接口向第二设备的Wi-Fi接口发送唤醒消息,以唤醒第二设备的Wi-Fi接口。Step 302: After the second device receives the first WUR message through the WUR interface of the second device, the WUR interface of the second device sends a wakeup message to the Wi-Fi interface of the second device to wake up the Wi-Fi interface of the second device. .
其中,唤醒后第二设备的Wi-Fi接口处于工作状态或、间歇式工作状态或非工作状态。The Wi-Fi interface of the second device is in a working state, an intermittent working state, or a non-working state after the wakeup.
步骤303、第二设备生成第二WUR消息。Step 303: The second device generates a second WUR message.
需要说明的是,处于工作状态的Wi-Fi接口可以直接进行Wi-Fi消息的接收和发送;处于间歇式工作状态的Wi-Fi接口只有在该Wi-Fi接口工作时才能进行Wi-Fi消息的接收和发送;处于非工作状态的Wi-Fi接口则可以在需要实现发送、接收功能时,在短时间内进入工作状态,或是仅支持发送、接收中的一项功能。相较于工作状态而言,处于非工作状态或是间歇式工作状态的Wi-Fi接口的耗电量更低。It should be noted that the Wi-Fi interface in the working state can directly receive and send Wi-Fi messages; the Wi-Fi interface in the intermittent working state can only perform Wi-Fi messages when the Wi-Fi interface is working. The receiving and transmitting; the non-working Wi-Fi interface can enter the working state in a short time when the transmitting and receiving functions need to be implemented, or only support one function of sending and receiving. Compared to the working state, the Wi-Fi interface in the non-working state or the intermittent working state consumes less power.
与上述实现方案相呼应,对于第一设备而言,若第一设备通过第一设备的Wi-Fi接口接收第二设备发送的Wi-Fi消息,则可以具体实现为:Corresponding to the above implementation, for the first device, if the first device receives the Wi-Fi message sent by the second device by using the Wi-Fi interface of the first device, the specific device may be specifically implemented as:
若第一设备的Wi-Fi接口处于工作状态、间歇式工作状态或非工作状态,则第一设备通过第一设备的Wi-Fi接口接收第二设备的Wi-Fi接口发送的Wi-Fi消息。If the Wi-Fi interface of the first device is in an active state, an intermittent working state, or an inactive state, the first device receives the Wi-Fi message sent by the Wi-Fi interface of the second device by using the Wi-Fi interface of the first device. .
若第一设备通过第一设备的Wi-Fi接口向第二设备发送Wi-Fi消息,则可以具体实现为:If the first device sends a Wi-Fi message to the second device by using the Wi-Fi interface of the first device, the first device may be specifically implemented as:
若第一设备的Wi-Fi接口处于工作状态、间歇式工作状态或非工作状态,则第一设备通过第一设备的Wi-Fi接口向第二设备的Wi-Fi接口发送Wi-Fi消息。If the Wi-Fi interface of the first device is in an active state, an intermittent working state, or an inactive state, the first device sends a Wi-Fi message to the Wi-Fi interface of the second device through the Wi-Fi interface of the first device.
与上述实现方案相呼应,对于第二设备而言,在第二设备通过第二设备的Wi-Fi接口发送第二WUR消息后,第二设备通过第二设备的Wi-Fi接口向第一设备发送Wi-Fi消息,可以具体实现为: Corresponding to the above implementation, for the second device, after the second device sends the second WUR message through the Wi-Fi interface of the second device, the second device sends the second device through the Wi-Fi interface of the second device to the first device. Sending a Wi-Fi message can be implemented as:
在第二设备通过第二设备的Wi-Fi接口发送第二WUR消息后,若第二设备的Wi-Fi接口处于工作状态、间歇式工作状态或非工作状态,则第二设备通过第二设备的Wi-Fi接口接收第一设备通过第一设备的Wi-Fi接口发送的Wi-Fi消息。After the second device sends the second WUR message through the Wi-Fi interface of the second device, if the Wi-Fi interface of the second device is in an active state, an intermittent working state, or a non-working state, the second device passes the second device. The Wi-Fi interface receives the Wi-Fi message sent by the first device through the Wi-Fi interface of the first device.
第二设备通过第二设备的Wi-Fi接口接收第一设备通过第一设备的Wi-Fi接口发送的Wi-Fi消息,可以具体实现为:The second device receives the Wi-Fi message sent by the first device through the Wi-Fi interface of the first device by using the Wi-Fi interface of the second device, which may be specifically implemented as:
若第二设备的Wi-Fi接口处于工作状态、间歇式工作状态或非工作状态,则第二设备通过第二设备的Wi-Fi接口向第一设备的Wi-Fi接口发送Wi-Fi消息。If the Wi-Fi interface of the second device is in an active state, an intermittent working state, or a non-working state, the second device sends a Wi-Fi message to the Wi-Fi interface of the first device through the Wi-Fi interface of the second device.
此外,第一设备通过第一设备的WUR接口发出的第一WUR消息,很可能没有任何一个第二设备反馈,或是,可能由于种种愿意原因而导致第一设备并未成功将第一WUR消息发出。在这种情况下,按照上述方案的实现方式,第一设备的Wi-Fi接口虽然已经被调整状态,能够减少一部分耗电量,但第一设备的WUR接口仍因处于工作状态而耗电。为了减少因第一设备的WUR接口长时间处于第一状态工作状态、且第一设备的WUR接口在这段时间内并未接收任何消息而引发的耗电,在本发明实施例的一个实现方式中,还可以在上述情况下,调整第一设备的WUR接口的状态。因此,在如图2、图4至图6所示的任意一项实现方式的基础上,以图2为例,还可以实现为如图7所示的实现方式。其中,该方法还包括步骤401:In addition, the first device sends a first WUR message through the WUR interface of the first device, and may not have any second device feedback, or may cause the first device to fail to send the first WUR message due to various willing reasons. issue. In this case, according to the implementation manner of the foregoing solution, although the Wi-Fi interface of the first device has been adjusted, the power consumption of the first device can be reduced, but the WUR interface of the first device still consumes power due to being in the working state. In order to reduce the power consumption caused by the WUR interface of the first device being in the first state working state for a long time, and the WUR interface of the first device does not receive any message during the period of time, an implementation manner of the embodiment of the present invention is provided. In the above case, the state of the WUR interface of the first device can also be adjusted. Therefore, on the basis of any of the implementations shown in FIG. 2, FIG. 4 to FIG. 6, FIG. 2 can also be implemented as an implementation as shown in FIG. The method further includes step 401:
步骤401、若第一设备在预定时间内没有接收到第二设备通过第二设备的Wi-Fi发送的第二WUR消息,则第一设备的WUR接口进入间歇式工作状态或非工作状态。Step 401: If the first device does not receive the second WUR message sent by the second device by using the Wi-Fi of the second device within the predetermined time, the WUR interface of the first device enters an intermittent working state or a non-working state.
需要说明的是,预定时间可以由用户或是工作人员,根据历史经验值进行预先设定。并且,在设置过程中,还可以参考第一设备的电池容量,比如,对于电池容量较小的第一设备而言,可以将预定时间设置为较短的时间,同理,对于电池容量较大的第一设备而言,则可以将预定时间设置为较长的时间。无论采取怎样的设置方式,只要确保设置的预定时间在一般情况下,能够支持第一设备将第一WUR消息成功发送至第二设备的WUR接口,且第二设备成功生成第二WUR消息,并在唤醒第二设备的Wi-Fi接口后将第二WUR消息成功发送至第一设备的WUR接口即可,或是确保第一设备将第一WUR消息成功发送至第二设备的WUR接口,且第二设备在第二设备的Wi-Fi接口从忙碌状态切换至空闲状态后,成功生成第二WUR消息,并在唤醒第二设备的Wi-Fi接口后将第二WUR消息成功发送至第一设备的WUR接口即可。这样一来,又进一步降低了第一设备的WUR接口产生的耗电量,从而更进一步降低第一设备的耗电量。It should be noted that the predetermined time can be preset by the user or the staff based on historical experience values. Moreover, in the setting process, the battery capacity of the first device may also be referred to. For example, for the first device with a small battery capacity, the predetermined time may be set to a shorter time. Similarly, for the battery capacity is larger. For the first device, the predetermined time can be set to a longer time. Regardless of the setting method, it is possible to support the first device to successfully send the first WUR message to the WUR interface of the second device, and the second device successfully generates the second WUR message, and the second device successfully generates the second WUR message. After the Wi-Fi interface of the second device is awake, the second WUR message is successfully sent to the WUR interface of the first device, or the first device successfully sends the first WUR message to the WUR interface of the second device, and After the second device's Wi-Fi interface is switched from the busy state to the idle state, the second device successfully generates a second WUR message, and successfully sends the second WUR message to the first device after waking up the Wi-Fi interface of the second device. The WUR interface of the device can be used. In this way, the power consumption generated by the WUR interface of the first device is further reduced, thereby further reducing the power consumption of the first device.
在减少第一设备的Wi-Fi接口的耗电量时,为了保证第一设备的WUR接口仍能够成功接收到来自于第二设备的第二WUR消息,在本发明实施例的一个实现方式中,需要确保第一设备的Wi-Fi接口完成状态切换后,第一设备的WUR接口处于工作状态。因此,在第一设备将第一设备的Wi-Fi接口状态 从工作状态切换至非工作状态或间歇式工作状态之后,还可以实现如下内容:In an implementation manner of the embodiment of the present invention, when the power consumption of the Wi-Fi interface of the first device is reduced, in order to ensure that the WUR interface of the first device can still successfully receive the second WUR message from the second device, After the status switch of the Wi-Fi interface of the first device is completed, the WUR interface of the first device is in working state. Therefore, the first device will have the Wi-Fi interface status of the first device. After switching from the working state to the non-working state or the intermittent working state, the following can also be realized:
若第一设备的WUR接口处于非工作状态、间歇式工作状态或关闭状态,则第一设备将第一设备的WUR接口状态切换至工作状态。If the WUR interface of the first device is in an inactive state, an intermittent working state, or a closed state, the first device switches the WUR interface state of the first device to the working state.
虽然第一设备的WUR接口切换为工作状态,WUR接口的耗电量会增加,但WUR接口所增加的耗电量仍然低于第一设备的Wi-Fi接口处于工作状态时产生的耗电量。因此,即便是在这种情况下,仍然能够降低第一设备的耗电量。Although the WUR interface of the first device is switched to the working state, the power consumption of the WUR interface is increased, but the power consumption of the WUR interface is still lower than the power consumption generated when the Wi-Fi interface of the first device is in the working state. . Therefore, even in this case, the power consumption of the first device can be reduced.
对于反向唤醒操作而言,很可能存在因种种原因,而使第二设备并未将第二WUR消息成功发送至第一设备的WUR接口,或是,第一设备的WUR接口虽然接收到第二WUR消息,但因为种种原因,并没有成功唤醒第一设备的Wi-Fi接口,因此,在本发明实施例的一个实现方式中,若在指定时间范围内,第二设备的Wi-Fi接口还未接收到第一设备通过第一设备的Wi-Fi接口发送的Wi-Fi消息,那么,为了确保数据通信的成功建立,第二设备还可以通过第二设备的Wi-Fi接口向第一设备的WUR接口再次发送用于唤醒第一设备Wi-Fi接口的消息,即第三WUR消息。因此,在第二设备通过第二设备的Wi-Fi接口,向第一设备的WUR接口发送第二WUR消息之后,还可以实现如下内容:For the reverse wake-up operation, there is a possibility that the second device does not successfully send the second WUR message to the WUR interface of the first device for various reasons, or the WUR interface of the first device receives the first The second WUR message, but for a variety of reasons, the Wi-Fi interface of the second device is not successfully awake. Therefore, in an implementation manner of the embodiment of the present invention, if the Wi-Fi interface of the second device is within a specified time range The Wi-Fi message sent by the first device through the Wi-Fi interface of the first device has not been received. Then, in order to ensure successful establishment of the data communication, the second device may also be first through the Wi-Fi interface of the second device. The WUR interface of the device again sends a message for waking up the Wi-Fi interface of the first device, ie a third WUR message. Therefore, after the second device sends the second WUR message to the WUR interface of the first device by using the Wi-Fi interface of the second device, the following content can also be implemented:
若第二设备的Wi-Fi接口在指定时间范围内未接收到第一设备通过第一设备的Wi-Fi接口发送的Wi-Fi消息,则第二设备通过第二设备的Wi-Fi接口,向第一设备的WUR接口发送第三WUR消息。If the Wi-Fi interface of the second device does not receive the Wi-Fi message sent by the first device through the Wi-Fi interface of the first device within the specified time range, the second device passes the Wi-Fi interface of the second device, Sending a third WUR message to the WUR interface of the first device.
其中,第三WUR消息用于指示第一设备唤醒第一设备的Wi-Fi接口。The third WUR message is used to instruct the first device to wake up the Wi-Fi interface of the first device.
需要说明的是,上述指定时间范围可以由用户或是工作人员,根据历史经验值预先配置,指定时间范围的长短也可以根据待传输Wi-Fi消息的时延需求来设置成或大或小的范围,在此不做限定。It should be noted that the specified time range may be pre-configured by the user or the staff according to the historical experience value, and the length of the specified time range may also be set to be larger or smaller according to the delay requirement of the Wi-Fi message to be transmitted. The scope is not limited here.
这样一来,能够提升数据通信成功建立的概率,不会因为第二WUR消息未成功发送,或是第二WUR消息未成功触发第一设备唤醒第一设备的Wi-Fi接口,而使数据通信建立失败。In this way, the probability of successful establishment of the data communication can be improved, and the second WUR message is not successfully sent, or the second WUR message does not successfully trigger the first device to wake up the Wi-Fi interface of the first device, so that the data communication is performed. The establishment failed.
针对第一WUR消息中携带有第一验证值而言,第一验证值用于在第二设备接收到第一WUR消息后,验证第一设备的身份。在第二设备通过第二设备的WUR接口,接收第一设备通过第一设备的WUR接口发送的第一WUR消息之后,第二设备生成第二验证值;且第二设备按照第一WUR消息的指示,唤醒第二设备的Wi-Fi接口,并生成第二WUR消息,可以具体实现为:For the first WUR message carrying the first verification value, the first verification value is used to verify the identity of the first device after the second device receives the first WUR message. After the second device passes the WUR interface of the second device, after receiving the first WUR message sent by the first device by using the WUR interface of the first device, the second device generates a second verification value; and the second device follows the first WUR message. Instructing to wake up the Wi-Fi interface of the second device and generate a second WUR message, which can be specifically implemented as:
若第二验证值与第一验证值相同,则第二设备按照第一WUR消息的指示,唤醒第二设备的Wi-Fi接口,并生成第二WUR消息。If the second verification value is the same as the first verification value, the second device wakes up the Wi-Fi interface of the second device according to the indication of the first WUR message, and generates a second WUR message.
需要说明的是,若第二验证值与第一验证值不同,则可以认为第二设备不具备与第一设备建立数据通信的资格,那么第二设备可以直接将第一WUR消息丢弃。It should be noted that if the second verification value is different from the first verification value, the second device may be deemed to be incapable of establishing data communication with the first device, and the second device may directly discard the first WUR message.
在本发明实施例中,第一设备生成第一验证值的方式,与第二设备生成第二验证值的方式相同。另外,第一设备用于生成第一验证值所需的参数,可以通过第一WUR消息一并携带,这样一来,第二设备也可以根据第一WUR消息中携带的信息,以及预先约定的生成验证值的规则来生成第二验证值。 In the embodiment of the present invention, the manner in which the first device generates the first verification value is the same as the manner in which the second device generates the second verification value. In addition, the parameters required by the first device to generate the first verification value may be carried by the first WUR message, so that the second device may also be based on the information carried in the first WUR message and the pre-agreed A rule that generates a verification value is generated to generate a second verification value.
在本发明实施例中,第一验证值可以基于第一设备与第二设备共享的密钥的全部或是部分内容生成,或是基于第一设备与第二设备共享的密钥的全部或是部分内容、以及第一设备或第二设备的标识的全部或是部分内容生成。在生成第一验证值的过程中,可以为采用hash算法进行计算得到的hash值,或是取hash值的部分信息,或是取hash值的衍生值等。衍生值为经过hash计算且得到hash值后,对hash值再次进行至少一次计算所得到的参数的部分或是全部。In the embodiment of the present invention, the first verification value may be generated based on all or part of the content of the key shared by the first device and the second device, or based on all the keys shared by the first device and the second device, or Part of the content, and all or part of the content of the identification of the first device or the second device is generated. In the process of generating the first verification value, the hash value calculated by using the hash algorithm, or the partial information of the hash value, or the derivative value of the hash value may be used. The derived value is part or all of the parameters obtained by calculating the hash value at least once after the hash is calculated and the hash value is obtained.
其中,标识可以为ID、第一设备的标识、MAC地址信息、第一设备的WUR接口的地址信息,或是其他位于第一WUR消息中用于表示第一设备的标识的信息,也可以为其他能够唯一标识第一设备身份的信息,当然,也可以为第二设备的上述信息。需要说明的是,标识不限于上述内容,还可以为位于第一设备或是第二设备中的某些硬件的标识等。The identifier may be an ID, an identifier of the first device, MAC address information, address information of the WUR interface of the first device, or other information used to indicate the identifier of the first device in the first WUR message, or may be Other information that can uniquely identify the identity of the first device, of course, may also be the above information of the second device. It should be noted that the identifier is not limited to the above content, and may also be an identifier of some hardware located in the first device or the second device.
需要说明的是,第二验证值在计算方式上与第一验证值相同,因此,上述或是下述第一验证值的计算方式、取值类型等,同样适用于第二验证值,在此不再赘述。It should be noted that the second verification value is the same as the first verification value in the calculation manner. Therefore, the calculation manner, the value type, and the like of the first verification value described above are also applicable to the second verification value. No longer.
在本发明实施例中,第一验证值除了可以为上述不可变的参数之外,还可以为可变参数。其中,可变参数可以用于表示随着时间变化而发生变化的参数,但不仅限于随时间而变化的参数。比如,在第一设备与第二设备建立安全连接时,可以预先约定计数器的取值,其中,计数器的取值可以为TSF值或TSF值的高位,同时,在预设计数器的取值时,还需要约定计数器的变化规律。例如,预设的变化规律使基于第二设备的Wi-Fi接口被唤醒的周期而设定的,比如,每个唤醒周期为100ms,那么每间隔100ms需要将原有计数器的值进行+1,从而使计数器的值可变。In the embodiment of the present invention, the first verification value may be a variable parameter in addition to the above-mentioned immutable parameter. Among them, the variable parameter can be used to represent a parameter that changes with time, but is not limited to a parameter that changes with time. For example, when the first device establishes a secure connection with the second device, the value of the counter may be pre-agreed, wherein the value of the counter may be a high value of the TSF value or the TSF value, and at the same time, when the preset counter is used, It is also necessary to agree on the changing rules of the counter. For example, the preset change rule is set based on the period in which the Wi-Fi interface of the second device is woken up. For example, each wake-up period is 100 ms, and the value of the original counter needs to be +1 every 100 ms. Thereby the value of the counter is made variable.
此外,第一验证值还可以为可变参数与不可变参数的结合,或是根据这两类参数进行计算后得到的参数。比如,第一验证值为至少基于第一设备与第二设备共享的密钥、计数器信息,以及发送的消息中的明文信息所生成的参数。In addition, the first verification value may also be a combination of a variable parameter and an immutable parameter, or a parameter obtained by calculating according to the two types of parameters. For example, the first verification value is based on at least a key shared by the first device and the second device, counter information, and parameters generated by the plaintext information in the transmitted message.
由此可见,生成第一验证值、第二验证值的方式,在本发明实施例中不做具体限定,上述内容均为一种可能的示例,并不作为生成第一验证值、第二验证值的限定。Therefore, the manner of generating the first verification value and the second verification value is not specifically limited in the embodiment of the present invention. The foregoing content is a possible example, and is not used as the first verification value and the second verification. The value is limited.
在第一WUR消息中携带第一验证值,可以提升数据传输过程的安全性,在第二设备具有访问权限的情况下,才能成功获取第一WUR消息中的信息。需要说明的是,对于第二设备而言,即便第二设备不具有访问第一WUR消息的权限,但第二设备还是可以成功获取用于计算第二验证值的参数。The first WUR message carries the first verification value, which can improve the security of the data transmission process. If the second device has the access right, the information in the first WUR message can be successfully obtained. It should be noted that, for the second device, even if the second device does not have the right to access the first WUR message, the second device may successfully obtain the parameter for calculating the second verification value.
在本发明实施例中,提到了第一至第三WUR消息。需要说明的是,对于WUR消息而言,可以是唤醒包,即符合WUR信号特征的消息。比如,第一至第三WUR消息的格式可以为如图8所示的帧结构,当然,图8仅作为一种可能的示例,该帧结构还可以为其他新定义的或是经过修改后的消息格式,在此不做限定。如图8所示,在无线保真前导中,包括L-STF、L-LTF和L-SIG。 其中,在现有技术中,位于L-SIG中的长度域通常表示唤醒包有效载荷的长度,而在本发明实施例中,该长度域所表示的长度至少包括唤醒包有效载荷与第二WUR消息的总长度,这样一来,就能够为第二WUR消息预留充足的信道资源,供第二WUR消息传输使用。In the embodiment of the present invention, the first to third WUR messages are mentioned. It should be noted that, for a WUR message, it may be a wake-up packet, that is, a message conforming to the characteristics of the WUR signal. For example, the format of the first to third WUR messages may be a frame structure as shown in FIG. 8. Of course, FIG. 8 is only a possible example, and the frame structure may also be other newly defined or modified. The message format is not limited here. As shown in FIG. 8, in the wireless fidelity preamble, L-STF, L-LTF, and L-SIG are included. In the prior art, the length field in the L-SIG generally indicates the length of the wake-up packet payload, and in the embodiment of the present invention, the length represented by the length field includes at least the wake-up packet payload and the second WUR. The total length of the message, so that sufficient channel resources can be reserved for the second WUR message for the second WUR message transmission.
另外,对于本发明实施例所涉及的方法步骤而言,可以由最初第一设备通过第一设备的WUR接口向第二设备发送的第一WUR消息中所携带的反向唤醒指示信息作为触发条件,也可以是第一设备与第二设备预先约定的。需要说明的是,对于预先约定的情况而言,预先约定指的是约定好上述各个步骤执行的时机,以及具体的实现内容。也就意味着,若第一设备与第二设备事先约定好上述方法步骤,那么第一设备发送的第一WUR消息中可以不包括反向唤醒指示信息,第二设备在接收到第一WUR消息后,则会依照预先约定,生成第二WUR消息并唤醒第二设备的Wi-Fi接口,且将第二WUR消息反馈给第一设备,之后执行后续反向唤醒的实现流程。同理,对于第二设备的Wi-Fi接口处于忙碌状态的情况也可以适用。In addition, for the method steps involved in the embodiment of the present invention, the reverse wakeup indication information carried in the first WUR message sent by the first device to the second device by using the WUR interface of the first device may be used as a trigger condition. It may also be pre-agreed by the first device and the second device. It should be noted that, in the case of a pre-agreed agreement, the pre-agreed refers to the timing of the execution of each of the above steps, and the specific implementation content. In other words, if the first device and the second device agree on the foregoing method steps, the first WUR message sent by the first device may not include the reverse wakeup indication information, and the second device receives the first WUR message. Then, according to the pre-agreed, the second WUR message is generated and the Wi-Fi interface of the second device is awake, and the second WUR message is fed back to the first device, and then the implementation process of the subsequent reverse wake-up is performed. Similarly, the case where the Wi-Fi interface of the second device is busy is also applicable.
第一设备与第二设备预先约定的通信过程可以包括如下内容:The communication process pre-agreed by the first device and the second device may include the following contents:
由第一设备生成第一WUR消息,并通过第一设备的处于工作状态的Wi-Fi接口向第二设备的WUR接口发送;在第二设备的WUR接口接收到第一WUR消息之后,第二设备唤醒第二设备的Wi-Fi接口(此处以第二设备的Wi-Fi接口处于关闭状态为例进行描述,参考前文描述的内容,可以得知,第二设备的Wi-Fi接口还可以处于非工作状态、工作状态或间歇式工作状态,或是第二设备的Wi-Fi接口还可以处于忙碌状态),并生成第二WUR消息,之后通过第二设备的Wi-Fi接口向第一设备的WUR接口发送;此外,第一设备通过第一设备的Wi-Fi接口发送第一WUR消息后,第一设备需要将第一设备的Wi-Fi接口状态切换至非工作状态或间歇式工作状态(此时,若第一设备的WUR接口处于关闭状态、间歇式工作状态或非工作状态,则还需要由第一设备将第一设备的WUR接口状态切换至工作状态,以确保能够成功接收到第二设备发出的第二WUR消息);在第一设备通过第一设备的WUR接口接收到第二设备通过第二设备的Wi-Fi接口发送的第二WUR消息后,第一设备唤醒第一设备的Wi-Fi接口,并通过第一设备的Wi-Fi接口与第二设备的Wi-Fi接口通信。需要说明的是,上述涉及或是未涉及到的各个步骤的具体实现方式参照前文描述的流程,在此不做赘述。比如,发送第三WUR消息的过程,第一、第二验证值的生成及发送,Wi-Fi接口唤醒的具体实现流程等。Generating, by the first device, the first WUR message, and transmitting to the WUR interface of the second device by using the working Wi-Fi interface of the first device; after receiving the first WUR message by the WUR interface of the second device, the second The device wakes up the Wi-Fi interface of the second device (here, the Wi-Fi interface of the second device is in the off state as an example. Referring to the foregoing description, it can be known that the Wi-Fi interface of the second device can also be located. The non-working state, the working state, or the intermittent working state, or the Wi-Fi interface of the second device may also be in a busy state, and generate a second WUR message, and then through the Wi-Fi interface of the second device to the first device The WUR interface sends the WUR interface. In addition, after the first device sends the first WUR message through the Wi-Fi interface of the first device, the first device needs to switch the Wi-Fi interface state of the first device to the non-working state or the intermittent working state. (At this time, if the WUR interface of the first device is in the off state, the intermittent working state, or the non-working state, the first device needs to switch the WUR interface state of the first device to the working state to ensure that the WUR interface can be turned into a working state. Receiving, by the second device, the second WUR message sent by the second device; after the first device receives the second WUR message sent by the second device through the Wi-Fi interface of the second device by using the WUR interface of the first device, the first device The Wi-Fi interface of the first device is awake and communicates with the Wi-Fi interface of the second device through the Wi-Fi interface of the first device. It should be noted that the specific implementation manners of the foregoing steps that are related to or not involved are referred to the foregoing description, and are not described herein. For example, the process of sending a third WUR message, the generation and transmission of the first and second verification values, and the specific implementation process of the wake-up of the Wi-Fi interface.
由此可见,在本发明实施例中,并不限定触发反向唤醒流程的原因,比如,可以采用反向唤醒指示信息作为触发条件,或是通过预先约定的方式来约定好第一设备与第二设备之间的交互流程。Therefore, in the embodiment of the present invention, the reason for triggering the reverse wakeup process is not limited. For example, the reverse wakeup indication information may be used as a trigger condition, or the first device and the first device may be agreed by a pre-agreed manner. The interaction process between the two devices.
在上述第一设备、第二设备中可以分别设置有建立数据通信的装置,该装置为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明能够以硬件或硬件和计算机软件的结合形 式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。In the first device and the second device, respectively, devices for establishing data communication may be provided, and the device includes a hardware structure and/or a software module corresponding to each function in order to implement the above functions. Those skilled in the art will readily appreciate that the present invention can be combined with hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. To achieve. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
本发明实施例可以根据上述方法示例对位于第一设备、第二设备上的装置进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present invention may perform the division of the function modules on the devices located on the first device and the second device according to the foregoing method. For example, each function module may be divided according to each function, or two or more functions may be integrated. In a processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
如图9所示,为上述实施例中所涉及的位于第一设备上的建立数据通信的装置的一种可能的结构示意图。建立数据通信的装置10包括:生成模块11、切换模块12、唤醒模块13、Wi-Fi接口14和WUR接口15。其中,生成模块11用于支持建立数据通信的装置10执行图2、图4至图7中的步骤101;切换模块12用于支持建立数据通信的装置10执行图2、图4至图7中的步骤103,图7中的步骤401;唤醒模块13用于支持建立数据通信的装置10执行图2、图4、图6、图7中的步骤108;Wi-Fi接口14用于支持建立数据通信的装置10执行图2、图4至图7中的步骤102、步骤109;WUR接口15用于支持建立数据通信的装置10执行图2、图5至图7中的步骤107,图4中的步骤202。需要说明的是,生成模块11、切换模块12、唤醒模块13除了可以分开部署外,还可以部分或全部集成在处理模块20上,如,可由处理模块20实现包括生成模块11和切换模块12(进一步的,还可以包括唤醒模块13)在内的模块所能实现的功能,和/或用于本文所描述的技术的其它过程,所述唤醒模块13可能集成在上述处理模块20中和/或所述WUR接口15中(即所述处理模块20和所述WUR接口15可能单独或联合起来具有实现所述唤醒模块13的功能的能力);Wi-Fi接口14和WUR接口15除了可以分开部署外,还可以集成在通信模块21上,由通信模块21实现Wi-Fi接口14和WUR接口15所能实现的功能,还用于支持建立数据通信的装置10与诸如第二设备等其他设备之间进行数据交互。此外,建立数据通信的装置10中还可以设置有存储模块16。其中,存储模块16用于存储第一设备的程序代码和数据。As shown in FIG. 9, it is a possible structural diagram of a device for establishing data communication on the first device involved in the foregoing embodiment. The apparatus 10 for establishing data communication includes a generating module 11, a switching module 12, a waking module 13, a Wi-Fi interface 14, and a WUR interface 15. Wherein, the generating module 11 is configured to support the establishment of the data communication device 10 to perform step 101 in FIG. 2, FIG. 4 to FIG. 7; the switching module 12 is configured to support the establishment of the data communication device 10 to perform the operations in FIG. 2, FIG. 4 to FIG. Step 103, step 401 in FIG. 7; the device 10 for supporting the establishment of data communication by the wake-up module 13 performs the step 108 in FIG. 2, FIG. 4, FIG. 6, FIG. 7; the Wi-Fi interface 14 is used to support the establishment of data. The communicating device 10 performs steps 102 and 109 in FIG. 2, FIG. 4 to FIG. 7; the WUR interface 15 is used to support the device 10 for establishing data communication to perform step 107 in FIG. 2, FIG. 5 to FIG. 7, in FIG. Step 202. It should be noted that the generating module 11, the switching module 12, and the waking module 13 may be partially or completely integrated on the processing module 20, for example, by the processing module 20, including the generating module 11 and the switching module 12 ( Further, functions that can be implemented by the module including the wake-up module 13), and/or other processes for the techniques described herein may be included, and the wake-up module 13 may be integrated in the processing module 20 described above and/or In the WUR interface 15 (ie, the processing module 20 and the WUR interface 15 may have the ability to implement the functions of the wake-up module 13 alone or in combination); the Wi-Fi interface 14 and the WUR interface 15 may be deployed separately In addition, it can also be integrated on the communication module 21, and the communication module 21 implements functions that can be implemented by the Wi-Fi interface 14 and the WUR interface 15, and is also used to support the device 10 for establishing data communication and other devices such as the second device. Data interaction between them. Furthermore, a memory module 16 can also be provided in the device 10 for establishing data communication. The storage module 16 is configured to store program codes and data of the first device.
其中,处理模块20可以实现为处理器或控制器,例如可以是CPU,通用处理器,DSP,ASIC,FPGA或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本发明公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信模块21可以实现为收发器、收发电路或通信接口等。存储模块16可以实现为存储器。The processing module 20 can be implemented as a processor or a controller, such as a CPU, a general purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like. The communication module 21 can be implemented as a transceiver, a transceiver circuit, a communication interface, or the like. The storage module 16 can be implemented as a memory.
若处理模块20实现为处理器、通信模块21实现为Wi-Fi接口和WUR接口、存储模块16实现为存储器,则如图10所示,建立数据通信的装置30可以包括:处理器31、Wi-Fi接口32、WUR接口35、存储器33,以及总线34。其中,处理器31、Wi-Fi接口32、WUR接口35和存储器33通过总线34相互连接;总线34可 以是PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。If the processing module 20 is implemented as a processor, the communication module 21 is implemented as a Wi-Fi interface and a WUR interface, and the storage module 16 is implemented as a memory, as shown in FIG. 10, the apparatus 30 for establishing data communication may include: a processor 31, Wi -Fi interface 32, WUR interface 35, memory 33, and bus 34. The processor 31, the Wi-Fi interface 32, the WUR interface 35, and the memory 33 are connected to each other through a bus 34; the bus 34 can be So the PCI bus or EISA bus. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in FIG. 10, but it does not mean that there is only one bus or one type of bus.
结合本发明公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于RAM、闪存、ROM、EPROM、EEPROM、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以部署在同一设备中,或者,处理器和存储介质也可以作为分立组件部署在于不同的设备中。The steps of a method or algorithm described in connection with the present disclosure may be implemented in a hardware, or may be implemented by a processor executing software instructions. The software instructions may be comprised of corresponding software modules that may be stored in RAM, flash memory, ROM, EPROM, EEPROM, registers, hard disk, removable hard drive, CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium may be deployed in the same device, or the processor and the storage medium may be deployed as separate components in different devices.
如图11所示,为上述实施例中所涉及的位于第二设备上的建立数据通信的装置的一种可能的结构示意图。建立数据通信的装置40包括:唤醒模块41、生成模块42、Wi-Fi接口43和WUR接口44。其中,唤醒模块41用于支持建立数据通信的装置40执行图2、图4、图5、图7中的步骤105中的唤醒操作,图6中的步骤302;生成模块42用于支持建立数据通信的装置40执行图2、图4、图5、图7中的步骤105中的生成操作,图6中的步骤303;Wi-Fi接口43用于支持建立数据通信的装置40执行图2、图5至图7中的步骤106,图2、图4至图7中的步骤109,图4中的步骤201;WUR接口44用于支持建立数据通信的装置40执行图2、图4、图5至图7中的步骤104。需要说明的是,唤醒模块41、生成模块42除了可以分开部署外,还可以集成在处理模块50上,如可以由处理模块50实现唤醒模块41和生成模块42所能实现的功能,和/或用于本文所描述的技术的其它过程,所述唤醒模块41可能集成在上述处理模块50中和/或所述WUR接口44中(即所述处理模块50或所述WUR接口44可能单独或联合起来具有实现所述唤醒模块41的功能的能力);Wi-Fi接口43和WUR接口44除了可以分开部署外,还可以集成在通信模块51上,由通信模块51实现Wi-Fi接口43和WUR接口44所能实现的功能,还用于支持建立数据通信的装置40与诸如第一设备等其他设备之间进行数据交互。此外,建立数据通信的装置40中还可以设置有存储模块45。其中,存储模块45用于存储第一设备的程序代码和数据。FIG. 11 is a schematic structural diagram of a device for establishing data communication on a second device involved in the foregoing embodiment. The apparatus 40 for establishing data communication includes a wake-up module 41, a generation module 42, a Wi-Fi interface 43, and a WUR interface 44. The device 40 for supporting the establishment of data communication performs the wake-up operation in step 105 in FIG. 2, FIG. 4, FIG. 5, FIG. 7, step 302 in FIG. 6, and the generating module 42 is configured to support the establishment of data. The communicating device 40 performs the generating operation in step 105 in FIG. 2, FIG. 4, FIG. 5, FIG. 7, step 303 in FIG. 6, and the Wi-Fi interface 43 is used to support the device 40 for establishing data communication to execute FIG. Steps 106 in FIG. 5 to FIG. 7, step 109 in FIG. 2, FIG. 4 to FIG. 7, step 201 in FIG. 4; the WUR interface 44 is used to support the device 40 for establishing data communication to perform FIG. 2, FIG. 4, and FIG. 5 to step 104 in FIG. It should be noted that the waking module 41 and the generating module 42 can be integrated on the processing module 50, for example, the processing module 50 can implement the functions that the waking module 41 and the generating module 42 can implement, and/or For other processes of the techniques described herein, the wake-up module 41 may be integrated in the processing module 50 described above and/or in the WUR interface 44 (ie, the processing module 50 or the WUR interface 44 may be separate or combined It has the ability to implement the functions of the wake-up module 41; the Wi-Fi interface 43 and the WUR interface 44 can be integrated on the communication module 51 in addition to being separately deployed, and the Wi-Fi interface 43 and the WUR are implemented by the communication module 51. The functions that interface 44 can implement are also used to support data interaction between device 40 that establishes data communication and other devices, such as the first device. Furthermore, a memory module 45 can also be provided in the device 40 for establishing data communication. The storage module 45 is configured to store program codes and data of the first device.
其中,处理模块50可以实现为处理器或控制器,例如可以是CPU,通用处理器,DSP,ASIC,FPGA或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本发明公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信模块51可以实现为收发器、收发电路或通信接口等。存储模块45可以实现为存储器。The processing module 50 can be implemented as a processor or a controller, such as a CPU, a general purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like. The communication module 51 can be implemented as a transceiver, a transceiver circuit, a communication interface, or the like. The storage module 45 can be implemented as a memory.
若处理模块50实现为处理器、通信模块51实现为Wi-Fi接口和WUR接口、存储模块45实现为存储器,则如图12所示,建立数据通信的装置60可以包括:处理器61、Wi-Fi接口62、WUR接口65、存储器63,以及总线64。其中,处理器61、Wi-Fi接口62、WUR接口65和存储器63可以通过总线64相互连接;总线 64可以是PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图12中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。If the processing module 50 is implemented as a processor, the communication module 51 is implemented as a Wi-Fi interface and a WUR interface, and the storage module 45 is implemented as a memory, as shown in FIG. 12, the apparatus 60 for establishing data communication may include: a processor 61, Wi -Fi interface 62, WUR interface 65, memory 63, and bus 64. The processor 61, the Wi-Fi interface 62, the WUR interface 65, and the memory 63 may be connected to each other through a bus 64; 64 can be a PCI bus or an EISA bus. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 12, but it does not mean that there is only one bus or one type of bus.
本发明实施例提供的装置,可以理解的是,装置的处理器可以通过调用存储器中的程序和/或指令和/或数据,来执行对应的方法(包括控制相关的硬件,如,收发器,来执行相关的操作)。The apparatus provided by the embodiment of the present invention may be understood that the processor of the apparatus may execute a corresponding method (including controlling related hardware, such as a transceiver, by calling a program and/or an instruction and/or data in the memory. To perform related operations).
本发明各方法实施例之间相关部分可以相互参考;各装置实施例所提供的装置用于执行对应的方法实施例所提供的方法,故各装置实施例可以参考相关的方法实施例中的相关部分进行理解。The related parts of the method embodiments of the present invention may be referred to each other; the apparatus provided in each device embodiment is used to perform the method provided by the corresponding method embodiment, so each device embodiment may refer to related methods in the related method embodiments. Partial understanding.
本发明各装置实施例中给出的装置结构图仅示出了对应的装置的简化设计。在实际应用中,该装置可以包含任意数量的收发器(可包括发射器和接收器),处理器,存储器等,以实现本发明各装置实施例中该装置所执行的功能或操作,而所有可以实现本申请的装置都在本申请的保护范围之内。The device configuration diagrams given in the various device embodiments of the present invention show only a simplified design of the corresponding device. In practical applications, the apparatus may include any number of transceivers (which may include transmitters and receivers), processors, memories, etc., to implement the functions or operations performed by the apparatus in various embodiments of the present invention, and all The devices that can implement the present application are all within the scope of the present application.
结合本发明公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于RAM、闪存、ROM、EPROM、EEPROM、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以部署在同一设备中,或者,处理器和存储介质也可以作为分立组件部署在于不同的设备中。The steps of a method or algorithm described in connection with the present disclosure may be implemented in a hardware, or may be implemented by a processor executing software instructions. The software instructions may be comprised of corresponding software modules that may be stored in RAM, flash memory, ROM, EPROM, EEPROM, registers, hard disk, removable hard drive, CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium may be deployed in the same device, or the processor and the storage medium may be deployed as separate components in different devices.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should appreciate that in one or more of the above examples, the functions described in the embodiments of the present invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored in a computer readable medium or transmitted as one or more instructions or code on a computer readable medium. Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another. A storage medium may be any available media that can be accessed by a general purpose or special purpose computer.
以上所述的具体实施方式,对本发明实施例的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明实施例的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本发明实施例的保护范围之内。 The specific embodiments of the present invention have been described in detail with reference to the embodiments of the present invention. The scope of the invention is to be construed as being included in the scope of the embodiments of the invention.

Claims (36)

  1. 一种建立数据通信的方法,其特征在于,所述方法包括:A method of establishing data communication, the method comprising:
    第一设备生成第一唤醒无线电/唤醒接收机WUR消息;The first device generates a first wake-up radio/wake-up receiver WUR message;
    所述第一设备通过处于工作状态的所述第一设备的无线保真Wi-Fi接口向第二设备的WUR接口发送所述第一WUR消息,所述第一WUR消息用于指示所述第二设备唤醒所述第二设备的Wi-Fi接口,并通过所述第二设备的Wi-Fi接口发送第二WUR消息;所述第一WUR消息携带有反向唤醒指示信息,所述反向唤醒指示信息用于指示所述第二设备通过所述第二设备的Wi-Fi接口发送所述第二WUR消息,所述第二WUR消息用于指示所述第一设备唤醒所述第一设备的Wi-Fi接口;The first device sends the first WUR message to a WUR interface of the second device by using a wireless fidelity Wi-Fi interface of the first device in an active state, where the first WUR message is used to indicate the first The second device wakes up the Wi-Fi interface of the second device, and sends a second WUR message by using the Wi-Fi interface of the second device; the first WUR message carries reverse wakeup indication information, the reverse The waking indication information is used to indicate that the second device sends the second WUR message by using the Wi-Fi interface of the second device, where the second WUR message is used to indicate that the first device wakes up the first device Wi-Fi interface;
    所述第一设备在发送完所述第一WUR消息之后,将所述第一设备的Wi-Fi接口状态从所述工作状态切换至非工作状态或间歇式(duty cycle)工作状态;After the first device sends the first WUR message, the first device switches the Wi-Fi interface state of the first device from the working state to a non-working state or a duty cycle working state;
    所述第一设备通过所述第一设备的WUR接口,接收所述第二设备通过所述第二设备的Wi-Fi接口发送的所述第二WUR消息;Receiving, by the first device, the second WUR message sent by the second device by using the Wi-Fi interface of the second device by using the WUR interface of the first device;
    在所述第一设备接收所述第二WUR消息后,所述第一设备唤醒所述第一设备的Wi-Fi接口,并通过所述第一设备的Wi-Fi接口与所述第二设备的Wi-Fi接口通信。After the first device receives the second WUR message, the first device wakes up the Wi-Fi interface of the first device, and passes the Wi-Fi interface of the first device with the second device. Wi-Fi interface communication.
  2. 根据权利要求1所述的方法,其特征在于,在所述第一设备通过处于工作状态的所述第一设备的Wi-Fi接口向第二设备的WUR接口发送所述第一WUR消息时,所述第二设备的WUR接口处于第一醒来窗口,所述第一醒来窗口包括所述第二设备的WUR接口的一个醒来窗口、所述第一设备的Wi-Fi接口的一个醒来窗口、以及所述第一设备的Wi-Fi接口的一个醒来窗口和所述第二设备的WUR接口的一个醒来窗口之间重叠的醒来窗口中的任意一项,其中,醒来窗口用于表示接口处于工作状态的时间。The method according to claim 1, wherein when the first device transmits the first WUR message to a WUR interface of the second device through a Wi-Fi interface of the first device in an active state, The WUR interface of the second device is in a first wake-up window, the first wake-up window includes a wake-up window of the WUR interface of the second device, and a wake-up window of the first device's Wi-Fi interface Any one of a window, and a wake-up window overlapping between a wake-up window of the Wi-Fi interface of the first device and a wake-up window of the WUR interface of the second device, wherein waking up The window is used to indicate when the interface is working.
  3. 根据权利要求1或2所述的方法,其特征在于,所述非工作状态包括等待状态(standby state)、浅休眠状态(shallow sleep state)、空闲状态(idle state)、省电状态(power saving state)、睡眠状态(sleep state)和休眠状态(doze state)中的任意一种。The method according to claim 1 or 2, wherein the non-working state comprises a standby state, a shallow sleep state, an idle state, and a power saving state. State, sleep state, and doze state.
  4. 根据权利要求1至3中任意一项所述的方法,其特征在于,所述第一WUR消息中携带有时间信息,所述时间信息用于指示所述第二设备向所述第一设备发送所述第二WUR消息的时间。The method according to any one of claims 1 to 3, wherein the first WUR message carries time information, and the time information is used to indicate that the second device sends the first device to the first device. The time of the second WUR message.
  5. 根据权利要求4所述的方法,其特征在于,所述第一设备通过所述第一设备的WUR接口,接收所述第二设备通过所述第二设备的Wi-Fi接口发送的所述第二WUR消息,具体包括:The method according to claim 4, wherein the first device receives, by the WUR interface of the first device, the first device, by using a Wi-Fi interface of the second device Two WUR messages, including:
    所述第一设备在所述时间信息指示的时间范围内,通过所述第一设备的WUR接口,接收所述第二设备通过所述第二设备的Wi-Fi接口发送的所述第二WUR消息。Receiving, by the first device, the second WUR sent by the second device by using the Wi-Fi interface of the second device by using the WUR interface of the first device in the time range indicated by the time information Message.
  6. 根据权利要求1至5中任意一项所述的方法,其特征在于,所述第一WUR消息携带有无线保真前导Wi-Fi preamble,所述Wi-Fi preamble中的长 度域携带的时间长度至少包括所述第一设备发送所述第一WUR消息和所述第二设备发送所述第二WUR消息所需要的总时间。The method according to any one of claims 1 to 5, wherein the first WUR message carries a wireless fidelity preamble Wi-Fi preamble, the length of the Wi-Fi preamble The length of time that the degree domain carries at least includes the total time required by the first device to send the first WUR message and the second device to send the second WUR message.
  7. 根据权利要求1至6中任意一项所述的方法,其特征在于,在所述第一设备将所述第一设备的Wi-Fi接口状态从所述工作状态切换至非工作状态或间歇式工作状态之后,所述方法还包括:The method according to any one of claims 1 to 6, wherein the first device switches a Wi-Fi interface state of the first device from the working state to an inactive state or intermittent mode After the working state, the method further includes:
    若所述第一设备的WUR接口处于所述非工作状态、所述间歇式工作状态或关闭状态,则所述第一设备将所述第一设备的WUR接口状态切换至所述工作状态。If the WUR interface of the first device is in the non-working state, the intermittent working state, or the closed state, the first device switches the WUR interface state of the first device to the working state.
  8. 一种建立数据通信的方法,其特征在于,所述方法包括:A method of establishing data communication, the method comprising:
    第二设备通过所述第二设备的唤醒无线电/唤醒接收机WUR接口,接收第一设备通过所述第一设备的无线保真Wi-Fi接口向所述第二设备的WUR接口发送的第一WUR消息,所述第一WUR消息用于指示所述第二设备唤醒所述第二设备的Wi-Fi接口,并通过所述第二设备的Wi-Fi接口发送第二WUR消息;所述第一WUR消息携带有反向唤醒指示信息,所述反向唤醒指示信息用于指示所述第二设备通过所述第二设备的Wi-Fi接口发送所述第二WUR消息,所述第二WUR消息用于指示所述第一设备唤醒所述第一设备的Wi-Fi接口;Receiving, by the second device, the wake-up radio/wake-up receiver WUR interface, the first device sends the first device to the WUR interface of the second device by using the wireless fidelity Wi-Fi interface of the first device a WUR message, the first WUR message is used to indicate that the second device wakes up the Wi-Fi interface of the second device, and sends a second WUR message by using the Wi-Fi interface of the second device; The WUR message carries the reverse wakeup indication information, where the reverse wakeup indication information is used to indicate that the second device sends the second WUR message by using the Wi-Fi interface of the second device, where the second WUR message The message is used to instruct the first device to wake up the Wi-Fi interface of the first device;
    所述第二设备按照所述第一WUR消息的指示,唤醒所述第二设备的Wi-Fi接口,生成并发送所述第二WUR消息;The second device wakes up the Wi-Fi interface of the second device according to the indication of the first WUR message, and generates and sends the second WUR message.
    所述第二设备发送所述第二WUR消息包括:在所述第二设备唤醒所述第二设备的Wi-Fi接口后,所述第二设备通过所述第二设备的Wi-Fi接口,向所述第一设备的WUR接口发送所述第二WUR消息;The sending, by the second device, the second WUR message includes: after the second device wakes up the Wi-Fi interface of the second device, the second device passes the Wi-Fi interface of the second device, Sending the second WUR message to the WUR interface of the first device;
    在所述第二设备发送所述第二WUR消息后,所述第二设备通过所述第二设备的Wi-Fi接口与所述第一设备的Wi-Fi接口通信。After the second device sends the second WUR message, the second device communicates with the Wi-Fi interface of the first device by using a Wi-Fi interface of the second device.
  9. 根据权利要求8所述的方法,其特征在于,在所述第二设备通过所述第二设备的WUR接口,接收第一设备通过第一设备的Wi-Fi接口向所述第二设备的WUR接口发送的第一WUR消息时,所述第二设备的WUR接口处于第一醒来窗口,所述第一醒来窗口包括所述第二设备的WUR接口的一个醒来窗口、所述第一设备的WUR接口的一个醒来窗口、以及所述第一设备的WUR接口的一个醒来窗口和所述第二设备的WUR接口的一个醒来窗口之间重叠的醒来窗口中的任意一项,其中,醒来窗口用于表示接口处于工作状态的时间。The method according to claim 8, wherein the second device receives the WUR of the first device through the Wi-Fi interface of the first device to the second device through the WUR interface of the second device When the first WUR message is sent by the interface, the WUR interface of the second device is in a first wake-up window, and the first wake-up window includes a wake-up window of the WUR interface of the second device, the first a wake-up window of the WUR interface of the device, and any one of the wake-up windows overlapped between a wake-up window of the WUR interface of the first device and a wake-up window of the WUR interface of the second device , where the wake-up window is used to indicate when the interface is in working state.
  10. 根据利要求8或9所述的方法,其特征在于,所述第一WUR消息中携带有时间信息,所述第二设备通过所述第二设备的Wi-Fi接口,向所述第一设备发的WUR接口送所述第二WUR消息,具体包括:The method of claim 8 or 9, wherein the first WUR message carries time information, and the second device passes the Wi-Fi interface of the second device to the first device. The sent WUR interface sends the second WUR message, specifically:
    所述第二设备在所述时间信息指示的时间范围内,通过所述第二设备的Wi-Fi接口,向所述第一设备的WUR接口发送所述第二WUR消息。The second device sends the second WUR message to the WUR interface of the first device by using the Wi-Fi interface of the second device in the time range indicated by the time information.
  11. 根据权利要求8至10中任意一项所述的方法,其特征在于,所述第一WUR消息携带有无线保真前导Wi-Fi preamble,所述Wi-Fi preamble中的长度域携带的时间长度至少包括所述第一设备发送所述第一WUR消息和所述第二设备发送所述第二WUR消息所需要的总时间。 The method according to any one of claims 8 to 10, wherein the first WUR message carries a wireless fidelity preamble Wi-Fi preamble, and the length of time length carried in the Wi-Fi preamble At least the total time required for the first device to send the first WUR message and the second device to send the second WUR message.
  12. 根据权利要求8至11中任意一项所述的方法,其特征在于,在所述第二设备通过所述第二设备的Wi-Fi接口,向所述第一设备的WUR接口发送所述第二WUR消息时,所述第一设备的WUR接口处于第二醒来窗口,所述第二醒来窗口包括所述第一设备的WUR接口的一个醒来窗口、所述第二设备的Wi-Fi接口的一个醒来窗口、以及所述第一设备的WUR接口的一个醒来窗口和所述第二设备的Wi-Fi接口的一个醒来窗口之间重叠的醒来窗口中的任意一项,其中,醒来窗口用于表示接口处于工作状态的时间。The method according to any one of claims 8 to 11, wherein the second device transmits the number to the WUR interface of the first device through a Wi-Fi interface of the second device In the case of the second WUR message, the WUR interface of the first device is in a second wake-up window, and the second wake-up window includes a wake-up window of the WUR interface of the first device, and Wi- of the second device. a wake-up window of the Fi interface, and any one of the wake-up windows overlapped between a wake-up window of the WUR interface of the first device and a wake-up window of the Wi-Fi interface of the second device , where the wake-up window is used to indicate when the interface is in working state.
  13. 一种建立数据通信的装置,其特征在于,所述装置应用于第一设备,所述装置包括:An apparatus for establishing data communication, wherein the apparatus is applied to a first device, the apparatus comprising:
    生成模块,用于生成第一唤醒无线电/唤醒接收机WUR消息;Generating a module, configured to generate a first wake-up radio/wake-up receiver WUR message;
    无线保真Wi-Fi接口,用于通过处于工作状态的所述第一设备的Wi-Fi接口向第二设备的WUR接口发送所述生成模块生成的所述第一WUR消息,所述第一WUR消息用于指示所述第二设备唤醒所述第二设备的Wi-Fi接口,并通过所述第二设备的Wi-Fi接口发送第二WUR消息;所述第一WUR消息携带有反向唤醒指示信息,所述反向唤醒指示信息用于指示所述第二设备通过所述第二设备的Wi-Fi接口向所述第一设备的WUR接口发送所述第二WUR消息,所述第二WUR消息用于指示所述第一设备唤醒所述第一设备的Wi-Fi接口;a wireless fidelity Wi-Fi interface, configured to send the first WUR message generated by the generating module to a WUR interface of the second device by using a Wi-Fi interface of the first device in a working state, where the first The WUR message is used to indicate that the second device wakes up the Wi-Fi interface of the second device, and sends a second WUR message by using the Wi-Fi interface of the second device; the first WUR message carries a reverse The waking indication information, the reverse waking indication information is used to indicate that the second device sends the second WUR message to the WUR interface of the first device by using a Wi-Fi interface of the second device, where The second WUR message is used to instruct the first device to wake up the Wi-Fi interface of the first device;
    切换模块,用于在所述第一设备的Wi-Fi接口发送完所述第一WUR消息之后,将所述第一设备的Wi-Fi接口状态从所述工作状态切换至非工作状态或间歇式(duty cycle)工作状态;a switching module, configured to switch a Wi-Fi interface state of the first device from the working state to an inactive state or intermittent after the first WUR message is sent by the Wi-Fi interface of the first device Duty cycle working state;
    WUR接口,用于接收所述第二设备通过所述第二设备的Wi-Fi接口发送的所述第二WUR消息;a WUR interface, configured to receive the second WUR message sent by the second device by using a Wi-Fi interface of the second device;
    唤醒模块,用于在所述第一设备的WUR接口接收所述第二WUR消息后,唤醒所述第一设备的Wi-Fi接口;a wake-up module, configured to wake up the Wi-Fi interface of the first device after receiving the second WUR message by the WUR interface of the first device;
    所述第一设备的Wi-Fi接口,还用于在被唤醒后与所述第二设备的Wi-Fi接口通信。The Wi-Fi interface of the first device is further configured to communicate with the Wi-Fi interface of the second device after being awake.
  14. 根据权利要求13所述的装置,其特征在于,在所述第一设备通过处于工作状态的所述第一设备的Wi-Fi接口向第二设备的WUR接口发送所述第一WUR消息时,所述第二设备的WUR接口处于第一醒来窗口,所述第一醒来窗口包括所述第二设备的WUR接口的一个醒来窗口、所述第一设备的Wi-Fi接口的一个醒来窗口、以及所述第一设备的Wi-Fi接口的一个醒来窗口和所述第二设备的WUR接口的一个醒来窗口之间重叠的醒来窗口中的任意一项,其中,醒来窗口用于表示接口处于工作状态的时间。The apparatus according to claim 13, wherein when the first device transmits the first WUR message to a WUR interface of the second device by using a Wi-Fi interface of the first device in an active state, The WUR interface of the second device is in a first wake-up window, the first wake-up window includes a wake-up window of the WUR interface of the second device, and a wake-up window of the first device's Wi-Fi interface Any one of a window, and a wake-up window overlapping between a wake-up window of the Wi-Fi interface of the first device and a wake-up window of the WUR interface of the second device, wherein waking up The window is used to indicate when the interface is working.
  15. 根据权利要求13或14所述的装置,其特征在于,所述非工作状态包括等待状态(standby state)、浅休眠状态(shallow sleep state)、空闲状态(idle state)、省电状态(power saving state)、睡眠状态(sleep state)和休眠状态(doze state)中的任意一种。The apparatus according to claim 13 or 14, wherein the non-working state comprises a standby state, a shallow sleep state, an idle state, and a power saving state. State, sleep state, and doze state.
  16. 根据权利要求13至15中任意一项所述的装置,其特征在于,所述第一WUR消息中携带有时间信息,所述时间信息用于指示所述第二设备向所述第 一设备发送所述第二WUR消息的时间。The device according to any one of claims 13 to 15, wherein the first WUR message carries time information, and the time information is used to indicate that the second device is to the first The time at which a device sends the second WUR message.
  17. 根据权利要求16所述的装置,其特征在于,所述第一设备的WUR接口用于接收所述第二设备的Wi-Fi接口发送的所述第二WUR消息,具体为:The device according to claim 16, wherein the WUR interface of the first device is configured to receive the second WUR message sent by the Wi-Fi interface of the second device, specifically:
    所述第一设备的WUR接口用于在所述时间信息指示的时间范围内,接收所述第二设备通过所述第二设备的Wi-Fi接口发送的所述第二WUR消息。The WUR interface of the first device is configured to receive, by the second device, the second WUR message sent by the second device by using the Wi-Fi interface of the second device, within a time range indicated by the time information.
  18. 根据权利要求13至17中任意一项所述的装置,其特征在于,所述第一WUR消息携带有无线保真前导Wi-Fi preamble,所述Wi-Fi preamble中的长度域携带的时间长度至少包括所述第一设备发送所述第一WUR消息和所述第二设备发送所述第二WUR消息所需要的总时间。The device according to any one of claims 13 to 17, wherein the first WUR message carries a wireless fidelity preamble Wi-Fi preamble, and the length of time in the length field in the Wi-Fi preamble At least the total time required for the first device to send the first WUR message and the second device to send the second WUR message.
  19. 根据权利要求13至18中任意一项所述的装置,其特征在于,在所述第一设备将所述第一设备的Wi-Fi接口状态从所述工作状态切换至非工作状态或间歇式工作状态之后,所述切换模块,还用于:The apparatus according to any one of claims 13 to 18, wherein the first device switches a Wi-Fi interface state of the first device from the working state to an inactive state or intermittent After the working state, the switching module is further configured to:
    若所述第一设备的WUR接口处于所述非工作状态、所述间歇式工作状态或关闭状态,则将所述第一设备的WUR接口状态切换至所述工作状态。And if the WUR interface of the first device is in the non-working state, the intermittent working state, or the closed state, switching the WUR interface state of the first device to the working state.
  20. 一种建立数据通信的装置,其特征在于,所述装置应用于第二设备,所述装置包括:An apparatus for establishing data communication, wherein the apparatus is applied to a second device, the apparatus comprising:
    唤醒无线电/唤醒接收机WUR接口,用于接收第一设备通过所述第一设备的无线保真Wi-Fi接口向所述第二设备的WUR接口发送的第一WUR消息,所述第一WUR消息用于指示所述第二设备唤醒所述第二设备的Wi-Fi接口,并通过所述第二设备的Wi-Fi接口发送第二WUR消息;所述第一WUR消息携带有反向唤醒指示信息,所述反向唤醒指示信息用于指示所述第二设备通过所述第二设备的Wi-Fi接口向所述第一设备的WUR接口发送所述第二WUR消息,所述第二WUR消息用于指示所述第一设备唤醒所述第一设备的Wi-Fi接口;Wake-up radio/wake-up receiver WUR interface, configured to receive a first WUR message sent by the first device to the WUR interface of the second device by using the wireless fidelity Wi-Fi interface of the first device, the first WUR The message is used to indicate that the second device wakes up the Wi-Fi interface of the second device, and sends a second WUR message by using the Wi-Fi interface of the second device; the first WUR message carries a reverse wakeup Instructing information, the reverse wake-up indication information is used to indicate that the second device sends the second WUR message to the WUR interface of the first device by using a Wi-Fi interface of the second device, where the second device The WUR message is used to instruct the first device to wake up the Wi-Fi interface of the first device;
    唤醒模块,用于按照所述第二设备的WUR接口接收到的所述第一WUR消息的指示,唤醒所述第二设备的Wi-Fi接口;a wake-up module, configured to wake up the Wi-Fi interface of the second device according to the indication of the first WUR message received by the WUR interface of the second device;
    生成模块,用于按照所述第一WUR消息的指示生成所述第二WUR消息;a generating module, configured to generate the second WUR message according to the indication of the first WUR message;
    Wi-Fi接口,用于向所述第一设备的WUR接口发送所述第二WUR消息,还用于与根据所述第二WUR消息被唤醒的所述第一设备的Wi-Fi接口通信。The Wi-Fi interface is configured to send the second WUR message to the WUR interface of the first device, and is further configured to communicate with a Wi-Fi interface of the first device that is awake according to the second WUR message.
  21. 根据权利要求20所述的装置,其特征在于,在所述第二设备通过所述第二设备的WUR接口,接收第一设备通过第一设备的Wi-Fi接口向所述第二设备的WUR接口发送的第一WUR消息时,所述第二设备的WUR接口处于第一醒来窗口,所述第一醒来窗口包括所述第二设备的WUR接口的一个醒来窗口、所述第一设备的WUR接口的一个醒来窗口、以及所述第一设备的WUR接口的一个醒来窗口和所述第二设备的WUR接口的一个醒来窗口之间重叠的醒来窗口中的任意一项,其中,醒来窗口用于表示接口处于工作状态的时间。The device according to claim 20, wherein the second device receives the WUR of the first device through the Wi-Fi interface of the first device to the second device through the WUR interface of the second device When the first WUR message is sent by the interface, the WUR interface of the second device is in a first wake-up window, and the first wake-up window includes a wake-up window of the WUR interface of the second device, the first a wake-up window of the WUR interface of the device, and any one of the wake-up windows overlapped between a wake-up window of the WUR interface of the first device and a wake-up window of the WUR interface of the second device , where the wake-up window is used to indicate when the interface is in working state.
  22. 根据利要求20或21所述的装置,其特征在于,所述第一WUR消息中携带有时间信息,所述第二设备的Wi-Fi接口用于向所述第一设备的WUR接口发送所述第二WUR消息,具体为:The device of claim 20 or 21, wherein the first WUR message carries time information, and the Wi-Fi interface of the second device is used to send the WUR interface to the first device. The second WUR message is specifically:
    在所述时间信息指示的时间范围内,通过所述第二设备的Wi-Fi接口,向 所述第一设备的WUR接口发送所述第二WUR消息。Within the time range indicated by the time information, through the Wi-Fi interface of the second device, The WUR interface of the first device sends the second WUR message.
  23. 根据权利要求20至22中任意一项所述的装置,其特征在于,所述第一WUR消息携带有无线保真前导Wi-Fi preamble,所述Wi-Fi preamble中的长度域携带的时间长度至少包括所述第一设备发送所述第一WUR消息和所述第二设备发送所述第二WUR消息所需要的总时间。The device according to any one of claims 20 to 22, wherein the first WUR message carries a wireless fidelity preamble Wi-Fi preamble, and the length of time length carried in the Wi-Fi preamble At least the total time required for the first device to send the first WUR message and the second device to send the second WUR message.
  24. 根据权利要求20至23中任意一项所述的装置,其特征在于,在所述第二设备通过所述第二设备的Wi-Fi接口,向所述第一设备的WUR接口发送所述第二WUR消息时,所述第一设备的WUR接口处于第二醒来窗口,所述第二醒来窗口包括所述第一设备的WUR接口的一个醒来窗口、所述第二设备的Wi-Fi接口的一个醒来窗口、以及所述第一设备的WUR接口的一个醒来窗口和所述第二设备的Wi-Fi接口的一个醒来窗口之间重叠的醒来窗口中的任意一项,其中,醒来窗口用于表示接口处于工作状态的时间。The apparatus according to any one of claims 20 to 23, wherein the second device transmits the first to a WUR interface of the first device via a Wi-Fi interface of the second device In the case of the second WUR message, the WUR interface of the first device is in a second wake-up window, and the second wake-up window includes a wake-up window of the WUR interface of the first device, and Wi- of the second device. a wake-up window of the Fi interface, and any one of the wake-up windows overlapped between a wake-up window of the WUR interface of the first device and a wake-up window of the Wi-Fi interface of the second device , where the wake-up window is used to indicate when the interface is in working state.
  25. 一种建立数据通信的装置,其特征在于,所述装置应用于第一设备,所述装置包括:An apparatus for establishing data communication, wherein the apparatus is applied to a first device, the apparatus comprising:
    处理器,用于生成第一唤醒无线电/唤醒接收机WUR消息;a processor, configured to generate a first wake-up radio/wake-up receiver WUR message;
    无线保真Wi-Fi接口,用于通过处于工作状态的所述第一设备的Wi-Fi接口向第二设备的WUR接口发送所述处理器生成的所述第一WUR消息,所述第一WUR消息用于指示所述第二设备唤醒所述第二设备的Wi-Fi接口,并通过所述第二设备的Wi-Fi接口发送第二WUR消息;所述第一WUR消息携带有反向唤醒指示信息,所述反向唤醒指示信息用于指示所述第二设备通过所述第二设备的Wi-Fi接口向所述第一设备的WUR接口发送所述第二WUR消息,所述第二WUR消息用于指示所述第一设备唤醒所述第一设备的Wi-Fi接口;a wireless fidelity Wi-Fi interface, configured to send, by the Wi-Fi interface of the first device in an active state, the first WUR message generated by the processor to a WUR interface of the second device, where the first The WUR message is used to indicate that the second device wakes up the Wi-Fi interface of the second device, and sends a second WUR message by using the Wi-Fi interface of the second device; the first WUR message carries a reverse The waking indication information, the reverse waking indication information is used to indicate that the second device sends the second WUR message to the WUR interface of the first device by using a Wi-Fi interface of the second device, where The second WUR message is used to instruct the first device to wake up the Wi-Fi interface of the first device;
    所述处理器,还用于在所述第一设备的Wi-Fi接口发送完所述第一WUR消息之后,将所述第一设备的Wi-Fi接口状态从所述工作状态切换至非工作状态或间歇式(duty cycle)工作状态;The processor is further configured to: after the first WUR message is sent by the Wi-Fi interface of the first device, switch the Wi-Fi interface state of the first device from the working state to the non-working State or duty cycle working state;
    WUR接口,用于接收所述第二设备通过所述第二设备的Wi-Fi接口发送的所述第二WUR消息;a WUR interface, configured to receive the second WUR message sent by the second device by using a Wi-Fi interface of the second device;
    所述处理器和/或所述第一设备的WUR接口,还用于在所述第一设备的WUR接口接收所述第二WUR消息后,唤醒所述第一设备的Wi-Fi接口;The WUR interface of the processor and/or the first device is further configured to wake up the Wi-Fi interface of the first device after receiving the second WUR message by the WUR interface of the first device;
    所述第一设备的Wi-Fi接口,还用于在被唤醒后与所述第二设备的Wi-Fi接口通信。The Wi-Fi interface of the first device is further configured to communicate with the Wi-Fi interface of the second device after being awake.
  26. 根据权利要求25所述的装置,其特征在于,在所述第一设备通过处于工作状态的所述第一设备的Wi-Fi接口向第二设备的WUR接口发送所述第一WUR消息时,所述第二设备的WUR接口处于第一醒来窗口,所述第一醒来窗口包括所述第二设备的WUR接口的一个醒来窗口、所述第一设备的Wi-Fi接口的一个醒来窗口、以及所述第一设备的Wi-Fi接口的一个醒来窗口和所述第二设备的WUR接口的一个醒来窗口之间重叠的醒来窗口中的任意一项,其中,醒来窗口用于表示接口处于工作状态的时间。The apparatus according to claim 25, wherein when the first device transmits the first WUR message to a WUR interface of the second device through a Wi-Fi interface of the first device in an active state, The WUR interface of the second device is in a first wake-up window, the first wake-up window includes a wake-up window of the WUR interface of the second device, and a wake-up window of the first device's Wi-Fi interface Any one of a window, and a wake-up window overlapping between a wake-up window of the Wi-Fi interface of the first device and a wake-up window of the WUR interface of the second device, wherein waking up The window is used to indicate when the interface is working.
  27. 根据权利要求25或26所述的装置,其特征在于,所述非工作状态包 括等待状态(standby state)、浅休眠状态(shallow sleep state)、空闲状态(idle state)、省电状态(power saving state)、睡眠状态(sleep state)和休眠状态(doze state)中的任意一种。Device according to claim 25 or 26, wherein said non-working state package Including a standby state, a shallow sleep state, an idle state, a power saving state, a sleep state, and a doze state. Kind.
  28. 根据权利要求13至15中任意一项所述的装置,其特征在于,所述第一WUR消息中携带有时间信息,所述时间信息用于指示所述第二设备向所述第一设备发送所述第二WUR消息的时间。The device according to any one of claims 13 to 15, wherein the first WUR message carries time information, and the time information is used to indicate that the second device sends the first device to the first device. The time of the second WUR message.
  29. 根据权利要求28所述的装置,其特征在于,所述第一设备的WUR接口用于接收所述第二设备的Wi-Fi接口发送的所述第二WUR消息,具体为:The device according to claim 28, wherein the WUR interface of the first device is configured to receive the second WUR message sent by the Wi-Fi interface of the second device, specifically:
    所述第一设备的WUR接口用于在所述时间信息指示的时间范围内,接收所述第二设备通过所述第二设备的Wi-Fi接口发送的所述第二WUR消息。The WUR interface of the first device is configured to receive, by the second device, the second WUR message sent by the second device by using the Wi-Fi interface of the second device, within a time range indicated by the time information.
  30. 根据权利要求25至29中任意一项所述的装置,其特征在于,所述第一WUR消息携带有无线保真前导Wi-Fi preamble,所述Wi-Fi preamble中的长度域携带的时间长度至少包括所述第一设备发送所述第一WUR消息和所述第二设备发送所述第二WUR消息所需要的总时间。The device according to any one of claims 25 to 29, wherein the first WUR message carries a wireless fidelity preamble Wi-Fi preamble, and the length of time in the length field in the Wi-Fi preamble At least the total time required for the first device to send the first WUR message and the second device to send the second WUR message.
  31. 根据权利要求25至30中任意一项所述的装置,其特征在于,在所述第一设备将所述第一设备的Wi-Fi接口状态从所述工作状态切换至非工作状态或间歇式工作状态之后,所述处理器,还用于:The apparatus according to any one of claims 25 to 30, wherein the first device switches a Wi-Fi interface state of the first device from the working state to an inactive state or intermittent After the working state, the processor is further configured to:
    若所述第一设备的WUR接口处于所述非工作状态、所述间歇式工作状态或关闭状态,则将所述第一设备的WUR接口状态切换至所述工作状态。And if the WUR interface of the first device is in the non-working state, the intermittent working state, or the closed state, switching the WUR interface state of the first device to the working state.
  32. 一种建立数据通信的装置,其特征在于,所述装置应用于第二设备,所述装置包括:An apparatus for establishing data communication, wherein the apparatus is applied to a second device, the apparatus comprising:
    唤醒无线电/唤醒接收机WUR接口,用于接收第一设备通过所述第一设备的无线保真Wi-Fi接口向所述第二设备的WUR接口发送的第一WUR消息,所述第一WUR消息用于指示所述第二设备唤醒所述第二设备的Wi-Fi接口,并通过所述第二设备的Wi-Fi接口发送第二WUR消息;所述第一WUR消息携带有反向唤醒指示信息,所述反向唤醒指示信息用于指示所述第二设备通过所述第二设备的Wi-Fi接口向所述第一设备的WUR接口发送所述第二WUR消息,所述第二WUR消息用于指示所述第一设备唤醒所述第一设备的Wi-Fi接口;Wake-up radio/wake-up receiver WUR interface, configured to receive a first WUR message sent by the first device to the WUR interface of the second device by using the wireless fidelity Wi-Fi interface of the first device, the first WUR The message is used to indicate that the second device wakes up the Wi-Fi interface of the second device, and sends a second WUR message by using the Wi-Fi interface of the second device; the first WUR message carries a reverse wakeup Instructing information, the reverse wake-up indication information is used to indicate that the second device sends the second WUR message to the WUR interface of the first device by using a Wi-Fi interface of the second device, where the second device The WUR message is used to instruct the first device to wake up the Wi-Fi interface of the first device;
    处理器和/或所述第二设备的WUR接口,用于按照所述第二设备的WUR接口接收到的所述第一WUR消息的指示,唤醒所述第二设备的Wi-Fi接口;The WUR interface of the processor and/or the second device is configured to wake up the Wi-Fi interface of the second device according to the indication of the first WUR message received by the WUR interface of the second device;
    所述处理器,还用于按照所述第一WUR消息的指示生成所述第二WUR消息;The processor is further configured to generate the second WUR message according to the indication of the first WUR message;
    Wi-Fi接口,用于在被唤醒后向所述第一设备的WUR接口发送所述第二WUR消息所述第二设备的Wi-Fi接口,还用于在所述第二设备发送所述第二WUR消息后,通过所述第二设备的Wi-Fi接口与根据所述第二WUR消息被唤醒的所述第一设备的Wi-Fi接口通信。a Wi-Fi interface, configured to send the second WUR message to the WUR interface of the first device, the Wi-Fi interface of the second device, and the second device to send the After the second WUR message, the Wi-Fi interface of the second device communicates with the Wi-Fi interface of the first device that is awake according to the second WUR message.
  33. 根据权利要求32所述的装置,其特征在于,在所述第二设备通过所述第二设备的WUR接口,接收第一设备通过第一设备的Wi-Fi接口向所述第二设备的WUR接口发送的第一WUR消息时,所述第二设备的WUR接口处于第一醒来窗口,所述第一醒来窗口包括所述第二设备的WUR接口的一个醒来窗口、所 述第一设备的WUR接口的一个醒来窗口、以及所述第一设备的WUR接口的一个醒来窗口和所述第二设备的WUR接口的一个醒来窗口之间重叠的醒来窗口中的任意一项,其中,醒来窗口用于表示接口处于工作状态的时间。The device according to claim 32, wherein the second device receives the WUR of the first device through the Wi-Fi interface of the first device to the second device through the WUR interface of the second device When the first WUR message is sent by the interface, the WUR interface of the second device is in the first wake-up window, and the first wake-up window includes a wake-up window of the WUR interface of the second device. a wake-up window of the WUR interface of the first device, and a wake-up window overlapped between a wake-up window of the WUR interface of the first device and a wake-up window of the WUR interface of the second device Any one of them, where the wake-up window is used to indicate when the interface is in working state.
  34. 根据利要求32或33所述的装置,其特征在于,所述第一WUR消息中携带有时间信息,所述第二设备的Wi-Fi接口用于向所述第一设备的WUR接口发送所述第二WUR消息,具体为:The device of claim 32 or 33, wherein the first WUR message carries time information, and the Wi-Fi interface of the second device is used to send the WUR interface to the first device. The second WUR message is specifically:
    所述第二设备的Wi-Fi接口用于在所述时间信息指示的时间范围内,向所述第一设备的WUR接口发送所述第二WUR消息。The Wi-Fi interface of the second device is configured to send the second WUR message to the WUR interface of the first device within a time range indicated by the time information.
  35. 根据权利要求32至34中任意一项所述的装置,其特征在于,所述第一WUR消息携带有无线保真前导Wi-Fi preamble,所述Wi-Fi preamble中的长度域携带的时间长度至少包括所述第一设备发送所述第一WUR消息和所述第二设备发送所述第二WUR消息所需要的总时间。The device according to any one of claims 32 to 34, wherein the first WUR message carries a wireless fidelity preamble Wi-Fi preamble, and the length of time in the length field in the Wi-Fi preamble At least the total time required for the first device to send the first WUR message and the second device to send the second WUR message.
  36. 根据权利要求32至35中任意一项所述的装置,其特征在于,在所述第二设备通过所述第二设备的Wi-Fi接口,向所述第一设备的WUR接口发送所述第二WUR消息时,所述第一设备的WUR接口处于第二醒来窗口,所述第二醒来窗口包括所述第一设备的WUR接口的一个醒来窗口、所述第二设备的Wi-Fi接口的一个醒来窗口、以及所述第一设备的WUR接口的一个醒来窗口和所述第二设备的Wi-Fi接口的一个醒来窗口之间重叠的醒来窗口中的任意一项,其中,醒来窗口用于表示接口处于工作状态的时间。 The apparatus according to any one of claims 32 to 35, wherein the second device transmits the first to a WUR interface of the first device via a Wi-Fi interface of the second device In the case of the second WUR message, the WUR interface of the first device is in a second wake-up window, and the second wake-up window includes a wake-up window of the WUR interface of the first device, and Wi- of the second device. a wake-up window of the Fi interface, and any one of the wake-up windows overlapped between a wake-up window of the WUR interface of the first device and a wake-up window of the Wi-Fi interface of the second device , where the wake-up window is used to indicate when the interface is in working state.
PCT/CN2017/087952 2017-01-19 2017-06-12 Method and device for establishing data communication WO2018133300A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201780066442.8A CN109891944B (en) 2017-01-19 2017-06-12 Method and device for establishing data communication

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710044675.X 2017-01-19
CN201710044675 2017-01-19

Publications (1)

Publication Number Publication Date
WO2018133300A1 true WO2018133300A1 (en) 2018-07-26

Family

ID=62907688

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/087952 WO2018133300A1 (en) 2017-01-19 2017-06-12 Method and device for establishing data communication

Country Status (2)

Country Link
CN (1) CN109891944B (en)
WO (1) WO2018133300A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112260787B (en) * 2020-10-09 2024-03-01 北京小米松果电子有限公司 Equipment time delay adjustment method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120264474A1 (en) * 2011-04-14 2012-10-18 Pantech Co., Ltd. Communication method and wireless device
CN103974391A (en) * 2013-02-04 2014-08-06 华为终端有限公司 Device wake-up method and device
CN105516901A (en) * 2015-12-21 2016-04-20 飞天诚信科技股份有限公司 Low-power Bluetooth device and working method thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622079B (en) * 2012-02-25 2015-02-04 华为终端有限公司 Sleep method, wakening method and mobile terminal device
CN103916879A (en) * 2012-12-31 2014-07-09 华为终端有限公司 Equipment discovery method, apparatus and system
CN105446912A (en) * 2014-09-24 2016-03-30 中兴通讯股份有限公司 Method and device of CPU (Central Processing Unit) for connecting WIFI module through HSIC (High Speed Inter-chip) bus interface
CN105992317B (en) * 2015-02-05 2019-08-02 Tcl集团股份有限公司 Wireless communication module management method and wireless communication module managing device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120264474A1 (en) * 2011-04-14 2012-10-18 Pantech Co., Ltd. Communication method and wireless device
CN103974391A (en) * 2013-02-04 2014-08-06 华为终端有限公司 Device wake-up method and device
CN105516901A (en) * 2015-12-21 2016-04-20 飞天诚信科技股份有限公司 Low-power Bluetooth device and working method thereof

Also Published As

Publication number Publication date
CN109891944B (en) 2020-09-11
CN109891944A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
WO2018192374A1 (en) Site wake-up method and site
WO2018177052A1 (en) Method and apparatus for sending information and channel monitoring processing
WO2016107128A1 (en) Method, apparatus and device for waking up devices in batches
WO2017143856A1 (en) Communication method and apparatus for wireless local area network
RU2739290C1 (en) Method of multiaddress unidirectional channel control and terminal device
WO2013102389A1 (en) Discontinuous reception method and device
WO2019228189A1 (en) Data transmission method, terminal device and network device
WO2014161376A1 (en) Method and device for computing activation time
WO2020143496A1 (en) Communication method and apparatus
CN110235487A (en) Power for wireless device is saved
WO2020143479A1 (en) Bwp adjustment method and apparatus
WO2018050087A1 (en) Method and apparatus for transmitting wur (wake-up radio) message
US20210076450A1 (en) Data service processing method, network side device, terminal device, and storage medium
WO2014005477A1 (en) Method for transmitting information in wireless local area network, terminal, and access device
CN102932884A (en) Method and system for realizing DRX (Discontinuous Reception)
TW201943226A (en) A method and device for signal transmission
WO2018201397A1 (en) Wireless communication method and device
CN108668369B (en) Transmission method, device and system of downlink control information
WO2021004111A1 (en) Method and apparatus for entering sleep, storage medium, and user equipment
WO2021128341A1 (en) Discontinuous reception control method, and device and storage medium
WO2020143806A1 (en) Communication method and apparatus
WO2019233157A1 (en) Wake-up method and apparatus
WO2018133300A1 (en) Method and device for establishing data communication
WO2020035059A1 (en) Information sending method, information receiving method, network device and terminal
WO2020164118A1 (en) Method and device for detecting physical downlink control channel, and terminal

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: 17892377

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: 17892377

Country of ref document: EP

Kind code of ref document: A1