[go: up one dir, main page]

WO2018054169A1 - Channel switching method and device - Google Patents

Channel switching method and device Download PDF

Info

Publication number
WO2018054169A1
WO2018054169A1 PCT/CN2017/095266 CN2017095266W WO2018054169A1 WO 2018054169 A1 WO2018054169 A1 WO 2018054169A1 CN 2017095266 W CN2017095266 W CN 2017095266W WO 2018054169 A1 WO2018054169 A1 WO 2018054169A1
Authority
WO
WIPO (PCT)
Prior art keywords
sta
receiving address
key
wur frame
channel
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.)
Ceased
Application number
PCT/CN2017/095266
Other languages
French (fr)
Chinese (zh)
Inventor
程勇
方平
庞高昆
丁志明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201780036640.XA priority Critical patent/CN109314925B/en
Publication of WO2018054169A1 publication Critical patent/WO2018054169A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

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

Definitions

  • the embodiments of the present invention relate to the field of wireless communications technologies, and in particular, to a method and a device for channel switching.
  • a Basic Service Set (BSS) for Wireless Fidelity (Wi-Fi) networks defined in the 802.11 standard of the Institute of Electrical and Electronics Engineers (IEEE) includes an access point ( Access Point, AP) and one or several Wi-Fi stations (Station, STA).
  • the user can select and set the frequency band and channel of the AP.
  • the working frequency band is 2.4 GHz and the working channel is Channel 11.
  • a BSS's working channel may need to switch from one channel to another.
  • the working environment of a wearable Wi-Fi network may change frequently, which may result in the wearable Wi-Fi network needing to frequently switch working channels. If the existing working channel of a BSS is seriously interfered, the AP needs to switch the working channel and the associated STA in time to ensure that the message can be completed in time when there is a message or emergency message between the AP and the STA. The transmission of the message.
  • the channel switch of the BSS can be automatically completed by the AP.
  • the process of working channel switching is defined in the IEEE 802.11 standard.
  • the AP can notify the AP associated STA by broadcasting a beacon frame or an action frame, for example, by using a channel switch announcement element (Channel Switch Announcement Element).
  • the STA's Wi-Fi interface may be in most of the time. Deep sleep state (such as receiving transmitter off state), can not receive messages. Since the STA sleeps (such as the receiving transmitter of the STA's main communication interface is turned off), the Wi-Fi interfaces of all the STAs in one BSS may not be in the working state (such as the receiving state) at the same time. In this way, if the communication environment changes and the AP decides to switch the working channel, the AP may not be able to directly broadcast the Channel Switch Announcement Element through the Wi-Fi interface.
  • WUR Wake-up Radio/Receiver
  • the AP first passes the WUR frame to indicate that the auxiliary wake-up interface of all STAs associated with it wakes up the Wi-Fi interface; then broadcasts the working channel switching indication message through the Wi-Fi interface.
  • the AP first wakes up the Wi-Fi interface of its associated STA through the WUR frame; then sends a working channel switching indication message to the Wi-Fi interface.
  • the STA; the AP sends a working channel switching indication message to its associated STAs one by one.
  • the embodiment of the present invention provides a method and a device for channel switching, which can send a channel switching indication message of a main communication interface (such as a Wi-Fi interface) to an associated STA in time by sending a WUR frame, thereby avoiding the AP sending a channel. Switching the indication message and awakening the operation of the STA's main communication interface saves the STA's power.
  • a main communication interface such as a Wi-Fi interface
  • an embodiment of the present application provides a method for channel switching.
  • the method includes: the AP sends a WUR frame, where the WUR frame includes a first receiving address, a channel identifier, and check information.
  • the first receiving address includes a broadcast address or a bit sequence of the auxiliary wake-up interface of the at least one STA, where the first receiving address is generated by the AP according to at least a Time Synchronization Function (TSF) and a key; the key is an AP and At least one STA has agreed or negotiated information, each STA of at least one STA has at least one auxiliary wake-up interface and one main communication interface;
  • the WUR frame is used to indicate that the STA of the auxiliary wake-up interface corresponding to the first received address is The working channel of the STA's main communication interface is switched to the channel corresponding to the channel identifier; the first receiving address is used to indicate the target receiver of the WUR frame; the check information is used by the target receiver of the WUR frame to use the check information
  • the AP sends a channel switching indication message of the primary communication interface to the associated STA in time by sending the WUR frame.
  • the primary communication interface of the STA may not use the channel switching indication message sent by the AP only.
  • the channel used by the communication interface for subsequent communication is awakened, but only needs to be woken up when it needs to perform data transmission with the main communication interface of the AP, and according to the channel switching indication message received by the WUR interface of the previous STA.
  • the correct channel is selected to communicate with the AP's main communication interface, thereby avoiding the AP's operation of waking up the STA's main communication interface by transmitting a channel switching indication message, thereby saving power.
  • the receiving address and the check information may be carried in the WUR frame, and the target receiver is indicated by receiving the address, and further, the AP and the STA may reduce the receiving and processing the repeated channel switching indication by using the periodically updated receiving address.
  • the probability of the message is verified by the verification information to verify the correctness of the content in the WUR frame, etc., so that the probability of receiving and processing the channel switching indication message maliciously replayed by the attacker can be reduced, so that the STA can save more energy.
  • the first receiving address further includes: information used to indicate a basic service set BSS in which the AP is located.
  • the STA can determine whether the sending end of the WUR frame is in a BSS with itself, so as to further determine whether the target recipient is itself or not, and the possibility that the WUR frame is correctly received is improved. It is also possible to reduce the STA receiving unrelated WUR frames and reducing the power consumption of the STA.
  • the verification information includes a authenticity check code MIC.
  • the STA may reduce the possibility of being attacked.
  • the verification information is determined based at least on the working channel and key of the primary communication interface.
  • an embodiment of the present application provides a channel switching method.
  • the STA has at least one auxiliary wake-up interface and one main communication interface.
  • the method specifically includes: the STA receives the WUR frame sent by the AP through the auxiliary wake-up interface, where the WUR frame includes a first receiving address, a channel identifier, and check information.
  • the first receiving address includes a broadcast address of the auxiliary wake-up interface of the STA or a bit sequence, and the first receiving address is generated by the AP according to at least a time synchronization function TSF and a key, and the key is information that the AP and the STA have agreed or negotiated.
  • the WUR frame is used to indicate that the STA where the auxiliary wake-up interface corresponding to the first receiving address is located switches the working channel of the STA's main communication interface to the channel corresponding to the channel identifier, and the first receiving address is used to indicate the target receiver of the WUR frame; Generating a second receiving address according to the TSF and the key; when the first receiving address matches the second receiving address, the STA uses the verification information to verify the correctness of the content including the channel identifier in the WUR frame; after the verification is passed, The STA records the channel identifier carried in the WUR frame, so that when the AP and the STA need to communicate, the STA's main communication interface communicates with the AP through the channel corresponding to the recorded channel identifier.
  • the channel switching indication message of the primary communication interface is determined by the received WUR frame, which avoids the operation of the AP to wake up the STA's primary communication interface because the channel switching indication message is sent, thereby saving power.
  • the WUR frame carries the receiving address and the check information, and the target receiver is indicated by the receiving address, and the AP and the STA periodically update the receiving address, so that the probability of receiving and processing the repeated channel switching indication message can be reduced, and the verification is performed.
  • the information to verify the correctness and/or authenticity of the content in the WUR frame can reduce the probability of receiving and processing the channel switching indication message maliciously replayed by the attacker, so that the STA can save more energy.
  • the foregoing STA generates the second receiving address according to the time synchronization function TSF and the key, including: the STA subtracts the high M bit of the difference of 2 N according to the TSF, and the key is obtained by a hash operation or an encryption operation.
  • the time synchronization operation means that the AP sends TSF information to the STA, so that the TSF information of the STA is the same as the TSF information of the AP.
  • the first receiving address further includes: information used to indicate a basic service set BSS where the AP is located.
  • the verification information includes a authenticity check code MIC.
  • the verification information is determined based at least on the working channel and key of the primary communication interface.
  • an embodiment of the present application provides an AP.
  • the AP specifically includes: a transceiver, configured to send a WUR frame, where the WUR frame includes a first receiving address, a channel identifier, and check information, where the first receiving address includes a broadcast address of the auxiliary wake-up interface of the at least one STA or a a bit sequence, the first receiving address is generated by the AP according to at least a time synchronization function TSF and a key, the key being information that the AP has agreed or negotiated with the at least one STA, the at least one Each STA in the STA has at least one auxiliary wake-up interface and one main communication interface, and the WUR frame is used to indicate that the STA where the auxiliary wake-up interface corresponding to the first receiving address is located will work on the STA's main communication interface.
  • the channel is switched to a channel corresponding to the channel identifier, the first receiving address is used to indicate a target receiver of the WUR frame, and the verification information is used by a target receiver of the WUR frame to use the verification information.
  • the processor configured to use the channel corresponding to the channel identifier and the at least one STA communication.
  • the first receiving address according to the time synchronization function TSF and the key generation includes:
  • the first receiving address is obtained by subtracting the high M bit of the difference of 2 N according to the TSF and the key is obtained by a hash operation or an encryption operation, wherein N and M are integers, and N and M are times by the AP and the STA.
  • the time synchronization operation means that the AP sends TSF information to the STA, so that the TSF information of the STA is the same as the TSF information of the AP.
  • the first receiving address further includes: information used to indicate a basic service set BSS in which the AP is located.
  • the verification information includes a authenticity check code MIC.
  • the verification information is determined based at least on a working channel of the primary communication interface and the key.
  • the embodiment of the present application provides a STA, where the STA has at least one auxiliary wake-up interface and one main communication interface, and the method includes: the auxiliary wake-up interface, configured to receive an AP sending a WUR frame, the WUR frame includes a first receiving address, a channel identifier, and check information, where the first receiving address includes a broadcast address or a bit sequence of the STA's auxiliary wake-up interface, and the first receiving address is
  • the AP is generated according to at least a time synchronization function TSF and a key, where the key is information that the AP has agreed or negotiated with the STA, and the WUR frame is used to indicate an auxiliary corresponding to the first receiving address.
  • the STA where the awake interface is located switches the working channel of the STA's main communication interface to the channel corresponding to the channel identifier, the first receiving address is used to indicate the target receiver of the WUR frame, and the processor is configured to The TSF and the key generate a second receiving address; the processor is further configured to: when the first receiving address matches the second receiving address, use the verification information to Accuracy and / or authenticity WUR frame content comprises at least the channel identifier is verified; the primary communication interface used after the verification by the channel identifier corresponding to a channel to communicate with the AP.
  • the STA generates the second receiving address according to the time synchronization function TSF and the key, including:
  • the time synchronization operation means that the AP sends TSF information to the STA, so that the TSF information of the STA is the same as the TSF information of the AP.
  • the first receiving address further includes: information used to indicate a basic service set BSS in which the AP is located.
  • the verification information includes a authenticity check code MIC.
  • the verification information is determined based at least on a working channel of the primary communication interface and the key.
  • a non-volatile storage medium is provided.
  • One or more program codes are stored in a non-volatile storage medium.
  • the processor of the AP in the seventh aspect executes the program code, the AP performs the A method for channel switching in one aspect and various alternatives of the second aspect.
  • another non-volatile storage medium in which one or more program codes are stored in a non-volatile storage medium.
  • the processor of the STA in the seventh aspect executes the program code, the STA performs, for example, The second aspect and the method for channel switching in various alternatives of the second aspect.
  • a computer program product is provided.
  • the AP sends the WUR frame to send the channel switching indication message of the main communication interface to the associated STA in time, thereby avoiding the operation of the AP to wake up the STA's main communication interface because the channel switching indication message is sent, thereby saving the STA.
  • Electrical energy may be carried in the WUR frame, and the target receiver is indicated by the receiving address, and the AP and the STA reduce the probability of receiving and processing the repeated channel switching indication message by periodically updating the receiving address.
  • the verification information is used to verify the correctness of the content in the WUR frame, etc., and the probability of receiving and processing the channel switching indication message maliciously replayed by the attacker is reduced, so that the STA can save more energy.
  • Figure 1 is a schematic diagram of a scene
  • FIG. 2 is a schematic diagram of signaling interaction of a channel switching method according to an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of a WUR frame according to an embodiment of the present application.
  • Figure 4 is an example provided by an embodiment of the present application.
  • FIG. 5 is another example provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of signaling interaction of another channel switching method according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of an access point according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a station according to an embodiment of the present application.
  • the method and device for channel switching provided by the embodiments of the present application are applied to channel switching between an AP and an STA in a wireless communication process.
  • FIG. 1 is a schematic diagram of a scene.
  • the Wi-Fi network includes: an AP 10 and at least one STA 20.
  • the STA 20 includes a main communication interface (such as an interface provided by a Wi-Fi module) and an auxiliary wake-up interface (such as an interface provided by the WUR module).
  • the auxiliary wake-up interface in the STA After receiving the wake-up frame sent by the AP, the auxiliary wake-up interface in the STA sends a wake-up signal to the primary communication interface in the STA, and activates the primary communication interface in the sleep mode, so that the primary communication interface receives the Wi-Fi from the AP. data. That is to say, when the main communication module of the STA 20 sleeps (for example, the transmitter is turned off), the WUR frame can be received through the auxiliary wake-up interface.
  • the WUR frame is a frame that the WUR interface can recognize and receive.
  • the embodiment of the present application discloses a method and device for channel switching.
  • the AP sends the WUR frame to send the channel switching indication message of the main communication interface to the associated STA in time, which avoids the operation of the AP to wake up the STA's main communication interface because the channel switching indication message is sent, thereby saving the STA's power.
  • the WUR frame carries the receiving address and the check information, indicates the target receiver by receiving the address, periodically replaces the receiving address used by the channel switching between the AP and the STA, and verifies the correctness of the content in the WUR frame by using the check information. Therefore, the STA can reduce the probability of receiving and processing the repeated channel switching indication message, and can also reduce the probability of receiving and processing the channel switching indication message maliciously replayed by the attacker, so that the STA can save more energy.
  • the STA in the embodiment of the present application may be an electronic terminal installed with a Wi-Fi module, and the electronic terminal may perform data interaction with the AP through the Wi-Fi network.
  • the electronic terminal can be a mobile phone, a PC, a handheld device, a pad, or the like.
  • the AP in the embodiment of the present application is not limited to a conventional access point, and the AP in the embodiment of the present application may be any communication device having an access point function, and the AP may perform data interaction with the STA through the Wi-Fi network.
  • the AP can In the case of a Wi-Fi router, the STA can be a user terminal such as a mobile phone or a computer; when the user terminal such as a mobile phone or a computer is set to the Wi-Fi hotspot mode and the Wi-Fi network is provided for other terminals, the mobile terminal or the user terminal such as a computer
  • the terminal connected to the Wi-Fi network provided by the AP is the STA.
  • the AP in the embodiment of the present application may be a user terminal such as a mobile phone or a computer
  • the STA may be a wearable device connected to a user terminal such as a mobile phone or a computer.
  • the embodiment of the present application provides a channel switching method. As shown in FIG. 2, the method specifically includes the following steps:
  • the AP sends a WUR frame, where the WUR frame includes a first receiving address, a channel identifier, and check information.
  • the first receiving address includes a broadcast address or a bit sequence of the auxiliary wake-up interface of the at least one STA, and the first receiving address is generated by the AP according to at least a time synchronization function TSF and a key, and the key is that the AP has agreed or negotiated with the at least one STA.
  • the STA of each of the at least one STA has at least one auxiliary wake-up interface and one main communication interface, and the WUR frame is used to indicate that the STA where the auxiliary wake-up interface corresponding to the first receiving address is located is the working channel of the STA's main communication interface.
  • the first receiving address is used to indicate the target receiver of the WUR frame
  • the verification information is used by the target receiver of the WUR frame to verify the correctness of the content including at least the channel identifier in the WUR frame by using the verification information. And/or authenticity is verified.
  • the STA's primary communication interface may be in a deep sleep state (eg, the transmitter is off) for most of the time and cannot receive messages. Since the STA sleeps (eg, the receiving transmitter of the STA's primary communication interface is turned off), the primary communication interfaces of all STAs within a BSS may not be woken up at the same time (eg, receiving state).
  • the AP determines that it is necessary to switch the working channel so as to be able to maintain the connection with the STA, the AP may not be able to directly broadcast the channel switch announcement message (Channel Switch Announcement Element).
  • the AP needs to switch the working channel and the STA associated with the notification in time to ensure that the message can be completed in time when the STA has a message or an urgent message needs to be sent to the AP.
  • the AP may send a WUR frame to at least one STA associated with the AP to notify its replaced channel.
  • FIG. 3 is an example of a WUR frame structure.
  • the WUR frame may include a legacy 802.11 Preamble, a Wake-up Preamble, a Control Info, a Network ID, a Receive Address, and a Master.
  • the channel ID and verification information of the communication interface may include a legacy 802.11 Preamble, a Wake-up Preamble, a Control Info, a Network ID, a Receive Address, and a Master.
  • the traditional 802.11 preamble is optional.
  • the legacy 802.11 preamble portion can be used for backward compatibility, so that the conventional Wi-Fi device can judge that the frame currently being transmitted is a Wi-Fi frame, thereby selecting a corresponding channel listening decision threshold and backoff time.
  • Control Info can be used to indicate the frame type of the WUR frame and other information, for example, indicating that the WUR frame is a channel switch indication message.
  • the receiving address is a broadcast address or a bit sequence of the auxiliary wake-up interface of at least one STA that is in the same basic service set as the AP, and is used to indicate a target receiver of the WUR frame, wherein the target recipient of the WUR frame may be a basic All STAs in the Service Set (BSS) with an auxiliary wake-up interface.
  • BSS Service Set
  • the network ID is optional.
  • the network identifier may be part of a receiving address; the network identifier may be identifier information of a basic service set, and is used to indicate an AP and a basic service set where the STA is located, for example, a BSS color, a BSSID, or Hashed BSSID or compressed BSSID and more.
  • the verification information may be a message integrity code (MIC) or a combination of a message authenticity check code and a frame check sequence (FCS); the check object of the check information includes the primary communication
  • the new working channel of the interface may also include control information, network identification, and receiving address.
  • the verification information includes both the MIC and the FCS
  • the MIC is used to help the receiving end verify the authenticity of the check object in the WUR frame
  • the FCS is used to help the receiver verify the correctness of the check object in the WUR frame, that is, check
  • the content of the received WUR has no error during the transmission
  • the verification information only includes the MIC the MIC is used to help the receiving end verify the authenticity and correctness of the check object in the WUR frame.
  • the wake-up preamble, control information, network identification, receiving address, working channel identification and verification information of the main communication interface are On-Off Keying (OOK) modulation.
  • OOK On-Off Keying
  • the STA generates a second receiving address according to the TSF and the key.
  • the STA needs to receive the WUR frame using a second receiving address generated according to the TSF and a key negotiated with the AP. Specifically, the STA determines whether the target receiving address of the WUR frame is itself by matching the second receiving address with the first receiving address. When the second receiving address matches the first receiving address, it is determined that the target recipient of the WUR frame is itself. When the second receiving address does not match the first receiving address, it is determined that the target recipient of the WUR frame is not itself. When the STA determines that the target recipient of the WUR frame is not itself, the processing of the WUR frame is ended.
  • the second receiving address of the STA and the first receiving address of the AP need to be generated synchronously.
  • the synchronous generation means that the method and time of the STA generating the second receiving address are the same as the method and time for the AP to generate the first receiving address.
  • the same generation time means that the STA determines the generation time of the second reception address by using the TSF of the STA, and the AP determines the generation time of the first reception address by using the TSF of the AP, and both the STA and the AP assume that their TSFs are the same (the actual Their TSF may be different).
  • the second receiving address of the STA and the first receiving address of the AP may be periodically generated and updated, and the period may be greater than a difference between a time when the STA generates the second receiving address and a moment when the AP generates the first receiving address, which is smaller than Equal to the minimum frequency of channel switching.
  • the AP generates a first receiving address that needs to be used for the next channel switching after each time the WUR frame is sent, and the STA generates the next receiving and carrying channel switching information every time after receiving the WUR frame.
  • the second receiving address is required for the WUR frame, and the STA and the AP generate the same method for receiving the address.
  • the time synchronization operation means that the AP sends TSF information to the STA, so that the TSF information of the STA is the same as the TSF information of the AP.
  • the STA may generate a second receiving address before receiving the WUR frame for channel switching so as to be able to correctly receive the WUR frame.
  • the STA uses the verification information to verify the correctness of the content including at least the channel identifier in the WUR frame.
  • the STA After determining that the target receiver of the WUR frame is itself, the STA needs to verify the authenticity and/or correctness of the WUR frame. Specifically, the check object in the WUR frame is verified by the check information carried in the WUR frame.
  • the STA uses the MIC to verify the authenticity of the verification object in the WUR frame, and verifies the correctness of the verification object in the WUR frame through the FCS, that is, checks the received Inside WUR Whether there is any error in the transmission process; when the verification information only includes the MIC, the STA verifies the authenticity and correctness of the check object in the WUR frame through the MIC.
  • the AP communicates with the STA by using a channel corresponding to the channel identifier.
  • the STA may save the channel identifier in the WUR frame.
  • the STA can wake up its main communication interface, and the STA uses the channel corresponding to the latest channel identifier saved when communicating with the main communication interface of the AP through the wake-up main communication interface of the STA.
  • the AP performs data transmission and reception.
  • the STA may receive multiple WUR frames for channel switching within a period of time. If the STA has received a correct and true WUR frame for channel switching, the STA will no longer receive and process other WUR frames for channel switching during that time period; wherein the time period refers to the AP
  • the minimum time interval for channel switching twice in succession may be 67.11 seconds.
  • the working channel used by the STA's main communication interface is the working channel of the main communication interface recorded by the STA, that is, the working channel carried in the WUR frame for channel switching.
  • the working channel switching of the main communication interface may be performed multiple times, and the STA needs to select the channel corresponding to the channel identifier of the main communication interface saved by the last channel switching and the AP. Communication.
  • the timing of receiving the address generation may also be that after the AP sends the WUR frame for channel switching, the receiving address or a one to be carried in the next channel switching message (eg, the WUR frame carrying the channel identifier) is generated.
  • the bit sequence correspondingly, after receiving a correct and true channel switching indication message, the STA may generate a receiving address or a bit sequence used when receiving the next WUR frame for channel switching.
  • the method of newly generating a receiving address by the STA is the same as the method of newly generating a receiving address by the AP.
  • the channel switching indication message can make the STA more energy efficient.
  • the receiving address for the first channel switching between the AP and the STA may be sent by the AP to the STA during or after the AP establishes a secure connection with the STA, or during the establishment of a secure connection between the AP and the STA. Or when completed, the AP and the STA each generate a receiving address for the first channel switching.
  • the AP sends the WUR frame to send the channel switching indication message of the main communication interface to the associated STA in time, thereby avoiding the operation of the AP to wake up the STA's main communication interface because the channel switching indication message is sent, thereby saving the STA. Electrical energy.
  • the WUR frame carries the receiving address and the check information, indicates the target receiver by receiving the address, and periodically replaces the receiving address used by the AP and the STA for each channel switching, and verifies the content in the WUR frame by verifying the information.
  • the correctness and/or authenticity whereby the STA can reduce the probability of receiving and processing the repeated channel switching indication message, and can also reduce the probability of receiving and processing the channel switching indication message maliciously replayed by the attacker, so that the STA can save more energy. Consumption.
  • FIG. 4 is an example provided by an embodiment of the present application.
  • an AP or an STA may generate a channel switch according to a time synchronization function (TSF) or a current receive address (Receive Address) and a key (Key). Fill in the receiving address.
  • TSF time synchronization function
  • Receiveive Address current receive address
  • Key key
  • the algorithm in the example shown in FIG. 4 may be a hash algorithm or an encryption algorithm.
  • the key in the example shown in FIG. 4 is a key negotiated by the AP and the STA, and may be, for example, a Group Temporal Key (GTK).
  • GTK Group Temporal Key
  • the AP and the STA use the high order of the time synchronization function (TSF), as shown in FIG.
  • TSF time synchronization function
  • the AP and all its associated STAs do a time synchronization operation in one day (24 hours), and the accuracy of the AP and STA crystals is ⁇ 100ppm, then the time synchronization of the AP and STA in one day (24 hours)
  • the biggest difference in the function is 17.28 seconds.
  • the lower 25 bits of the Time Synchronization Function (TSF) can represent a maximum time value of approximately 33.55 seconds.
  • the AP's "TSF minus the difference of the high 25 bits of 2 25 " and the STA's "TSF minus the difference of 2 25 38" Bits are always the same.
  • the upper bit of the time synchronization function (TSF) may be "TSF minus the high 38 bits of the difference of 2 25 ".
  • the minimum time interval of the two consecutive Wi-Fi working channel switching needs to be greater than 67.11 seconds.
  • FIG. 5 is another example provided by the embodiment of the present application.
  • an attacker replays a channel switching indication message and modifies a working channel of a Wi-Fi interface during replay (Channel) ID), causing the STA to incorrectly switch the working channel, not knowing the real working channel of the Wi-Fi interface of the AP, and the verification object of the verification information needs to include at least the working channel (Channel ID) of the Wi-Fi interface, ie
  • the AP needs to generate the verification information according to at least a channel ID and a key of the Wi-Fi interface.
  • the verification information generation algorithm shown in FIG. 5 may be a hash algorithm or an encryption algorithm; the key (Key) shown in FIG. 5 may be a group temporary key (GTK) or other AP.
  • the key for generating the receiving address and the key for generating the verification information may be the same key, or may be different keys secretly negotiated by the AP and the STA respectively.
  • the embodiment of the present application provides another channel switching method.
  • the method shown in FIG. 6 specifically includes the following steps:
  • S610 The AP establishes a secure connection with the STA, and the AP sends the first receiving address to the STA through the secure connection.
  • the receiving address in the first channel switching indication message sent by the AP may be generated and sent by the AP to the STA after establishing a secure connection with the STA.
  • the AP sends a first WUR frame, where the first WUR frame includes a first receiving address, a first channel identifier, and first verification information.
  • the receiving address includes a broadcast address or a bit sequence of the auxiliary wake-up interface of the at least one STA, and the receiving address is generated by the AP according to at least a time synchronization function TSF and a key, wherein the first receiving address is used to indicate a target recipient of the first WUR frame .
  • the key is information that the AP has agreed or negotiated with the at least one STA.
  • Each STA of the at least one STA has at least one auxiliary wake-up interface and one main communication interface, where the first WUR frame is used to indicate the first receiving address.
  • the STA where the auxiliary wake-up interface is located switches the working channel of the STA's main communication interface to the channel corresponding to the channel identifier, and the check information is used by the target receiver of the first WUR frame to use the check information to include at least the channel identifier in the WUR frame. Verify the correctness and authenticity.
  • the process of the AP sending the first WUR frame may be as follows:
  • Step A The AP selects a working channel of a new primary communication interface according to the interference of the working channel of each primary communication interface.
  • Step B The AP generates a first WUR frame; the first WUR frame is a broadcast frame; and the format of the first WUR frame can be as shown in FIG. 3.
  • the first verification information may be MIC or MIC and FCS; the verification information may be used to help the receiving end verify the correctness and/or authenticity of the first WUR frame.
  • the specific generation manner of the verification information refer to the example described in conjunction with FIG. 5. Since the channel identifier and the receiving address are different, the obtained verification information may be different.
  • the AP sends the first WUR frame to all STAs in the Basic Service Set (BSS) (STAs supporting the auxiliary wake-up interface); in order to improve the first WUR frame, all STAs in the Basic Service Set (BSS) with the auxiliary wake-up interface are The probability of receiving, the AP may continuously transmit the channel switching indication message (ie, the first WUR frame) several times in succession.
  • BSS Basic Service Set
  • the channel switching indication message ie, the first WUR frame
  • the AP may switch the working channel of its primary communication interface to the new working channel; the new working channel and the identifier of the primary communication interface carried in the first WUR frame refer to The working channel is the same.
  • the process of the STA receiving the first WUR frame through the auxiliary wakeup interface may be as follows:
  • a first receiving address match is performed to determine whether the target recipient in the first WUR frame is itself.
  • the STA when receiving the first WUR frame, the STA first determines, according to the control information, that the frame being received is a channel switching indication message.
  • the STA continues to process the first WUR frame
  • the STA stops processing the first WUR frame.
  • the content in the first WUR frame is verified for correctness and/or authenticity.
  • the STA first generates the first check information of the first WUR frame locally, and the method for the STA to generate the check information is the same as the method for the AP to generate the check information.
  • the STA compares whether the locally generated first check information is the same as the first check information carried in the first WUR frame:
  • the STA continues to process the first WUR frame
  • the STA stops processing the first WUR frame.
  • the STA saves the first channel identifier.
  • the second receiving address is saved for use in determining the target recipient during the next channel switching process.
  • the first channel identifier is saved to perform data transmission with the AP through the primary communication interface when needed.
  • the second receiving address may be generated, and the second receiving address is sent to the STA in a secret manner.
  • the second receive address is used to indicate the target recipient of the next WUR frame.
  • the STA may receive multiple first WUR frames. If the STA has received a correct and true first WUR frame, the STA will not receive and process other first WUR frames in a period of time; the time period refers to the minimum time that the AP performs channel switching twice consecutively. Interval, for example, 67.11 seconds.
  • the working channel used by the STA's primary communication interface is the working channel of the primary communication interface recorded by the STA, that is, the working channel carried in the first WUR frame.
  • the channel switching may be performed multiple times. Each channel switching needs to perform the following steps:
  • the AP sends a second WUR frame to the at least one STA, where the second WUR frame includes a second receiving address, a second channel identifier, and second parity information.
  • the format of the second WUR frame can be as shown in FIG.
  • the STA uses the second check information to perform correctness on the content of the second WUR frame that includes at least the second channel identifier. verification.
  • the STA saves the second channel identifier.
  • the method further includes:
  • the STA communicates with the primary communication interface of the AP through the primary communication interface of the STA by using the channel corresponding to the latest channel identifier. Specifically, the STA may first wake up the primary communication interface of the STA (eg, may send a wake-up signal to the STA's main communication interface through the WUR module of the STA to wake it up), and then pass the wake-up of the STA's main The communication interface communicates with the primary communication interface of the AP.
  • the STA may first wake up the primary communication interface of the STA (eg, may send a wake-up signal to the STA's main communication interface through the WUR module of the STA to wake it up), and then pass the wake-up of the STA's main
  • the communication interface communicates with the primary communication interface of the AP.
  • the third receiving address may be generated, and the third receiving address is sent to the STA in a secret manner.
  • the third receiving address is used to indicate the target recipient of the next WUR frame.
  • the channel may be switched multiple times, and the STA needs to select the channel corresponding to the channel identifier saved by the last channel switch to communicate with the AP.
  • FIG. 7 is a schematic structural diagram of an access point according to an embodiment of the present application.
  • the AP 10 includes a processor 701, a memory 702, a transceiver 703, and a bus 704.
  • the processor 701, the memory 702, and the transceiver 703 are connected to each other through a bus 704.
  • the transceiver 703 can provide a main communication interface, such as a Wi-Fi interface, and the transceiver 703 can be a main communication module, and specifically can be an 802.11 module. Further, in some embodiments, the transceiver 703 may further provide an auxiliary communication interface, such as a WUR interface, that is, the transceiver 703 may further provide a function of transmitting a WUR frame.
  • the transceiver The 703 can include two parts, an 802.11 module and a WUR module.
  • the bus 704 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the bus 704 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 7, but it does not mean that there is only one bus or one type of bus.
  • the AP 10 can perform the associated method steps of the AP in the embodiment associated with any of Figures 2 and 6.
  • the embodiment of the present application further provides a non-volatile storage medium, where one or more program codes are stored, and when the processor 701 of the AP 10 executes the program code, the AP 10 executes FIG. 2 . And related method steps of the AP in any of the figures in FIG. 6.
  • each module or unit in the AP 10 provided by the embodiment of the present application and the technical effects brought by each module or unit performing the related method steps in any of FIG. 2 or FIG. 6 may refer to the present application.
  • the related description in the method embodiment is not described here.
  • FIG. 8 is a schematic structural diagram of a station according to an embodiment of the present application.
  • the STA 20 includes a processor 801, a memory 802, a WUR module 803, and a main communication module 804.
  • the processor 801, the memory 802, the WUR module 803, and the main communication module 804 can be connected to each other through a bus.
  • the bus can be a PCI bus or an EISA bus.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like.
  • the WUR module 803 provides the WUR interface, which is the same as the WUR module and the auxiliary wake-up module.
  • the main communication module 804 provides a primary communication interface, and the primary communication module 804 can be an 802.11 module.
  • the STA 20 may perform the associated method steps of the STA in the embodiment associated with any of Figures 2 and 6.
  • the embodiment of the present application further provides a non-volatile storage medium in which one or more program codes are stored.
  • the processor 801 of the STA 20 executes the program code
  • the STA 20 can execute FIG. 2 .
  • Figure 6 Related method steps of the STA in the embodiment related to any of the figures.
  • the auxiliary wake-up interface provided by the WUR module 1003 is configured to receive a WUR frame sent by the AP, where the WUR frame includes a first receiving address, a channel identifier, and check information, where the first receiving address includes a broadcast address of the STA's auxiliary wake-up interface.
  • the first receiving address is generated by the AP according to the time synchronization function TSF and the key, and the key is information that the AP and the STA have agreed or negotiated, and the WUR frame is used to indicate that the auxiliary wakeup interface corresponding to the first receiving address is located.
  • the STA switches the working channel of the STA's main communication interface to the channel corresponding to the channel identifier, where the first receiving address is used to indicate the target receiver of the WUR frame;
  • the processor 802 is configured to generate a second receiving address according to the TSF and the key;
  • the processor 802 is further configured to: when the first receiving address matches the second receiving address, use the verification information to correct the content of the WUR frame that includes at least the channel identifier and/or Verification of authenticity;
  • the main communication interface provided by the main communication module 804 is configured to communicate with the AP through the channel corresponding to the channel identifier after the verification is passed, that is, send data to the STA, or receive data sent by the STA.
  • each module in the STA 20 provided by the embodiment of the present application and the technical effects of each module performing the related method steps in any of FIG. 2 and FIG. 6 may be referred to in the method embodiment of the present application. The related description is not repeated here.
  • the size of the serial numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, 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 of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the device configuration diagrams given in the various device embodiments of the present invention show only a simplified design of the corresponding device.
  • the device may include any number of transmitters, receivers, transceivers, processors, memories, main communication modules, WUR modules, etc., to implement the functions performed by the device in various embodiments of the present invention or Operation, and all devices that can implement the present application are within the scope of the present application.
  • the names of the message/frame/instruction information, modules, units, and the like provided in the embodiments of the present invention are merely examples, and other names may be used as long as the functions of the message/frame/instruction information, the module or the unit, and the like are the same.

Landscapes

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

Abstract

The embodiment of the present application relates to a channel switching method and device. The method comprises: an AP sends a WUR frame, the WUR frame comprising a first receiving address, a channel identification and checking information. The first receiving address comprises a broadcast address of an auxiliary wake-up interface of at least one STA or a random sequence. When the AP needs to communicate with a main communication interface of the at least one STA, the AP uses a channel corresponding to the channel identification to communicate with the main communication interface of the at least one STA. In the embodiment of the present application, an AP sends a WUR frame to timely send a channel switching indication message of a main communication interface to an associated STA, and thus an operation of waking up the main communication interface of the STA required by the AP in transmission of a channel switching indication message is avoided and electrical energy of the STA is saved.

Description

一种频道切换的方法及设备Method and device for channel switching

本申请要求于2016年09月26日提交中国专利局、申请号为201610853320.0、申请名称为“一种安全的频道切换方法和设备”的中国专利申请的优先权,和于2017年04月06日提交中国专利局、申请号为201710221900.2、申请名称为“一种频道切换的方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on September 26, 2016, the Chinese Patent Office, the application number is 201610853320.0, and the application name is “A Secure Channel Switching Method and Equipment”, and April 6, 2017 The priority of the Chinese Patent Application, which is hereby incorporated by reference in its entirety in its entirety in the the the the the the the the the the

技术领域Technical field

本申请实施例涉及无线通信技术领域,尤其涉及一种频道切换的方法及设备。The embodiments of the present invention relate to the field of wireless communications technologies, and in particular, to a method and a device for channel switching.

背景技术Background technique

电气和电子工程师协会(Institute of Electrical and Electronics Engineers,IEEE)802.11标准里定义的无线保真(Wireless Fidelity,Wi-Fi)网络的一个基本服务集(Basic Service Set,BSS)包括一个接入点(Access Point,AP)和一个或数个Wi-Fi站点(Station,STA)。用户可以选择和设置AP的工作频段(frequency band)和频道(channel),例如,工作频段为2.4GHz,工作频道为Channel 11。一个BSS内的所有设备,包括AP和其关联的STA,都工作在所述同一个工作频段和频道上。考虑到通信环境的变化,例如,通信干扰情况发生变化,一个BSS的工作频道(channel)可能需要从一个频道切换到另外一个频道。例如,由于人的移动,可穿戴式Wi-Fi网络的工作环境可能经常变化,可能导致可穿戴式Wi-Fi网络需要经常切换工作频道(channel)。如果一个BSS的现有的工作频道受到严重的干扰,AP就需要及时切换工作频道和通知所关联的STA,以保证当AP和STA之间有消息或紧急消息需要传输时可以及时的完成所述消息的传输。A Basic Service Set (BSS) for Wireless Fidelity (Wi-Fi) networks defined in the 802.11 standard of the Institute of Electrical and Electronics Engineers (IEEE) includes an access point ( Access Point, AP) and one or several Wi-Fi stations (Station, STA). The user can select and set the frequency band and channel of the AP. For example, the working frequency band is 2.4 GHz and the working channel is Channel 11. All devices within a BSS, including the AP and its associated STAs, operate on the same working frequency band and channel. Considering changes in the communication environment, for example, changes in communication interference conditions, a BSS's working channel may need to switch from one channel to another. For example, due to human movement, the working environment of a wearable Wi-Fi network may change frequently, which may result in the wearable Wi-Fi network needing to frequently switch working channels. If the existing working channel of a BSS is seriously interfered, the AP needs to switch the working channel and the associated STA in time to ensure that the message can be completed in time when there is a message or emergency message between the AP and the STA. The transmission of the message.

为了避免用户手工设置工作频道的复杂操作,BSS的工作频道切换(channel switch)可以由AP自动完成。IEEE 802.11标准里定义了工作频道切换(channel switch)的流程。AP选择好新的工作频道后,AP可以通过广播信标帧(Beacon)或动作帧(Action Frame)的方式通知AP关联的STA,例如,通过广播频道切换指示消息(Channel Switch Announcement Element)。In order to avoid the complicated operation of the user to manually set the working channel, the channel switch of the BSS can be automatically completed by the AP. The process of working channel switching is defined in the IEEE 802.11 standard. After the AP selects a new working channel, the AP can notify the AP associated STA by broadcasting a beacon frame or an action frame, for example, by using a channel switch announcement element (Channel Switch Announcement Element).

但是,如果STA是超低功耗工作模式,也就是该STA上带有唤醒射频(Wake-up Radio/Receiver,WUR)接口,那么所述STA的Wi-Fi接口可能在大部分时间里都处于深度休眠状态(如收发射机关闭状态),不能接收消息。由于STA休眠(如STA的主通信接口的收发射机关闭),一个BSS内的所有STA的Wi-Fi接口可能不会同时处于工作状态(如接收状态)。这样以来,如果通信环境发生变化,AP决定需要切换工作频道时,AP可能不能直接通过Wi-Fi接口广播频道切换消息(Channel Switch Announcement Element)。However, if the STA is in an ultra-low power mode of operation, that is, the STA has a Wake-up Radio/Receiver (WUR) interface, the STA's Wi-Fi interface may be in most of the time. Deep sleep state (such as receiving transmitter off state), can not receive messages. Since the STA sleeps (such as the receiving transmitter of the STA's main communication interface is turned off), the Wi-Fi interfaces of all the STAs in one BSS may not be in the working state (such as the receiving state) at the same time. In this way, if the communication environment changes and the AP decides to switch the working channel, the AP may not be able to directly broadcast the Channel Switch Announcement Element through the Wi-Fi interface.

一般情况下,AP先通过WUR帧,指示与其关联的所有STA的辅助唤醒接口唤醒Wi-Fi接口;然后通过Wi-Fi接口广播工作频道切换指示消息。或者,AP先通过WUR帧唤醒其关联的一个STA的Wi-Fi接口;然后通过Wi-Fi接口发送工作频道切换指示消息给 该STA;AP逐个向其关联的STA发送工作频道切换指示消息In general, the AP first passes the WUR frame to indicate that the auxiliary wake-up interface of all STAs associated with it wakes up the Wi-Fi interface; then broadcasts the working channel switching indication message through the Wi-Fi interface. Alternatively, the AP first wakes up the Wi-Fi interface of its associated STA through the WUR frame; then sends a working channel switching indication message to the Wi-Fi interface. The STA; the AP sends a working channel switching indication message to its associated STAs one by one.

但是,一般在唤醒STA的Wi-Fi接口后,除了AP向STA的已唤醒的Wi-Fi接口发送频道切换指示消息外,AP与STA之间没有其它消息需要传输,因此浪费了STA的电能。However, after the Wi-Fi interface of the STA is awake, in addition to the channel switching indication message sent by the AP to the STA's awake Wi-Fi interface, there is no other message between the AP and the STA to be transmitted, thus wasting the STA's power.

发明内容Summary of the invention

本申请实施例提供了一种频道切换的方法及设备,能通过发送WUR帧及时的将主通信接口(如Wi-Fi接口)的频道切换指示消息发送给关联的STA,避免了AP因为发送频道切换指示消息而要唤醒STA的主通信接口的操作,节省了STA的电能。The embodiment of the present invention provides a method and a device for channel switching, which can send a channel switching indication message of a main communication interface (such as a Wi-Fi interface) to an associated STA in time by sending a WUR frame, thereby avoiding the AP sending a channel. Switching the indication message and awakening the operation of the STA's main communication interface saves the STA's power.

第一方面,本申请实施例提供了一种频道切换的方法。该方法包括:AP发送WUR帧,该WUR帧包括第一接收地址、频道标识以及校验信息。其中,第一接收地址包括至少一个STA的辅助唤醒接口的广播地址或者一个比特序列,第一接收地址是AP至少根据时间同步函数(Time Synchronization Function,TSF)和密钥生成;密钥是AP与至少一个STA已约定或协商好的信息,至少一个STA中的每个STA均至少具有一个辅助唤醒接口和一个主通信接口;WUR帧用于指示第一接收地址对应的辅助唤醒接口所在的STA将STA的主通信接口的工作频道切换到频道标识对应的频道;第一接收地址用于指示WUR帧的目标接收者;校验信息用于WUR帧的目标接收者使用校验信息对WUR帧中至少包括频道标识的内容的正确性以及真实性进行验证。之后,在AP需要与至少一个STA的主通信接口通信时,AP使用频道标识对应的频道与至少一个STA通信。In a first aspect, an embodiment of the present application provides a method for channel switching. The method includes: the AP sends a WUR frame, where the WUR frame includes a first receiving address, a channel identifier, and check information. The first receiving address includes a broadcast address or a bit sequence of the auxiliary wake-up interface of the at least one STA, where the first receiving address is generated by the AP according to at least a Time Synchronization Function (TSF) and a key; the key is an AP and At least one STA has agreed or negotiated information, each STA of at least one STA has at least one auxiliary wake-up interface and one main communication interface; the WUR frame is used to indicate that the STA of the auxiliary wake-up interface corresponding to the first received address is The working channel of the STA's main communication interface is switched to the channel corresponding to the channel identifier; the first receiving address is used to indicate the target receiver of the WUR frame; the check information is used by the target receiver of the WUR frame to use the check information to at least the WUR frame. Verification of the correctness and authenticity of the content including the channel identification. Thereafter, when the AP needs to communicate with the primary communication interface of the at least one STA, the AP communicates with the at least one STA using the channel corresponding to the channel identification.

本申请实施例,AP通过发送WUR帧及时的将主通信接口的频道切换指示消息发送给关联的STA,STA的主通信接口可以不用仅因为AP发送的频道切换指示消息(用于指示双方的主通信接口后续通信时使用的频道)而被唤醒,而是只需在接下来需要与AP的主通信接口进行数据传输时才被唤醒,并根据之前STA的WUR接口接收到的频道切换指示消息来选择正确的频道与AP的主通信接口进行通信,从而避免了AP因为发送频道切换指示消息而要唤醒STA的主通信接口的操作,节省了电能。进一步的,可以在WUR帧中携带接收地址以及校验信息,通过接收地址来指示目标接收者,且进一步地,AP与STA可以通过周期性更新的接收地址来降低接收和处理重复的频道切换指示消息的概率,通过校验信息来验证WUR帧中内容的正确性等等,从而可以降低接收和处理攻击者恶意重播的频道切换指示消息的概率,使得STA更加节省能耗。In the embodiment of the present application, the AP sends a channel switching indication message of the primary communication interface to the associated STA in time by sending the WUR frame. The primary communication interface of the STA may not use the channel switching indication message sent by the AP only. The channel used by the communication interface for subsequent communication is awakened, but only needs to be woken up when it needs to perform data transmission with the main communication interface of the AP, and according to the channel switching indication message received by the WUR interface of the previous STA. The correct channel is selected to communicate with the AP's main communication interface, thereby avoiding the AP's operation of waking up the STA's main communication interface by transmitting a channel switching indication message, thereby saving power. Further, the receiving address and the check information may be carried in the WUR frame, and the target receiver is indicated by receiving the address, and further, the AP and the STA may reduce the receiving and processing the repeated channel switching indication by using the periodically updated receiving address. The probability of the message is verified by the verification information to verify the correctness of the content in the WUR frame, etc., so that the probability of receiving and processing the channel switching indication message maliciously replayed by the attacker can be reduced, so that the STA can save more energy.

在一个可能的实现中,前述第一接收地址根据时间同步函数TSF以及密钥生成具体包括:第一接收地址根据TSF减去2N的差的高M位以及密钥通过哈希运算或加密运算得到,其中,N和M为整数,N和M是由AP和STA的时间同步操作的频度和晶振的精度确定,例如,可以选择N=25,M=38。通过本申请实施例,可以允许AP与STA在周期性计算接收地址时,有一定的时间差,降低了出现误判的可能,提高了信息被正确接收的概率。In a possible implementation, the foregoing first receiving address according to the time synchronization function TSF and the key generation specifically includes: the first receiving address is subtracted from the TSF by a high M bit of the difference of 2 N and the key is hashed or encrypted. It is obtained that N and M are integers, and N and M are determined by the frequency of the time synchronization operation of the AP and the STA and the precision of the crystal oscillator. For example, N=25 and M=38 can be selected. With the embodiment of the present application, the AP and the STA can be allowed to have a certain time difference when periodically calculating the receiving address, which reduces the possibility of misjudging and improves the probability that the information is correctly received.

在另一个可能的实现中,第一接收地址还包括:用于指示AP所在的基本服务集BSS的信息。通过本申请实施例,通过AP所在的BSS信息,STA可以判断,WUR帧的发送端是否与自己在一个BSS,以便进一步判断,目标接受者是不是自己,提高了WUR帧被正确接收的可能,也可以减少STA接收无关WUR帧,降低了STA的功耗。In another possible implementation, the first receiving address further includes: information used to indicate a basic service set BSS in which the AP is located. With the BSS information of the AP, the STA can determine whether the sending end of the WUR frame is in a BSS with itself, so as to further determine whether the target recipient is itself or not, and the possibility that the WUR frame is correctly received is improved. It is also possible to reduce the STA receiving unrelated WUR frames and reducing the power consumption of the STA.

在又一个可选的实现中,校验信息包括真实性校验码MIC。通过本申请实施例,根据STA可根据MIC对WUR帧中的信息进行真实性以及正确性,降低被攻击的可能。 In yet another alternative implementation, the verification information includes a authenticity check code MIC. According to the embodiment of the present application, according to the authenticity and correctness of the information in the WUR frame according to the MIC, the STA may reduce the possibility of being attacked.

在再一个可选的实现中,校验信息至少根据主通信接口的工作频道和密钥确定。通过本申请实施例,可以实现对主通信接口的工作频道的真实性以及正确性的验证,提高了安全性,降低了被攻击的可能。In still another alternative implementation, the verification information is determined based at least on the working channel and key of the primary communication interface. Through the embodiment of the present application, the authenticity and correctness of the working channel of the main communication interface can be verified, the security is improved, and the possibility of being attacked is reduced.

第二方面,本申请实施例提供了一种频道切换方法。其中,STA至少具有一个辅助唤醒接口和一个主通信接口,该方法具体包括:STA通过辅助唤醒接口接收AP发送的WUR帧,WUR帧包括第一接收地址、频道标识以及校验信息。其中,第一接收地址包括STA的辅助唤醒接口的广播地址或者一个比特序列,第一接收地址是AP至少根据时间同步函数TSF和密钥生成,密钥是AP与STA已约定或协商好的信息,WUR帧用于指示第一接收地址对应的辅助唤醒接口所在的STA将STA的主通信接口的工作频道切换到频道标识对应的频道,第一接收地址用于指示WUR帧的目标接收者;STA根据TSF以及密钥生成第二接收地址;在第一接收地址与第二接收地址匹配时,STA使用校验信息对WUR帧中至少包括频道标识的内容的正确性进行验证;在验证通过后,STA记录WUR帧中携带的频道标识,以用于在AP与STA需要进行通信时,STA的主通信接口通过记录的频道标识对应的频道与AP进行通信。本申请实施例,通过接收的WUR帧来确定主通信接口的频道切换指示消息,避免了AP因为发送频道切换指示消息而要唤醒STA的主通信接口的操作,节省了电能。进一步在WUR帧中携带接收地址以及校验信息,通过接收地址来指示目标接收者,且AP与STA通过周期性更新接收地址,可以降低接收和处理重复的频道切换指示消息的概率,通过校验信息来验证WUR帧中内容的正确性和/或真实性,可以降低接收和处理攻击者恶意重播的频道切换指示消息的概率,使得STA更加节省能耗。In a second aspect, an embodiment of the present application provides a channel switching method. The STA has at least one auxiliary wake-up interface and one main communication interface. The method specifically includes: the STA receives the WUR frame sent by the AP through the auxiliary wake-up interface, where the WUR frame includes a first receiving address, a channel identifier, and check information. The first receiving address includes a broadcast address of the auxiliary wake-up interface of the STA or a bit sequence, and the first receiving address is generated by the AP according to at least a time synchronization function TSF and a key, and the key is information that the AP and the STA have agreed or negotiated. The WUR frame is used to indicate that the STA where the auxiliary wake-up interface corresponding to the first receiving address is located switches the working channel of the STA's main communication interface to the channel corresponding to the channel identifier, and the first receiving address is used to indicate the target receiver of the WUR frame; Generating a second receiving address according to the TSF and the key; when the first receiving address matches the second receiving address, the STA uses the verification information to verify the correctness of the content including the channel identifier in the WUR frame; after the verification is passed, The STA records the channel identifier carried in the WUR frame, so that when the AP and the STA need to communicate, the STA's main communication interface communicates with the AP through the channel corresponding to the recorded channel identifier. In the embodiment of the present application, the channel switching indication message of the primary communication interface is determined by the received WUR frame, which avoids the operation of the AP to wake up the STA's primary communication interface because the channel switching indication message is sent, thereby saving power. Further, the WUR frame carries the receiving address and the check information, and the target receiver is indicated by the receiving address, and the AP and the STA periodically update the receiving address, so that the probability of receiving and processing the repeated channel switching indication message can be reduced, and the verification is performed. The information to verify the correctness and/or authenticity of the content in the WUR frame can reduce the probability of receiving and processing the channel switching indication message maliciously replayed by the attacker, so that the STA can save more energy.

在一个可选的实现中,上述STA根据时间同步函数TSF以及密钥生成第二接收地址包括:STA根据TSF减去2N的差的高M位以及密钥通过哈希运算或加密运算得到第二接收地址,其中,N和M为整数,N和M是由AP和STA的时间同步操作的频度和晶振的精度确定,例如,可以选择N=25,M=38。所述时间同步操作是指AP向STA发送TSF信息,以使STA的TSF信息与AP的TSF信息相同。In an optional implementation, the foregoing STA generates the second receiving address according to the time synchronization function TSF and the key, including: the STA subtracts the high M bit of the difference of 2 N according to the TSF, and the key is obtained by a hash operation or an encryption operation. Two receiving addresses, where N and M are integers, and N and M are determined by the frequency of the time synchronization operation of the AP and the STA and the precision of the crystal oscillator. For example, N=25, M=38 may be selected. The time synchronization operation means that the AP sends TSF information to the STA, so that the TSF information of the STA is the same as the TSF information of the AP.

在另一个可选的实现中,所述第一接收地址还包括:用于指示AP所在的基本服务集BSS的信息。In another optional implementation, the first receiving address further includes: information used to indicate a basic service set BSS where the AP is located.

在又一个可选的实现中,校验信息包括真实性校验码MIC。In yet another alternative implementation, the verification information includes a authenticity check code MIC.

在再一个可选的实现中,校验信息至少根据主通信接口的工作频道和密钥确定。In still another alternative implementation, the verification information is determined based at least on the working channel and key of the primary communication interface.

第三方面,本申请实施例提供了一种AP。该AP具体包括:收发器,用于发送WUR帧,所述WUR帧包括第一接收地址、频道标识以及校验信息,所述第一接收地址包括至少一个STA的辅助唤醒接口的广播地址或者一个比特序列,所述第一接收地址是所述AP至少根据时间同步函数TSF和密钥生成,所述密钥是所述AP与所述至少一个STA已约定或协商好的信息,所述至少一个STA中的每个STA均至少具有一个辅助唤醒接口和一个主通信接口,所述WUR帧用于指示所述第一接收地址对应的辅助唤醒接口所在的STA将所述STA的主通信接口的工作频道切换到所述频道标识对应的频道,所述第一接收地址用于指示所述WUR帧的目标接收者,所述校验信息用于所述WUR帧的目标接收者使用所述校验信息对所述WUR帧中至少包括所述频道标识的内容的正确性和/或真实性进行验证;处理器,用于使用所述频道标识对应的频道与所述至少一个STA通信。In a third aspect, an embodiment of the present application provides an AP. The AP specifically includes: a transceiver, configured to send a WUR frame, where the WUR frame includes a first receiving address, a channel identifier, and check information, where the first receiving address includes a broadcast address of the auxiliary wake-up interface of the at least one STA or a a bit sequence, the first receiving address is generated by the AP according to at least a time synchronization function TSF and a key, the key being information that the AP has agreed or negotiated with the at least one STA, the at least one Each STA in the STA has at least one auxiliary wake-up interface and one main communication interface, and the WUR frame is used to indicate that the STA where the auxiliary wake-up interface corresponding to the first receiving address is located will work on the STA's main communication interface. The channel is switched to a channel corresponding to the channel identifier, the first receiving address is used to indicate a target receiver of the WUR frame, and the verification information is used by a target receiver of the WUR frame to use the verification information. Authenticating the correctness and/or authenticity of the content including the channel identifier in the WUR frame; the processor, configured to use the channel corresponding to the channel identifier and the at least one STA communication.

在一个可选的实现中,所述第一接收地址根据时间同步函数TSF以及密钥生成包括: In an optional implementation, the first receiving address according to the time synchronization function TSF and the key generation includes:

所述第一接收地址根据TSF减去2N的差的高M位以及所述密钥通过哈希运算或加密运算得到,其中,N和M为整数,N和M是由AP和STA的时间同步操作的频度和晶振的精度确定,例如,可以选择N=25,M=38。所述时间同步操作是指AP向STA发送TSF信息,以使STA的TSF信息与AP的TSF信息相同。The first receiving address is obtained by subtracting the high M bit of the difference of 2 N according to the TSF and the key is obtained by a hash operation or an encryption operation, wherein N and M are integers, and N and M are times by the AP and the STA. The frequency of the synchronous operation and the accuracy of the crystal oscillator are determined. For example, N=25 and M=38 can be selected. The time synchronization operation means that the AP sends TSF information to the STA, so that the TSF information of the STA is the same as the TSF information of the AP.

在另一个可选的实现中,所述第一接收地址还包括:用于指示所述AP所在的基本服务集BSS的信息。In another optional implementation, the first receiving address further includes: information used to indicate a basic service set BSS in which the AP is located.

在又一个可选的实现中,所述校验信息包括真实性校验码MIC。In yet another optional implementation, the verification information includes a authenticity check code MIC.

在又一个可选的实现中,所述校验信息至少根据所述主通信接口的工作频道和所述密钥确定。In still another optional implementation, the verification information is determined based at least on a working channel of the primary communication interface and the key.

第四方面,本申请实施例提供了一种STA,其特征在于,所述STA至少具有一个辅助唤醒接口和一个主通信接口,所述方法包括:所述辅助唤醒接口,用于接收AP发送的WUR帧,所述WUR帧包括第一接收地址、频道标识以及校验信息,所述第一接收地址包括所述STA的辅助唤醒接口的广播地址或则一个比特序列,所述第一接收地址是所述AP至少根据时间同步函数TSF和密钥生成,所述密钥是所述AP与所述STA已约定或协商好的信息,所述WUR帧用于指示所述第一接收地址对应的辅助唤醒接口所在的STA将所述STA的主通信接口的工作频道切换到所述频道标识对应的频道,所述第一接收地址用于指示所述WUR帧的目标接收者;处理器,用于根据所述TSF以及所述密钥生成第二接收地址;所述处理器还用于,在所述第一接收地址与所述第二接收地址匹配时,使用所述校验信息对所述WUR帧中至少包括所述频道标识的内容的正确性和/或真实性进行验证;所述主通信接口,用于在验证通过后,通过所述频道标识对应的频道与所述AP进行通信。In a fourth aspect, the embodiment of the present application provides a STA, where the STA has at least one auxiliary wake-up interface and one main communication interface, and the method includes: the auxiliary wake-up interface, configured to receive an AP sending a WUR frame, the WUR frame includes a first receiving address, a channel identifier, and check information, where the first receiving address includes a broadcast address or a bit sequence of the STA's auxiliary wake-up interface, and the first receiving address is The AP is generated according to at least a time synchronization function TSF and a key, where the key is information that the AP has agreed or negotiated with the STA, and the WUR frame is used to indicate an auxiliary corresponding to the first receiving address. The STA where the awake interface is located switches the working channel of the STA's main communication interface to the channel corresponding to the channel identifier, the first receiving address is used to indicate the target receiver of the WUR frame, and the processor is configured to The TSF and the key generate a second receiving address; the processor is further configured to: when the first receiving address matches the second receiving address, use the verification information to Accuracy and / or authenticity WUR frame content comprises at least the channel identifier is verified; the primary communication interface used after the verification by the channel identifier corresponding to a channel to communicate with the AP.

在一个可选的实现中,所述STA根据时间同步函数TSF以及密钥生成第二接收地址包括:In an optional implementation, the STA generates the second receiving address according to the time synchronization function TSF and the key, including:

所述STA根据TSF减去2N的差的高M位以及所述密钥通过哈希运算或加密运算得到所述第二接收地址,其中,N和M为整数,N和M是由AP和STA的时间同步操作的频度和晶振的精度确定,例如,可以选择N=25,M=38。所述时间同步操作是指AP向STA发送TSF信息,以使STA的TSF信息与AP的TSF信息相同。The STA obtains the second receiving address according to the TSF minus the high M bit of the difference of 2 N and the key by a hash operation or an encryption operation, where N and M are integers, and N and M are by the AP and The frequency of the STA's time synchronization operation and the accuracy of the crystal oscillator are determined. For example, N=25 and M=38 can be selected. The time synchronization operation means that the AP sends TSF information to the STA, so that the TSF information of the STA is the same as the TSF information of the AP.

在另一个可选的实现中,所述第一接收地址还包括:用于指示所述AP所在的基本服务集BSS的信息。In another optional implementation, the first receiving address further includes: information used to indicate a basic service set BSS in which the AP is located.

在又一个可选的实现中,所述校验信息包括真实性校验码MIC。In yet another optional implementation, the verification information includes a authenticity check code MIC.

在再一个可选的实现中,所述校验信息至少根据所述主通信接口的工作频道和所述密钥确定。In still another optional implementation, the verification information is determined based at least on a working channel of the primary communication interface and the key.

第五方面,提供一种非易失性存储介质,非易失性存储介质中存储有一个或多个程序代码,当第七方面中的AP的处理器执行该程序代码时,AP执行如第一方面以及第二方面的各种可选方式中的用于频道切换的方法。In a fifth aspect, a non-volatile storage medium is provided. One or more program codes are stored in a non-volatile storage medium. When the processor of the AP in the seventh aspect executes the program code, the AP performs the A method for channel switching in one aspect and various alternatives of the second aspect.

第六方面,提供另一种非易失性存储介质,非易失性存储介质中存储有一个或多个程序代码,当第七方面中的STA的处理器执行该程序代码时,STA执行如第二方面以及第二方面的各种可选方式中的用于频道切换的方法。In a sixth aspect, another non-volatile storage medium is provided, in which one or more program codes are stored in a non-volatile storage medium. When the processor of the STA in the seventh aspect executes the program code, the STA performs, for example, The second aspect and the method for channel switching in various alternatives of the second aspect.

第七方面,提供了一种计算机程序产品。用于储存为上述AP所用的计算机软件指令,其包含用于执行上述第一方面以及可选的实现中所设计的程序。 In a seventh aspect, a computer program product is provided. Computer software instructions for storing the APs described above, including programs for performing the first aspect described above, as well as alternative implementations.

第八方面,提供了另一种计算机程序产品。用于储存为上述STA所用的计算机软件指令,其包含用于执行上述第二方面以及可选的实现中所设计的程序。In an eighth aspect, another computer program product is provided. Computer software instructions for storing the STAs described above, including programs for performing the second aspect described above, as well as alternative implementations.

本申请实施例,AP通过发送WUR帧及时的将主通信接口的频道切换指示消息发送给关联的STA,避免了AP因为发送频道切换指示消息而要唤醒STA的主通信接口的操作,节省了STA的电能。进一步的,可以在WUR帧中携带接收地址以及校验信息,通过接收地址来指示目标接收者,且AP与STA通过周期性更新的接收地址来降低接收和处理重复的频道切换指示消息的概率,通过校验信息来验证WUR帧中内容的正确性等等,降低接收和处理攻击者恶意重播的频道切换指示消息的概率,使得STA更加节省能耗。In the embodiment of the present application, the AP sends the WUR frame to send the channel switching indication message of the main communication interface to the associated STA in time, thereby avoiding the operation of the AP to wake up the STA's main communication interface because the channel switching indication message is sent, thereby saving the STA. Electrical energy. Further, the receiving address and the check information may be carried in the WUR frame, and the target receiver is indicated by the receiving address, and the AP and the STA reduce the probability of receiving and processing the repeated channel switching indication message by periodically updating the receiving address. The verification information is used to verify the correctness of the content in the WUR frame, etc., and the probability of receiving and processing the channel switching indication message maliciously replayed by the attacker is reduced, so that the STA can save more energy.

附图说明DRAWINGS

图1为一种场景示意图;Figure 1 is a schematic diagram of a scene;

图2为本申请实施例提供的一种频道切换方法的信令交互示意图;FIG. 2 is a schematic diagram of signaling interaction of a channel switching method according to an embodiment of the present disclosure;

图3为本申请实施例提供的一种WUR帧结构示例;FIG. 3 is a schematic structural diagram of a WUR frame according to an embodiment of the present application;

图4为本申请实施例提供的一个示例;Figure 4 is an example provided by an embodiment of the present application;

图5为本申请实施例提供的另一个示例;FIG. 5 is another example provided by an embodiment of the present application;

图6为本申请实施例提供的另一种频道切换方法的信令交互示意图;FIG. 6 is a schematic diagram of signaling interaction of another channel switching method according to an embodiment of the present disclosure;

图7为本申请实施例提供的一种接入点结构示意图;FIG. 7 is a schematic structural diagram of an access point according to an embodiment of the present application;

图8为本申请实施例提供的一种站点结构示意图。FIG. 8 is a schematic structural diagram of a station according to an embodiment of the present application.

具体实施方式detailed description

本申请实施例提供的频道切换的方法及设备应用于AP与STA在无线通信过程中的频道切换。The method and device for channel switching provided by the embodiments of the present application are applied to channel switching between an AP and an STA in a wireless communication process.

图1为一种场景示意图。如图1所示,该Wi-Fi网络中包括:AP 10和至少一个STA 20。其中,STA 20括主通信接口(如Wi-Fi模块提供的接口)和辅助唤醒接口(如WUR模块提供的接口)。其中,STA中的辅助唤醒接口在接收到AP发送的唤醒帧后,向该STA中的主通信接口发送唤醒信号,激活处于休眠模式的主通信接口,使主通信接口接收来自AP的Wi-Fi数据。也就是说,在STA20的主通信模块休眠时(如收发射机关闭),能够通过辅助唤醒接口接收WUR帧。其中,WUR帧是WUR接口能够识别和接收的帧。Figure 1 is a schematic diagram of a scene. As shown in FIG. 1, the Wi-Fi network includes: an AP 10 and at least one STA 20. The STA 20 includes a main communication interface (such as an interface provided by a Wi-Fi module) and an auxiliary wake-up interface (such as an interface provided by the WUR module). After receiving the wake-up frame sent by the AP, the auxiliary wake-up interface in the STA sends a wake-up signal to the primary communication interface in the STA, and activates the primary communication interface in the sleep mode, so that the primary communication interface receives the Wi-Fi from the AP. data. That is to say, when the main communication module of the STA 20 sleeps (for example, the transmitter is turned off), the WUR frame can be received through the auxiliary wake-up interface. The WUR frame is a frame that the WUR interface can recognize and receive.

本申请实施例公开了一种频道切换的方法及设备。AP通过发送WUR帧及时的将主通信接口的频道切换指示消息发送给关联的STA,避免了AP因为发送频道切换指示消息而要唤醒STA的主通信接口的操作,节省了STA的电能。进一步在WUR帧中携带接收地址以及校验信息,通过接收地址来指示目标接收者,且周期性更换AP与STA的频道切换所用的接收地址,通过校验信息来验证WUR帧中内容的正确性,由此,STA可以降低接收和处理重复的频道切换指示消息的概率,也可以降低接收和处理攻击者恶意重播的频道切换指示消息的概率,使得STA更加节省能耗。The embodiment of the present application discloses a method and device for channel switching. The AP sends the WUR frame to send the channel switching indication message of the main communication interface to the associated STA in time, which avoids the operation of the AP to wake up the STA's main communication interface because the channel switching indication message is sent, thereby saving the STA's power. Further, the WUR frame carries the receiving address and the check information, indicates the target receiver by receiving the address, periodically replaces the receiving address used by the channel switching between the AP and the STA, and verifies the correctness of the content in the WUR frame by using the check information. Therefore, the STA can reduce the probability of receiving and processing the repeated channel switching indication message, and can also reduce the probability of receiving and processing the channel switching indication message maliciously replayed by the attacker, so that the STA can save more energy.

本申请实施例中的STA可以为安装有Wi-Fi模块的电子终端,该电子终端可以通过Wi-Fi网络与AP进行数据交互。例如,该电子终端可以为手机、PC、手持设备、pad等。本申请实施例中的AP不局限于常规的接入点,本申请实施例中的AP可以为具备接入点功能的任一通信设备,该AP可以通过Wi-Fi网络与STA进行数据交互。例如,该AP可 以为Wi-Fi路由器,此时STA可以为手机、电脑等用户终端;当手机或者电脑等用户终端设置为Wi-Fi热点模式,为其他终端提供Wi-Fi网络时,该手机或者电脑等用户终端则为本申请实施例中的AP,其它连接该AP提供的Wi-Fi网络的终端则为STA。或者,本申请实施例中的AP可以为手机或者电脑等用户终端,STA可以为与手机或者电脑等用户终端连接的可穿戴设备。The STA in the embodiment of the present application may be an electronic terminal installed with a Wi-Fi module, and the electronic terminal may perform data interaction with the AP through the Wi-Fi network. For example, the electronic terminal can be a mobile phone, a PC, a handheld device, a pad, or the like. The AP in the embodiment of the present application is not limited to a conventional access point, and the AP in the embodiment of the present application may be any communication device having an access point function, and the AP may perform data interaction with the STA through the Wi-Fi network. For example, the AP can In the case of a Wi-Fi router, the STA can be a user terminal such as a mobile phone or a computer; when the user terminal such as a mobile phone or a computer is set to the Wi-Fi hotspot mode and the Wi-Fi network is provided for other terminals, the mobile terminal or the user terminal such as a computer For the AP in the embodiment of the present application, the terminal connected to the Wi-Fi network provided by the AP is the STA. Alternatively, the AP in the embodiment of the present application may be a user terminal such as a mobile phone or a computer, and the STA may be a wearable device connected to a user terminal such as a mobile phone or a computer.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的频道切换方法及设备进行详细地说明。The channel switching method and device provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.

本申请实施例提供一种频道切换方法,如图2所示,该方法具体包括如下步骤:The embodiment of the present application provides a channel switching method. As shown in FIG. 2, the method specifically includes the following steps:

S210,AP发送WUR帧,该WUR帧包括第一接收地址、频道标识以及校验信息。第一接收地址包括至少一个STA的辅助唤醒接口的广播地址或者一个比特序列,第一接收地址是AP至少根据时间同步函数TSF和密钥生成,密钥是AP与至少一个STA已约定或协商好的信息,至少一个STA中的每个STA均至少具有一个辅助唤醒接口和一个主通信接口,WUR帧用于指示第一接收地址对应的辅助唤醒接口所在的STA将STA的主通信接口的工作频道切换到频道标识对应的频道,第一接收地址用于指示WUR帧的目标接收者,校验信息用于WUR帧的目标接收者使用校验信息对WUR帧中至少包括频道标识的内容的正确性和/或真实性进行验证。S210. The AP sends a WUR frame, where the WUR frame includes a first receiving address, a channel identifier, and check information. The first receiving address includes a broadcast address or a bit sequence of the auxiliary wake-up interface of the at least one STA, and the first receiving address is generated by the AP according to at least a time synchronization function TSF and a key, and the key is that the AP has agreed or negotiated with the at least one STA. The STA of each of the at least one STA has at least one auxiliary wake-up interface and one main communication interface, and the WUR frame is used to indicate that the STA where the auxiliary wake-up interface corresponding to the first receiving address is located is the working channel of the STA's main communication interface. Switching to the channel corresponding to the channel identifier, the first receiving address is used to indicate the target receiver of the WUR frame, and the verification information is used by the target receiver of the WUR frame to verify the correctness of the content including at least the channel identifier in the WUR frame by using the verification information. And/or authenticity is verified.

如果一个STA通过辅助唤醒接口来降低功耗,那么该STA的主通信接口可能在大部分时间里都处于深度休眠状态(如收发射机关闭状态),不能接收消息。由于STA休眠(如STA的主通信接口的收发射机关闭),一个BSS内的所有STA的主通信接口可能不会同时被唤醒处于工作状态(如接收状态)。在通信环境发生变化时,AP确定需要切换工作频道时,以便能够保持与STA的连接,AP可能不能直接通过主通信广播频道切换消息(Channel Switch Announcement Element)。但是,如果现有的工作频道受到严重的干扰,AP就需要及时切换工作频道和通知所关联的STA,以保证当STA有消息或紧急消息需要发送给AP时可以及时的完成所述消息的传输。此时,AP可以向与AP关联的至少一个STA发送WUR帧来通知其更换的频道。If a STA reduces power consumption through the auxiliary wake-up interface, the STA's primary communication interface may be in a deep sleep state (eg, the transmitter is off) for most of the time and cannot receive messages. Since the STA sleeps (eg, the receiving transmitter of the STA's primary communication interface is turned off), the primary communication interfaces of all STAs within a BSS may not be woken up at the same time (eg, receiving state). When the communication environment changes, the AP determines that it is necessary to switch the working channel so as to be able to maintain the connection with the STA, the AP may not be able to directly broadcast the channel switch announcement message (Channel Switch Announcement Element). However, if the existing working channel is seriously interfered, the AP needs to switch the working channel and the STA associated with the notification in time to ensure that the message can be completed in time when the STA has a message or an urgent message needs to be sent to the AP. . At this time, the AP may send a WUR frame to at least one STA associated with the AP to notify its replaced channel.

图3为是一种WUR帧结构示例。如图3所示,WUR帧可以包括传统802.11前导(Legacy 802.11Preamble)、唤醒前导(Wake-up Preamble)、控制信息(Control Info)、网络标识(Network ID)、接收地址(Receive Address)、主通信接口的工作频道标识(Channel ID)和校验信息。FIG. 3 is an example of a WUR frame structure. As shown in FIG. 3, the WUR frame may include a legacy 802.11 Preamble, a Wake-up Preamble, a Control Info, a Network ID, a Receive Address, and a Master. The channel ID and verification information of the communication interface.

其中,传统802.11前导为可选(optional)。该传统802.11前导部分可以用于后向兼容,使得传统Wi-Fi设备能据此判断当前正在传输的帧为Wi-Fi帧,从而选择相应的信道侦听判决阈值和退避时间。Among them, the traditional 802.11 preamble is optional. The legacy 802.11 preamble portion can be used for backward compatibility, so that the conventional Wi-Fi device can judge that the frame currently being transmitted is a Wi-Fi frame, thereby selecting a corresponding channel listening decision threshold and backoff time.

控制信息(Control Info)可以用来指示该WUR帧的帧类型以及其他信息,例如,指示该WUR帧是一个频道切换指示消息。Control Info can be used to indicate the frame type of the WUR frame and other information, for example, indicating that the WUR frame is a channel switch indication message.

接收地址是与AP处于同一基本服务集的至少一个STA的辅助唤醒接口的广播地址或者一个比特序列,用于指示该WUR帧的目标接收者,其中,该WUR帧的目标接收者可以是一个基本服务集(BSS)内的所有具有辅助唤醒接口的STA。The receiving address is a broadcast address or a bit sequence of the auxiliary wake-up interface of at least one STA that is in the same basic service set as the AP, and is used to indicate a target receiver of the WUR frame, wherein the target recipient of the WUR frame may be a basic All STAs in the Service Set (BSS) with an auxiliary wake-up interface.

网络标识为可选。该网络标识可以是接收地址的一部分;所述网络标识可以是基本服务集的标识信息,用于指示AP以及STA所在的基本服务集,例如,BSS color、BSSID或 Hashed BSSID或压缩的BSSID等等。The network ID is optional. The network identifier may be part of a receiving address; the network identifier may be identifier information of a basic service set, and is used to indicate an AP and a basic service set where the STA is located, for example, a BSS color, a BSSID, or Hashed BSSID or compressed BSSID and more.

校验信息可以是消息真实性校验码(Message Integrity Code,MIC)或消息真实性校验码和帧校验序列(Frame Check Sequence,FCS)的组合;校验信息的校验对象包括主通信接口的新的工作频道,还可以包括控制信息、网络标识、以及接收地址。其中,校验信息同时包括MIC和FCS时,MIC用于帮助接收端校验WUR帧中校验对象的真实性,FCS用于帮助接收者校验WUR帧中校验对象的正确性,即检查所收到的WUR的内容在传输过程中有没有出错;校验信息仅包括MIC时,MIC用于帮助接收端校验WUR帧中校验对象的真实性以及正确性。The verification information may be a message integrity code (MIC) or a combination of a message authenticity check code and a frame check sequence (FCS); the check object of the check information includes the primary communication The new working channel of the interface may also include control information, network identification, and receiving address. Wherein, when the verification information includes both the MIC and the FCS, the MIC is used to help the receiving end verify the authenticity of the check object in the WUR frame, and the FCS is used to help the receiver verify the correctness of the check object in the WUR frame, that is, check The content of the received WUR has no error during the transmission; when the verification information only includes the MIC, the MIC is used to help the receiving end verify the authenticity and correctness of the check object in the WUR frame.

唤醒前导、控制信息、网络标识、接收地址、主通信接口的工作频道标识和校验信息是可通断键控(On-Off Keying,OOK)调制。The wake-up preamble, control information, network identification, receiving address, working channel identification and verification information of the main communication interface are On-Off Keying (OOK) modulation.

S220,STA根据TSF以及密钥生成第二接收地址。S220. The STA generates a second receiving address according to the TSF and the key.

STA需使用根据TSF以及与AP协商好的密钥生成的第二接收地址来接收该WUR帧。具体地,STA通过将第二接收地址与第一接收地址进行匹配,确定WUR帧的目标接收地址是不是自己。当第二接收地址与第一接收地址匹配时,确定该WUR帧的目标接收者是自己,当第二接收地址与第一接收地址不匹配时,确定该WUR帧的目标接收者不是自己。当STA确定WUR帧的目标接收者不是自己时,结束对该WUR帧的处理。The STA needs to receive the WUR frame using a second receiving address generated according to the TSF and a key negotiated with the AP. Specifically, the STA determines whether the target receiving address of the WUR frame is itself by matching the second receiving address with the first receiving address. When the second receiving address matches the first receiving address, it is determined that the target recipient of the WUR frame is itself. When the second receiving address does not match the first receiving address, it is determined that the target recipient of the WUR frame is not itself. When the STA determines that the target recipient of the WUR frame is not itself, the processing of the WUR frame is ended.

需要说明的是,STA的第二接收地址与AP的第一接收地址需要同步生成。其中,同步生成是指STA生成第二接收地址的方法和时刻与AP生成第一接收地址的方法和时刻相同。所述生成时刻相同是指STA使用STA的TSF确定第二接收地址的生成时刻,AP使用AP的TSF确定第一接收地址的生成时刻,并且STA和AP都假设他们的TSF是相同的(而实际上他们的TSF可能不同)。It should be noted that the second receiving address of the STA and the first receiving address of the AP need to be generated synchronously. The synchronous generation means that the method and time of the STA generating the second receiving address are the same as the method and time for the AP to generate the first receiving address. The same generation time means that the STA determines the generation time of the second reception address by using the TSF of the STA, and the AP determines the generation time of the first reception address by using the TSF of the AP, and both the STA and the AP assume that their TSFs are the same (the actual Their TSF may be different).

另外,STA的第二接收地址与AP的第一接收地址可以周期性的生成并更新,该周期可以大于STA生成第二接收地址的时刻与AP生成第一接收地址的时刻之间差值,小于等于频道切换的最小频率。In addition, the second receiving address of the STA and the first receiving address of the AP may be periodically generated and updated, and the period may be greater than a difference between a time when the STA generates the second receiving address and a moment when the AP generates the first receiving address, which is smaller than Equal to the minimum frequency of channel switching.

或者,AP在每次发送完所述WUR帧之后立即生成下一次进行频道切换时需要用到的第一接收地址,STA在每次接收完所述WUR帧之后立即生成下一次接收携带频道切换信息的WUR帧需要用到的第二接收地址,并且STA和AP生成接收地址的方法相同。Alternatively, the AP generates a first receiving address that needs to be used for the next channel switching after each time the WUR frame is sent, and the STA generates the next receiving and carrying channel switching information every time after receiving the WUR frame. The second receiving address is required for the WUR frame, and the STA and the AP generate the same method for receiving the address.

上述生成接收地址的方法可以是,例如,STA和AP根据TSF减去2N的差的高M位以及密钥通过哈希运算或加密运算得到,其中,N和M为整数,N和M是由AP和STA的时间同步操作的频度和晶振的精度确定,例如,可以选择N=25,M=38。所述时间同步操作是指AP向STA发送TSF信息,以使STA的TSF信息与AP的TSF信息相同。The method for generating the receiving address may be, for example, that the STA and the AP subtract the high M bit of the difference of 2 N according to the TSF and the key is obtained by a hash operation or an encryption operation, where N and M are integers, and N and M are It is determined by the frequency of the time synchronization operation of the AP and the STA and the accuracy of the crystal oscillator. For example, N=25 and M=38 can be selected. The time synchronization operation means that the AP sends TSF information to the STA, so that the TSF information of the STA is the same as the TSF information of the AP.

还需要说明的是,STA可以在接收用于频道切换的WUR帧之前,生成第二接收地址,以便能够正确的接收该WUR帧。It should also be noted that the STA may generate a second receiving address before receiving the WUR frame for channel switching so as to be able to correctly receive the WUR frame.

S230,在第一接收地址与第二接收地址匹配时,STA使用校验信息对WUR帧中至少包括频道标识的内容的正确性进行验证。S230. When the first receiving address matches the second receiving address, the STA uses the verification information to verify the correctness of the content including at least the channel identifier in the WUR frame.

STA在确定WUR帧的目标接收者是自己后,需要对该WUR帧的真实性和/或正确性进行验证。具体地,通过WUR帧中携带的校验信息对WUR帧中的校验对象进行校验。After determining that the target receiver of the WUR frame is itself, the STA needs to verify the authenticity and/or correctness of the WUR frame. Specifically, the check object in the WUR frame is verified by the check information carried in the WUR frame.

具体地,校验信息同时包括MIC和FCS时,STA通过MIC用于校验WUR帧中校验对象的真实性,通过FCS校验WUR帧中校验对象的正确性,即检查所收到的WUR的内 容在传输过程中有没有出错;校验信息仅包括MIC时,STA通过MIC校验WUR帧中校验对象的真实性和正确性。Specifically, when the verification information includes both the MIC and the FCS, the STA uses the MIC to verify the authenticity of the verification object in the WUR frame, and verifies the correctness of the verification object in the WUR frame through the FCS, that is, checks the received Inside WUR Whether there is any error in the transmission process; when the verification information only includes the MIC, the STA verifies the authenticity and correctness of the check object in the WUR frame through the MIC.

S240,AP与STA使用频道标识对应的频道进行通信。S240: The AP communicates with the STA by using a channel corresponding to the channel identifier.

具体地,STA对WUR帧进行验证,确定该WUR帧真实和正确后,STA可以保存该WUR帧中的频道标识。之后,STA在需要和AP进行数据传输时,STA可以唤醒其主通信接口,STA在通过STA的唤醒后的主通信接口与AP的主通信接口通信时使用保存的最新的频道标识对应的频道与AP进行数据的收发。Specifically, after the STA verifies the WUR frame and determines that the WUR frame is true and correct, the STA may save the channel identifier in the WUR frame. After that, when the STA needs to perform data transmission with the AP, the STA can wake up its main communication interface, and the STA uses the channel corresponding to the latest channel identifier saved when communicating with the main communication interface of the AP through the wake-up main communication interface of the STA. The AP performs data transmission and reception.

STA在一个时间段内可能收到多个用于频道切换的WUR帧。如果STA已经收到一个正确的和真实的用于频道切换的WUR帧,那么STA在该一个时间段内将不再接收和处理其它用于频道切换的WUR帧;其中,该时间段是指AP连续两次进行频道切换的最小时间间隔,例如,可以为67.11秒。当STA需要通过主通信接口与AP的主通信接口通信时,STA的主通信接口使用的工作频道是STA记录的主通信接口的工作频道,即用于频道切换的WUR帧中携带的工作频道。The STA may receive multiple WUR frames for channel switching within a period of time. If the STA has received a correct and true WUR frame for channel switching, the STA will no longer receive and process other WUR frames for channel switching during that time period; wherein the time period refers to the AP The minimum time interval for channel switching twice in succession, for example, may be 67.11 seconds. When the STA needs to communicate with the AP's main communication interface through the main communication interface, the working channel used by the STA's main communication interface is the working channel of the main communication interface recorded by the STA, that is, the working channel carried in the WUR frame for channel switching.

实际上,在AP与STA需要通过主通信接口通信时,可能经过了多次主通信接口的工作频道切换,STA需选择最近一次频道切换所保存的主通信接口的频道标识对应的频道与AP进行通信。In fact, when the AP and the STA need to communicate through the main communication interface, the working channel switching of the main communication interface may be performed multiple times, and the STA needs to select the channel corresponding to the channel identifier of the main communication interface saved by the last channel switching and the AP. Communication.

另外,对于接收地址生成的时机还可以是AP发送完用于频道切换的WUR帧后,即生成用于下一次频道切换消息(如,携带频道标识的WUR帧)中将要携带的接收地址或者一个比特序列,相应的,STA可以在收到一个正确的和真实的频道切换指示消息后,生成接收下一次用于频道切换的WUR帧时使用的接收地址或者一个比特序列。STA新生成接收地址的方法与AP新生成接收地址的方法相同。通过在正确接收到一个用于频道切换的WUR帧后即生成用于下一次频道切换的接收地址,STA可以避免接收和处理重复的频道切换指示消息,也可以避免接收和处理攻击者恶意重播的频道切换指示消息,可以让STA更加节省能耗。其中,AP与STA之间用于第一次频道切换的接收地址,可以是在AP与STA建立安全连接过程中或之后,由AP生成发送给STA,或者,在AP与STA建立安全连接过程中或完成时,AP与STA各自生成用于第一次频道切换的接收地址。In addition, the timing of receiving the address generation may also be that after the AP sends the WUR frame for channel switching, the receiving address or a one to be carried in the next channel switching message (eg, the WUR frame carrying the channel identifier) is generated. The bit sequence, correspondingly, after receiving a correct and true channel switching indication message, the STA may generate a receiving address or a bit sequence used when receiving the next WUR frame for channel switching. The method of newly generating a receiving address by the STA is the same as the method of newly generating a receiving address by the AP. By generating a receiving address for the next channel switching after correctly receiving a WUR frame for channel switching, the STA can avoid receiving and processing repeated channel switching indication messages, and can also avoid receiving and handling malicious attacks by the attacker. The channel switching indication message can make the STA more energy efficient. The receiving address for the first channel switching between the AP and the STA may be sent by the AP to the STA during or after the AP establishes a secure connection with the STA, or during the establishment of a secure connection between the AP and the STA. Or when completed, the AP and the STA each generate a receiving address for the first channel switching.

本申请实施例中AP通过发送WUR帧及时的将主通信接口的频道切换指示消息发送给关联的STA,避免了AP因为发送频道切换指示消息而要唤醒STA的主通信接口的操作,节省了STA的电能。进一步的,在WUR帧中携带接收地址以及校验信息,通过接收地址来指示目标接收者,且周期性更换AP与STA每次频道切换所用的接收地址,通过校验信息来验证WUR帧中内容的正确性和/或真实性,由此,STA可以降低接收和处理重复的频道切换指示消息的概率,也可以降低接收和处理攻击者恶意重播的频道切换指示消息的概率,使得STA更加节省能耗。In the embodiment of the present application, the AP sends the WUR frame to send the channel switching indication message of the main communication interface to the associated STA in time, thereby avoiding the operation of the AP to wake up the STA's main communication interface because the channel switching indication message is sent, thereby saving the STA. Electrical energy. Further, the WUR frame carries the receiving address and the check information, indicates the target receiver by receiving the address, and periodically replaces the receiving address used by the AP and the STA for each channel switching, and verifies the content in the WUR frame by verifying the information. The correctness and/or authenticity, whereby the STA can reduce the probability of receiving and processing the repeated channel switching indication message, and can also reduce the probability of receiving and processing the channel switching indication message maliciously replayed by the attacker, so that the STA can save more energy. Consumption.

图4为本申请实施例提供的一个示例,如图4所示,AP或者STA可以根据时间同步函数(TSF)或者当前的接收地址(Receive Address),以及密钥(Key)生成频道切换时需要填的接收地址。图4所示例中的算法可以是哈希(hash)算法或者加密算法。图4所示例中的密钥是AP和STA商量好的秘钥,例如,可以是组临时密钥(Group Temporal Key,GTK)。FIG. 4 is an example provided by an embodiment of the present application. As shown in FIG. 4, an AP or an STA may generate a channel switch according to a time synchronization function (TSF) or a current receive address (Receive Address) and a key (Key). Fill in the receiving address. The algorithm in the example shown in FIG. 4 may be a hash algorithm or an encryption algorithm. The key in the example shown in FIG. 4 is a key negotiated by the AP and the STA, and may be, for example, a Group Temporal Key (GTK).

为了保证AP侧生成的接收地址和STA侧生成的接收地址是一样的,AP和STA使用 时间同步函数(TSF)的高位,如图4所示例。假设AP和其关联的所有STA在一天时间里(24小时)做一次时间同步操作,并且AP和STA的晶振的精度为±100ppm,那么在一天时间里(24小时),AP和STA的时间同步函数的最大差别为17.28秒。时间同步函数(TSF)的低25位能够表示的最大时间值约为33.55秒。因此,假设AP和STA在一天时间里(24小时)做一次时间同步操作,那么AP的“TSF减去225的差的高38位”与STA的“TSF减去225的差的高38位”就总是相同的。图4所示例中,所述时间同步函数(TSF)的高位可以是“TSF减去225的差的高38位”。另外,为了保证每次生成接收地址时使用的“TSF减去225的差的高38位”都不同,连续两次Wi-Fi工作频道切换的最小时间间隔需要大于67.11秒。To ensure that the receiving address generated by the AP side is the same as the receiving address generated by the STA side, the AP and the STA use the high order of the time synchronization function (TSF), as shown in FIG. Suppose the AP and all its associated STAs do a time synchronization operation in one day (24 hours), and the accuracy of the AP and STA crystals is ±100ppm, then the time synchronization of the AP and STA in one day (24 hours) The biggest difference in the function is 17.28 seconds. The lower 25 bits of the Time Synchronization Function (TSF) can represent a maximum time value of approximately 33.55 seconds. Therefore, assuming that the AP and the STA do a time synchronization operation in one day (24 hours), the AP's "TSF minus the difference of the high 25 bits of 2 25 " and the STA's "TSF minus the difference of 2 25 38" Bits are always the same. In the example shown in FIG. 4, the upper bit of the time synchronization function (TSF) may be "TSF minus the high 38 bits of the difference of 2 25 ". In addition, in order to ensure that the "TSF minus the difference of the high 38 bits of the 2 25 " used each time the reception address is generated is different, the minimum time interval of the two consecutive Wi-Fi working channel switching needs to be greater than 67.11 seconds.

图5为本申请实施例提供的另一个示例,如图5所示,为了防止攻击者恶意攻击,例如,攻击者重播一个频道切换指示消息并且在重播时修改Wi-Fi接口的工作频道(Channel ID),从而造成STA错误切换工作频道,不知道AP的Wi-Fi接口的真正的工作频道,所述校验信息的校验对象需要至少包括Wi-Fi接口的工作频道(Channel ID),即AP需要至少根据Wi-Fi接口的工作频道(Channel ID)和秘钥(Key)生成所述校验信息。FIG. 5 is another example provided by the embodiment of the present application. As shown in FIG. 5, in order to prevent an attacker from maliciously attacking, for example, an attacker replays a channel switching indication message and modifies a working channel of a Wi-Fi interface during replay (Channel) ID), causing the STA to incorrectly switch the working channel, not knowing the real working channel of the Wi-Fi interface of the AP, and the verification object of the verification information needs to include at least the working channel (Channel ID) of the Wi-Fi interface, ie The AP needs to generate the verification information according to at least a channel ID and a key of the Wi-Fi interface.

图5所示中的校验信息生成算法可以是哈希(hash)算法或加密算法;图5所示中的密钥(Key)可以是组临时密钥(Group Temporal Key,GTK)或其它AP与STA协商的密钥。The verification information generation algorithm shown in FIG. 5 may be a hash algorithm or an encryption algorithm; the key (Key) shown in FIG. 5 may be a group temporary key (GTK) or other AP. The key negotiated with the STA.

需要说明的是,在本申请实施例中,生成接收地址的密钥与生成校验信息的密钥可以为同一个密钥,也可以是AP和STA分别秘密协商好的不同的密钥。It should be noted that, in the embodiment of the present application, the key for generating the receiving address and the key for generating the verification information may be the same key, or may be different keys secretly negotiated by the AP and the STA respectively.

本申请实施例提供另一种频道切换方法,如图6所示方法具体包括如下步骤:The embodiment of the present application provides another channel switching method. The method shown in FIG. 6 specifically includes the following steps:

S610,AP与STA建立安全连接,AP通过该安全连接向STA发送第一接收地址。S610: The AP establishes a secure connection with the STA, and the AP sends the first receiving address to the STA through the secure connection.

AP发送的第一个频道切换指示消息中的接收地址,即目标接收者的辅助唤醒接口的广播地址,可以是AP在与STA建立安全连接之后生成并发送给所述STA的。The receiving address in the first channel switching indication message sent by the AP, that is, the broadcast address of the auxiliary wake-up interface of the target receiver, may be generated and sent by the AP to the STA after establishing a secure connection with the STA.

S620,AP发送第一WUR帧,该第一WUR帧包括第一接收地址、第一频道标识以及第一校验信息。接收地址包括至少一个STA的辅助唤醒接口的广播地址或者一个比特序列,接收地址是AP至少根据时间同步函数TSF和密钥生成,其中,第一接收地址用于指示第一WUR帧的目标接收者。密钥是AP与至少一个STA已约定或协商好的信息,至少一个STA中的每个STA均至少具有一个辅助唤醒接口和一个主通信接口,第一WUR帧用于指示第一接收地址对应的辅助唤醒接口所在的STA将STA的主通信接口的工作频道切换到频道标识对应的频道,校验信息用于第一WUR帧的目标接收者使用校验信息对WUR帧中至少包括频道标识的内容的正确性以及真实性进行验证。S620. The AP sends a first WUR frame, where the first WUR frame includes a first receiving address, a first channel identifier, and first verification information. The receiving address includes a broadcast address or a bit sequence of the auxiliary wake-up interface of the at least one STA, and the receiving address is generated by the AP according to at least a time synchronization function TSF and a key, wherein the first receiving address is used to indicate a target recipient of the first WUR frame . The key is information that the AP has agreed or negotiated with the at least one STA. Each STA of the at least one STA has at least one auxiliary wake-up interface and one main communication interface, where the first WUR frame is used to indicate the first receiving address. The STA where the auxiliary wake-up interface is located switches the working channel of the STA's main communication interface to the channel corresponding to the channel identifier, and the check information is used by the target receiver of the first WUR frame to use the check information to include at least the channel identifier in the WUR frame. Verify the correctness and authenticity.

其中,AP发送第一WUR帧的过程可以如下面所描述:The process of the AP sending the first WUR frame may be as follows:

步骤A:AP根据每个主通信接口的工作频道受到干扰的情况选择一个新的主通信接口的工作频道。Step A: The AP selects a working channel of a new primary communication interface according to the interference of the working channel of each primary communication interface.

步骤B:AP生成第一WUR帧;该第一WUR帧是一个广播帧;第一WUR帧的格式可以如图3所示。Step B: The AP generates a first WUR frame; the first WUR frame is a broadcast frame; and the format of the first WUR frame can be as shown in FIG. 3.

接收地址的的具体生成方式,可参见结合图4所描述的示例。For the specific generation manner of the receiving address, refer to the example described in conjunction with FIG. 4.

第一校验信息可以是MIC或MIC和FCS;所述校验信息可以用来帮助接收端校验第一WUR帧的正确性和/或真实性。其中,校验信息的具体生成方式,可参见结合图5所描述的示例,由于频道标识以及接收地址等会不同,所以得到的校验信息也会不同。 The first verification information may be MIC or MIC and FCS; the verification information may be used to help the receiving end verify the correctness and/or authenticity of the first WUR frame. For the specific generation manner of the verification information, refer to the example described in conjunction with FIG. 5. Since the channel identifier and the receiving address are different, the obtained verification information may be different.

AP发送第一WUR帧给基本服务集(BSS)内的所有STA(支持辅助唤醒接口的STA);为了提高第一WUR帧能被基本服务集(BSS)内的所有具有辅助唤醒接口的STA都收到的概率,AP可以连续重复发送数次所述频道切换指示消息(即第一WUR帧)。The AP sends the first WUR frame to all STAs in the Basic Service Set (BSS) (STAs supporting the auxiliary wake-up interface); in order to improve the first WUR frame, all STAs in the Basic Service Set (BSS) with the auxiliary wake-up interface are The probability of receiving, the AP may continuously transmit the channel switching indication message (ie, the first WUR frame) several times in succession.

在AP发送完第一WUR帧后,AP可以将其主通信接口的工作频道切换到新的工作频道上;该新的工作频道与所述第一WUR帧中携带的主通信接口的标识所指的工作频道相同。After the AP sends the first WUR frame, the AP may switch the working channel of its primary communication interface to the new working channel; the new working channel and the identifier of the primary communication interface carried in the first WUR frame refer to The working channel is the same.

S630,在本地存储的第一接收地址与第一WUR帧中携带的第一接收地址匹配时,使用第一校验信息对第一WUR帧中至少包括第一频道标识的内容的正确性和/或真实性进行验证。S630, when the first received address that is stored locally matches the first receiving address carried in the first WUR frame, using the first check information to correct the content of the first WUR frame that includes at least the first channel identifier and/or Or verify the authenticity.

STA通过辅助唤醒接口接收第一WUR帧的过程可以如下面所描述:The process of the STA receiving the first WUR frame through the auxiliary wakeup interface may be as follows:

首先,进行第一接收地址匹配,确定第一WUR帧中的目标接收者是不是自己。First, a first receiving address match is performed to determine whether the target recipient in the first WUR frame is itself.

具体地,STA在接收第一WUR帧时,先根据控制信息判断所正在接收的帧是频道切换指示消息。Specifically, when receiving the first WUR frame, the STA first determines, according to the control information, that the frame being received is a channel switching indication message.

然后比较STA存储的第一接收地址与正在接收的第一WUR帧中携带的第一接收地址是否相同:Then comparing whether the first receiving address stored by the STA is the same as the first receiving address carried in the first WUR frame being received:

如果第一接收地址相同,则STA继续处理第一WUR帧;If the first receiving address is the same, the STA continues to process the first WUR frame;

如果接收地址不相同,则所述STA停止处理第一WUR帧。If the receiving addresses are not the same, the STA stops processing the first WUR frame.

然后,对第一WUR帧中的内容进行正确性校验和/或真实性认证。Then, the content in the first WUR frame is verified for correctness and/or authenticity.

具体地,STA先在本地生成第一WUR帧的第一校验信息,STA生成校验信息的方法与AP生成校验信息的方法相同。Specifically, the STA first generates the first check information of the first WUR frame locally, and the method for the STA to generate the check information is the same as the method for the AP to generate the check information.

STA然后比较本地生成的第一校验信息与第一WUR帧中携带的第一校验信息是否相同:The STA then compares whether the locally generated first check information is the same as the first check information carried in the first WUR frame:

如果第一校验信息相同,则STA继续处理第一WUR帧;If the first check information is the same, the STA continues to process the first WUR frame;

如果第一校验信息不相同,则STA停止处理第一WUR帧。If the first check information is not the same, the STA stops processing the first WUR frame.

S640,STA保存第一频道标识。S640, the STA saves the first channel identifier.

在正确性以及真实性校验通过后,则保存第二接收地址以便在下一次频道切换过程中用于确定目标接收者。保存第一频道标识,以便在需要时通过主通信接口与AP进行数据传输。After the correctness and authenticity verification are passed, the second receiving address is saved for use in determining the target recipient during the next channel switching process. The first channel identifier is saved to perform data transmission with the AP through the primary communication interface when needed.

其中,在AP发送第一WUR帧后,可以生成第二接收地址,并通过秘密的方式,向STA发送第二接收地址。第二接收地址用于指示下一个WUR帧的目标接收者。After the AP sends the first WUR frame, the second receiving address may be generated, and the second receiving address is sent to the STA in a secret manner. The second receive address is used to indicate the target recipient of the next WUR frame.

STA可能收到多个第一WUR帧。如果STA已经收到一个正确的和真实的第一WUR帧,那么STA在一个时间段内将不再接收和处理其它第一WUR帧;该时间段是指AP连续两次进行频道切换的最小时间间隔,例如,67.11秒。当STA需要通过主通信接口与AP的主通信接口通信时,STA的主通信接口使用的工作频道是STA记录的主通信接口的工作频道,即第一WUR帧中携带的工作频道。The STA may receive multiple first WUR frames. If the STA has received a correct and true first WUR frame, the STA will not receive and process other first WUR frames in a period of time; the time period refers to the minimum time that the AP performs channel switching twice consecutively. Interval, for example, 67.11 seconds. When the STA needs to communicate with the primary communication interface of the AP through the primary communication interface, the working channel used by the STA's primary communication interface is the working channel of the primary communication interface recorded by the STA, that is, the working channel carried in the first WUR frame.

其中,在本次发送用于频道切换的WUR帧,到AP与STA通过主通信接口进行数据传输之间,可以还包括多次频道切换,每次频道切换需要执行如下步骤:Between the WUR frame for channel switching and the data transmission between the AP and the STA through the main communication interface, the channel switching may be performed multiple times. Each channel switching needs to perform the following steps:

S650,AP向至少一个STA发送第二WUR帧,该第二WUR帧包括第二接收地址、第二频道标识以及第二校验信息。 S650. The AP sends a second WUR frame to the at least one STA, where the second WUR frame includes a second receiving address, a second channel identifier, and second parity information.

第二WUR帧放入格式可以如图3所示。The format of the second WUR frame can be as shown in FIG.

S660,STA在本地存储的第二接收地址与第二WUR帧中携带的第二接收地址匹配时,使用第二校验信息对第二WUR帧中至少包括第二频道标识的内容的正确性进行验证。S660. When the second receiving address that is stored in the second WUR frame matches the second receiving address that is carried in the second WUR frame, the STA uses the second check information to perform correctness on the content of the second WUR frame that includes at least the second channel identifier. verification.

S670,STA保存第二频道标识。S670. The STA saves the second channel identifier.

在AP与STA需要通过主通信接口进行数据传输时,所述方法还包括:When the AP and the STA need to perform data transmission through the main communication interface, the method further includes:

S680,STA使用最近的频道标识对应的频道通过STA的主通信接口与AP的主通信接口进行通信。具体地,STA可以先唤醒所述STA的主通信接口(如,可以通过STA的WUR模块发送唤醒信号给所述STA的主通信接口以将其唤醒),然后通过唤醒后的所述STA的主通信接口与AP的主通信接口进行通信。S680. The STA communicates with the primary communication interface of the AP through the primary communication interface of the STA by using the channel corresponding to the latest channel identifier. Specifically, the STA may first wake up the primary communication interface of the STA (eg, may send a wake-up signal to the STA's main communication interface through the WUR module of the STA to wake it up), and then pass the wake-up of the STA's main The communication interface communicates with the primary communication interface of the AP.

其中,在AP发送第二WUR帧后,可以生成第三接收地址,并通过秘密的方式,向STA发送第三接收地址。第三接收地址用于指示下一个WUR帧的目标接收者。After the second WUR frame is sent by the AP, the third receiving address may be generated, and the third receiving address is sent to the STA in a secret manner. The third receiving address is used to indicate the target recipient of the next WUR frame.

在AP与STA需要通过主通信接口通信时,可能经过了多次频道切换,STA需选择最近一次频道切换所保存的频道标识对应的频道与AP进行通信。When the AP and the STA need to communicate through the main communication interface, the channel may be switched multiple times, and the STA needs to select the channel corresponding to the channel identifier saved by the last channel switch to communicate with the AP.

图7为本申请实施例提供的一种接入点结构示意图。如图7所示,AP 10包括:处理器701、存储器702、收发器703以及总线704。其中,处理器701、存储器702和收发器703通过总线704相互连接。其中,收发器703可以提供主通信接口,例如Wi-Fi接口,收发器703可以是主通信模块,具体可以是802.11模块。进一步可选的,在一些实施例中,所述收发器703还可以提供辅助通信接口,例如WUR接口,即所述收发器703还可以提供发送WUR帧的功能,这种情况下,所述收发器703可以包括802.11模块和WUR模块两部分。总线704可以是外设部件互连标准(英文:Peripheral Component Interconnect,简称:PCI)总线或扩展工业标准结构(英文:Extended Industry Standard Architecture,简称:EISA)总线等。上述总线704可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。AP10可以执行图2以及图6中任一附图相关的实施例中AP的相关方法步骤。FIG. 7 is a schematic structural diagram of an access point according to an embodiment of the present application. As shown in FIG. 7, the AP 10 includes a processor 701, a memory 702, a transceiver 703, and a bus 704. The processor 701, the memory 702, and the transceiver 703 are connected to each other through a bus 704. The transceiver 703 can provide a main communication interface, such as a Wi-Fi interface, and the transceiver 703 can be a main communication module, and specifically can be an 802.11 module. Further, in some embodiments, the transceiver 703 may further provide an auxiliary communication interface, such as a WUR interface, that is, the transceiver 703 may further provide a function of transmitting a WUR frame. In this case, the transceiver The 703 can include two parts, an 802.11 module and a WUR module. The bus 704 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus 704 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 7, but it does not mean that there is only one bus or one type of bus. The AP 10 can perform the associated method steps of the AP in the embodiment associated with any of Figures 2 and 6.

本申请实施例还提供一种非易失性存储介质,该非易失性存储介质中存储有一个或多个程序代码,当AP 10的处理器701执行该程序代码时,该AP10执行图2以及图6中任一附图中AP的相关方法步骤。The embodiment of the present application further provides a non-volatile storage medium, where one or more program codes are stored, and when the processor 701 of the AP 10 executes the program code, the AP 10 executes FIG. 2 . And related method steps of the AP in any of the figures in FIG. 6.

其中,本申请实施例提供的AP 10中各个模块或单元的详细描述以及各个模块或单元执行图2或图6中任一附图中的相关方法步骤后所带来的技术效果可以参考本申请方法实施例中的相关描述,此处不再赘述。The detailed description of each module or unit in the AP 10 provided by the embodiment of the present application and the technical effects brought by each module or unit performing the related method steps in any of FIG. 2 or FIG. 6 may refer to the present application. The related description in the method embodiment is not described here.

图8为本申请实施例提供的一种站点结构示意图。参阅图8所示,STA 20包括:处理器801、存储器802、WUR模块803、主通信模块804。其中处理器801、存储器802、WUR模块803以及主通信模块804可以通过总线相互连接相互连接。其中,总线可以是PCI总线或EISA总线等。总线可以分为地址总线、数据总线、控制总线等。WUR模块803提供WUR接口,WUR模块和辅助唤醒模块所指相同。主通信模块804提供主通信接口,主通信模块804可以是802.11模块。STA20可以执行图2以及图6中任一附图相关的实施例中STA的相关方法步骤。FIG. 8 is a schematic structural diagram of a station according to an embodiment of the present application. Referring to FIG. 8, the STA 20 includes a processor 801, a memory 802, a WUR module 803, and a main communication module 804. The processor 801, the memory 802, the WUR module 803, and the main communication module 804 can be connected to each other through a bus. The bus can be a PCI bus or an EISA bus. The bus can be divided into an address bus, a data bus, a control bus, and the like. The WUR module 803 provides the WUR interface, which is the same as the WUR module and the auxiliary wake-up module. The main communication module 804 provides a primary communication interface, and the primary communication module 804 can be an 802.11 module. The STA 20 may perform the associated method steps of the STA in the embodiment associated with any of Figures 2 and 6.

本申请实施例还提供一种非易失性存储介质,该非易失性存储介质中存储有一个或多个程序代码,当STA 20的处理器801执行该程序代码时,STA20可以执行图2以及图6 中任一附图相关的实施例中STA的相关方法步骤。The embodiment of the present application further provides a non-volatile storage medium in which one or more program codes are stored. When the processor 801 of the STA 20 executes the program code, the STA 20 can execute FIG. 2 . And Figure 6 Related method steps of the STA in the embodiment related to any of the figures.

具体地,WUR模块1003提供的辅助唤醒接口用于接收AP发送的WUR帧,该WUR帧包括第一接收地址、频道标识以及校验信息,该第一接收地址包括STA的辅助唤醒接口的广播地址,该第一接收地址是AP至少根据时间同步函数TSF和密钥生成,该密钥是AP与STA已约定或协商好的信息,WUR帧用于指示第一接收地址对应的辅助唤醒接口所在的STA将STA的主通信接口的工作频道切换到该频道标识对应的频道,该第一接收地址用于指示所述WUR帧的目标接收者;Specifically, the auxiliary wake-up interface provided by the WUR module 1003 is configured to receive a WUR frame sent by the AP, where the WUR frame includes a first receiving address, a channel identifier, and check information, where the first receiving address includes a broadcast address of the STA's auxiliary wake-up interface. The first receiving address is generated by the AP according to the time synchronization function TSF and the key, and the key is information that the AP and the STA have agreed or negotiated, and the WUR frame is used to indicate that the auxiliary wakeup interface corresponding to the first receiving address is located. The STA switches the working channel of the STA's main communication interface to the channel corresponding to the channel identifier, where the first receiving address is used to indicate the target receiver of the WUR frame;

处理器802用于根据TSF以及密钥生成第二接收地址;The processor 802 is configured to generate a second receiving address according to the TSF and the key;

处理器802还用于,在所述第一接收地址与所述第二接收地址匹配时,使用所述校验信息对所述WUR帧中至少包括所述频道标识的内容的正确性和/或真实性进行验证;The processor 802 is further configured to: when the first receiving address matches the second receiving address, use the verification information to correct the content of the WUR frame that includes at least the channel identifier and/or Verification of authenticity;

主通信模块804提供的主通信接口,用于在验证通过后,通过所述频道标识对应的频道与AP进行通信,即,向STA发送数据,或接收STA发送的数据。The main communication interface provided by the main communication module 804 is configured to communicate with the AP through the channel corresponding to the channel identifier after the verification is passed, that is, send data to the STA, or receive data sent by the STA.

其中,本申请实施例提供的STA 20中各个模块的详细描述以及各个模块执行图2以及图6中任一附图中的相关方法步骤后所带来的技术效果可以参考本申请方法实施例中的相关描述,此处不再赘述。The detailed description of each module in the STA 20 provided by the embodiment of the present application and the technical effects of each module performing the related method steps in any of FIG. 2 and FIG. 6 may be referred to in the method embodiment of the present application. The related description is not repeated here.

专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person skilled in the art should further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, in order to clearly illustrate hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.

应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the present application, the size of the serial numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention. The implementation process constitutes any limitation.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.

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

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, 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 of the 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 separately, or two or more units may be integrated into one unit.

本发明各方法实施例之间相关部分可以相互参考;各装置实施例所提供的装置用于执 行对应的方法实施例所提供的方法,故各装置实施例可以参考相关的方法实施例中的相关部分进行理解。The relevant parts of the method embodiments of the present invention may be referred to each other; the apparatus provided by each device embodiment is used for The method provided by the corresponding method embodiment is performed, so that each device embodiment can be understood by referring to related parts in the related method embodiments.

本发明各装置实施例中给出的装置结构图仅示出了对应的装置的简化设计。在实际应用中,该装置可以包含任意数量的发射器,接收器,收发器,处理器,存储器,主通信模块,WUR模块等,以实现本发明各装置实施例中该装置所执行的功能或操作,而所有可以实现本申请的装置都在本申请的保护范围之内。The device configuration diagrams given in the various device embodiments of the present invention show only a simplified design of the corresponding device. In practical applications, the device may include any number of transmitters, receivers, transceivers, processors, memories, main communication modules, WUR modules, etc., to implement the functions performed by the device in various embodiments of the present invention or Operation, and all devices that can implement the present application are within the scope of the present application.

本发明各实施例中提供的消息/帧/指示信息、模块或单元等的名称仅为示例,可以使用其他名称,只要消息/帧/指示信息、模块或单元等的作用相同即可。The names of the message/frame/instruction information, modules, units, and the like provided in the embodiments of the present invention are merely examples, and other names may be used as long as the functions of the message/frame/instruction information, the module or the unit, and the like are the same.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令处理器完成,所述的程序可以存储于计算机可读存储介质中,所述存储介质是非短暂性(英文:non-transitory)介质,例如随机存取存储器,只读存储器,快闪存储器,硬盘,固态硬盘,磁带(英文:magnetic tape),软盘(英文:floppy disk),光盘(英文:optical disc)及其任意组合。It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be performed by a program, and the program may be stored in a computer readable storage medium, which is non-transitory ( English: non-transitory) media, such as random access memory, read-only memory, flash memory, hard disk, solid state disk, magnetic tape (English: magnetic tape), floppy disk (English: floppy disk), CD (English: optical disc) And any combination thereof.

以上所述,仅为本申请较佳的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应该以权利要求的保护范围为准。 The above description is only a preferred embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed in the present application. Replacement should be covered by the scope of this application. Therefore, the scope of protection of the present application should be determined by the scope of protection of the claims.

Claims (24)

一种频道切换的方法,其特征在于,包括:A method for channel switching, comprising: 接入点AP发送唤醒无线电WUR帧,所述WUR帧包括第一接收地址、频道标识以及校验信息,所述第一接收地址包括至少一个STA的辅助唤醒接口的广播地址,所述第一接收地址是所述AP至少根据时间同步函数TSF和密钥生成,所述密钥是所述AP与所述至少一个STA约定或协商好的信息,所述至少一个STA中的每个STA均至少具有一个辅助唤醒接口和一个主通信接口,所述WUR帧用于指示所述第一接收地址对应的辅助唤醒接口所在的STA将所述STA的主通信接口的工作频道切换到所述频道标识对应的频道,所述第一接收地址用于指示所述WUR帧的目标接收者,所述校验信息用于所述WUR帧的目标接收者使用所述校验信息对所述WUR帧中至少包括所述频道标识的内容的正确性和/或真实性进行验证;The access point AP sends a wake-up radio WUR frame, where the WUR frame includes a first receiving address, a channel identifier, and check information, where the first receiving address includes a broadcast address of the auxiliary wake-up interface of the at least one STA, the first receiving The address is that the AP is generated according to at least a time synchronization function TSF and a key, the key is information that the AP agrees or negotiates with the at least one STA, and each of the at least one STA has at least An auxiliary wake-up interface and a main communication interface, where the WUR frame is used to indicate that the STA where the auxiliary wake-up interface corresponding to the first receiving address is located switches the working channel of the STA's main communication interface to the corresponding channel identifier Channel, the first receiving address is used to indicate a target receiver of the WUR frame, and the check information is used by a target receiver of the WUR frame to include at least the WUR frame by using the check information. Verifying the correctness and/or authenticity of the content of the channel identifier; 在所述AP需要与所述至少一个STA的主通信接口通信时,所述AP的主通信接口使用所述频道标识对应的频道与所述至少一个STA的主通信接口通信。When the AP needs to communicate with the primary communication interface of the at least one STA, the primary communication interface of the AP communicates with the primary communication interface of the at least one STA using a channel corresponding to the channel identifier. 根据权利要求1所述的方法,其特征在于,所述第一接收地址根据时间同步函数TSF以及密钥生成包括:The method according to claim 1, wherein the first receiving address according to the time synchronization function TSF and the key generation comprises: 所述第一接收地址根据TSF减去2N的差的高M位以及所述密钥通过哈希运算或加密运算得到,其中,N和M为整数,N和M是由AP和STA的时间同步操作的频度和晶振的精度确定。The first receiving address is obtained by subtracting the high M bit of the difference of 2 N according to the TSF and the key is obtained by a hash operation or an encryption operation, wherein N and M are integers, and N and M are times by the AP and the STA. The frequency of the synchronous operation and the accuracy of the crystal oscillator are determined. 根据权利要求1或2所述的方法,其特征在于,所述第一接收地址是所述AP至少根据时间同步函数TSF和密钥生成包括:The method according to claim 1 or 2, wherein the first receiving address is that the AP generates the at least the time synchronization function TSF and the key according to at least: 所述第一接收地址是所述AP至少根据时间同步函数TSF和密钥周期性地生成,且所述至少一个STA生成第二接收地址的方法和生成周期与所述AP生成第一接收地址的方法和生成周期相同,所述第二接收地址用于所述至少一个STA接收所述WUR帧。The first receiving address is that the AP is periodically generated according to at least a time synchronization function TSF and a key, and the method for generating the second receiving address by the at least one STA and the generating period and the AP generating the first receiving address are The method and the generation period are the same, and the second receiving address is used by the at least one STA to receive the WUR frame. 根据权利要求1-3任意一项所述的方法,其特征在于,所述第一接收地址还包括:用于指示所述AP所在的基本服务集BSS的信息。The method according to any one of claims 1-3, wherein the first receiving address further comprises: information indicating a basic service set BSS in which the AP is located. 根据权利要求1-4任意一项所述的方法,其特征在于,所述校验信息包括真实性校验码MIC。The method according to any one of claims 1 to 4, wherein the verification information comprises a authenticity check code MIC. 根据权利要求1-5任意一项所述的方法,其特征在于,所述校验信息至少根据所述主通信接口的工作频道和密钥确定。The method of any of claims 1-5, wherein the verification information is determined based at least on a working channel and a key of the primary communication interface. 一种频道切换的方法,其特征在于,站点STA至少具有一个辅助唤醒接口和一个主通信接口,所述方法包括:A method for channel switching, characterized in that the station STA has at least one auxiliary wake-up interface and one main communication interface, and the method includes: 所述STA通过辅助唤醒接口接收接入点AP发送的唤醒无线电WUR帧,所述WUR帧包括第一接收地址、频道标识以及校验信息,所述第一接收地址包括所述STA的辅助唤醒接口的广播地址,所述第一接收地址是所述AP至少根据时间同步函数TSF和密钥生成,所述密钥是所述AP与所述STA约定或协商好的信息,所述WUR帧用于指示所述第一接收地址对应的辅助唤醒接口所在的STA将所述STA的主通信接口的工作频道切换到所述频道标识对应的频道,所述第一接收地址用于指示所述WUR帧的目标接收者;Receiving, by the STA, the wake-up radio WUR frame sent by the access point AP, where the WUR frame includes a first receiving address, a channel identifier, and check information, where the first receiving address includes an auxiliary wake-up interface of the STA Broadcast address, the first receiving address is that the AP is generated according to at least a time synchronization function TSF and a key, the key is information that the AP agrees or negotiates with the STA, and the WUR frame is used for Instructing the STA where the auxiliary wake-up interface corresponding to the first receiving address is located to switch the working channel of the STA's main communication interface to the channel corresponding to the channel identifier, where the first receiving address is used to indicate the WUR frame. Target recipient 所述STA根据所述TSF以及所述密钥生成第二接收地址; Generating, by the STA, a second receiving address according to the TSF and the key; 在所述第一接收地址与所述第二接收地址匹配时,所述STA使用所述校验信息对所述WUR帧中至少包括所述频道标识的内容的正确性和/或真实性进行验证;When the first receiving address matches the second receiving address, the STA uses the check information to verify the correctness and/or authenticity of the content of the WUR frame including at least the channel identifier. ; 在验证通过后,所述STA保存所述频道标识;After the verification is passed, the STA saves the channel identifier; 在所述STA需要与所述AP的主通信接口通信时,所述STA的主通信接口通过所述频道标识对应的频道与所述AP的主通信接口进行通信。When the STA needs to communicate with the primary communication interface of the AP, the primary communication interface of the STA communicates with the primary communication interface of the AP by using a channel corresponding to the channel identifier. 根据权利要求7所述的方法,其特征在于,所述STA根据时间同步函数TSF以及密钥生成第二接收地址包括:The method according to claim 7, wherein the STA generates the second receiving address according to the time synchronization function TSF and the key, including: 所述STA根据TSF减去2N的差的高M位以及所述密钥通过哈希运算或加密运算得到所述第二接收地址,其中,N和M为整数,N和M是由AP和STA的时间同步操作的频度和晶振的精度确定。The STA obtains the second receiving address according to the TSF minus the high M bit of the difference of 2 N and the key by a hash operation or an encryption operation, where N and M are integers, and N and M are by the AP and The frequency of the STA's time synchronization operation and the accuracy of the crystal oscillator are determined. 根据权利要求7或8所述的方法,其特征在于,所述STA根据所述TSF以及所述密钥生成第二接收地址包括:The method according to claim 7 or 8, wherein the generating, by the STA, the second receiving address according to the TSF and the key comprises: 所述STA周期性地根据所述TSF以及所述密钥生成第二接收地址,且STA生成第二接收地址的方法和生成周期与AP生成第一接收地址的方法和生成周期相同。The STA periodically generates a second receiving address according to the TSF and the key, and the method and the generation period of the STA generating the second receiving address are the same as the method and the generating period of the AP generating the first receiving address. 根据权利要求7-9任意一项所述的方法,其特征在于,所述第一接收地址还包括:用于指示所述AP所在的基本服务集BSS的信息。The method according to any one of claims 7-9, wherein the first receiving address further comprises: information indicating a basic service set BSS in which the AP is located. 根据权利要求7-10任意一项所述的方法,其特征在于,所述校验信息包括真实性校验码MIC。The method according to any one of claims 7 to 10, wherein the verification information comprises a authenticity check code MIC. 根据权利要求7-11任意一项所述的方法,其特征在于,所述校验信息至少根据所述主通信接口的工作频道和密钥确定。The method according to any one of claims 7-11, wherein the verification information is determined at least according to a working channel and a key of the primary communication interface. 一种接入点AP,其特征在于,包括:An access point AP, comprising: 收发器,用于发送唤醒无线电WUR帧,所述WUR帧包括第一接收地址、频道标识以及校验信息,所述第一接收地址包括至少一个站点STA的辅助唤醒接口的广播地址,所述第一接收地址是所述接入点至少根据时间同步函数TSF和密钥生成,所述密钥是所述AP与所述至少一个STA已约定或协商好的信息,所述至少一个STA中的每个STA均至少具有一个辅助唤醒接口和一个主通信接口,所述WUR帧用于指示所述第一接收地址对应的辅助唤醒接口所在的STA将所述STA的主通信接口的工作频道切换到所述频道标识对应的频道,所述第一接收地址用于指示所述WUR帧的目标接收者,所述校验信息用于所述WUR帧的目标接收者使用所述校验信息对所述WUR帧中至少包括所述频道标识的内容的正确性和/或真实性进行验证;a transceiver, configured to send a wake-up radio WUR frame, where the WUR frame includes a first receiving address, a channel identifier, and check information, where the first receiving address includes a broadcast address of an auxiliary wake-up interface of at least one station STA, where A receiving address is generated by the access point according to at least a time synchronization function TSF and a key, the key being information that the AP has agreed or negotiated with the at least one STA, and each of the at least one STA Each STA has at least one auxiliary wake-up interface and one main communication interface, and the WUR frame is used to indicate that the STA where the auxiliary wake-up interface corresponding to the first receiving address is located switches the working channel of the STA's main communication interface to the STA. a channel corresponding to the channel identifier, where the first receiving address is used to indicate a target receiver of the WUR frame, and the check information is used by a target receiver of the WUR frame to use the check information to the WUR Verifying at least the correctness and/or authenticity of the content of the channel identifier in the frame; 处理器,用于在所述AP需要与所述至少一个STA的主通信接口通信时,通过所述收发器,使用所述频道标识对应的频道与所述至少一个STA的主通信接口通信。And a processor, configured to communicate with the primary communication interface of the at least one STA by using the channel corresponding to the channel identifier by the transceiver when the AP needs to communicate with the primary communication interface of the at least one STA. 根据权利要求13所述的AP,其特征在于,所述第一接收地址根据时间同步函数TSF以及密钥生成包括:The AP according to claim 13, wherein the first receiving address according to the time synchronization function TSF and the key generation comprises: 所述第一接收地址根据TSF减去2N的差的高M位以及所述密钥通过哈希运算或加密运算得到,其中,N和M为整数,N和M是由AP和STA的时间同步操作的频度和晶振的精度确定。The first receiving address is obtained by subtracting the high M bit of the difference of 2 N according to the TSF and the key is obtained by a hash operation or an encryption operation, wherein N and M are integers, and N and M are times by the AP and the STA. The frequency of the synchronous operation and the accuracy of the crystal oscillator are determined. 根据权利要求13或14所述的AP,其特征在于,所述第一接收地址是所述AP至少根据时间同步函数TSF和密钥生成包括: The AP according to claim 13 or 14, wherein the first receiving address is that the AP generates the at least the time synchronization function TSF and the key according to at least: 所述第一接收地址是所述AP至少根据时间同步函数TSF和密钥周期性地生成,且所述至少一个STA生成第二接收地址的方法和生成周期与所述AP生成第一接收地址的方法和生成周期相同,所述第二接收地址用于所述至少一个STA接收所述WUR帧。The first receiving address is that the AP is periodically generated according to at least a time synchronization function TSF and a key, and the method for generating the second receiving address by the at least one STA and the generating period and the AP generating the first receiving address are The method and the generation period are the same, and the second receiving address is used by the at least one STA to receive the WUR frame. 根据权利要求13-15任意一项所述的AP,其特征在于,所述第一接收地址还包括:用于指示所述AP所在的基本服务集BSS的信息。The AP according to any one of claims 13-15, wherein the first receiving address further comprises: information indicating a basic service set BSS in which the AP is located. 根据权利要求13-16任意一项所述的AP,其特征在于,所述校验信息包括真实性校验码MIC。The AP according to any one of claims 13-16, wherein the verification information comprises a authenticity check code MIC. 根据权利要求13-17任意一项所述的AP,其特征在于,所述校验信息至少根据所述主通信接口的工作频道和密钥确定。The AP according to any one of claims 13-17, wherein the verification information is determined at least according to a working channel and a key of the primary communication interface. 一种站点STA,其特征在于,所述站点包括:A station STA, characterized in that the station comprises: 至少一个辅助唤醒接口,用于接收接入点AP发送的唤醒无线电WUR帧,所述WUR帧包括第一接收地址、频道标识以及校验信息,所述第一接收地址包括所述站点的辅助唤醒接口的广播地址,所述第一接收地址是所述AP至少根据时间同步函数TSF和密钥生成,所述密钥是所述AP与所述STA已约定或协商好的信息,所述WUR帧用于指示所述第一接收地址对应的辅助唤醒接口所在的STA将所述STA的主通信接口的工作频道切换到所述频道标识对应的频道,所述第一接收地址用于指示所述WUR帧的目标接收者;At least one auxiliary wake-up interface, configured to receive a wake-up radio WUR frame sent by the access point AP, where the WUR frame includes a first receiving address, a channel identifier, and check information, where the first receiving address includes an auxiliary wake-up of the station a broadcast address of the interface, where the first receiving address is generated by the AP according to at least a time synchronization function TSF and a key, where the key is information that the AP has agreed or negotiated with the STA, the WUR frame The STA that is used to indicate that the auxiliary wake-up interface corresponding to the first receiving address is configured to switch the working channel of the STA's main communication interface to the channel corresponding to the channel identifier, where the first receiving address is used to indicate the WUR The target recipient of the frame; 处理器,用于根据所述TSF以及所述密钥生成第二接收地址;a processor, configured to generate a second receiving address according to the TSF and the key; 所述处理器还用于,在所述第一接收地址与所述第二接收地址匹配时,使用所述校验信息对所述WUR帧中至少包括所述频道标识的内容的正确性进行验证;The processor is further configured to: when the first receiving address matches the second receiving address, use the verification information to verify correctness of content including at least the channel identifier in the WUR frame. ; 存储器,用于在验证通过后,保存所述频道标识;a memory, configured to save the channel identifier after the verification is passed; 至少一个主通信接口,用于在所述STA需要与所述AP的主通信接口通信时,通过所述频道标识对应的频道与所述AP的主通信接口进行通信。The at least one primary communication interface is configured to communicate with the primary communication interface of the AP by using a channel corresponding to the channel identifier when the STA needs to communicate with the primary communication interface of the AP. 根据权利要求19所述的STA,其特征在于,所述STA根据时间同步函数TSF以及密钥生成第二接收地址包括:The STA according to claim 19, wherein the STA generates the second receiving address according to the time synchronization function TSF and the key, including: 所述STA根据TSF减去2N的差的高M位以及所述密钥通过哈希运算或加密运算得到所述第二接收地址,其中,N和M为整数,N和M是由AP和STA的时间同步操作的频度和晶振的精度确定。The STA obtains the second receiving address according to the TSF minus the high M bit of the difference of 2 N and the key by a hash operation or an encryption operation, where N and M are integers, and N and M are by the AP and The frequency of the STA's time synchronization operation and the accuracy of the crystal oscillator are determined. 根据权利要求19或20所述的STA,其特征在于,所述STA根据所述TSF以及所述密钥生成第二接收地址包括:The STA according to claim 19 or 20, wherein the STA generates the second receiving address according to the TSF and the key, including: 所述STA周期性地根据所述TSF以及所述密钥生成第二接收地址,且STA生成第二接收地址的方法和生成周期与AP生成第一接收地址的方法和生成周期相同。The STA periodically generates a second receiving address according to the TSF and the key, and the method and the generation period of the STA generating the second receiving address are the same as the method and the generating period of the AP generating the first receiving address. 根据权利要求19-21任意一项所述的STA,其特征在于,所述第一接收地址还包括:用于指示所述AP所在的基本服务集BSS的信息。The STA according to any one of claims 19 to 21, wherein the first receiving address further comprises: information indicating a basic service set BSS in which the AP is located. 根据权利要求19-22任意一项所述的STA,其特征在于,所述校验信息包括真实性校验码MIC。The STA according to any one of claims 19-22, wherein the verification information comprises a authenticity check code MIC. 根据权利要求19-23任意一项所述的STA,其特征在于,所述校验信息至少根据所述主通信接口的工作频道和密钥确定。 The STA according to any one of claims 19-23, wherein the verification information is determined at least according to a working channel and a key of the primary communication interface.
PCT/CN2017/095266 2016-09-26 2017-07-31 Channel switching method and device Ceased WO2018054169A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201780036640.XA CN109314925B (en) 2016-09-26 2017-07-31 Method and device for channel switching

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201610853320 2016-09-26
CN201610853320.0 2016-09-26
CN201710221900 2017-04-06
CN201710221900.2 2017-04-06

Publications (1)

Publication Number Publication Date
WO2018054169A1 true WO2018054169A1 (en) 2018-03-29

Family

ID=61690702

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/095266 Ceased WO2018054169A1 (en) 2016-09-26 2017-07-31 Channel switching method and device

Country Status (2)

Country Link
CN (1) CN109314925B (en)
WO (1) WO2018054169A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677899A (en) * 2019-08-19 2020-01-10 深圳绿米联创科技有限公司 Data transmission method and device, terminal equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109547948B (en) * 2017-09-22 2022-04-12 珠海市魅族科技有限公司 Communication method and device of wireless local area network, access point equipment and site equipment
EP4199595A4 (en) * 2020-08-11 2024-05-15 Beijing Xiaomi Mobile Software Co., Ltd. Channel switching method and communication device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102300293A (en) * 2010-06-25 2011-12-28 思科技术公司 Automating radio enablement to facilitate power saving
WO2015186892A1 (en) * 2014-06-02 2015-12-10 엘지전자 주식회사 Method and device for operation based on power save mode in wlan
US20160057605A1 (en) * 2014-08-20 2016-02-25 Qualcomm Incorporated Ultra low-power paging frames for wake-up and discovery
CN105722228A (en) * 2016-02-02 2016-06-29 同济大学 Wireless body area network oriented controllable time delay multi-channel MAC protocol

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9237496B2 (en) * 2011-12-05 2016-01-12 Lg Electronics Inc. Method and apparatus for transmitting channel switching information
JP5784248B2 (en) * 2012-02-02 2015-09-24 エルジー エレクトロニクス インコーポレイティド Channel access method and apparatus in wireless LAN system
CN104349406B (en) * 2013-07-24 2018-08-14 华为技术有限公司 A kind of channel switching method and access point

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102300293A (en) * 2010-06-25 2011-12-28 思科技术公司 Automating radio enablement to facilitate power saving
WO2015186892A1 (en) * 2014-06-02 2015-12-10 엘지전자 주식회사 Method and device for operation based on power save mode in wlan
US20160057605A1 (en) * 2014-08-20 2016-02-25 Qualcomm Incorporated Ultra low-power paging frames for wake-up and discovery
CN105722228A (en) * 2016-02-02 2016-06-29 同济大学 Wireless body area network oriented controllable time delay multi-channel MAC protocol

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677899A (en) * 2019-08-19 2020-01-10 深圳绿米联创科技有限公司 Data transmission method and device, terminal equipment and storage medium
CN110677899B (en) * 2019-08-19 2024-03-29 深圳绿米联创科技有限公司 Data transmission method, device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN109314925A (en) 2019-02-05
CN109314925B (en) 2020-07-28

Similar Documents

Publication Publication Date Title
US11343766B2 (en) Method for indicating downlink service data and device
EP3499977B1 (en) Method and device for sending and receiving wur frame
US11317348B2 (en) Communication apparatus and communication method for low power event monitoring
EP3905729A1 (en) Communication method, apparatus, and device
US12267872B2 (en) Data transmission method and apparatus, and computer-readable storage medium
WO2019157758A1 (en) Information processing method and apparatus
US8626108B2 (en) Apparatus and method for controlling sleep cycle synchronization for emergency alert service in wireless communication system
JP2017516356A (en) Communication in wireless systems
CN108012315B (en) Communication method, network equipment and terminal
CN109314925B (en) Method and device for channel switching
CN112514421B (en) System information determination method, device and storage medium
WO2018032896A1 (en) D2d synchronization signal sending method and apparatus
CN103167599A (en) A method and device for information synchronization
CN109891946B (en) Wake-up method and device for communication interface, identification configuration method and device for auxiliary wake-up interface
CN109565751B (en) Method and device for waking up equipment
WO2018076356A1 (en) Communication method, network device, and terminal
CN108076476B (en) Method and apparatus for transmitting data
WO2018171576A1 (en) Method for waking up station and station
CN108712741B (en) A method, device and system for waking up a device
CN114339995A (en) Paging method, awakening method and related device
WO2025011244A1 (en) Wake-up signal monitoring method and communication apparatus
CN109041178B (en) Communication method, communication device and communication equipment of wireless local area network
JP6734353B2 (en) Communication in wireless systems
WO2018113192A1 (en) Wireless device wakeup method, sending device, and receiving device
CN110463293B (en) Method and equipment for transmitting WUR message

Legal Events

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

Ref document number: 17852239

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17852239

Country of ref document: EP

Kind code of ref document: A1