CN109314926B - A communication method and wireless device - Google Patents
A communication method and wireless device Download PDFInfo
- Publication number
- CN109314926B CN109314926B CN201780037944.8A CN201780037944A CN109314926B CN 109314926 B CN109314926 B CN 109314926B CN 201780037944 A CN201780037944 A CN 201780037944A CN 109314926 B CN109314926 B CN 109314926B
- Authority
- CN
- China
- Prior art keywords
- message
- interface
- sent
- indication information
- state
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/08—Access point devices
- H04W88/10—Access point devices adapted for operation in multiple networks, e.g. multi-mode access points
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请公开了一种通信方法,应用于第一设备,方法包括:接收第二设备发送的第一消息和/或第二消息,第一消息和第二消息中均含有第一指示信息;判断所述第一指示信息中所指示的所述第二设备的第二接口所处的状态;如果所述第一指示信息指示所述第二设备的第二接口处于苏醒状态,则向所述第二设备发送第三消息,所述第三消息与所述第一设备的上行数据相关,以在所述第一设备与所述第二设备之间进行数据通信;如果所述第一指示信息指示所述第二设备的第二接口处于休眠状态,则向所述第二设备发送第四消息,所述第四消息用于唤醒所述第二设备的第二接口,以使得所述第一设备与所述第二设备之间通过被唤醒的第二设备的第二接口进行数据通信。
The present application discloses a communication method, which is applied to a first device. The method includes: receiving a first message and/or a second message sent by a second device, wherein both the first message and the second message contain first indication information; The state of the second interface of the second device indicated in the first indication information; if the first indication information indicates that the second interface of the second device is in an awake state, send a notification to the first The second device sends a third message, where the third message is related to the uplink data of the first device, so as to perform data communication between the first device and the second device; if the first indication information indicates The second interface of the second device is in a dormant state, then a fourth message is sent to the second device, where the fourth message is used to wake up the second interface of the second device, so that the first device Data communication is performed with the second device through the second interface of the awakened second device.
Description
本申请要求于2016年11月14提交中国专利局、申请号为201611002160.5、发明名称为“一种消息的通知方法和设备”的中国专利申请的优先权,以及于2017年4月6提交中国专利局、申请号为201710221939.4、发明名称为“一种通信方法及无线设备”的中国专利申请的优先权,两者全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 201611002160.5 and the invention titled "A notification method and apparatus for a message" filed with the China Patent Office on November 14, 2016, and the Chinese patent application filed on April 6, 2017 Bureau, application number 201710221939.4, and the title of the Chinese patent application entitled "A communication method and wireless device", the entire contents of which are incorporated in this application by reference.
技术领域technical field
本申请涉及通信领域,尤其涉及一种通信方法及无线设备。The present application relates to the field of communication, and in particular, to a communication method and a wireless device.
背景技术Background technique
随着无线局域网(Wireless Local Area Network,WLAN)标准的演进,在无线保真(Wireless Fidelity,Wi-Fi)网络中,终端设备(如工作站,STA,Station)在没有消息收发时(如No data阶段),会有很大一部分能量浪费在无接收信号时的空闲时侦听信道中。由此可见,在Wi-Fi网络的无线接入点(Access Point,AP)与终端的通信过程中,需要一种降低设备功耗的通信方法。With the evolution of wireless local area network (Wireless Local Area Network, WLAN) standards, in a wireless fidelity (Wireless Fidelity, Wi-Fi) network, terminal devices (such as workstations, STAs, Stations) do not send and receive messages (such as No data stage), a large part of the energy will be wasted in the idle listening channel when there is no received signal. It can be seen that, in the communication process between the wireless access point (Access Point, AP) of the Wi-Fi network and the terminal, a communication method for reducing the power consumption of the device is required.
现有技术中对于降低设备功耗的通信方案中,是通过在终端及AP上采用低功耗的唤醒接收机(Low Power Wake Up Radio,WUR)来代替802.11主收发模块在媒介空闲时侦听信道。In the prior art communication scheme for reducing power consumption of equipment, a low-power wake-up receiver (Low Power Wake Up Radio, WUR) is used on the terminal and AP to replace the 802.11 main transceiver module to listen when the medium is idle. channel.
例如,在终端及AP中均设置802.11主收发模块及WUR模块,当终端的802.11主收发模块进入深度休眠后,终端的低功耗的WUR苏醒开始工作。当AP需要与终端通信时,AP向终端的WUR发送WUR消息,即唤醒帧(Wake Up Packet,WUP),终端的WUR正确收到发给自己的WUP后唤醒终端的802.11主收发模块,然后终端的WUR可以转入休眠,AP则与苏醒的终端的802.11主收发模块进行通信;终端的802.11主收发模块与AP通信完成后会进入休眠,同时终端的WUR苏醒又开始侦听是否有发送给自己的WUP,以便再次唤醒终端的802.11主收发模块。而终端需要与AP通信时,终端向AP的WUR发送WUR消息,即唤醒帧,AP的WUR正确收到发给自己的WUP后唤醒AP的802.11主收发模块,然后AP的WUR转入休眠,终端则与苏醒的AP的802.11主收发模块进行通信;AP的802.11主收发模块与终端通信完成后会进入休眠,同时AP的WUR苏醒又开始侦听是否有发送给自己的WUP,以便再次唤醒AP的802.11主收发模块。For example, an 802.11 main transceiver module and a WUR module are set in both the terminal and the AP. When the terminal's 802.11 main transceiver module enters deep sleep, the low-power WUR of the terminal wakes up and starts to work. When the AP needs to communicate with the terminal, the AP sends a WUR message, that is, a Wake Up Packet (WUP), to the WUR of the terminal. The WUR of the terminal can go to sleep, and the AP communicates with the 802.11 main transceiver module of the awake terminal; the 802.11 main transceiver module of the terminal will go to sleep after the communication with the AP is completed. WUP in order to wake up the 802.11 main transceiver module of the terminal again. When the terminal needs to communicate with the AP, the terminal sends a WUR message, that is, a wake-up frame, to the WUR of the AP. The WUR of the AP wakes up the 802.11 main transceiver module of the AP after correctly receiving the WUP sent to itself, and then the WUR of the AP goes to sleep, and the terminal Then it communicates with the 802.11 main transceiver module of the awakened AP; the 802.11 main transceiver module of the AP will go to sleep after the communication with the terminal is completed, and the WUR of the AP wakes up and starts to monitor whether there is a WUP sent to itself, so as to wake up the AP's WUP again. 802.11 main transceiver module.
但是,以上通信方式中,如果一个终端通过WUR消息唤醒AP的802.11主收发模块之后,AP的WUR会进入休眠状态,那么AP无法再通过WUR接收到其他终端发送的WUP,由此若此时其他终端向AP发送WUP则不会收到AP的响应,使得其他终端会认为AP无法进行通信,造成唤醒AP失败,双方无法进行数据通信。However, in the above communication method, if a terminal wakes up the 802.11 main transceiver module of the AP through the WUR message, the WUR of the AP will enter the sleep state, then the AP can no longer receive the WUP sent by other terminals through the WUR. When the terminal sends WUP to the AP, it will not receive the response from the AP, so that other terminals will think that the AP cannot communicate, resulting in the failure to wake up the AP, and the two parties cannot conduct data communication.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请提供了一种通信方法及无线设备,以提升AP与终端的数据通信的效率。In view of this, the present application provides a communication method and a wireless device to improve the efficiency of data communication between an AP and a terminal.
本申请的第一方面提供了一种通信方法,应用于第一设备,其中包括以下步骤:接收第二设备发送的含有第一指示信息的第一消息和/或第二消息,判断所述第一指示信息中所指示的所述第二设备的第二接口所处的状态,如果所述第一指示信息指示所述第二设备的第二接口处于苏醒状态,则向所述第二设备发送第三消息,所述第三消息与所述第一设备的上行数据相关,以在所述第一设备与所述第二设备之间进行数据通信,如果所述第一指示信息指示所述第二设备的第二接口处于休眠状态,则向所述第二设备发送第四消息,所述第四消息用于唤醒所述第二设备的第二接口,以使得所述第一设备与所述第二设备之间通过被唤醒的第二设备的第二接口进行数据通信。可见,本申请中,第一设备通过对第二设备发送的能够指示第二设备的第二接口所处的状态的消息进行接收,从而判断第二设备的第二接口所处的状态,进而第一设备决定是否需要唤醒第二设备的第二接口还是直接进行数据通信,因此,本申请中第一设备能够及时获知第二设备的第二接口所处的状态并进行数据通信或唤醒后再进行通信,由此实现第二设备的第二接口的有效唤醒,进行数据通信的目的。A first aspect of the present application provides a communication method, applied to a first device, which includes the following steps: receiving a first message and/or a second message containing first indication information sent by a second device, and determining the The state of the second interface of the second device indicated in the indication information, if the first indication information indicates that the second interface of the second device is in the awake state, send the message to the second device a third message, where the third message is related to the uplink data of the first device, so as to perform data communication between the first device and the second device, if the first indication information indicates that the first device The second interface of the second device is in a dormant state, then a fourth message is sent to the second device, where the fourth message is used to wake up the second interface of the second device, so that the first device communicates with the second device. Data communication is performed between the second devices through the second interface of the awakened second device. It can be seen that in this application, the first device determines the state of the second interface of the second device by receiving the message sent by the second device that can indicate the state of the second interface of the second device, and then the first device A device decides whether it needs to wake up the second interface of the second device or directly perform data communication. Therefore, in this application, the first device can know the state of the second interface of the second device in time and perform data communication or wake up before performing data communication. communication, thereby realizing the purpose of effectively waking up the second interface of the second device and performing data communication.
本申请的第二方面提供了一种通信方法,应用于第二设备,其中包括以下步骤:通过第一接口或第二接口向第一设备发送包含第一指示信息的第一消息,和/或,通过第二接口向第一设备发送包含第一指示信息的第二消息,而第一指示信息能够指示所述第二设备的第二接口所处的状态。由此,本申请中,第二设备通过向第一设备发送指示第二设备的第二接口所处的状态的消息来通知第一设备,由第一设备决定是否需要唤醒第二设备的第二接口进行数据通信,实现第二设备的第二接口的有效唤醒,进行数据通信的目的。A second aspect of the present application provides a communication method, applied to a second device, which includes the following steps: sending a first message including first indication information to the first device through a first interface or a second interface, and/or , sending a second message including first indication information to the first device through the second interface, and the first indication information can indicate the state of the second interface of the second device. Therefore, in this application, the second device notifies the first device by sending a message indicating the state of the second interface of the second device to the first device, and the first device decides whether to wake up the second device of the second device. The interface performs data communication, and realizes the purpose of effectively awakening the second interface of the second device for data communication.
本申请的第三方面提供了一种无线设备,其中包括以下结构:对应无线设备的第一接口的第一通信模块、对应无线设备的第二接口的第二通信模块、用于存储应用程序及应用程序运行所产生的数据的存储器及用于执行所述应用程序,以实现以下功能的处理器:接收第二设备发送的第一消息和/或第二消息,所述第一消息和所述第二消息中均含有第一指示信息;判断所述第一指示信息中所指示的所述第二设备的第二接口所处的状态;如果所述第一指示信息指示所述第二设备的第二接口处于苏醒状态,则通过所述无线设备的第二接口向所述第二设备发送第三消息,所述第三消息与所述无线设备的上行数据相关,以在所述无线设备与所述第二设备之间进行数据通信;如果所述第一指示信息指示所述第二设备的第二接口处于休眠状态,则通过所述无线设备的第一接口或第二接口向所述第二设备发送第四消息,所述第四消息用于唤醒所述第二设备的第二接口,以使得所述无线设备与所述第二设备之间通过被唤醒的第二设备的第二接口进行数据通信。可见,本申请中,无线设备通过对第二设备发送的能够指示第二设备的第二接口所处的状态的消息进行接收,从而判断第二设备的第二接口所处的状态,进而无线设备决定是否需要唤醒第二设备的第二接口还是直接进行数据通信,因此,本申请中无线设备能够及时获知第二设备的第二接口所处的状态并进行数据通信或唤醒后再进行通信,由此实现第二设备的第二接口的有效唤醒,进行数据通信的目的。A third aspect of the present application provides a wireless device, which includes the following structures: a first communication module corresponding to a first interface of the wireless device, a second communication module corresponding to a second interface of the wireless device, storing an application program, and A memory for data generated by running an application program and a processor for executing the application program to realize the following functions: receiving a first message and/or a second message sent by a second device, the first message and the The second messages all contain first indication information; determine the state of the second interface of the second device indicated in the first indication information; if the first indication information indicates the state of the second interface of the second device When the second interface is in the awake state, a third message is sent to the second device through the second interface of the wireless device, and the third message is related to the uplink data of the wireless device, so that the wireless device can communicate with the wireless device. Data communication is performed between the second devices; if the first indication information indicates that the second interface of the second device is in a dormant state, the first interface or the second interface of the wireless device is sent to the second device. The second device sends a fourth message, where the fourth message is used to wake up the second interface of the second device, so that the connection between the wireless device and the second device passes through the second interface of the awakened second device data communication. It can be seen that in this application, the wireless device determines the state of the second interface of the second device by receiving the message sent by the second device that can indicate the state of the second interface of the second device, and then the wireless device determines the state of the second interface of the second device. Decide whether to wake up the second interface of the second device or directly perform data communication. Therefore, in the present application, the wireless device can know the state of the second interface of the second device in time and perform data communication or wake up and then communicate. This achieves the purpose of effectively waking up the second interface of the second device for data communication.
本申请的第四方面提供了一种无线设备,其中包括以下结构:对应所述无线设备的第一接口的第一通信模块、对应所述无线设备的第二接口的第二通信模块、用于存储应用程序及应用程序运行所产生的数据的存储器及用于执行所述应用程序,以实现以下功能的处理器:通过所述无线设备的第一接口或第二接口向第一设备发送第一消息,和/或,通过所述无线设备的第二接口向第一设备发送第二消息;其中,所述第一消息和所述第二消息均包含第一指示信息,所述第一指示信息指示所述无线设备的第二接口所处的状态。由此,本申请中,无线设备通过向第一设备发送指示无线设备的第二接口所处的状态的消息来通知第一设备,由第一设备决定是否需要唤醒无线设备的第二接口进行数据通信,实现无线设备的第二接口的有效唤醒,进行数据通信的目的。A fourth aspect of the present application provides a wireless device, including the following structures: a first communication module corresponding to a first interface of the wireless device, a second communication module corresponding to a second interface of the wireless device, A memory for storing an application program and data generated by the operation of the application program, and a processor for executing the application program to realize the following functions: sending the first interface to the first device through the first interface or the second interface of the wireless device message, and/or sending a second message to the first device through the second interface of the wireless device; wherein the first message and the second message both contain first indication information, and the first indication information Indicates the state of the second interface of the wireless device. Therefore, in this application, the wireless device notifies the first device by sending a message indicating the state of the second interface of the wireless device to the first device, and the first device decides whether to wake up the second interface of the wireless device for data processing Communication, realizes the purpose of effective wake-up of the second interface of the wireless device for data communication.
本申请的第五方面提供了一种基本服务集,可以包括以下结构:至少一个第一设备及一个第二设备;A fifth aspect of the present application provides a basic service set, which may include the following structure: at least one first device and one second device;
其中,所述第二设备通过其第一接口或第二接口向每个所述第一设备发送第一消息,和/或,所述第二设备通过其第二接口向每个所述第一设备发送第二消息,所述第一设备接收所述第二设备发送的第一消息和/或第二消息,所述第一消息和所述第二消息中均含有第一指示信息;所述第一设备判断所述第一指示信息中所指示的所述第二设备的第二接口所处的状态,如果所述第一指示信息指示所述第二设备的第二接口处于苏醒状态,则所述第一设备向所述第二设备发送第三消息,所述第三消息与所述第一设备的上行数据相关,以在所述第一设备与所述第二设备之间进行数据通信;如果所述第一指示信息指示所述第二设备的第二接口处于休眠状态,则所述第一设备向所述第二设备发送第四消息,所述第四消息用于唤醒所述第二设备的第二接口,以使得所述第一设备与所述第二设备之间通过被唤醒的第二设备的第二接口进行数据通信。可见,本申请中,在一个基本服务集中的第二设备通过向第一设备发送指示第二设备的第二接口所处的状态的消息来通知第一设备,由第一设备决定是否需要唤醒第二设备的第二接口进行数据通信,实现第二设备的第二接口的有效唤醒,进行数据通信的目的。Wherein, the second device sends a first message to each of the first devices through its first interface or second interface, and/or the second device sends a first message to each of the first devices through its second interface The device sends a second message, the first device receives the first message and/or the second message sent by the second device, and both the first message and the second message contain first indication information; the The first device determines the state of the second interface of the second device indicated in the first indication information, and if the first indication information indicates that the second interface of the second device is in an awake state, then The first device sends a third message to the second device, the third message is related to the uplink data of the first device, so as to perform data communication between the first device and the second device ; if the first indication information indicates that the second interface of the second device is in a dormant state, the first device sends a fourth message to the second device, and the fourth message is used to wake up the first device The second interface of the two devices, so that data communication is performed between the first device and the second device through the second interface of the awakened second device. It can be seen that in this application, the second device in a basic service set notifies the first device by sending a message indicating the state of the second interface of the second device to the first device, and the first device decides whether to wake up the first device. The second interface of the two devices performs data communication, so as to realize the purpose of effectively waking up the second interface of the second device and performing data communication.
在一个实现方式中,若第一设备没有接收到所述第一消息和所述第二消息,还向所述第二设备发送所述第三消息。由此,第一设备通过向第二设备发送第三消息,尝试进行数据通信。In an implementation manner, if the first device does not receive the first message and the second message, the first device further sends the third message to the second device. Thus, the first device attempts data communication by sending a third message to the second device.
在一个实现方式中,第一设备在向所述第二设备发送所述第三消息经过预设的间隔时长后,如果没有收到所述第二设备发送的与所述第三消息相对应的回复消息,则第一设备向所述第二设备发送所述第四消息。由此,第一设备在没有收到回复消息时即可知道第二设备的第二接口处于休眠状态,则利用第四消息唤醒第二设备的第二接口,实现数据通信。In an implementation manner, after the first device sends the third message to the second device after a preset interval, if the first device does not receive a message corresponding to the third message sent by the second device In response to a reply message, the first device sends the fourth message to the second device. Thus, the first device can know that the second interface of the second device is in a dormant state without receiving the reply message, and then uses the fourth message to wake up the second interface of the second device to implement data communication.
在一个实现方式中,所述间隔时长大于正常通信状态下所述第一设备发送完所述第三消息到所述第一设备接收到所述第三消息对应的回复消息之间的时长。由此,第一设备在确定第三消息没有被第二设备接收表明第二设备的第二接口处于休眠状态时再发送第四消息,进而避免消息传输的信道被发送过早的第四消息占用,第二设备无法及时向第一设备发送回复消息,造成数据通信失败。In an implementation manner, the interval duration is longer than the duration between when the first device sends the third message to when the first device receives a reply message corresponding to the third message in a normal communication state. Therefore, the first device sends the fourth message after determining that the third message is not received by the second device, indicating that the second interface of the second device is in a dormant state, thereby preventing the channel for message transmission from being occupied by the prematurely sent fourth message , the second device cannot send a reply message to the first device in time, resulting in data communication failure.
在一个实现方式中,所述第一指示信息指示所述第二设备的第二接口处于苏醒状态,是指:所述第一指示信息指示所述第二设备的第二接口当前处于苏醒状态,或者所述第二设备的第二接口在预设时间段内处于苏醒状态且所述预设时间段有效。由此,第一设备通过对第二设备发送的能够指示第二设备的第二接口所处的状态的消息进行接收,从而判断第二设备的第二接口所处的状态,如当前处于苏醒状态或在预设时间段内处于苏醒状态且预设时间段有效,进而第一设备决定直接进行数据通信,因此,本申请中第一设备能够及时获知第二设备的第二接口所处的状态并进行数据通信,由此实现第二设备的第二接口的有效唤醒,进行数据通信的目的。In an implementation manner, the first indication information indicating that the second interface of the second device is in an awake state means: the first indication information indicates that the second interface of the second device is currently in an awake state, Or the second interface of the second device is in an awake state within a preset time period and the preset time period is valid. Thus, the first device receives the message sent by the second device that can indicate the state of the second interface of the second device, thereby judging the state of the second interface of the second device, such as currently in an awake state Or it is in the awake state within the preset time period and the preset time period is valid, and then the first device decides to directly conduct data communication. Therefore, in this application, the first device can timely learn the state of the second interface of the second device and Data communication is carried out, thereby realizing the purpose of effectively waking up the second interface of the second device and carrying out data communication.
在一个实现方式中,所述第一指示信息指示所述第二设备的第二接口处于休眠状态,是指:所述第一指示信息指示所述第二设备的第二接口当前处于休眠状态,或者所述第二设备的第二接口在预设时间段内处于休眠状态。由此,第一设备通过对第二设备发送的能够指示第二设备的第二接口所处的状态的消息进行接收,从而判断第二设备的第二接口所处的状态,如当前处于休眠状态或在预设时间段内处于休眠状态,进而第一设备决定首先唤醒第二设备的第二接口再进行数据通信,因此,本申请中第一设备能够及时获知第二设备的第二接口所处的状态并进行数据通信,由此实现第二设备的第二接口的有效唤醒,进行数据通信的目的。In an implementation manner, the first indication information indicating that the second interface of the second device is in a dormant state means that the first indication information indicates that the second interface of the second device is currently in a dormant state, Or the second interface of the second device is in a dormant state within a preset time period. Thus, the first device receives the message sent by the second device that can indicate the state of the second interface of the second device, thereby judging the state of the second interface of the second device, such as currently in a dormant state Or in a dormant state within a preset time period, and then the first device decides to first wake up the second interface of the second device and then perform data communication. Therefore, in this application, the first device can timely know where the second interface of the second device is located. state and perform data communication, thereby realizing the purpose of effectively waking up the second interface of the second device and performing data communication.
在一个实现方式中,所述第一设备的第一接口为WUR对应的接口,所述第一设备的第二接口为802.11主收发模块对应的接口,所述第二设备的第一接口为WUR对应的接口,所述第二设备的第二接口为802.11主收发模块对应的接口。由此,第一设备能够有效唤醒第二设备的802.11主收发模块及其对应的接口,并实现数据通信。In an implementation manner, the first interface of the first device is an interface corresponding to WUR, the second interface of the first device is an interface corresponding to an 802.11 main transceiver module, and the first interface of the second device is WUR The corresponding interface, the second interface of the second device is the interface corresponding to the 802.11 main transceiver module. Thus, the first device can effectively wake up the 802.11 main transceiver module and its corresponding interface of the second device, and realize data communication.
在一个实现方式中,所述第一消息为WUR消息,所述第二消息为Wi-Fi消息。由此,第一设备能够利用WUR消息有效唤醒第二设备的第二接口并实现数据通信。In an implementation manner, the first message is a WUR message, and the second message is a Wi-Fi message. Thus, the first device can effectively wake up the second interface of the second device by using the WUR message and implement data communication.
在一个实现方式中,所述第一设备为终端,所述第二设备为AP。由此,终端能够有效唤醒AP的第二接口(即唤醒AP的802.11主收发模块),并实现数据通信。In an implementation manner, the first device is a terminal, and the second device is an AP. In this way, the terminal can effectively wake up the second interface of the AP (that is, wake up the 802.11 main transceiver module of the AP), and realize data communication.
在一个实现方式中,第二设备通过第一接口或第二接口向第一设备发送第一消息,可以基于预设的第一时间周期,通过所述第一接口或所述第二接口向所述第一设备发送所述第一消息。由此,第二设备能够周期性的通过向第一设备发送指示第二设备的第二接口所处的状态的消息来通知第一设备,而第一设备可以通过周期时间判断是否漏收第一消息,并且由第一设备决定是否需要唤醒第二设备的第二接口进行数据通信,实现第二设备的第二接口的有效唤醒,进行数据通信的目的。In an implementation manner, the second device sends the first message to the first device through the first interface or the second interface, and may send the first message to the first device through the first interface or the second interface based on a preset first time period. The first device sends the first message. In this way, the second device can periodically notify the first device by sending a message indicating the state of the second interface of the second device to the first device, and the first device can determine whether to miss the first device through the cycle time message, and the first device decides whether to wake up the second interface of the second device for data communication, so as to realize the purpose of effectively awakening the second interface of the second device for data communication.
在一种实现方式中,第二设备通过第二接口向所述第一设备发送第二消息,可基于预设的第二时间周期,通过所述第二接口向所述第一设备发送所述第二消息。由此,第二设备能够周期性的通过向第一设备发送指示第二设备的第二接口所处的状态的消息来通知第一设备,而第一设备可以通过周期时间判断是否漏收第二消息,并且由第一设备决定是否需要唤醒第二设备的第二接口进行数据通信,实现第二设备的第二接口的有效唤醒,进行数据通信的目的。In an implementation manner, the second device sends the second message to the first device through a second interface, and may send the second message to the first device through the second interface based on a preset second time period Second message. In this way, the second device can periodically notify the first device by sending a message indicating the state of the second interface of the second device to the first device, and the first device can determine whether to miss the second device through the cycle time message, and the first device decides whether to wake up the second interface of the second device for data communication, so as to realize the purpose of effectively awakening the second interface of the second device for data communication.
在一种实现方式中,所述第一指示信息中的预设时间段由所述第二设备基于所述第一设备与所述第二设备之间预设的通信协议设置;或者,所述预设时间段由所述第二设备基于所述第一指示信息中所指示的时间值设置。由此,第一设备能够更好的有效唤醒第二设备的第二接口,并实现数据通信。In an implementation manner, the preset time period in the first indication information is set by the second device based on a preset communication protocol between the first device and the second device; or, the The preset time period is set by the second device based on the time value indicated in the first indication information. Therefore, the first device can effectively wake up the second interface of the second device and realize data communication.
本申请的第六方面提供了一种通信方法,应用终端侧,可以包括以下步骤:第一设备通过第一接口接收第二设备发送的第一消息;或,第一设备通过第二接口接收第二设备发送的第二消息,而第一消息和第二消息均携带第一指示信息,第一指示信息指示所述第二设备在预设时间所处的状态,所述所处的状态则是指所述第二设备的第二接口将处于苏醒状态、或休眠状态、或在所述预设时间将一直处于苏醒状态;之后,根据所述第一指示信息,若所述第二设备的所述第二接口处于苏醒状态、或在所述预设时间将一直处于苏醒状态,则所述第一设备向所述第二设备发送第三消息;所述第三消息为上行消息,或通知所述第二设备有上行消息需要接收的消息;或,若所述第二设备的所述第二接口处于休眠状态,则所述第一设备向所述第二设备发送第四消息;所述第四消息用于唤醒所述第二设备的所述第二接口,所述第二设备的所述第二接口苏醒后与所述第一设备进行通信。A sixth aspect of the present application provides a communication method, the application terminal side may include the following steps: a first device receives a first message sent by a second device through a first interface; or, the first device receives a first message through a second interface The second message sent by the second device, and both the first message and the second message carry first indication information, the first indication information indicates the state of the second device at a preset time, and the state is It means that the second interface of the second device will be in the awake state, or the sleep state, or will be in the awake state for the preset time; after that, according to the first indication information, if all the If the second interface is in the awake state, or will always be in the awake state at the preset time, the first device sends a third message to the second device; the third message is an uplink message, or notifies all the second device has an uplink message that needs to be received; or, if the second interface of the second device is in a dormant state, the first device sends a fourth message to the second device; the first device The four messages are used to wake up the second interface of the second device, and the second interface of the second device communicates with the first device after waking up.
本申请的第七方面提供了一种通信方法,应用于AP侧,该方法可以包括以下步骤:第二设备发送第一消息和第二消息;所述第一消息和所述第二消息均携带第一指示信息,所述第一指示信息指示所述第二设备在预设时间所处的状态;所述第一消息被第一设备通过第一接口接收,所述第二消息被所述第一设备通过第二接口接收;所述所处的状态是指所述第二设备的第二接口将处于苏醒状态、或休眠状态、或在所述预设时间内将一直处于苏醒状态。A seventh aspect of the present application provides a communication method, which is applied to the AP side. The method may include the following steps: a second device sends a first message and a second message; the first message and the second message both carry First indication information, the first indication information indicates the state of the second device at a preset time; the first message is received by the first device through the first interface, and the second message is received by the second device A device receives through the second interface; the state of being in means that the second interface of the second device will be in the awake state, or the sleep state, or will be in the awake state all the time within the preset time.
本申请的第八方面提供了一种第一设备,包括:第一接口,用于所述第一设备接收第二设备发送的第一消息的第一负载;所述第一消息包括第一先导和所述第一负载;所述第一先导使用的带宽大于所述第一负载使用的带宽;第二接口,用于所述第一设备接收所述第二设备发送的第二消息;所述第一消息和所述第二消息均携带第一指示信息,所述第一指示信息指示所述第二设备在预设时间所处的状态;所述所处的状态是指所述第二设备的所述第二接口将处于苏醒状态、或休眠状态、或在所述预设时间将一直处于苏醒状态;处理器,用于所述第一设备解析所述第一消息或所述第二消息,并且根据所述第一消息或所述第二消息中携带的所述第一指示信息判断是否需要生成第三消息、第四消息;所述第三消息为上行消息,或通知所述第二设备有上行消息需要接收的消息;所述第四消息用于唤醒所述第二设备的所述第二接口,所述第二设备的所述第二接口苏醒后与所述第一设备进行通信;根据所述第一指示信息,若所述第二设备的所述第二接口处于苏醒状态、或在所述预设时间将一直处于苏醒状态,则所述第一设备的所述处理器生成所述第三消息;或,若所述第二设备的所述第二接口处于休眠状态,则所述第一设备的所述处理器生成所述第四消息;如果所述第一设备具备通过所述第一接口发送所述第四消息的所述第一负载的能力,则所述第一设备通过所述第一接口用送所述第四消息的所述第一负载;如果所述第一设备不具备通过所述第一接口发送所述第四消息的所述第一负载的能力,则所述第一设备应具备通过所述第二接口发送所述第四消息的所述第一负载的能力;所述第一设备还用于通过所述第二接口发送所述第三消息,以及所述第四消息的所述第一先导;所述第一设备还包括存储器,用于存储程序代码和指令;以及天线,用于从无线媒介中收发消息。An eighth aspect of the present application provides a first device, including: a first interface for the first device to receive a first payload of a first message sent by a second device; the first message includes a first preamble and the first load; the bandwidth used by the first pilot is greater than the bandwidth used by the first load; a second interface is used for the first device to receive a second message sent by the second device; the Both the first message and the second message carry first indication information, and the first indication information indicates the state of the second device at a preset time; the state refers to the state of the second device The second interface of the device will be in an awake state, or a dormant state, or will always be in an awake state at the preset time; a processor for the first device to parse the first message or the second message , and according to the first indication information carried in the first message or the second message, it is determined whether a third message or a fourth message needs to be generated; the third message is an uplink message, or notifies the second message The device has an uplink message that needs to be received; the fourth message is used to wake up the second interface of the second device, and the second interface of the second device communicates with the first device after waking up ; According to the first indication information, if the second interface of the second device is in an awake state or will always be in an awake state at the preset time, the processor of the first device generates the third message; or, if the second interface of the second device is in a dormant state, the processor of the first device generates the fourth message; the ability of the first interface to send the first payload of the fourth message, the first device sends the first payload of the fourth message through the first interface; If a device does not have the ability to send the first payload of the fourth message through the first interface, the first device should have the first load to send the fourth message through the second interface load capacity; the first device is further configured to send the third message and the first preamble of the fourth message through the second interface; the first device further includes a memory for storing program code and instructions; and an antenna for sending and receiving messages from a wireless medium.
本申请的第九方面提供了一种第二设备,包括:第一接口,如果所述第一接口具备发送第一消息的第一载荷的能力,则所述第一接口用于发送所述第一消息的所述第一载荷;所述第一消息包括第一先导和所述第一载荷,所述第一先导使用的带宽大于所述第一载荷使用的带宽;第二接口,用于所述第二设备发送第二消息,或发送所述第一消息的所述第一载荷;如果所述第一接口不具备发送所述第一消息的所述第一载荷的能力,则所述第二接口也可用于发送所述第一消息的所述第一载荷;处理器,用于生成所述第一消息和所述第二消息;所述第一消息和所述第二消息均携带第一指示信息,所述第一指示信息指示所述第二设备在预设时间所处的状态;所述所处的状态是指所述第二设备的所述第二接口处于苏醒状态、或休眠状态、或在所述预设时间内将一直处于苏醒状态;所述第二设备还包括存储器,用于存储程序代码和指令;以及天线,用于从无线媒介中收发消息。A ninth aspect of the present application provides a second device, including: a first interface, where if the first interface has the ability to send a first payload of a first message, the first interface is configured to send the first payload of the first message. the first payload of a message; the first message includes a first preamble and the first payload, the bandwidth used by the first preamble is greater than the bandwidth used by the first payload; the second interface is used for all the second device sends the second message, or sends the first payload of the first message; if the first interface does not have the capability to send the first payload of the first message, the first The second interface can also be used to send the first payload of the first message; the processor is configured to generate the first message and the second message; the first message and the second message both carry the an indication information, the first indication information indicates the state of the second device at a preset time; the state means that the second interface of the second device is in an awake state or in a dormant state The second device further includes a memory for storing program codes and instructions; and an antenna for sending and receiving messages from the wireless medium.
在一个实现方式中,如果所述第一设备没有接收过所述第一消息和所述第二消息,或,所述第一设备接收过所述第二设备发送的所述第一消息或所述第二消息,但已超出所述预设时间,则,所述第一设备向所述第二设备的第二接口发送所述第三消息,用于所述第一设备尝试与所述第二设备的第二接口进行通信;在第一间隔时间内,如果所述第一设备没有收到所述第二设备向所述第一设备发送的第三消息的回复消息,则所述第一设备在所述第一间隔时间后向所述第二设备的所述第一接口发送所述第四消息,用于所述第一设备唤醒所述第二设备的第二接口;所述第一间隔时间大于所述第二设备接收到所述第三消息后,向所述第一设备发送所述第三消息的回复消息的间隔,用于避免所述第一设备在收到所述第三消息的回复消息之前就发送所述第四消息。In an implementation manner, if the first device has not received the first message and the second message, or, the first device has received the first message or the second message sent by the second device the second message, but the preset time has passed, the first device sends the third message to the second interface of the second device for the first device to attempt to communicate with the first device The second interface of the two devices communicates; within the first interval, if the first device does not receive a reply message for the third message sent by the second device to the first device, the first device will The device sends the fourth message to the first interface of the second device after the first interval time, for the first device to wake up the second interface of the second device; the first The interval time is greater than the interval for sending the reply message of the third message to the first device after the second device receives the third message, so as to prevent the first device from receiving the third message The fourth message is sent before the reply message to the message.
在一个实现方式中,所述第一消息和所述第二消息是周期性发送的消息,以用于所述第一设备识别是否漏收所述第一消息或所述第二消息。In an implementation manner, the first message and the second message are messages sent periodically, and are used for the first device to identify whether the first message or the second message is missed.
在一个实现方式中,所述预设时间为所述第一设备与所述第二设备约定的时间,或,所述第一指示信息中所指示的时间;用于所述第一设备判断所述第一消息和所述第二消息中携带的所述第一指示信息是否有效。In an implementation manner, the preset time is the time agreed between the first device and the second device, or the time indicated in the first indication information; it is used by the first device to determine the whether the first indication information carried in the first message and the second message is valid.
在一个实现方式中,如果所述第一设备没有通过所述第一接口接收过所述第一消息;并且,所述第二设备没有通过所述第二接口接收过所述第二消息;或,所述第一设备接收过所述第一消息或所述第二消息,但已超出所述预设时间,则,所述第一设备通过所述第二接口向所述第二设备的所述第二接口发送所述第三消息;在第一间隔时间内,如果所述第一设备没有收到所述第二设备发送的第三消息的回复消息,则,当所述第一设备具备通过所述第一接口发送所述第一载荷的能力时,所述第一设备通过所述第一接口在所述第一间隔时间后向所述第二设备的第一接口发送所述第四消息;当所述第一设备不具备通过所述第一接口发送所述第一载荷的能力时,所述第一设备通过所述第二接口在所述第一间隔时间后向所述第二设备的第一接口发送所述第四消息;所述第一间隔时间大于所述第二设备接收到所述第三消息后,向所述第一设备发送所述第三消息的回复消息的间隔。In one implementation, if the first device has not received the first message through the first interface; and, the second device has not received the second message through the second interface; or , the first device has received the first message or the second message, but has exceeded the preset time, then the first device sends a message to the second device through the second interface The second interface sends the third message; within the first interval, if the first device does not receive a reply message for the third message sent by the second device, then when the first device has When the capability of sending the first payload through the first interface, the first device sends the fourth device through the first interface to the first interface of the second device after the first interval time message; when the first device does not have the ability to send the first payload through the first interface, the first device sends a message to the second device through the second interface after the first interval time The first interface of the device sends the fourth message; the first interval is greater than the interval for sending the reply message of the third message to the first device after the second device receives the third message .
在一个实现方式中,第二设备中的第二接口用于接收第三消息;所述第三消息为上行数据消息,或通知所述第二设备有上行消息需要接收的消息;第二设备中的第一接口,用于接收第四消息的所述第一载荷,用于唤醒所述第二设备的第二接口;第二设备中的处理器,用于解析所述第三消息,和/或第四消息。In an implementation manner, the second interface in the second device is used to receive a third message; the third message is an uplink data message, or a message notifying the second device that an uplink message needs to be received; in the second device a first interface for receiving the first payload of the fourth message, for waking up the second interface of the second device; a processor in the second device for parsing the third message, and/ or fourth message.
可见,本申请中,第一设备通过对第二设备发送的能够指示第二设备的第二接口所处的状态的消息进行接收,从而判断第二设备的第二接口所处的状态,进而第一设备决定是否需要唤醒第二设备的第二接口还是直接进行数据通信,因此,本申请中第一设备能够及时获知第二设备的第二接口所处的状态并进行数据通信或唤醒后再进行通信,由此实现第二设备的第二接口的有效唤醒,进行数据通信的目的。It can be seen that in this application, the first device determines the state of the second interface of the second device by receiving the message sent by the second device that can indicate the state of the second interface of the second device, and then the first device A device decides whether it needs to wake up the second interface of the second device or directly perform data communication. Therefore, in this application, the first device can know the state of the second interface of the second device in time and perform data communication or wake up before performing data communication. communication, thereby realizing the purpose of effectively waking up the second interface of the second device and performing data communication.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为WLAN中一个基本服务集的组成结构示意图;FIG. 1 is a schematic diagram of the composition structure of a basic service set in WLAN;
图2为终端与AP之间的通信示意图;2 is a schematic diagram of communication between a terminal and an AP;
图3为WUR帧结构示意图;Fig. 3 is a schematic diagram of a WUR frame structure;
图4-图12分别为本申请实施例中第一设备与第二设备之间的通信示意图;4 to 12 are schematic diagrams of communication between a first device and a second device in an embodiment of the present application, respectively;
图13为本申请实施例中第一设备与第二设备之间的通信流程图;13 is a flowchart of communication between a first device and a second device in an embodiment of the application;
图14-图16分别为本申请实施例的应用示例图;14 to 16 are respectively application example diagrams of the embodiments of the present application;
图17为本申请实施例提供的一种无线设备的结构示意图;FIG. 17 is a schematic structural diagram of a wireless device according to an embodiment of the application;
图18为本申请实施例提供的另一种无线设备的结构示意图。FIG. 18 is a schematic structural diagram of another wireless device provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请应用于WLAN中,一个WLAN中可以包括一个基本服务集(Basic ServiceSet,BSS),基本服务集中的网络节点包括AP和终端。每个基本服务集可以包含一个AP和多个关联于该AP的终端,如图1中所示。The present application is applied to a WLAN, a WLAN may include a basic service set (Basic Service Set, BSS), and the network nodes in the basic service set include an AP and a terminal. Each basic service set may contain one AP and multiple terminals associated with the AP, as shown in FIG. 1 .
AP,可以是接入点或热点等。AP是移动用户终端进入有线网络的接入点,如图1中所示,多个终端通过AP连接网络。AP主要部署于家庭、大楼内部以及园区内部,典型覆盖半径为几十米至上百米,当然,也可以部署于户外。AP相当于一个连接因特网和无线网的桥梁,其主要作用是将各个无线网络客户端连接到一起,然后将无线网络接入因特网。具体地,AP可以是带有Wi-Fi芯片的终端设备或者网络设备。AP, which can be an access point or a hotspot, etc. An AP is an access point for a mobile user terminal to access a wired network. As shown in FIG. 1 , multiple terminals are connected to the network through the AP. APs are mainly deployed in homes, buildings, and campuses, with a typical coverage radius ranging from tens of meters to hundreds of meters. Of course, they can also be deployed outdoors. AP is equivalent to a bridge connecting the Internet and a wireless network. Its main function is to connect various wireless network clients together, and then connect the wireless network to the Internet. Specifically, the AP may be a terminal device or a network device with a Wi-Fi chip.
终端可以是用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal)、计算机、微机等,也可以为5G终端。例如,终端可以是移动电话(或称为“蜂窝”电话)、移动电脑、具有移动终端的计算机、智能手表等等,例如,终端还可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入设备交换语音和/或数据。本申请对此并不限定,例如终端还包括具有多承载特征的有线接入的终端。The terminal may be a user equipment (user equipment, UE), a mobile station (mobile station, MS), a mobile terminal (mobile terminal), a computer, a microcomputer, etc., or a 5G terminal. For example, the terminal may be a mobile phone (or "cellular" phone), a mobile computer, a computer with a mobile terminal, a smart watch, etc., for example, the terminal may also be portable, pocket-sized, hand-held, computer built-in, or vehicle-mounted mobile devices that exchange voice and/or data with wireless access equipment. This application is not limited to this, for example, the terminal also includes a wired access terminal with a multi-bearer feature.
图2所示为终端与AP之间利用802.11主收发模块及WUR进行通信的示意图。其中,AP和终端中均可以包括802.11主收发模块和WUR。WUR用于接收唤醒帧并基于唤醒帧唤醒其所在设备的802.11主收发模块。如果WUR具备发送WUR消息如唤醒帧的能力,则WUR也可以用于发送WUR消息。802.11主收发模块即Wi-Fi模块,可用于Wi-Fi信号的收发。当WUR不具有发送WUR消息的能力时,802.11主收发模块则需要具备发送WUR消息的能力,并可用于发送WUR信号;当设备使用802.11主收发模块发送WUR消息时,WUR的WUR消息的发送能力不是必须的。当然,当AP不考虑节约能耗时,WUR不是必须的。Figure 2 shows a schematic diagram of the communication between the terminal and the AP using the 802.11 main transceiver module and the WUR. Wherein, both the AP and the terminal may include the 802.11 main transceiver module and the WUR. The WUR is used to receive the wake-up frame and wake up the 802.11 main transceiver module of the device where it is located based on the wake-up frame. If the WUR is capable of sending WUR messages such as wake-up frames, the WUR can also be used to send WUR messages. The 802.11 main transceiver module is the Wi-Fi module, which can be used to send and receive Wi-Fi signals. When the WUR does not have the ability to send WUR messages, the 802.11 main transceiver module needs to have the ability to send WUR messages and can be used to send WUR signals; when the device uses the 802.11 main transceiver module to send WUR messages, the WUR's WUR message sending capability Not required. Of course, when the AP does not consider energy saving, WUR is not necessary.
其中,WUR相比802.11主收发模块能够降低能耗,主要是由于WUR的接收和译码远比802.11消息即Wi-Fi消息简单,同时相较于802.11主收发模块采用了窄带传输。具体的,WUR通常采用易于接收端解调的调制方式,如开关键控(On Off Keying,OOK)调制和二进制频率(Binary Frequency ShiftKeying,2FSK)调制。而有文献指出OOK和2FSK为解调复杂度最低的两种调制方式。以OOK调制为例,接收端通过有无能量判断是否接收到信号承载的信息,如:有能量时指示为1,无能量时指示为0。而Wi-Fi消息同时采用了解调复杂度较高的相位偏移(Phase Shift Keying,PSK)调制和正交频分复用(Orthogonal FrequencyDivision Multiplexing,OFDM)调制,接收端须执行反向快速傅里叶变换(Inverse FastFourier Transform,IFFT)等复杂信道处理操作,这些操作需要消耗大量能量。Among them, WUR can reduce energy consumption compared with the 802.11 main transceiver module, mainly because the reception and decoding of WUR is far simpler than that of 802.11 messages, namely Wi-Fi messages, and compared with the 802.11 main transceiver module, it adopts narrowband transmission. Specifically, the WUR usually adopts modulation modes that are easy to demodulate at the receiving end, such as On Off Keying (OOK) modulation and Binary Frequency Shift Keying (2FSK) modulation. Some literatures point out that OOK and 2FSK are the two modulation methods with the lowest demodulation complexity. Taking OOK modulation as an example, the receiving end judges whether the information carried by the signal is received by the presence or absence of energy. For example, the indication is 1 when there is energy, and the indication is 0 when there is no energy. However, Wi-Fi messages use both Phase Shift Keying (PSK) modulation and Orthogonal Frequency Division Multiplexing (OFDM) modulation with high demodulation complexity. Complex channel processing operations, such as Inverse Fast Fourier Transform (IFFT), consume a lot of energy.
以下对WUR进行设计说明,如图3中所示,WUR帧结构可以分为第一先导的字段和第一载荷的字段。The following describes the design of the WUR. As shown in FIG. 3 , the WUR frame structure can be divided into a first pilot field and a first payload field.
其中,第一先导的字段中至少可以包括有:L-STF、L-LTF及L-SIG三个字段,第一先导为802.11先导(802.11preamble),即传统802.11设备可以听懂的先导序列,在20MHz或20MHz整数倍的带宽(如40MHz、80MHz、160MHz)上发送,使得802.11设备可以据此判定当前消息(即WUP)为Wi-Fi消息,用于兼容传统802.11设备。听到该802.11先导的802.11设备能够根据802.11先导中的信息(如L-LTF即Length域信息)获得WUP占用信道的时间,在这段时间内不尝试接入信道进而避免干扰传输中的WUP。The fields of the first preamble may include at least three fields: L-STF, L-LTF and L-SIG, and the first preamble is the 802.11 preamble (802.11 preamble), that is, the preamble sequence that can be understood by traditional 802.11 devices, It is sent on a bandwidth of 20MHz or an integer multiple of 20MHz (such as 40MHz, 80MHz, 160MHz), so that the 802.11 device can determine that the current message (ie WUP) is a Wi-Fi message, which is compatible with traditional 802.11 devices. The 802.11 device that hears the 802.11 preamble can obtain the time that the WUP occupies the channel according to the information in the 802.11 preamble (such as L-LTF or Length field information), and does not try to access the channel during this time to avoid interfering with the WUP in transmission.
例如:Length域信息为12bits,指示消息数据部分需要传输的字节数量。换句话说,根据Length域指示的信息和802.11先导L-SIG即Signal域中指示消息传输速率的信息,可以计算出传输所述消息所需的剩余时间。For example, the Length field information is 12 bits, indicating the number of bytes to be transmitted in the data part of the message. In other words, according to the information indicated in the Length field and the 802.11 preamble L-SIG, that is, the information indicating the message transmission rate in the Signal field, the remaining time required for transmitting the message can be calculated.
而第一载荷则为WUP的Payload部分,采用解调复杂度低的调制方式,如OOK调制,即二进制幅度(Binary Amplitude Shift Keying,2ASK)调制,并使用窄带传输,如1MHz信道、2MHz信道、5MHz信道等(传统802.11最小信道带宽为20MHz),这使得接收端进一步降低能耗。The first load is the Payload part of WUP, which adopts a modulation method with low demodulation complexity, such as OOK modulation, that is, Binary Amplitude Shift Keying (2ASK) modulation, and uses narrowband transmission, such as 1MHz channel, 2MHz channel, 5MHz channel (traditional 802.11 minimum channel bandwidth is 20MHz), which enables the receiver to further reduce energy consumption.
其中,WUP的Payload包括Wake-Up Preamble和MAC(medium Access Control,媒介接入控制)部分,其中前者的作用与传统802.11先导类似,可用于设备的WUR识别WUR信号;后者与Wi-Fi消息的MAC部分相似,进一步可以包括MAC Header,Frame Body和帧校验序列(Frame Check Sequence,FCS)。这里MAC Header至少携带接收端的标识信息,Frame Body可承载一些指示、控制信息等,FCS属于校验信息,用于判断该消息是否接收出错。Among them, the payload of WUP includes Wake-Up Preamble and MAC (medium Access Control, medium access control) part, the former function is similar to the traditional 802.11 pilot, which can be used for the WUR of the device to identify the WUR signal; the latter is the same as the Wi-Fi message. is similar to the MAC part of , and may further include MAC Header, Frame Body, and Frame Check Sequence (FCS). Here, the MAC Header carries at least the identification information of the receiving end, and the Frame Body can carry some instructions, control information, etc., and the FCS belongs to the verification information, which is used to judge whether the message is received in error.
在终端中设置WUR的目的在于降低设备的整体能耗,而在一些场景中,AP也有节约能耗的要求,因此也可以装备WUR来进一步降低能耗,如图2中所示,在一些临时部署的网络中AP无外接电源,设置WUR的AP的802.11主收发模块在无数据收发时可进入休眠状态,以达到节能的目的。而终端在有上行(Uplink,UL)数据需要发送时,首先给AP的WUR发送WUP消息以唤醒AP的802.11主收发模块,然后终端与AP再通过802.11主收发模块进行通信。如图1所示,当终端1通过发送WUP利用AP的WUR唤醒AP的802.11主收发模块进行数据传输后,如果此时其他终端如终端2也有上行数据需要传输,则终端2也会给AP的WUR发送WUP希望唤醒AP的802.11主收发模块,但由于此时AP的802.11主收发模块已苏醒,同时AP的WUR可能已转入休眠,因此AP无法通过它的WUR收到终端发送的WUP。也就是说,在该场景下,终端2可能无法有效唤醒AP,使得终端2无法与AP进行数据通信。The purpose of setting WUR in the terminal is to reduce the overall energy consumption of the device, and in some scenarios, APs also have requirements to save energy, so WUR can also be equipped to further reduce energy consumption, as shown in Figure 2, in some temporary The APs in the deployed network have no external power supply, and the 802.11 main transceiver module of the AP with WUR can enter the sleep state when there is no data transmission and reception, so as to achieve the purpose of energy saving. When the terminal has uplink (UL) data to be sent, it first sends a WUP message to the WUR of the AP to wake up the 802.11 main transceiver module of the AP, and then the terminal and the AP communicate through the 802.11 main transceiver module. As shown in Figure 1, when terminal 1 uses the AP's WUR to wake up the 802.11 main transceiver module of the AP for data transmission by sending WUP, if other terminals such as terminal 2 also have uplink data to transmit at this time, terminal 2 will also send the AP's The WUR sends the WUP to wake up the 802.11 main transceiver module of the AP, but because the AP's 802.11 main transceiver module has woken up at this time, and the AP's WUR may have gone to sleep, the AP cannot receive the WUP sent by the terminal through its WUR. That is to say, in this scenario, the terminal 2 may not be able to wake up the AP effectively, so that the terminal 2 cannot perform data communication with the AP.
为此,本实施例中针对图2中的通信结构,提出以下实现方案,如图4中所示,第一设备与第二设备通过各自的第一接口与第二接口进行数据通信。第一设备中,同一时刻第一接口与第二接口通常只有一个处于苏醒状态,另一个处于休眠状态,第一接口可用于唤醒第二接口;第二设备中,同一时刻第一接口与第二接口通常只有一个处于苏醒状态,另一个处于休眠状态,第一接口可用于唤醒第二接口。To this end, in this embodiment, the following implementation scheme is proposed for the communication structure in FIG. 2 . As shown in FIG. 4 , the first device and the second device perform data communication with the second interface through respective first interfaces. In the first device, usually only one of the first interface and the second interface is in the awake state at the same time, and the other is in the dormant state, and the first interface can be used to wake up the second interface; in the second device, the first interface and the second interface at the same time. Usually only one interface is in the awake state and the other is in the dormant state, and the first interface can be used to wake up the second interface.
其中,如果第二设备的第一接口具有发送第一消息(如WUR消息)的能力,则第二设备通过其第一接口向第一设备的第一接口发送包含指示第二设备的第二接口所处的状态的消息(为一种WUR消息),即包含第一指示信息的第一消息,第一设备利用其第一接口接收第一消息;第二设备通过其第二接口向第一设备的第二接口发送包含指示第二设备的第二接口所处的状态的消息,即包含第一指示信息的第二消息,第一设备利用其第二接口接收第二消息。如果第二设备的第一接口不具有发送第一消息的能力,则第二设备可以通过其第二接口向第一设备的第一接口发送包含指示第二设备的第二接口所处的状态的消息(为一种WUR消息)。Wherein, if the first interface of the second device has the ability to send a first message (such as a WUR message), the second device sends a second interface that contains instructions to the second device to the first interface of the first device through its first interface The message in the state (which is a kind of WUR message), that is, the first message containing the first indication information, the first device uses its first interface to receive the first message; the second device uses its second interface to send to the first device. The second interface of the device sends a message including a message indicating the state of the second interface of the second device, that is, a second message including the first indication information, and the first device uses its second interface to receive the second message. If the first interface of the second device does not have the ability to send the first message, the second device may send the first interface of the first device through its second interface a message containing a state indicating the state of the second interface of the second device. message (for a WUR message).
如图5中所示,第二设备可以利用第一接口周期性发送第一消息,第一消息中的第一指示信息指示第二设备的第二接口当前处于休眠状态还是苏醒状态,或者在预设时间段内所处的状态为休眠状态还是苏醒状态,之后,第一设备可以通过其第一接口接收第一消息。As shown in FIG. 5 , the second device may periodically send a first message by using the first interface, and the first indication information in the first message indicates whether the second interface of the second device is currently in a dormant state or an awake state, or is in a pre-defined state. It is assumed that the state in the time period is the sleep state or the awake state, and then the first device can receive the first message through its first interface.
如图6中所示,第二设备可以利用第二接口周期性发送第二消息,第二消息中的第一指示信息指示第二设备的第二接口当前处于休眠状态还是苏醒状态,或者在预设时间段内所处的状态为休眠状态还是苏醒状态,之后,第一设备可以通过其第二接口接收第二消息。As shown in FIG. 6 , the second device may periodically send a second message by using the second interface, and the first indication information in the second message indicates that the second interface of the second device is currently in a dormant state or an awake state, or is in a pre-defined state. It is assumed that the state in the time period is the sleep state or the awake state, and then the first device can receive the second message through its second interface.
如图7中所示,第二设备可以利用第一接口周期性发送第一消息,并利用第二接口周期性发送第二消息,第一消息和第二消息各自中的第一指示信息指示第二设备的第二接口当前处于休眠状态还是苏醒状态,或者在预设时间段内所处的状态为休眠状态还是苏醒状态,之后,第一设备可以利用其第一接口接收第一消息,并利用第二接口接收第二消息。As shown in FIG. 7 , the second device may periodically send the first message by using the first interface, and periodically send the second message by using the second interface, and the first indication information in each of the first message and the second message indicates the first message. Whether the second interface of the second device is currently in a dormant state or an awake state, or whether the state in a preset time period is a dormant state or an awake state, after that, the first device can use its first interface to receive the first message, and use the The second interface receives the second message.
其中,图5-图7所示的示例中,第二设备发送第一消息和第二消息的时间点可以不同,例如可以在发送一个消息(第一消息或第二消息)之后,再间隔一段时间发送另一个消息(第二消息或第一消息)。另外,第二设备发送第一消息和第二消息的周期可以相同,也可以不同。Wherein, in the examples shown in FIGS. 5-7 , the time points at which the second device sends the first message and the second message may be different. For example, after sending one message (the first message or the second message), there may be an interval Time to send another message (either the second message or the first message). In addition, the periods at which the second device sends the first message and the second message may be the same or different.
需要说明的是,图5-图7所示的示例中,第二设备发送第一消息时,如果第一接口处于休眠状态,则暂时唤醒第一接口发送第一消息;第二设备发送第二消息时,如果第二接口处于休眠状态,则暂时唤醒第二接口发送第二消息。It should be noted that, in the examples shown in FIGS. 5-7 , when the second device sends the first message, if the first interface is in a dormant state, it temporarily wakes up the first interface to send the first message; the second device sends the second When sending a message, if the second interface is in a dormant state, the second interface is temporarily woken up to send the second message.
而第二设备中第一接口如果不具有发送第一消息的能力,则第二设备通过其第二接口发送第一消息,对于第二消息,第二设备仍然通过其第二接口发送。之后,第一设备则仍然利用其第一接口接收第一消息,第一设备利用其第二接口接收第二消息。However, if the first interface in the second device does not have the ability to send the first message, the second device sends the first message through its second interface, and the second device still sends the second message through its second interface. After that, the first device still uses its first interface to receive the first message, and the first device uses its second interface to receive the second message.
也就是说,第二设备中的第一接口可能不具有发送第一消息的能力,则第二设备中,在第一接口处于休眠状态而第二接口处于苏醒状态时,第二设备通过第二接口发送第一消息和/或第二消息;在第一接口处于苏醒状态而第二接口处于休眠状态,第二设备暂时唤醒第二接口发送第一消息和/或第二消息。That is to say, the first interface in the second device may not have the ability to send the first message, then in the second device, when the first interface is in the dormant state and the second interface is in the awake state, the second device sends the first message through the second device. The interface sends the first message and/or the second message; when the first interface is in an awake state and the second interface is in a dormant state, the second device temporarily wakes up the second interface to send the first message and/or the second message.
如图8中所示,第二设备可以利用第二接口周期性发送第一消息,第一消息中的第一指示信息指示第二设备的第二接口当前处于休眠状态还是苏醒状态,或者在预设时间段内所处的状态为休眠状态还是苏醒状态,之后,第一设备可以通过其第一接口接收第一消息。As shown in FIG. 8 , the second device may periodically send a first message by using the second interface, and the first indication information in the first message indicates whether the second interface of the second device is currently in a dormant state or an awake state, or is in a pre-defined state. It is assumed that the state in the time period is the sleep state or the awake state, and then the first device can receive the first message through its first interface.
如图9中所示,第二设备可以利用第二接口周期性发送第二消息,第二消息中的第一指示信息指示第二设备的第二接口当前处于休眠状态还是苏醒状态,或者在预设时间段内所处的状态为休眠状态还是苏醒状态,之后,第一设备可以通过其第二接口接收第二消息。As shown in FIG. 9 , the second device may periodically send a second message by using the second interface, and the first indication information in the second message indicates whether the second interface of the second device is currently in a dormant state or an awake state, or is in a pre-defined state. It is assumed that the state in the time period is the sleep state or the awake state, and then the first device can receive the second message through its second interface.
如图10中所示,第二设备可以利用第二接口周期性的分别发送第一消息和第二消息,第一消息和第二消息的发送间隔一定的时长,第一消息和第二消息各自中的第一指示信息指示第二设备的第二接口当前处于休眠状态还是苏醒状态,或者在预设时间段内所处的状态为休眠状态还是苏醒状态,之后,第一设备可以利用其第一接口接收第一消息,并利用第二接口接收第二消息。As shown in FIG. 10 , the second device may use the second interface to periodically send the first message and the second message, respectively, the first message and the second message are sent at a certain interval, and the first message and the second message are respectively The first indication information in the second interface indicates whether the second interface of the second device is currently in a dormant state or an awake state, or whether the state within a preset time period is a dormant state or an awake state, after which the first device can use its first The interface receives the first message and utilizes the second interface to receive the second message.
其中,图8-图10所示的示例中,第二设备通过第二接口发送第一消息和第二消息的时间点不同,可以在发送一个消息(第一消息或第二消息)之后,再间隔一段时间发送另一个消息(第二消息或第一消息)。另外,第二设备发送第一消息和第二消息的周期可以相同,也可以不同。Wherein, in the examples shown in FIG. 8 to FIG. 10 , the time points at which the second device sends the first message and the second message through the second interface are different. After sending one message (the first message or the second message), Another message (either the second message or the first message) is sent at intervals. In addition, the periods at which the second device sends the first message and the second message may be the same or different.
需要说明的是,图8-图10所示的示例中,第二设备发送第一消息和第二消息时,如果第二接口处于休眠状态,则可以暂时唤醒第二接口发送第一消息和第二消息。It should be noted that, in the examples shown in FIG. 8 to FIG. 10 , when the second device sends the first message and the second message, if the second interface is in a dormant state, it can temporarily wake up the second interface to send the first message and the second message. Two news.
另外,第一设备在接收到指示第二设备的第二接口处于苏醒状态或者在预设时间段内处于苏醒状态的第一指示信息且预设时间段有效时,第一设备的第二接口向第二设备的第二接口发送与上行数据相关的消息,即第三消息,如上行数据本身或者告知其有上行数据需要接收的问询类型的帧,如RTS、Poll等,如图11中所示;而第一设备在接收到指示第二设备的第二接口处于休眠状态或者在预设时间段内处于休眠状态的第一指示信息且预设时间段有效时,向第二设备的第一接口发送能够唤醒第二设备的第二接口的第四消息,如图12中所示,进而唤醒第二设备的第二接口,由此第一设备的第二接口能够向第二设备的第二接口发送上行数据或告知其有上行数据需要接收的问询类型的帧等,由此实现第一设备与第二设备之间的数据通信。In addition, when the first device receives the first indication information indicating that the second interface of the second device is in an awake state or is in an awake state within a preset time period and the preset time period is valid, the second interface of the first device sends a message to the first device. The second interface of the second device sends a message related to the uplink data, that is, a third message, such as the uplink data itself or a frame of the query type that informs it that there is uplink data to receive, such as RTS, Poll, etc., as shown in Figure 11 When the first device receives the first indication information indicating that the second interface of the second device is in a dormant state or is in a dormant state within a preset time period and the preset time period is valid, the first device sends a message to the first device of the second device The interface sends a fourth message capable of waking up the second interface of the second device, as shown in FIG. 12 , and then wakes up the second interface of the second device, whereby the second interface of the first device can send a message to the second interface of the second device. The interface sends uplink data or informs it that there is an inquiry type frame of uplink data that needs to be received, etc., thereby realizing data communication between the first device and the second device.
需要说明的是,若第一指示信息指示第二设备的第二接口处于休眠状态或者在预设时间段内处于休眠状态,则第二设备在利用第一接口接收到第四消息之后,由第二设备的第一接口立即基于第四消息唤醒第二设备的第二接口,使得第二设备的第二接口进入苏醒状态,由此实现第一设备与第二设备之间的数据通信。It should be noted that, if the first indication information indicates that the second interface of the second device is in a dormant state or is in a dormant state within a preset time period, after receiving the fourth message by using the first interface, the second device will The first interface of the second device immediately wakes up the second interface of the second device based on the fourth message, so that the second interface of the second device enters the awake state, thereby realizing data communication between the first device and the second device.
其中,第一指示信息中的预设时间段可以基于第一设备与第二设备之间预设的通信协议设置。例如,从第二设备发送完第一消息和/或第二消息的时间点开始,到某一个时间点之间的时间段,作为预设时间段;或者从某个时间点开始,经过一个相应时长的时间段,作为预设时间段;或者,可以基于第一指示信息中所指示的时间设置预设时间段,例如,将从第一指示信息中表明第一指示信息的发送周期的时间段,即从发送前一个消息的第一个字段开始,到发送下一个消息的第一个字段之间的时间段,作为预设时间段。The preset time period in the first indication information may be set based on a preset communication protocol between the first device and the second device. For example, the time period from the time when the second device sends the first message and/or the second message to a certain time point is regarded as a preset time period; or from a certain time point, after a corresponding period of time The time period of the duration is used as the preset time period; or, the preset time period may be set based on the time indicated in the first indication information, for example, the time period of the sending cycle of the first indication information will be indicated from the first indication information , that is, the time period from when the first field of the previous message is sent to when the first field of the next message is sent, as the preset time period.
需要说明的是,第二设备周期性的发送第一消息和/或第二消息,可以让第一设备基于这个发送周期来识别是否有漏收消息。It should be noted that the second device periodically sends the first message and/or the second message, and the first device can be made to identify whether there is a missed message based on the sending cycle.
而本申请的一个示例中,第一设备在第一指示信息的预设时间段失效或者没有接收到第一消息或第二消息时,第一设备无法得知第二设备的第二接口当前所处的状态,则可以向第二设备的第二接口直接发送与上行数据相关的消息,如上行数据本身或告知其有上行数据需要接收的问询类型的帧等第三消息,以尝试与第二设备进行数据通信。In an example of this application, when the preset time period of the first indication information expires or the first device does not receive the first message or the second message, the first device cannot know the current location of the second interface of the second device. In the state of the second device, you can directly send a message related to the uplink data to the second interface of the second device, such as the uplink data itself or a third message such as a frame informing it that there is an inquiry type of uplink data that needs to be received, in order to try to communicate with the first The two devices communicate data.
其中,在正常通信时,第二设备如果通过第二接口接收到第一设备发送的第三消息之后,会向第一设备的第二接口反馈能够确认第二设备已经收到第三消息的回复消息。Wherein, during normal communication, if the second device receives the third message sent by the first device through the second interface, it will feed back to the second interface of the first device a reply that can confirm that the second device has received the third message information.
而如果第一设备在发送完第三消息之后的预设的间隔时长内,并没有收到第二设备反馈的回复消息,那么表明第二设备的第二接口极有可能或者确定处于休眠状态,导致第二设备并没有收到第一设备发送的第三消息,此时第一设备可以向第二设备的第一接口发送第四消息,由此唤醒第二设备的第二接口,再向唤醒后的第二设备的第二接口发送第三消息,以实现第一设备与第二设备之间的数据通信。However, if the first device does not receive a reply message fed back by the second device within the preset interval after sending the third message, it indicates that the second interface of the second device is very likely or determined to be in a dormant state. As a result, the second device does not receive the third message sent by the first device. At this time, the first device can send a fourth message to the first interface of the second device, thereby waking up the second interface of the second device, and then waking up the second device. The second interface of the second device sends a third message to implement data communication between the first device and the second device.
为了避免第一设备在接收到回复消息之前就向第二设备发送第四消息,而可能造成的信道占用情况,第一设备等待的间隔时长需要大于正常通信状态下第三消息从第一设备传输到第二设备的时长加上回复消息从第二设备传输到第一设备的时长之和,例如:间隔时长大于从第三消息的最后一个字段离开第一设备的时间点开始,到第二设备向第一设备反馈的回复消息的第一个字段到达第一设备的时间点之间的时长,即:第二设备收到第三消息,再向第一设备发送第三消息的回复消息的正常间隔。在802.11协议中,该间隔时长的值通常表述为大于aSIFSTime,如在802.11g/n协议的2.4GHz频段上aSIFSTime=10us,而在802.11a/n/ac协议的5GHz频段上aSIFSTime=16us。In order to avoid the possible channel occupation caused by the first device sending the fourth message to the second device before receiving the reply message, the waiting interval of the first device needs to be longer than the transmission of the third message from the first device in the normal communication state The sum of the duration to the second device plus the duration of the reply message transmitted from the second device to the first device, for example, the interval duration is greater than the time from the last field of the third message leaving the first device, to the second device The time period between the time when the first field of the reply message fed back to the first device reaches the first device, that is, the normal time when the second device receives the third message and then sends the reply message of the third message to the first device. interval. In the 802.11 protocol, the value of the interval duration is usually expressed as greater than aSIFSTime, such as aSIFSTime=10us in the 2.4GHz frequency band of the 802.11g/n protocol, and aSIFSTime=16us in the 5GHz frequency band of the 802.11a/n/ac protocol.
基于以上实现方案,图13所示为第一设备与第二设备之间的消息传送及数据通信的流程示意,如下:Based on the above implementation scheme, FIG. 13 shows a schematic flowchart of message transmission and data communication between the first device and the second device, as follows:
步骤1301:第二设备通过其第一接口或第二接口向第一设备发送第一消息,和/或,第二设备通过其第二接口向第一设备发送第二消息。Step 1301: The second device sends a first message to the first device through its first interface or the second interface, and/or the second device sends a second message to the first device through its second interface.
其中,第一消息和第二消息中均含有第一指示信息,第一指示信息用于指示第二设备的第二接口所处的状态,如当前处于休眠状态或苏醒状态,或者,在预设时间段内处于休眠状态或苏醒状态。Wherein, both the first message and the second message contain first indication information, and the first indication information is used to indicate the state of the second interface of the second device, such as currently in a dormant state or an awake state, or in a preset state Sleeping or awake for a period of time.
第二设备可以通过发送第一消息,或发送第二消息,或分别发送第一消息和第二消息,来向第一设备告知所述第二设备的第二接口所处的状态。当第二设备分别发送第一消息和第二消息给所述第一设备时,可以更好地确保让所述第一设备能接收到该第一指示信息。The second device may notify the first device of the state of the second interface of the second device by sending the first message, or sending the second message, or sending the first message and the second message respectively. When the second device sends the first message and the second message respectively to the first device, it can better ensure that the first device can receive the first indication information.
其中,在第二设备的第一接口具有发送第一消息的能力时,第二设备可以通过第一接口发送第一消息,第二设备可以通过第二接口发送第二消息;在第二设备的第一接口不具有发送第一消息的能力时,第二设备可以通过第二接口发送第一消息和/或第二消息。Wherein, when the first interface of the second device has the ability to send the first message, the second device can send the first message through the first interface, and the second device can send the second message through the second interface; When the first interface does not have the ability to send the first message, the second device may send the first message and/or the second message through the second interface.
需要说明的是,第二设备可以基于预设的第一时间周期发送第一消息;第二设备可以基于预设的第二时间周期发送第二消息。第一时间周期与第二时间周期可以相同,也可以不同。而第二设备发送第一消息的时间点与发送第二消息的时间点可以相同,也可以不同。It should be noted that the second device may send the first message based on the preset first time period; the second device may send the second message based on the preset second time period. The first time period and the second time period may be the same or different. The time point when the second device sends the first message may be the same as or different from the time point when the second device sends the second message.
步骤1302:第一设备接收第二设备发送的第一消息和/或第二消息。Step 1302: The first device receives the first message and/or the second message sent by the second device.
步骤1303:第一设备判断第一指示信息中所指示的第二设备的第二接口所处的状态,如果第一指示信息指示第二设备的第二接口处于苏醒状态,则执行步骤1304,如果第一指示信息指示第二设备的第二接口处于休眠状态,则执行步骤1305。Step 1303: The first device determines the state of the second interface of the second device indicated in the first indication information. If the first indication information indicates that the second interface of the second device is in an awake state, step 1304 is executed. If the first indication information indicates that the second interface of the second device is in a dormant state, step 1305 is performed.
步骤1304:向第二设备发送第三消息,第三消息与第一设备的上行数据相关,以在第一设备与第二设备之间进行数据通信。Step 1304: Send a third message to the second device, where the third message is related to the uplink data of the first device, so as to perform data communication between the first device and the second device.
步骤1305:向第二设备发送第四消息,第四消息用于唤醒第二设备的第二接口,以使得第一设备与第二设备之间通过被唤醒的第二设备的第二接口进行数据通信。Step 1305: Send a fourth message to the second device, where the fourth message is used to wake up the second interface of the second device, so that data is performed between the first device and the second device through the second interface of the awakened second device. communication.
步骤1306:若第一设备没有接收到第一消息或第二消息,导致第一设备无法知道第二设备的第二接口所处的状态时,第一设备向第二设备发送第三消息,以尝试第一设备与第二设备之间的数据通信。Step 1306: If the first device does not receive the first message or the second message, so that the first device cannot know the state of the second interface of the second device, the first device sends a third message to the second device. Attempt data communication between the first device and the second device.
其中,在正常通信时,第二设备如果通过第二接口接收到第一设备发送的第三消息之后,会向第一设备的第二接口反馈能够确认第二设备已经收到第三消息的回复消息。Wherein, during normal communication, if the second device receives the third message sent by the first device through the second interface, it will feed back to the second interface of the first device a reply that can confirm that the second device has received the third message information.
步骤1307:在第一设备发送完第三消息经过预设的间隔时长后,如果第一设备没有收到第二设备发送的回复消息,回复消息与第三消息相对应,则第一设备向第二设备发送第四消息,以唤醒第二设备的第二接口,实现第一设备与第二设备之间的数据通信。Step 1307: After the preset interval has elapsed after the first device sends the third message, if the first device does not receive the reply message sent by the second device, and the reply message corresponds to the third message, the first device sends the first device to the first device. The second device sends a fourth message to wake up the second interface of the second device to implement data communication between the first device and the second device.
基于图4-图11中的技术方案,本申请以第一设备与第二设备分别为一个基本服务集中的终端和AP为例进行说明:Based on the technical solutions in FIG. 4 to FIG. 11 , the present application takes the example that the first device and the second device are respectively a terminal and an AP in a basic service set as an example:
如图2所示,终端中具有两个通信模块:WUR及802.11主收发模块,相应的通信接口为:WUR对应的接口即第一终端的第一接口,及802.11主收发模块对应的接口即第一终端的第二接口,终端的WUR利用其对应的接口与其他设备进行通信,终端的802.11主收发模块利用其对应的接口与其他设备进行通信;AP中具有两个通信模块:WUR及802.11主收发模块,相应的通信接口为:WUR对应的接口即第二终端的第一接口及802.11主收发模块对应的接口即第二终端的第二接口,AP的WUR利用其对应的接口与其他设备进行通信,AP的802.11主收发模块利用其对应的接口与其他设备进行通信。As shown in Figure 2, the terminal has two communication modules: WUR and 802.11 main transceiver module, the corresponding communication interfaces are: the interface corresponding to WUR is the first interface of the first terminal, and the interface corresponding to the 802.11 main transceiver module is the first interface The second interface of a terminal, the WUR of the terminal uses its corresponding interface to communicate with other devices, and the 802.11 main transceiver module of the terminal uses its corresponding interface to communicate with other devices; the AP has two communication modules: WUR and 802.11 main The transceiver module, the corresponding communication interface is: the interface corresponding to the WUR is the first interface of the second terminal and the interface corresponding to the 802.11 main transceiver module is the second interface of the second terminal, and the WUR of the AP uses its corresponding interface to communicate with other devices. For communication, the 802.11 main transceiver module of the AP uses its corresponding interface to communicate with other devices.
以终端的WUR与AP的WUR不具有发送WUP能力为例,结合图8-图10中通信示意图:Taking the WUR of the terminal and the WUR of the AP not capable of sending WUP as an example, combined with the communication diagrams in Figure 8-Figure 10:
在通信过程中,WLAN系统中涉及终端与AP的WUR之间的通信、终端的802.11主收发模块与AP的802.11主收发模块之间的通信、以及AP与终端的WUR之间的通信。In the communication process, the WLAN system involves the communication between the terminal and the WUR of the AP, the communication between the 802.11 main transceiver module of the terminal and the 802.11 main transceiver module of the AP, and the communication between the AP and the WUR of the terminal.
其中,从终端到AP的WUR之间的通信包括:终端向AP的WUR发送含有WUR标识信息的唤醒帧,即WUP,以试图唤醒AP的802.11主收发模块的通信。The communication from the terminal to the WUR of the AP includes: the terminal sends a wake-up frame containing WUR identification information, namely WUP, to the WUR of the AP to try to wake up the communication of the 802.11 main transceiver module of the AP.
终端的802.11主收发模块与AP的802.11主收发模块之间的通信包括:终端的802.11主收发模块向AP的802.11主收发模块发送上行数据或告知其有上行数据需要接收的帧的通信;或,AP的802.11主收发模块向终端的802.11主收发模块发送的用于确认收到终端的802.11主收发模块发送的上行数据的回复消息的通信;或,AP的802.11主收发模块向终端的802.11主收发模块发送的用于指示AP当前所处的状态或者在预设时间段内所处的状态的通信。The communication between the 802.11 main transceiver module of the terminal and the 802.11 main transceiver module of the AP includes: the 802.11 main transceiver module of the terminal sends the uplink data to the 802.11 main transceiver module of the AP or informs it that there is a frame of uplink data to be received; or, The communication of the reply message sent by the AP's 802.11 main transceiver module to the terminal's 802.11 main transceiver module to confirm the receipt of the uplink data sent by the terminal's 802.11 main transceiver module; or, the AP's 802.11 main transceiver module to the terminal's 802.11 main transceiver module Communication sent by the module to indicate the current state of the AP or the state it is in within a preset time period.
AP与终端的WUR之间的通信包括:AP向终端的WUR发送的,用于指示AP当前所处的状态或者在预设时间段内所处的状态的通信。这里AP所处的状态是指AP的802.11主收发模块处于苏醒状态还是休眠状态。The communication between the AP and the WUR of the terminal includes: the communication sent by the AP to the WUR of the terminal to indicate the current state of the AP or the state in a preset time period. Here, the state of the AP refers to whether the 802.11 main transceiver module of the AP is in the awake state or the sleep state.
其中,当AP的802.11主收发模块处于苏醒时,AP可以收发Wi-Fi消息;当AP的802.11主收发模块处于休眠时,AP的802.11主收发模块只能通过AP的WUR被唤醒,或有下行消息需要传输时主动苏醒,然后再与其他设备进行Wi-Fi消息的传输。AP的802.11主收发模块进入休眠的主要目的是节约能耗。Among them, when the AP's 802.11 main transceiver module is awake, the AP can send and receive Wi-Fi messages; when the AP's 802.11 main transceiver module is in sleep, the AP's 802.11 main transceiver module can only be awakened through the AP's WUR, or there is a downlink Actively wake up when the message needs to be transmitted, and then transmit Wi-Fi messages with other devices. The main purpose of the AP's 802.11 main transceiver module entering sleep is to save energy.
由上述可知,本实施例中可以在终端一侧有上行数据需要传输时,一种情况下终端可以向AP分别发送WUR消息和Wi-Fi消息,确保在AP的WUR处于苏醒状态时能够基于终端发送的WUR消息唤醒AP的802.11主收发模块来接收Wi-Fi消息;或者在另一种情况下,终端可以向AP仅发送Wi-Fi消息,这样在AP的802.11主收发模块处于苏醒状态时能够直接接收Wi-Fi消息,实现两者间的数据通信。在AP一侧通过发送自身状态(如,AP的802.11主收发模块的状态)或者预设时间段内的状态,通知到终端,终端能够确定是直接向AP发送Wi-Fi消息来进行两者间的数据通信,还是需要在发送Wi-Fi消息前先发送WUR消息来先唤醒AP的802.11主收发模块,从而可以提升AP与终端的数据通信的效率和有效性,还可以减少无效消息的发送,节省不必要的开销。It can be seen from the above that in this embodiment, when there is uplink data that needs to be transmitted on the terminal side, in one case, the terminal can send a WUR message and a Wi-Fi message to the AP respectively, so as to ensure that when the WUR of the AP is in the awake state, it can be based on the terminal. The sent WUR message wakes up the 802.11 main transceiver module of the AP to receive Wi-Fi messages; or in another case, the terminal can only send Wi-Fi messages to the AP, so that when the AP's 802.11 main transceiver module is in the awake state, it can Directly receive Wi-Fi messages to realize data communication between the two. On the AP side, the terminal is notified by sending its own status (for example, the status of the AP's 802.11 main transceiver module) or the status within a preset time period. It is still necessary to send a WUR message before sending a Wi-Fi message to wake up the 802.11 main transceiver module of the AP, which can improve the efficiency and effectiveness of the data communication between the AP and the terminal, and can also reduce the sending of invalid messages. Save unnecessary overhead.
具体的,结合图2及图4,第一设备(如终端)通过第一接口(如WUR对应的接口)接收第二设备(如AP)发送的第一消息(WUR消息,如WUR beacon、WUR同步帧)。或,第一设备通过第二接口(如802.11主收发模块对应的接口)接收第二设备发送的第二消息(Wi-Fi消息,如Wi-Fi beacon)。第一消息和第二消息均携带第二设备当前所处的状态或者在预设时间段内所处的状态的第一指示信息。若在预设时间段内,则第一设备判断接收到的第一消息或第二消息中所携带的第一指示信息为有效的信息,即预设时间段有效;若超出预设时间段,则第一设备判断接收到的第一消息或第二消息中所携带的第一指示信息为无效的信息,即预设时间段失效。Specifically, with reference to FIG. 2 and FIG. 4 , a first device (such as a terminal) receives a first message (WUR message, such as WUR beacon, WUR message) sent by a second device (such as an AP) through a first interface (such as an interface corresponding to WUR) sync frame). Or, the first device receives the second message (Wi-Fi message, such as Wi-Fi beacon) sent by the second device through the second interface (such as the interface corresponding to the 802.11 main transceiver module). Both the first message and the second message carry the first indication information of the current state of the second device or the state of the second device within a preset time period. If it is within the preset time period, the first device determines that the received first message or the first indication information carried in the second message is valid information, that is, the preset time period is valid; if it exceeds the preset time period, Then, the first device determines that the received first message or the first indication information carried in the second message is invalid information, that is, the preset time period is invalid.
在一个可能的实现方式中,第一消息和第二消息分别使用1比特(bit)指示位指示第一指示信息,第一指示信息指示第二设备的第二接口当处于苏醒状态或休眠状态,或者,在预设时间段将处于苏醒状态、或休眠状态,以用于接收到第一消息或第二消息的第一设备,根据第一指示信息,获得第二设备的第二接口的所处状态,以便在合适的接口上与第二设备进行通信。比如,第一指示为“1”时指示第二设备将处于苏醒状态,第一指示为“0”时指示第二设备将处于休眠状态。预设时间段可以是所述第一设备和第二设备事先约定的时间段,如图14所示,从第二设备发送完第一消息或所述第二消息,到某一时间点之间的时间段;或,预设时间也可以是从某一时间点之后的时间,如图15所示,第二设备发送完第一消息或第二消息之后的时间。如果第一消息或第二消息为第二设备周期性发送的消息,如WURbeacon(WUR消息的信标帧)、WUR同步帧(携带同步信息的WUR消息)、Wi-Fi beacon(Wi-Fi消息的信标帧)等。则如图16所示,预设时间段还可以是第二设备从发送当前第一消息的时间,到下一次发送第一消息的时间;或,从发送当前第二消息的时间,到下一次发送第二消息的时间。In a possible implementation manner, the first message and the second message respectively use a 1-bit (bit) indication bit to indicate the first indication information, and the first indication information indicates that the second interface of the second device is in an awake state or a sleep state, Or, it will be in an awake state or a sleep state for a preset period of time, so that the first device that receives the first message or the second message can obtain the location of the second interface of the second device according to the first indication information. state in order to communicate with the second device on the appropriate interface. For example, when the first indication is "1", it indicates that the second device will be in an awake state, and when the first indication is "0", it indicates that the second device will be in a sleep state. The preset time period can be a time period agreed in advance by the first device and the second device. As shown in FIG. 14 , from the time when the second device sends the first message or the second message to a certain time point or, the preset time may also be a time after a certain time point, as shown in FIG. 15 , the time after the second device sends the first message or the second message. If the first message or the second message is a message periodically sent by the second device, such as WURbeacon (beacon frame of WUR message), WUR synchronization frame (WUR message carrying synchronization information), Wi-Fi beacon (Wi-Fi message the beacon frame), etc. As shown in FIG. 16 , the preset time period can also be the time when the second device sends the current first message to the time when the first message is sent next; or, from the time when the current second message is sent to the next time. The time to send the second message.
另外,第一指示信息还可以携带预设时间段的长度。比如,预设时间段为若干个aSlotTime(aSlotTime为802.11协议中重要的基础时间单位,在802.11g/n/ac协议2.4GHz频段上aSlotTime=9us)。或,预设时间段为具体的时长,如若干个毫秒(ms,millisecond),或若干个微秒(us,microsecond)等。当然,以上只是示例,第一指示信息还可以通过其他方式指示预设时间,在此不再一一举例说明。In addition, the first indication information may further carry the length of the preset time period. For example, the preset time period is a number of aSlotTimes (aSlotTime is an important basic time unit in the 802.11 protocol, and aSlotTime=9us in the 2.4GHz frequency band of the 802.11g/n/ac protocol). Or, the preset time period is a specific duration, such as several milliseconds (ms, milliseconds), or several microseconds (us, microseconds). Of course, the above is just an example, and the first indication information may also indicate the preset time in other manners, which will not be illustrated one by one here.
因此,基于前述方案,当第一设备的第二接口有上行数据需要向第二设备发送时:Therefore, based on the foregoing solution, when the second interface of the first device has uplink data that needs to be sent to the second device:
如果第一设备接收过第二设备发送的第一消息或第二消息,并且第一设备的第二接口由休眠转苏醒,并有上行数据需要向第二设备发送的时间,而没有超出第一消息或第二消息中第一指示信息所指示的预设时间,则根据第一指示信息,判断第二设备的第二接口所处的状态。If the first device has received the first message or the second message sent by the second device, and the second interface of the first device wakes up from sleep, and there is uplink data that needs to be sent to the second device, it does not exceed the first The preset time indicated by the first indication information in the message or the second message, the state of the second interface of the second device is determined according to the first indication information.
若第一指示信息指示第二设备的第二接口处于苏醒状态,或在预设时间段内将一直处于苏醒状态,不会转入休眠,则第一设备向第二设备的第二接口发送第三消息。第三消息为Wi-Fi消息,可以是PS-Poll(用于第一设备告知第二设备其已苏醒)、或请求发送帧(Request to Send,RTS)、或其他可以通知第二设备第一设备的802.11主收发模块已苏醒的消息、或上行数据等消息等。If the first indication information indicates that the second interface of the second device is in the awake state, or will remain in the awake state within a preset time period and will not go to sleep, the first device sends the second interface of the second device the first Three messages. The third message is a Wi-Fi message, which can be PS-Poll (used by the first device to inform the second device that it has woken up), or a Request to Send (RTS) frame, or other messages that can notify the second device of the first A message that the 802.11 main transceiver module of the device has woken up, or a message such as uplink data.
若第一指示信息指示第二设备的第二接口处于休眠状态或者在预设时间段内处于休眠状态,则第一设备向第二设备的第一接口发送第四消息。第四消息为WUR消息,用于唤醒第二设备的第二接口。第一设备在第二设备的第二接口苏醒后,通过第一设备的第二接口与第二设备的第二接口进行消息的传输。If the first indication information indicates that the second interface of the second device is in a dormant state or is in a dormant state within a preset time period, the first device sends a fourth message to the first interface of the second device. The fourth message is a WUR message, which is used to wake up the second interface of the second device. After the second interface of the second device wakes up, the first device transmits a message through the second interface of the first device and the second interface of the second device.
其中,如果第一设备没有接收过第二设备发送的第一消息和第二消息;或者,第一设备接收过第二设备发送的第一消息或第二消息,但是第一设备的第二接口苏醒并准备向第二设备发送上行消息的时间,已经超出第一消息或第二消息中第一指示信息所指示的第二设备的第二接口处于苏醒状态的预设时间段,则,第一设备也可以向第二设备的第二接口发送第三消息,以尝试进行数据通信。在第一间隔时间如前文中的间隔时长内,如果第一设备没有收到第二设备向所述第一设备发送的确认已收到第三消息的消息(即第三消息的回复消息),第一设备还要在第一间隔时间后向第二设备的第一接口发送第四消息。第一间隔时间可以略大于aSIFSTime(所述aSIFSTime为802.11协议中重要的基础时间单位,用于一个设备收到发给自己的合法消息后,发送回复消息所需的间隔,在802.11g/n协议2.4GHz频段上aSIFSTime=10us,而在802.11a/n/ac协议的5GHz频段上aSIFSTime=16us)。如果此时第二设备的第二接口处于苏醒状态,则第二设备接收到第一设备发送的所述第三消息后,在aSIFSTime后才能回复该消息(即发送第三消息的回复消息),如清除发送(Clear toSend,CTS)、确认帧(Acknowledge,ACK)、或其他消息。因此需要第一间隔时间大于所述aSIFSTime,以避免第一设备迅速(所述迅速是指小于或等于aSIFSTime)发送第四消息,导致第二设备的第二接口即便已经收到所述第三消息,由于信道被第一设备发送的第四消息已占用,而无法及时向第一设备发送第三消息的回复消息。Wherein, if the first device has not received the first message and the second message sent by the second device; or, the first device has received the first message or the second message sent by the second device, but the second interface of the first device The time for waking up and preparing to send an uplink message to the second device has exceeded the preset time period during which the second interface of the second device is in the waking state indicated by the first message or the first indication information in the second message, then the first The device may also send a third message to the second interface of the second device to attempt data communication. During the first interval time as the interval length above, if the first device does not receive the message sent by the second device to the first device confirming that it has received the third message (that is, the reply message for the third message), The first device also sends a fourth message to the first interface of the second device after the first interval. The first interval time can be slightly larger than aSIFSTime (the aSIFSTime is an important basic time unit in the 802.11 protocol, which is used for the interval required for a device to send a reply message after receiving a legitimate message sent to itself. In the 802.11g/n protocol aSIFSTime=10us on the 2.4GHz frequency band, and aSIFSTime=16us on the 5GHz frequency band of the 802.11a/n/ac protocol. If the second interface of the second device is in the awake state at this time, after receiving the third message sent by the first device, the second device can only reply to the message (that is, send a reply message for the third message) after aSIFSTime, Such as clear to send (Clear to Send, CTS), acknowledgement frame (Acknowledge, ACK), or other messages. Therefore, the first interval needs to be greater than the aSIFSTime, so as to prevent the first device from sending the fourth message quickly (the speed is less than or equal to aSIFSTime), which will cause the second interface of the second device to receive the third message even if , because the channel is occupied by the fourth message sent by the first device, the reply message of the third message cannot be sent to the first device in time.
需要说明的是,在本申请的示例中,以上第一设备与第二设备均为无线设备的具体实例,以下对第一设备及第二设备的结构进行说明:It should be noted that, in the examples of this application, the first device and the second device above are both specific examples of wireless devices, and the structures of the first device and the second device are described below:
如图17所示,为无线设备为图4中第一设备时的结构示意图,第一设备中包括有以下结构:As shown in FIG. 17, it is a schematic structural diagram when the wireless device is the first device in FIG. 4, and the first device includes the following structures:
第一通信模块1701,对应第一设备的第一接口;The
第二通信模块1702,对应第一设备的第二接口;The
除此之外还具有以下结构:In addition to this, it also has the following structure:
存储器1703,用于存储应用程序及应用程序运行所产生的数据;The
处理器1704,用于执行所述应用程序,以实现以下功能:The
通过第一通信模块1701对应的第一接口或第二通信模块1702对应的第二接口接收第二设备发送的第一消息和/或第二消息,所述第一消息和所述第二消息中均含有第一指示信息;判断所述第一指示信息中所指示的所述第二设备的第二接口所处的状态;如果所述第一指示信息指示所述第二设备的第二接口处于苏醒状态,则通过第二通信模块1702对应的第二接口向所述第二设备发送第三消息,所述第三消息与所述第一设备的上行数据相关,以在所述第一设备与所述第二设备之间进行数据通信;如果所述第一指示信息指示所述第二设备的第二接口处于休眠状态,则通过第一通信模块1701对应的第一接口或第二接口向所述第二设备发送第四消息,所述第四消息用于唤醒所述第二设备的第二接口,以使得所述第一设备与所述第二设备之间通过被唤醒的第二设备的第二接口进行数据通信。The first message and/or the second message sent by the second device is received through the first interface corresponding to the
其中,图17中的第一设备可以为终端,第一通信模块1701可以为WUR,第二通信模块1702可以为802.11主收发模块,第一消息可以为WUR消息,第二消息可以为Wi-Fi消息。WUR对应的第一接口用于接收WUR消息(如接收第一消息),即WUR消息的第一载荷部分,它也可以具有发送WUR消息的第一载荷部分(如发送第四消息)的功能。802.11主收发模块对应的第二接口用于收发Wi-Fi消息(如接收第二消息及发送第三消息)。The first device in FIG. 17 may be a terminal, the
需要说明的是,如果终端中的WUR对应的第一接口只能接收WUR消息的第一载荷部分,那么802.11主收发模块对应的第二接口还需要具备发送WUR消息的能力(包括第一先导部分和第一载荷部分),如果WUR对应的第一接口能够收发WUR消息的第一载荷部分,那么802.11主收发模块对应的第二接口不一定需要具备发送WUR消息的能力。It should be noted that if the first interface corresponding to the WUR in the terminal can only receive the first payload part of the WUR message, then the second interface corresponding to the 802.11 main transceiver module also needs to have the ability to send the WUR message (including the first leading part). and the first payload part), if the first interface corresponding to the WUR can send and receive the first payload part of the WUR message, the second interface corresponding to the 802.11 main transceiver module does not necessarily need to have the ability to send the WUR message.
另外,第一设备中还具有天线1705,第一通信模块1701对应的第一接口与第二通信模块1702对应的第二接口可以通过天线1705进行信号的发射和接收。In addition, the first device also has an
需要说明的是,终端上WUR对应的第一接口与802.11主收发模块对应的第二接口可以共享天线1705,在同一个频段上工作,以降低设备硬件的成本。或者,WUR对应的第一接口与802.11主收发模块对应的第二接口也可以对应不同的天线1705,特别是在两者工作在不同的频段上时,如2.4GHz频段和5GHz频段。实际产品中,终端上可以由一个片上系统(System on a Chip,SoC)实现或者集成电路实现上述各个结构的功能。It should be noted that the first interface corresponding to the WUR on the terminal and the second interface corresponding to the 802.11 main transceiver module can share the
如图18所示,无线设备为图4中第二设备时的结构示意图,第二设备中包括有以下结构:As shown in FIG. 18 , the wireless device is a schematic structural diagram of the second device in FIG. 4 , and the second device includes the following structures:
第一通信模块1801,对应第二设备的第一接口;The
第二通信模块1802,对应第二设备的第二接口;The
除此之外,还具有以下结构:In addition to this, it has the following structure:
存储器1803,用于存储应用程序及应用程序运行所产生的数据;The
处理器1804,用于执行所述应用程序,以实现以下功能:The
通过第一通信模块1801对应的第一接口或第二通信模块1802对应的第二接口向第一设备发送第一消息,和/或,通过第二通信模块1802对应的第二接口向第一设备发送第二消息;其中,所述第一消息和所述第二消息均包含第一指示信息,所述第一指示信息指示所述第二设备的第二接口所处的状态。Send the first message to the first device through the first interface corresponding to the
而处理器1804在发送第一消息和/或第二消息之前,还可以实现第一消息及第二消息的生成与解析。Before sending the first message and/or the second message, the
其中,第二设备可以为AP,第一通信模块1801可以为WUR,第二通信模块1802可以为802.11主收发模块,第一消息可以为WUR消息,第二消息可以为Wi-Fi消息。WUR对应的第一接口用于接收WUR消息(如接收第四消息),即WUR消息的第一载荷部分,它也可以具有发送WUR消息的第一载荷部分(如发送第一消息)的功能。802.11主收发模块对应的第二接口用于收发Wi-Fi消息(如发送第二消息及接收第三消息)。The second device may be an AP, the
需要说明的是,如果AP中的WUR对应的第一接口只能接收WUR消息的第一载荷部分,那么802.11主收发模块对应的第二接口还需要具备发送WUR消息的能力(包括第一先导部分和第一载荷部分),如果WUR对应的第一接口能够收发WUR消息的第一载荷部分,那么802.11主收发模块对应的第二接口不一定需要具备发送WUR消息的能力。It should be noted that if the first interface corresponding to the WUR in the AP can only receive the first payload part of the WUR message, then the second interface corresponding to the 802.11 main transceiver module also needs to have the ability to send the WUR message (including the first leading part). and the first payload part), if the first interface corresponding to the WUR can send and receive the first payload part of the WUR message, the second interface corresponding to the 802.11 main transceiver module does not necessarily need to have the ability to send the WUR message.
其中,第一消息可以为第二设备周期性的发送的WUR消息,如WUR beacon或WUR同步帧等;第二消息可以为第二设备周期性的发送的Wi-Fi消息,如Wi-Fi beacon等。The first message may be a WUR message periodically sent by the second device, such as a WUR beacon or a WUR synchronization frame, etc.; the second message may be a Wi-Fi message periodically sent by the second device, such as a Wi-Fi beacon Wait.
而第一指示信息指示第二设备的第二接口所处的状态是指,第一指示信息指示第二设备的第二接口当前所处的状态或者在预设时间段所处的状态,如一直处于苏醒状态,不会转入休眠状态,或者,一直处于休眠状态不会转入苏醒状态,或者在某个时间段处于苏醒状态或休眠状态,等等各种情况。The first indication information indicating the state of the second interface of the second device means that the first indication information indicates the current state of the second interface of the second device or the state in a preset time period, such as always In the awake state, it will not go to the dormant state, or, it has been in the dormant state and will not turn into the awake state, or it is in the awake state or the dormant state for a certain period of time, and so on.
其中,预设时间段可以是第一设备与第二设备事先约定的时间段,如从第二设备发送完第一消息和/或第二消息的时间点开始,到某个时间点之间的时间段;The preset time period may be a time period previously agreed by the first device and the second device, such as from the time point when the second device sends the first message and/or the second message to a certain time point. period;
或者,预设时间段也可以是从某个时间点之后的时间段,如从第二设备发送完第一消息和/或第二消息之后的时间段;Alternatively, the preset time period may also be a time period after a certain point in time, such as a time period after the second device sends the first message and/or the second message;
或者,如果第一消息和第二消息为第二设备周期性发送的消息,如WUR beacon、WUR同步帧及Wi-Fi beacon等,则预设时间段还可以是从第二设备发送一个第一消息的时间点开始,到发送下一个第一消息的时间点之间的时间段,或者预设时间段可以是从第二设备发送一个第二消息的时间点开始,到发送下一个第二消息的时间点之间的时间段。Or, if the first message and the second message are messages periodically sent by the second device, such as WUR beacon, WUR synchronization frame and Wi-Fi beacon, etc., the preset time period may also be a first message sent from the second device. The time period from the time point of the message to the time point when the next first message is sent, or the preset time period can be from the time point when the second device sends a second message to the time point when the next second message is sent time period between time points.
另外,第一指示信息中可以直接携带预设时间段的长度。比如,预设时间段为若干个aSlotTime;或者具体的时长,如若干个毫秒ms,或者若干个微秒us等。In addition, the length of the preset time period may be directly carried in the first indication information. For example, the preset time period is several aSlotTimes; or a specific duration, such as several milliseconds ms, or several microseconds us, and so on.
另外,第二设备中还具有天线1805,第一通信模块1801对应的第一接口与第二通信模块1802对应的第二接口可以通过天线1805进行信号的发射和接收。In addition, the second device also has an
需要说明的是,AP上WUR对应的第一接口与802.11主收发模块对应的第二接口可以共享天线1805,在同一个频段上工作,以降低设备硬件的成本。或者,WUR对应的第一接口与802.11主收发模块对应的第二接口也可以对应不同的天线1705,特别是在两者工作在不同的频段上时,如2.4GHz频段和5GHz频段。实际产品中,AP上可以由一个片上系统(Systemon a Chip,SoC)实现或者集成电路实现上述各个结构的功能。It should be noted that the first interface corresponding to the WUR on the AP and the second interface corresponding to the 802.11 main transceiver module can share the
由此,在一个基本服务集中,AP可以周期性的向其连接的终端发送WUR消息和/或Wi-Fi消息,以通知各个终端AP的802.11主收发模块对应的接口当前所处的状态或者在预设时间段所处的状态,如苏醒状态或休眠状态,进而这个AP对应的终端均会了解到AP的802.11主收发模块对应的接口处于苏醒状态还是休眠状态,并做出相应的通信响应。例如,任意一个终端在了解到AP的802.11主收发模块对应的接口处于苏醒状态时,终端可以直接向AP发送与上行数据相关的消息,而在了解到AP的802.11主收发模块对应的接口处于休眠状态时,终端可以向AP发送唤醒帧,进而唤醒AP的802.11主收发模块对应的接口,再向AP发送与上行数据相关的消息,而AP的802.11主收发模块对应的接口被唤醒之后,AP向终端发送的Wi-Fi消息中会指示AP的802.11主收发模块对应的接口处于苏醒状态,则终端通过判断接收到的指示信息中AP的802.11主收发模块对应的接口处于苏醒状态,即可直接向AP发送与上行数据相关的消息,达到有效唤醒AP的802.11主收发模块对应的接口的目的,实现有效通信,不会出现由于某个终端已经唤醒AP的802.11主收发模块对应的接口,而其他终端发送的唤醒帧无法被AP处于休眠状态的WUR接收到,导致其他终端无法获知AP的802.11主收发模块对应的接口已经处于苏醒状态进的情况,避免通信失败。Therefore, in a basic service set, the AP can periodically send WUR messages and/or Wi-Fi messages to its connected terminals to notify each terminal of the current state of the interface corresponding to the 802.11 main transceiver module of the AP or the The state of the preset time period, such as the awake state or the dormant state, and then the terminal corresponding to the AP will know whether the interface corresponding to the AP's 802.11 main transceiver module is in the awake state or the dormant state, and make a corresponding communication response. For example, when any terminal learns that the interface corresponding to the 802.11 main transceiver module of the AP is in the awake state, the terminal can directly send the message related to the uplink data to the AP, and when it learns that the interface corresponding to the 802.11 main transceiver module of the AP is dormant In the state, the terminal can send a wake-up frame to the AP, and then wake up the interface corresponding to the 802.11 main transceiver module of the AP, and then send the message related to the uplink data to the AP. After the interface corresponding to the 802.11 main transceiver module of the AP is awakened, the AP sends the The Wi-Fi message sent by the terminal will indicate that the interface corresponding to the 802.11 main transceiver module of the AP is in the awake state, and the terminal can directly send the message to the terminal by judging that the interface corresponding to the AP's 802.11 main transceiver module in the received indication information is in the awake state. The AP sends messages related to uplink data to effectively wake up the interface corresponding to the 802.11 main transceiver module of the AP, and achieve effective communication. There is no reason that a terminal has woken up the interface corresponding to the AP's 802.11 main transceiver module. The sent wake-up frame cannot be received by the WUR of the AP in the dormant state, so that other terminals cannot know that the interface corresponding to the AP's 802.11 main transceiver module has been in the awake state, thereby avoiding communication failure.
而在终端一侧通过判断AP发送的消息来判断AP的802.11主收发模块对应的接口所处的状态,进而只发送Wi-Fi消息或者WUR消息,即可有效唤醒AP的802.11主收发模块对应的接口,并实现通信,从而减少了终端的开销。On the terminal side, the state of the interface corresponding to the 802.11 main transceiver module of the AP is judged by judging the message sent by the AP, and then only the Wi-Fi message or WUR message is sent to effectively wake up the interface corresponding to the 802.11 main transceiver module of the AP. interface, and implement communication, thereby reducing the overhead of the terminal.
其中,至少1个图17所示的第一设备及一个图18所示的第二设备组成一个基本服务集,如图17中所示。Wherein, at least one first device shown in FIG. 17 and one second device shown in FIG. 18 form a basic service set, as shown in FIG. 17 .
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments may be referred to each other.
本申请各实施例中所述的接口可以是逻辑概念(如一种逻辑上的功能单元/模块),也可以是物理实体(如对应的通信模块所提供的通信接口)。所涉及的各种接口(如:第一接口、第二接口)所实现的功能均是通过对应的物理实体如无线收发器或唤醒接收机或唤醒发射机来实现的,故本申请各实施例中所述的由第二接口所执行的步骤均可以被替换为由无线收发器(如WiFi通信模块,或称为WiFi main radio或802.11主收发模块)来执行;本申请各实施例中所述的由AP/终端的第一接口所执行的发送步骤均可以被替换为由AP/终端的唤醒发射机来执行(在另一种实施例中,由于无线收发器可以具备wifi信号的收发和WUR信号的发送这两种功能,故所述的由AP/终端的第一接口所执行的步骤也可以被替换为由AP/终端的无线收发器来执行);本申请各实施例中所述的由AP/终端的第一接口所执行的接收步骤均可以被替换为由终端的唤醒接收器来执行。若WUR模块同时集成了WUR信号的接收和发送功能,则WUR模块可以称之为唤醒收发器,上述唤醒发射机或唤醒接收机均可以被替换为唤醒收发器。The interface described in the embodiments of this application may be a logical concept (eg, a logical functional unit/module), or may be a physical entity (eg, a communication interface provided by a corresponding communication module). The functions implemented by the various interfaces involved (such as the first interface and the second interface) are all implemented by corresponding physical entities, such as a wireless transceiver or a wake-up receiver or a wake-up transmitter. Therefore, the various embodiments of this application are implemented. The steps performed by the second interface described in can be replaced by a wireless transceiver (such as a WiFi communication module, or WiFi main radio or 802.11 main transceiver module); The sending steps performed by the first interface of the AP/terminal can be replaced by the wake-up transmitter of the AP/terminal to perform (in another embodiment, since the wireless transceiver can be equipped with wifi signal transceiver and WUR The two functions of signal transmission, so the steps performed by the first interface of the AP/terminal can also be replaced by the wireless transceiver of the AP/terminal); the steps described in the embodiments of this application The receiving steps performed by the first interface of the AP/terminal can all be replaced by being performed by the wake-up receiver of the terminal. If the WUR module integrates the functions of receiving and transmitting the WUR signal at the same time, the WUR module can be called a wake-up transceiver, and the above-mentioned wake-up transmitter or wake-up receiver can be replaced by a wake-up transceiver.
本发明各方法实施例之间相关部分可以相互参考;各装置实施例所提供的装置用于执行对应的方法实施例所提供的方法,故各装置实施例可以参考相关的方法实施例中的相关部分进行理解。本发明各实施例之间相关部分均可以相互参考。本发明各装置实施例中给出的装置结构图仅示出了对应的装置的简化设计。在实际应用中,该装置可以包含任意数量的发射机,接收机,收发器,处理器,存储器等,以实现本发明各装置实施例中该装置所执行的功能或操作,而所有可以实现本申请的装置都在本申请的保护范围之内。本发明各实施例中提供的消息/帧/指示信息、模块或单元等的名称仅为示例,可以使用其他名称,只要消息/帧/指示信息、模块或单元等的作用相同即可。The relevant parts of the various method embodiments of the present invention may refer to each other; the apparatus provided by each apparatus embodiment is used to execute the method provided by the corresponding method embodiment, so each apparatus embodiment may refer to the relevant method embodiments in the relevant method embodiments. partially understood. The relevant parts of the various embodiments of the present invention may refer to each other. The device structure diagrams given in each device embodiment of the present invention only show a simplified design of the corresponding device. In practical applications, the device may include any number of transmitters, receivers, transceivers, processors, memories, etc., so as to realize the functions or operations performed by the device in each device embodiment of the present invention, and all of them can realize this The devices applied for are all within the protection scope of the present application. The names of messages/frames/indication information, modules or units provided in the embodiments of the present invention are only examples, and other names may be used as long as the messages/frames/indication information, modules or units have the same functions.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
Claims (16)
Applications Claiming Priority (5)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2016110021605 | 2016-11-14 | ||
| CN201611002160 | 2016-11-14 | ||
| CN201710221939 | 2017-04-06 | ||
| CN2017102219394 | 2017-04-06 | ||
| PCT/CN2017/095091 WO2018086387A1 (en) | 2016-11-14 | 2017-07-31 | Communication method and wireless device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109314926A CN109314926A (en) | 2019-02-05 |
| CN109314926B true CN109314926B (en) | 2020-08-07 |
Family
ID=62109124
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201780037944.8A Active CN109314926B (en) | 2016-11-14 | 2017-07-31 | A communication method and wireless device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109314926B (en) |
| WO (1) | WO2018086387A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120091393A (en) * | 2023-11-24 | 2025-06-03 | 荣耀终端股份有限公司 | Control method and related device |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102300293A (en) * | 2010-06-25 | 2011-12-28 | 思科技术公司 | Automating radio enablement to facilitate power saving |
| CN104737597A (en) * | 2012-10-24 | 2015-06-24 | 高通股份有限公司 | Method and apparatus using an ultra low power signal with scheduled power save modes |
| CN104756560A (en) * | 2012-10-24 | 2015-07-01 | 高通股份有限公司 | Near passive receivers with regular PS mode and no ULP (AP is not aware of the receiver/circuit mode) |
| CN104904276A (en) * | 2012-11-28 | 2015-09-09 | 高通股份有限公司 | Systems and methods for conserving power using restricted access windows |
| CN105309012A (en) * | 2013-10-18 | 2016-02-03 | 华为技术有限公司 | Method, device and system for waking up access point device |
| CN108064073A (en) * | 2016-11-09 | 2018-05-22 | 华为技术有限公司 | Awakening method, website and access point |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5025356B2 (en) * | 2007-07-10 | 2012-09-12 | キヤノン株式会社 | COMMUNICATION SYSTEM, INFORMATION PROCESSING DEVICE, AND COMMUNICATION CONTROL METHOD |
| US20130176921A1 (en) * | 2012-01-05 | 2013-07-11 | Stmicroelectronics, Inc. | Vht txop power save |
| US9560587B2 (en) * | 2012-11-05 | 2017-01-31 | Qualcomm Incorporated | Power saving in soft access point devices |
| US10231182B2 (en) * | 2015-03-12 | 2019-03-12 | Intel IP Corporation | Techniques for implicit indication of trigger frame start times |
-
2017
- 2017-07-31 CN CN201780037944.8A patent/CN109314926B/en active Active
- 2017-07-31 WO PCT/CN2017/095091 patent/WO2018086387A1/en not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102300293A (en) * | 2010-06-25 | 2011-12-28 | 思科技术公司 | Automating radio enablement to facilitate power saving |
| CN104737597A (en) * | 2012-10-24 | 2015-06-24 | 高通股份有限公司 | Method and apparatus using an ultra low power signal with scheduled power save modes |
| CN104756560A (en) * | 2012-10-24 | 2015-07-01 | 高通股份有限公司 | Near passive receivers with regular PS mode and no ULP (AP is not aware of the receiver/circuit mode) |
| CN104904276A (en) * | 2012-11-28 | 2015-09-09 | 高通股份有限公司 | Systems and methods for conserving power using restricted access windows |
| CN105309012A (en) * | 2013-10-18 | 2016-02-03 | 华为技术有限公司 | Method, device and system for waking up access point device |
| CN108064073A (en) * | 2016-11-09 | 2018-05-22 | 华为技术有限公司 | Awakening method, website and access point |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2018086387A1 (en) | 2018-05-17 |
| CN109314926A (en) | 2019-02-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR102456846B1 (en) | Method for discovering access point in wireless local area network and apparatus for the same | |
| KR101799370B1 (en) | Methods and apparatus for low power wake up signal and operations for wlan | |
| US11601885B2 (en) | Channel access for multi-user (MU) wake-up signal transmission by using FDMA scheme | |
| CN103858508B (en) | Method based on service window scheduling transceiving data in Wireless LAN system and the equipment for supporting this method | |
| US20240373402A1 (en) | Communication method and apparatus, terminal and network device | |
| CN107787029B (en) | Method and device for transmitting wake-up frame in wireless local area network | |
| RU2606511C1 (en) | Method of transmitting/receiving information associated with association identifier, in wireless communication system and corresponding device | |
| CN108616968B (en) | Method and apparatus for transmitting frame | |
| US9161305B2 (en) | Method for power save mode operation in wireless local area network and apparatus for the same | |
| KR102491171B1 (en) | Operation method of communication node supporting low power mode in wireless local area network | |
| US11134444B2 (en) | Method and apparatus for low power communication in communication system | |
| CN108462985B (en) | Communication mode switching method and device | |
| CN116456438A (en) | Method of operating a communication node supporting a low power mode | |
| KR20190105069A (en) | Wireless communication method and wireless communication terminal using wake-up radio | |
| JP2015532571A (en) | Method and apparatus using ultra-low power signal with scheduled power saving mode | |
| US9357489B2 (en) | Method for power save mode operation in wireless local area network and apparatus for the same | |
| CN112105075B (en) | Wake-up frame sending method, method and device for sending first frame after node wakes up | |
| WO2018077007A1 (en) | Frame transmission method, apparatus, and system | |
| US20240357501A1 (en) | Wireless communication method, terminal device, and network device | |
| CN108633099A (en) | The indicating means and equipment of channel access | |
| CN108377534A (en) | Awakening method, receiving device and sending ending equipment | |
| KR20190062318A (en) | Operation method of communication node supporting low power mode in wireless local area network | |
| CN107801232B (en) | Method and apparatus for transmitting data | |
| WO2018171591A1 (en) | Method and apparatus for waking up device | |
| CN109314926B (en) | A communication method and wireless device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |