Communication method and apparatus, and communication device

By using beacon frames to carry MICs between STA and AP, the wireless communication process is simplified and the problem of low communication efficiency between STA and AP is solved. It is suitable for massive STAs and energy-limited IoT devices to achieve high efficiency. Data transfer.

WO2024174131A1PCT designated stage expired Publication Date: 2024-08-29GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/077695
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-22
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

In wireless communication, frequent data interaction between STA and AP requires complex signaling processes, resulting in low communication efficiency. Especially for IoT devices based on environmental energy, the transmission frequency is low and the energy is limited, and the existing communication process cannot Meet the needs of massive devices and efficient data transmission.

Method used

By introducing beacon frames between STA and AP, carrying Message Integrity Code (MIC), the communication process is simplified. STA and AP can verify each other's legitimacy through MIC, realizing a minimalist communication process, which is suitable for massive STAs and energy receiving devices. limited scenarios.

Benefits of technology

It simplifies the communication process between STA and AP, improves communication efficiency, reduces energy consumption, is suitable for scenarios with massive STAs and energy-limited IoT devices, and achieves efficient data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023077695_29082024_PF_FP_ABST
    Figure CN2023077695_29082024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a communication method and apparatus, and a communication device. The method comprises: a first device sends a beacon frame to a second device, and receives a first frame sent by the second device, wherein the first frame carries a first message integrity code (MIC), and the first MIC is used for the first device to verify the legitimacy of the second device.
Need to check novelty before this filing date? Find Prior Art

Description

Communication method, communication device, and communication equipment Technical Field

[0001] The embodiments of the present application relate to the field of wireless communication technology, and specifically to a communication method and apparatus, and communication equipment. Background Art

[0002] Before data can be exchanged between a station (STA) and an access point (AP), a series of signaling processes must be completed, including scanning, authentication, association, and key generation. Frequent data exchange between a STA and an AP requires complex signaling before each transaction, resulting in low communication efficiency. The challenge is to simplify the communication process while ensuring transmission reliability.

[0003] Summary of the Invention

[0004] Embodiments of the present application provide a communication method and apparatus, communication equipment, a chip, a computer-readable storage medium, a computer program product, and a computer program.

[0005] The communication method provided in the embodiment of the present application includes:

[0006] A first device sends a beacon frame to a second device, and receives a first frame sent by the second device; wherein the first frame carries a first message integrity code (MIC), and the first MIC is used by the first device to verify the legitimacy of the second device.

[0007] The communication method provided in the embodiment of the present application includes:

[0008] The second device receives the beacon frame sent by the first device, and sends a first frame to the first device; wherein the first frame carries a first MIC, and the first MIC is used by the first device to verify the legitimacy of the second device.

[0009] The communication apparatus provided in an embodiment of the present application is applied to a first device, and the apparatus includes:

[0010] The communication unit is configured to send a beacon frame to a second device and receive a first frame sent by the second device; wherein the first frame carries a first MIC, and the first MIC is used by the first device to verify the legitimacy of the second device.

[0011] The communication device provided in an embodiment of the present application is applied to a second device, and the device includes:

[0012] The communication unit is configured to receive a beacon frame sent by a first device and send a first frame to the first device; wherein the first frame carries a first MIC, and the first MIC is used by the first device to verify the legitimacy of the second device.

[0013] The communication device provided in an embodiment of the present application includes a processor and a memory. The memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to perform the above-mentioned communication method.

[0014] The chip provided in the embodiment of the present application is used to implement the above-mentioned communication method.

[0015] Specifically, the chip includes: a processor, which is used to call and run a computer program from a memory, so that a device equipped with the chip executes the above-mentioned communication method.

[0016] The computer-readable storage medium provided in an embodiment of the present application is used to store a computer program, which enables a computer to execute the above-mentioned communication method.

[0017] The computer program product provided in the embodiments of the present application includes computer program instructions, which enable a computer to execute the above-mentioned communication method.

[0018] The computer program provided in the embodiment of the present application, when executed on a computer, enables the computer to execute the above-mentioned communication method.

[0019] Through the above technical solution, the first device sends a beacon frame to the second device and receives the first frame sent by the second device. The first frame carries the first MIC. In this way, the first device can obtain the first MIC through simple interaction with the second device, and can then verify the legitimacy of the second device based on the first MIC. This extremely simple communication process can ensure the transmission reliability between the first and second devices and provide security for data exchange between the first and second devices. For the second device, the simplified communication process can effectively improve communication efficiency and save energy required by the second device. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0021] FIG1 is a diagram of a communication system architecture used in an embodiment of the present application;

[0022] Figure 2-1 shows the interaction between an AP and a STA based on active scanning.

[0023] Figure 2-2 shows the interaction between an AP and a STA based on passive scanning.

[0024] FIG3 is a flow chart of a communication method according to an embodiment of the present application;

[0025] FIG4 is a second flow chart of the communication method provided in an embodiment of the present application;

[0026] FIG5 is a third flow chart of the communication method provided in an embodiment of the present application;

[0027] FIG6 is a fourth flow chart of a communication method according to an embodiment of the present application;

[0028] FIG7 is a fifth flow chart of a communication method according to an embodiment of the present application;

[0029] FIG8 is a sixth flow chart of a communication method according to an embodiment of the present application;

[0030] FIG9 is a flow chart of a communication method according to an embodiment of the present application;

[0031] FIG10 is a schematic diagram of the first structural composition of a communication device provided in an embodiment of the present application;

[0032] FIG11 is a second schematic diagram of the structure of a communication device provided in an embodiment of the present application;

[0033] FIG12 is a schematic structural diagram of a communication device provided in an embodiment of the present application;

[0034] FIG13 is a schematic structural diagram of a chip according to an embodiment of the present application;

[0035] FIG14 is a schematic block diagram of a communication system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0036] The following will describe the technical solutions in the embodiments of this application in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0037] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as Wireless Fidelity (WiFi) systems, 3rd Generation Partnership Project (3GPP) systems, etc.

[0038] FIG1 is an example of a communication system architecture applied in an embodiment of the present application.

[0039] As shown in Figure 1, the communication system may include an access point (AP) 110 and a station (STA) 120 that accesses the network through AP 110. In some scenarios, AP 110 may be referred to as an AP STA, meaning that, in a sense, AP 110 is also a type of STA. In some scenarios, STA 120 may be referred to as a non-AP STA. In some scenarios, STA 120 may include both AP STAs and non-AP STAs. Communication in the communication system may include communication between AP 110 and STA 120, communication between STA 120 and STA 120, or communication between STA 120 and a peer STA. A peer STA may refer to a device communicating with the peer of STA 120. For example, a peer STA may be an AP or a non-AP STA.

[0040] AP 110 can be used as a bridge between wired and wireless networks, connecting wireless network clients together and then connecting the wireless network to Ethernet. AP 110 can be a terminal device (such as a mobile phone) or a network device (such as a router) equipped with a WiFi chip.

[0041] It should be noted that the role of STA 120 in the communication system is not absolute. In other words, the role of STA 120 in the communication system can switch between AP and STA. For example, in some scenarios, when a mobile phone is connected to a router, the mobile phone is a STA. When the mobile phone is used as a hotspot for other mobile phones, the mobile phone plays the role of AP.

[0042] In some embodiments, AP 110 and STA 120 can be devices used in the Internet of Vehicles, IoT nodes and sensors in the Internet of Things (IoT), smart cameras, smart remote controls, smart water and electricity meters in smart homes, and sensors in smart cities.

[0043] In some embodiments, AP 110 may be a device supporting the 802.11be standard. The AP may also be a device supporting various current and future 802.11 family WLAN standards, such as 802.11ax, 802.11ac, 802.11n, 802.11g, 802.11b, and 802.11a. In some embodiments, STA 120 may support the 802.11be standard. The STA may also support various current and future 802.11 family WLAN standards, such as 802.11ax, 802.11ac, 802.11n, 802.11g, 802.11b, and 802.11a.

[0044] In some embodiments, AP 110 and / or STA 120 can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted; can also be deployed on the water surface (such as a ship); can also be deployed in the air (for example, on an airplane, balloon, and satellite, etc.).

[0045] In some embodiments, STA 120 may be a mobile phone, a tablet computer, a computer with wireless transceiver capabilities, a virtual reality (VR) device, an augmented reality (AR) device, a wireless device in industrial control, a set-top box, a wireless device in self-driving, an in-vehicle communication device, a wireless device in remote medical, a wireless device in a smart grid, a wireless device in transportation safety, a wireless device in a smart city or a wireless device in a smart home, an in-vehicle communication device, a wireless communication chip / application specific integrated circuit (ASIC) / system on chip (SoC), etc. that supports WLAN / WiFi technology.

[0046] For example, STA 120 can also be a wearable device. Wearable devices can also be called wearable smart devices, which are a general term for wearable devices that use wearable technology to intelligently design and develop wearable devices, such as glasses, gloves, watches, clothing and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not just hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. In a broad sense, wearable smart devices include those that are full-featured, large in size, and can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0047] It should be understood that Figure 1 is merely an example of the present application and should not be construed as limiting the present application. For example, Figure 1 only exemplarily illustrates one AP and two STAs. In some embodiments, the communication system may include multiple APs and other numbers of STAs, which is not limited in this embodiment of the present application.

[0048] It should be noted that Figure 1 is merely an example of a system applicable to this application. The methods described in the embodiments of this application are also applicable to other systems. Furthermore, the terms "system" and "network" are often used interchangeably herein. The term "and / or" herein simply describes an association relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone; A and B exist simultaneously; or B exists alone. Furthermore, the character " / " generally indicates that the associated objects are in an "or" relationship. It should also be understood that the term "indication" in the embodiments of this application can be a direct indication, an indirect indication, or an indication of an associated relationship. For example, "A indicates B" can mean that A directly indicates B, for example, B can obtain information through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can obtain information through C; or it can mean that A and B have an associated relationship. It should also be understood that the term "corresponding" in the embodiments of this application can mean that two objects have a direct or indirect correspondence relationship, an associated relationship, or a relationship between an indicator and the indicated, a configuration and the configured, and so on. It should also be understood that the "predefined" or "predefined rules" mentioned in the embodiments of this application can be implemented by pre-storing corresponding codes, tables, or other methods that can be used to indicate relevant information in devices (for example, including terminal devices and network devices), and this application does not limit the specific implementation method. For example, predefined can refer to those defined in the protocol.

[0049] To facilitate understanding of the technical solutions of the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below. The following relevant technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, and they all fall within the protection scope of the embodiments of the present application.

[0050] Zero-power communication uses energy harvesting and backscatter communication technology. The zero-power communication system consists of network equipment and zero-power terminals. Among them, the network equipment is used to send power supply signals, downlink communication signals to the zero-power terminal and receive backscatter signals from the zero-power terminal. As an example, the zero-power terminal includes an energy harvesting module, a backscatter communication module and a low-power computing module. In addition, the zero-power terminal may also have a memory and / or a sensor. The memory is used to store some basic information (such as item identification, etc.), and the sensor is used to obtain sensor data such as ambient temperature and ambient humidity.

[0051] Based on the energy source and usage of zero-power terminals, zero-power terminals can be divided into the following types:

[0052] (1) Passive zero-power terminal

[0053] Zero-power terminals do not require internal batteries. When they approach network equipment, they are within the near-field radiation generated by the network equipment's antenna. Therefore, the zero-power terminal's antenna generates an induced current through electromagnetic induction. This induced current drives the zero-power terminal's low-power computing module (also known as the low-power chip circuit) to perform tasks such as demodulating forward link signals and modulating backward link signals. For backscatter links, zero-power terminals use backscattering to transmit signals.

[0054] It can be seen that the passive zero-power terminal does not require a built-in battery to drive either the forward link or the reverse link, and is a true zero-power terminal.

[0055] Since passive zero-power terminals do not require batteries, their RF circuits and baseband circuits are very simple. For example, they do not require low-noise amplifiers (LNAs), power amplifiers (PAs), crystal oscillators, ADCs, etc. Therefore, they have many advantages such as small size, light weight, low price, and long service life.

[0056] (2) Semi-passive zero-power terminal

[0057] Semi-passive zero-power terminals do not have conventional batteries themselves, but instead use energy harvesting modules to harvest radio wave energy and store it in an energy storage unit (such as a capacitor). This energy storage unit then powers the zero-power terminal's low-power computing module (also known as a low-power chip circuit) to perform tasks such as demodulating forward link signals and modulating backward link signals. For backscatter links, the zero-power terminal uses backscattering to transmit signals.

[0058] It can be seen that the semi-passive zero-power terminal does not require a built-in battery to drive either the forward link or the reverse link. Although energy stored in capacitors is used during operation, the energy comes from the energy of radio waves collected by the energy harvesting module. Therefore, it is also a true zero-power terminal.

[0059] Semi-passive zero-power consumption terminals inherit many advantages of passive zero-power consumption terminals, and therefore have many advantages such as small size, light weight, low price, and long service life.

[0060] (3) Active zero-power terminal

[0061] In some scenarios, zero-power terminals can also be active zero-power terminals, which can have built-in batteries. The battery is used to drive the low-power computing module (i.e., low-power chip circuit) of the zero-power terminal to perform tasks such as demodulating forward link signals and modulating reverse link signals. However, for backscatter links, zero-power terminals use backscattering to transmit signals. Therefore, the zero-power nature of these terminals is primarily due to the fact that reverse link signal transmission does not require the terminal's own power, but rather uses backscattering.

[0062] Active zero-power terminals use a built-in battery to power the RF chip, increasing communication distance and improving communication reliability. Therefore, they are used in scenarios with relatively high requirements for communication distance and latency.

[0063] As industry applications expand, the types of connected objects and application scenarios increase, placing higher demands on the price and power consumption of communication equipment. The application of battery-free, low-cost Internet of Things (IoT) devices has become a key technology for the cellular Internet of Things (IoT), expanding the types and number of network-connected terminals and truly realizing the interconnection of everything. IoT devices can be based on zero-power communication technologies, such as radio frequency identification (RFID), and can be extended to suit the cellular Internet of Things.

[0064] Passive IoT devices can draw their energy from the environment, known as ambient IoT (AMP IoT) devices. These devices operate by harvesting ambient energy from sources such as wireless signals, solar energy, and thermal energy. Passive or semi-passive zero-power terminals in zero-power communications are typical examples of passive IoT devices. Ambient IoT (AMP IoT) devices can be deployed in both NR and Wi-Fi systems.

[0065] In some scenarios, data transmission between IoT devices based on ambient energy is performed in small packets, possibly single packets. For example, in logistics scenarios, IoT devices must report their ID numbers for inventory management. Furthermore, after one data report is submitted, it can take a long time for the next data report to be sent.

[0066] In a Wi-Fi system, IoT devices (STAs) must undergo a series of signaling processes before data can be exchanged with access points (APs). These processes include scanning, authentication, association, and key generation. There are two types of scanning: active scanning and passive scanning. Active scanning involves the STA actively searching for APs, while passive scanning involves the STA passively receiving wireless signals from the AP.

[0067] Figure 2-1 shows an active scanning-based interaction between an AP and a STA. The following steps are involved:

[0068] 1. The STA sends a Probe Request frame to the AP.

[0069] 2. The STA receives the Probe Response frame sent by the AP, which carries security parameters.

[0070] 3. The STA sends an Authentication Request frame to the AP.

[0071] 4. The STA receives the Authentication Response frame sent by the AP.

[0072] 5. The STA sends an Association Request frame to the AP, carrying security parameters.

[0073] 6. The STA receives the Association Response frame sent by the AP, which carries the selected security parameters.

[0074] 7. The STA and AP perform a 4-step handshake process to generate a key.

[0075] 8. STA and AP use the key to exchange data.

[0076] Figure 2-2 shows the interaction between an AP and a STA based on passive scanning. The following steps are involved:

[0077] 1. The STA receives the beacon frame sent by the AP, which carries security parameters.

[0078] 2. The STA sends an Authentication Request frame to the AP.

[0079] 3. The STA receives the Authentication Response frame sent by the AP.

[0080] 4. The STA sends an Association Request frame to the AP, carrying security parameters.

[0081] 5. The STA receives the Association Response frame sent by the AP, which carries the selected security parameters.

[0082] 6. The STA and AP perform a 4-step handshake process to generate a key.

[0083] 7. STA and AP use the key to exchange data.

[0084] Through the scanning process, the STA can obtain the basic configuration information of the AP; through the authentication process, the STA can complete the link authentication between the STA and the AP; through the association process, the STA can complete the association with the AP; through the key generation process (also known as the 4-step handshake process), the STA can obtain the key used in the communication process. At this point, the STA can transmit and receive data with the AP.

[0085] For IoT devices powered by ambient energy, after a STA associates with an AP, the AP assigns an Association ID (AID) to identify the STA. This process can present several challenges. 1) The AID value range is limited, for example, from 1 to 2007, so an AP can associate with a maximum of 2007 STAs. This limited AID capacity cannot accommodate the massive number of IoT devices powered by ambient energy. 2) IoT devices powered by ambient energy typically transmit data in small packets, often single packets, with low transmission frequency (for example, after an uplink transmission, an IoT device powered by ambient energy needs to wait for a period of time to collect capabilities before the next uplink transmission). After a STA reports data, it may take a long time for the next data report. If the AP fails to receive information from the STA within a certain period of time, it considers the STA to be disconnected, so the STA will not remain associated with the AP. When the next data report is due, the STA must repeat the signaling process (for example, scanning, authentication, association, and key generation). 3) In some scenarios, such as logistics, an inventory is required after a logistics transfer. With each inventory, the AP is likely to have changed. Therefore, after each inventory, the STA no longer needs to associate with the AP. Each time an inventory is performed, the STA faces a new AP and must perform a series of signaling processes (e.g., scanning, authentication, association, and key generation) with the new AP. This indicates that the current communication process between STAs and APs is not suitable for ambient energy-based IoT devices, and the communication process between STAs and APs needs to be simplified. To this end, the following technical solutions are proposed in the embodiments of this application.

[0086] To facilitate understanding of the technical solutions of the embodiments of the present application, the technical solutions of the present application are described in detail below through specific embodiments. The above related technologies can be combined arbitrarily with the technical solutions of the embodiments of the present application as optional solutions, and all of them fall within the scope of protection of the embodiments of the present application. The embodiments of the present application include at least part of the following contents.

[0087] FIG3 is a flow chart of a communication method provided in an embodiment of the present application. As shown in FIG3 , the communication method may include the following steps:

[0088] Step 301: A first device sends a beacon frame to a second device, and the second device receives the beacon frame sent by the first device.

[0089] Step 302: The second device sends a first frame to the first device, and the first device receives the first frame sent by the second device; wherein the first frame carries a first MIC, and the first MIC is used by the first device to verify the legitimacy of the second device.

[0090] In the embodiment of the present application, the first device is an AP, and the second device is an STA. The communication system architecture where the first device and the second device are located can be shown in FIG1 .

[0091] In some embodiments, the second device is an ambient energy-based communication device, such as an ambient energy-based IoT device, where the ambient energy may be a wireless signal, solar energy, thermal energy, etc. In some embodiments, the second device may also be a zero-power terminal, or a terminal that supports backscatter communication.

[0092] In an embodiment of the present application, a second device receives a beacon frame sent by a first device. The beacon frame is used to announce the existence of the first device or the network covered by the first device. The first device can periodically send beacon frames that carry basic configuration information of the first device, so that the second device can obtain the basic configuration information of the first device, such as the name of the AP, the MAC address of the AP, the BSSID of the AP, the capabilities supported by the AP, etc.

[0093] In an embodiment of the present application, after receiving a beacon frame sent by a first device, if the second device wishes to access the first device or exchange data with the first device, the second device will send a first frame to the first device. In some embodiments, the first frame is an association request frame or a new frame. The first frame carries a first MIC, which is used by the first device to verify the legitimacy of the second device.

[0094] Here, the first MIC is generated by the second device based on at least one parameter, which includes at least one of the following: a first random number, a second random number, and a pre-shared key (PSK). The first random number is a random number generated by the first device and can be represented as ANonce; the second random number is a random number generated by the second device and can be represented as SNonce; and the PSK is a password used to access the first device, which can be set by the administrator of the first device and shared with the user corresponding to the second device. The following describes several ways for the second device to generate the first MIC.

[0095] Mode 1-1: The second device generates a first MIC based on the first random number and the PSK.

[0096] Mode 1-2: The second device generates a first MIC based on the second random number and the PSK.

[0097] Mode 1-3: The second device generates a first MIC based on the first random number, the second random number, and the PSK.

[0098] Mode 1-4: The second device generates a first MIC based on the first random number.

[0099] Mode 1-5: The second device generates a first MIC based on the second random number.

[0100] Mode 1-6: The second device generates a first MIC based on the first random number and the second random number.

[0101] For the above-mentioned methods 1-1 to 1-3, the generation of the first MIC needs to be based on the PSK, which is applicable to the case where the first device is set with an access password (ie, PSK).

[0102] For the above-mentioned methods 1-4 to 1-5, the generation of the first MIC does not need to be based on the PSK, and is applicable to the case where the first device does not have an access password (ie, PSK) set.

[0103] In some embodiments, when the at least one parameter includes a first random number, the beacon frame carries the first random number. Here, the first random number is generated by the first device. To allow the second device to obtain the first random number, the first device carries the first random number in the beacon frame it sends. In this way, the second device can obtain the first random number from the beacon frame and can generate a first MIC based on the first random number. The method for generating the first MIC can be, for example, any one of the above-mentioned methods 1-1, 1-3, 1-4, and 1-6.

[0104] In some embodiments, when at least one parameter includes a second random number, the first frame also carries the second random number. Here, the second random number is generated by the second device, and the second device can generate a first MIC based on the second random number. The method for generating the first MIC can be, for example, any of the above-mentioned methods 1-2, 1-3, 1-5, and 1-6. In addition, in order for the first device to obtain the second random number, the second device carries the second random number in the first frame it sends. In this way, the first device can obtain the second random number from the first frame and then generate a second MIC based on the second random number.

[0105] In some implementations, the communication method in the embodiments of the present application may further include the following steps:

[0106] The first device generates a second MIC based on at least one parameter, and verifies the legitimacy of the second device by comparing the second MIC with the first MIC to determine whether they are consistent.

[0107] Here, if the second MIC is consistent with the first MIC, it means that the second device is authenticated successfully. If the second MIC is inconsistent with the first MIC, it means that the second device is authenticated failed.

[0108] It should be noted that the MIC generated by the second device is called the first MIC, and correspondingly, the MIC generated by the first device is called the second MIC. The security algorithm (also described as security parameters) used by the second device and the first device to generate the MIC needs to be consistent, that is, the parameters based on which the second device and the first device generate the MIC need to be consistent.

[0109] In some implementations, the security algorithm used by the first device and the second device is agreed upon in a protocol, wherein the security algorithm is used to generate the MIC.

[0110] In some implementations, the security algorithm used by the first device and the second device is selected by the first device, wherein the security algorithm is used for generating the MIC.

[0111] Here, if the security algorithm used by the first device and the second device is selected by the first device, the beacon frame carries the security algorithm selected by the first device. In this way, the first device can notify the second device of its selected security algorithm through the beacon frame, ensuring that the security algorithm (also described as security parameters) used by the second device and the first device to generate the MIC remain consistent.

[0112] In some embodiments, the security algorithm used by the first device and the second device is selected by the second device, wherein the security algorithm is used to generate the MIC.

[0113] Here, if the security algorithm used by the first device and the second device is selected by the second device, the first frame carries the security algorithm selected by the second device. In this way, the second device can notify the first device of its selected security algorithm through the first frame, ensuring that the security algorithm (also described as security parameters) used by the second device and the first device to generate the MIC remain consistent.

[0114] In some implementations, when the security algorithm used by the first device and the second device is selected by the second device, the beacon frame carries a list of security algorithms supported by the first device. This allows the first device to notify the second device of its supported security algorithm list via the beacon frame. The second device can then select a security algorithm from the list (e.g., a security algorithm it also supports and / or an optimal security algorithm) and notify the first device of its selected security algorithm via the first frame, thereby ensuring that the security algorithm (also described as security parameters) used by the second device and the first device to generate the MIC remain consistent.

[0115] To more clearly understand the technical solution of the embodiment of the present application, a method for generating MIC is given below (such as the above-mentioned methods 1-3). It should be noted that the technical solution of the embodiment of the present application is not limited to the following generation method.

[0116] The first random number is a random number generated by the first device and can be expressed as ANonce; the second random number is a random number generated by the second device and can be expressed as SNonce; PSK is the password used to access the first device and can be set by the administrator of the first device and shared with the user corresponding to the second device.

[0117] 1) Generate PMK.

[0118] The PMK is calculated using a hash algorithm using the SSID and PSK. The SSID is the name of the AP.

[0119] 2) Generate PTK.

[0120] PTK is calculated from PMK, ANonce and SNonce through a random function.

[0121] 3) Generate MIC.

[0122] The MIC is calculated using the first N bits (eg, the first 16 bits) of the PTK using a hash algorithm.

[0123] MIC is used for message integrity protection and / or integrity verification.

[0124] In the embodiment of the present application, the second device may report data to the first device. The data may be, but is not limited to, packet data. For example, the second device may report the second device's ID or environmental data collected by the second device to the first device.

[0125] Based on the above process, the second device can report data to the first device in the following ways:

[0126] Option 1

[0127] In some implementations, the first frame also carries data protected by the first MIC. That is, when the second device sends the first frame to the first device, it includes the data protected by the first MIC in the first frame and reports it. After receiving the first frame, the first device generates a second MIC and verifies the legitimacy of the second device by comparing the second MIC with the first MIC to ensure consistency. After successfully verifying the legitimacy of the second device, the first device retrieves the data in the first frame.

[0128] Furthermore, in some embodiments, after the first device obtains the data in the first frame, the first device sends a second frame to the second device, and the second device receives the second frame sent by the first device, where the second frame is used to indicate to the first device that it has correctly received the data. In some embodiments, the second frame is an association response frame or an acknowledgment frame.

[0129] The above data transmission process does not actually cover the association process (or does not cover the complete association process), and thus can be called an unassociated data transmission process.

[0130] Option 2

[0131] In some embodiments, after receiving the first frame, the first device generates a second MIC and verifies the legitimacy of the second device by comparing the second MIC with the first MIC to determine whether they are consistent. After successfully verifying the legitimacy of the second device, the first device sends a third frame to the second device. The second device receives the third frame sent by the first device. The third frame carries the second MIC, which is used by the second device to verify the legitimacy of the first device. In some embodiments, the third frame is an association response frame.

[0132] Furthermore, in some implementations, after successfully verifying the legitimacy of the first device, the second device sends the data securely protected by the first MIC to the first device. The first device receives the data securely protected by the first MIC sent by the second device and obtains the data.

[0133] The above data transmission process actually covers the association process, and can therefore be called an association-based data transmission process.

[0134] The technical solution of the embodiments of this application minimizes information exchange between STAs and APs, achieving a minimalist communication process. This is suitable for scenarios where ambient energy-based communication devices serve as STAs. This can be applied to scenarios with a large number of STAs, as well as scenarios with energy-constrained STAs.

[0135] The technical solution of the embodiment of the present application is illustrated below with reference to a specific application example. In the following application example, the first device is an AP and the second device is a STA.

[0136] Application Example 1

[0137] FIG4 is a flow chart of a communication method provided in an embodiment of the present application. As shown in FIG4 , the communication method may include the following steps:

[0138] Step 401: The AP sends a beacon frame to the STA, carrying the selected security algorithm and ANonce.

[0139] Here, the selected security algorithm refers to the security algorithm selected by the AP.

[0140] Here, ANonce refers to a random number generated by the AP.

[0141] Optionally, the beacon frame may also carry information for verifying the legitimacy of the AP. This information is used by the STA to verify the legitimacy of the AP.

[0142] Step 402: The STA sends an association request frame to the AP, carrying the SNonce, security protection data, and MIC1.

[0143] Here, the STA determines the PSK, uses the selected security algorithm to generate PTK1 based on ANonce, SNonce, and PSK, and then generates MIC1 based on PTK1. MIC1 is used to securely protect the data, resulting in securely protected data.

[0144] Step 403: The AP verifies the legitimacy of the STA, and after the verification is successful, obtains the data and sends an association response frame to the STA to indicate that the data is received correctly.

[0145] After receiving the association request frame, the AP obtains the SNonce and uses the selected security algorithm to generate the PTK2 based on the ANonce, SNonce, and PSK. The AP then generates the MIC2 based on the PTK2. The AP verifies the legitimacy of the STA by comparing the MIC2 with the MIC1. If the MIC2 matches the MIC1, the authentication succeeds; if not, the authentication fails.

[0146] Application Example 2

[0147] FIG5 is a flow chart of a communication method provided in an embodiment of the present application. As shown in FIG5 , the communication method may include the following steps:

[0148] Step 501: The AP sends a beacon frame to the STA, carrying the selected security algorithm and ANonce.

[0149] Here, the selected security algorithm refers to the security algorithm selected by the AP.

[0150] Here, ANonce refers to a random number generated by the AP.

[0151] Optionally, the beacon frame may also carry information for verifying the legitimacy of the AP. This information is used by the STA to verify the legitimacy of the AP.

[0152] Step 502: The STA sends a newly defined management frame to the AP, carrying the SNonce, security protection data, and MIC1.

[0153] Here, the STA determines the PSK, uses the selected security algorithm to generate PTK1 based on ANonce, SNonce, and PSK, and then generates MIC1 based on PTK1. MIC1 is used to securely protect the data, resulting in securely protected data.

[0154] Step 503: The AP verifies the legitimacy of the STA, and after the verification is successful, obtains the data and sends a confirmation frame to the STA to indicate that the data is received correctly.

[0155] After receiving the newly defined management frame, the AP obtains the SNonce and uses the selected security algorithm to generate the PTK2 based on the ANonce, SNonce, and PSK. The AP then generates the MIC2 based on the PTK2. The AP verifies the legitimacy of the STA by comparing the MIC2 with the MIC1. If the MIC2 matches the MIC1, the authentication succeeds; if not, the authentication fails.

[0156] Application Example 3

[0157] FIG6 is a flow chart of a communication method provided in an embodiment of the present application. As shown in FIG6 , the communication method may include the following steps:

[0158] Step 601: The AP sends a beacon frame to the STA, carrying a security algorithm list.

[0159] Here, the security algorithm list may be a security algorithm list supported by the AP or a security algorithm list for selection by the STA.

[0160] Optionally, the beacon frame may also carry information for verifying the legitimacy of the AP. This information is used by the STA to verify the legitimacy of the AP.

[0161] Step 602: The STA sends an association request frame to the AP, carrying the selected security algorithm, SNonce, security protection data, and MIC1.

[0162] Here, the selected security algorithm refers to the security algorithm selected by the STA. The STA can select a security algorithm from the security algorithm list provided by the AP.

[0163] Here, SNonce refers to a random number generated by the STA.

[0164] Here, the STA determines the PSK, uses the selected security algorithm to generate PTK1 based on the SNonce and PSK, and then generates MIC1 based on PTK1. The MIC1 is used to securely protect the data, thereby obtaining securely protected data.

[0165] Step 603: The AP verifies the legitimacy of the STA, and after the verification is successful, obtains the data and sends an association response frame to the STA to indicate that the data is received correctly.

[0166] After receiving the association request frame, the AP obtains the SNonce and uses the selected security algorithm to generate the PTK2 from the SNonce and the PSK. The AP then generates the MIC2 from the PTK2. The AP verifies the legitimacy of the STA by comparing the MIC2 with the MIC1. If the MIC2 matches the MIC1, the authentication succeeds; if not, the authentication fails.

[0167] Application Example 4

[0168] FIG7 is a flow chart of a communication method provided in an embodiment of the present application. As shown in FIG7 , the communication method may include the following steps:

[0169] Step 701: The AP sends a beacon frame to the STA, carrying a security algorithm list.

[0170] Here, the security algorithm list may be a security algorithm list supported by the AP or a security algorithm list for selection by the STA.

[0171] Optionally, the beacon frame may also carry information for verifying the legitimacy of the AP. This information is used by the STA to verify the legitimacy of the AP.

[0172] Step 702: The STA sends a newly defined management frame to the AP, carrying the selected security algorithm, SNonce, security protection data, and MIC1.

[0173] Here, the selected security algorithm refers to the security algorithm selected by the STA. The STA can select a security algorithm from the security algorithm list provided by the AP.

[0174] Here, SNonce refers to a random number generated by the STA.

[0175] Here, the STA determines the PSK, uses the selected security algorithm to generate PTK1 based on the SNonce and PSK, and then generates MIC1 based on PTK1. The MIC1 is used to securely protect the data, thereby obtaining securely protected data.

[0176] Step 703: The AP verifies the legitimacy of the STA, and after the verification is successful, obtains the data and sends a confirmation frame to the STA to indicate that the data is received correctly.

[0177] After receiving the newly defined management frame, the AP obtains the SNonce and uses the selected security algorithm to generate the PTK2 from the SNonce and the PSK. The AP then generates the MIC2 from the PTK2. The AP verifies the legitimacy of the STA by comparing the MIC2 with the MIC1. If the MIC2 matches the MIC1, the authentication succeeds; if not, the authentication fails.

[0178] Application Example 5

[0179] FIG8 is a flow chart of a communication method provided in an embodiment of the present application. As shown in FIG8 , the communication method may include the following steps:

[0180] Step 801: The AP sends a beacon frame to the STA, carrying the selected security algorithm and ANonce.

[0181] Here, the selected security algorithm refers to the security algorithm selected by the AP.

[0182] Here, ANonce refers to a random number generated by the AP.

[0183] Optionally, the beacon frame may also carry information for verifying the legitimacy of the AP. This information is used by the STA to verify the legitimacy of the AP.

[0184] Step 802: The STA sends an association request frame to the AP, carrying SNonce and MIC1.

[0185] Here, SNonce refers to a random number generated by the STA.

[0186] Here, the STA determines the PSK, uses the selected security algorithm to generate PTK1 based on ANonce, SNonce, and PSK, and then generates MIC1 based on PTK1.

[0187] Step 803: The AP verifies the legitimacy of the STA, and after the verification is successful, sends an association response frame to the STA, carrying MIC2.

[0188] After receiving the association request frame, the AP obtains the SNonce and uses the selected security algorithm to generate the PTK2 based on the ANonce, SNonce, and PSK. The AP then generates the MIC2 based on the PTK2. The AP verifies the legitimacy of the STA by comparing the MIC2 with the MIC1. If the MIC2 matches the MIC1, the authentication succeeds; if not, the authentication fails.

[0189] Step 804: The STA and the AP transmit secure data.

[0190] After receiving the association response frame, the STA verifies the AP's legitimacy by comparing MIC1 and MIC2. If MIC1 and MIC2 match, verification succeeds; if they do not, verification fails. After verification succeeds, the STA uses MIC1 to securely protect data and transmits the protected data to the AP.

[0191] Application Example 6

[0192] FIG9 is a flow chart of a communication method provided in an embodiment of the present application. As shown in FIG9 , the communication method may include the following steps:

[0193] Step 901: The AP sends a beacon frame to the STA, carrying a security algorithm list.

[0194] Here, the security algorithm list may be a security algorithm list supported by the AP or a security algorithm list for selection by the STA.

[0195] Optionally, the beacon frame may also carry information for verifying the legitimacy of the AP. This information is used by the STA to verify the legitimacy of the AP.

[0196] Step 902: The STA sends an association request frame to the AP, carrying the selected security algorithm, SNonce, and MIC1.

[0197] Here, the selected security algorithm refers to the security algorithm selected by the STA. The STA can select a security algorithm from the security algorithm list provided by the AP.

[0198] Here, SNonce refers to a random number generated by the STA.

[0199] Here, the STA determines the PSK, generates PTK1 based on the SNonce and PSK using the selected security algorithm, and then generates MIC1 based on PTK1.

[0200] Step 903: The AP verifies the legitimacy of the STA, and after the verification is successful, sends an association response frame to the STA, carrying MIC2.

[0201] After receiving the association request frame, the AP obtains the SNonce and uses the selected security algorithm to generate the PTK2 from the SNonce and the PSK. The AP then generates the MIC2 from the PTK2. The AP verifies the legitimacy of the STA by comparing the MIC2 with the MIC1. If the MIC2 matches the MIC1, the authentication succeeds; if not, the authentication fails.

[0202] Step 904: The STA and the AP transmit secure data.

[0203] After receiving the association response frame, the STA verifies the AP's legitimacy by comparing MIC1 and MIC2. If MIC1 and MIC2 match, verification succeeds; if they do not, verification fails. After verification succeeds, the STA uses MIC1 to securely protect data and transmits the protected data to the AP.

[0204] The technical solution of the embodiment of the present application proposes a minimalist communication process, which enables IoT devices based on ambient energy in a WiFi system to conveniently transmit data, simplifies the interaction process during data transmission, realizes efficient data transmission, and at the same time meets the energy-limited and small packet data transmission requirements of IoT devices based on ambient energy.

[0205] The preferred embodiments of the present application are described in detail above in conjunction with the accompanying drawings. However, the present application is not limited to the specific details in the above embodiments. Within the technical concept of the present application, the technical solution of the present application can be subjected to a variety of simple modifications, and these simple modifications all fall within the scope of protection of the present application. For example, the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present application will no longer describe the various possible combinations separately. For another example, the various different embodiments of the present application can also be arbitrarily combined, as long as they do not violate the idea of ​​the present application, they should also be regarded as the contents disclosed in the present application. For another example, under the premise of no conflict, the various embodiments and / or the technical features in each embodiment described in the present application can be arbitrarily combined with the prior art, and the technical solution obtained after the combination should also fall within the scope of protection of the present application.

[0206] It should also be understood that in the various method embodiments of the present application, the sequence numbers of the above-mentioned processes do not imply a precedence in the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. In addition, in the embodiments of the present application, the terms "downlink," "uplink," and "sidelink" are used to indicate the transmission direction of signals or data, where "downlink" is used to indicate the first direction of transmission of signals or data from a site to a user equipment in a cell, "uplink" is used to indicate the second direction of transmission of signals or data from a user equipment in a cell to a site, and "sidelink" is used to indicate the third direction of transmission of signals or data from user equipment 1 to user equipment 2. For example, "downlink signal" indicates that the transmission direction of the signal is the first direction. In addition, in the embodiments of the present application, the term "and / or" is merely a description of the association relationship between associated objects, indicating that three relationships can exist. Specifically, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.

[0207] FIG10 is a schematic diagram of the first structure of a communication device provided in an embodiment of the present application, which is applied to a first device. As shown in FIG10 , the communication device includes:

[0208] The communication unit 1001 is configured to send a beacon frame to a second device and receive a first frame sent by the second device; wherein the first frame carries a first MIC, and the first MIC is used by the first device to verify the legitimacy of the second device.

[0209] In some embodiments, the first MIC is generated by the second device based on at least one parameter, where the at least one parameter includes at least one of the following: a first random number, a second random number, and a PSK; the first random number is a random number generated by the first device; the second random number is a random number generated by the second device; and the PSK is a password used to access the first device.

[0210] In some embodiments, when the at least one parameter includes the first random number, the beacon frame carries the first random number.

[0211] In some implementations, when the at least one parameter includes the second random number, the first frame further carries the second random number.

[0212] In some implementations, the apparatus further includes: a processing unit 1002, configured to generate a second MIC based on the at least one parameter, and verify the legitimacy of the second device by comparing the second MIC with the first MIC to determine whether they are consistent.

[0213] In some implementations, the first frame further carries data protected by the first MIC; the processing unit 1002 is configured to obtain the data in the first frame after verifying the legitimacy of the second device.

[0214] In some implementations, the communication unit 1001 is configured to send a second frame to the second device, where the second frame is configured to instruct the first device to confirm that data has been correctly received.

[0215] In some implementations, the second frame is an association response frame or an acknowledgment frame.

[0216] In some implementations, the communication unit 1001 is configured to send a third frame to the second device after successfully verifying the legitimacy of the second device. The third frame carries a second MIC, and the second MIC is used by the second device to verify the legitimacy of the first device.

[0217] In some implementations, the third frame is an association response frame.

[0218] In some implementations, the communication unit 1001 is configured to receive data securely protected by the first MIC sent by the second device.

[0219] In some embodiments, the security algorithm used by the first device and the second device is agreed upon in a protocol; or, the security algorithm used by the first device and the second device is selected by the first device; or, the security algorithm used by the first device and the second device is selected by the second device; wherein, the security algorithm is used to generate the MIC.

[0220] In some implementations, when the security algorithm used by the first device and the second device is selected by the first device, the beacon frame carries the security algorithm selected by the first device.

[0221] In some implementations, when the security algorithm used by the first device and the second device is selected by the second device, the first frame carries the security algorithm selected by the second device.

[0222] In some implementations, when the security algorithm used by the first device and the second device is selected by the second device, the beacon frame carries a list of security algorithms supported by the first device.

[0223] In some implementations, the first frame is an association request frame.

[0224] In some implementations, the first device is an AP, and the second device is a STA.

[0225] Those skilled in the art should understand that the relevant description of the above-mentioned communication device in the embodiment of the present application can be understood with reference to the relevant description of the communication method in the embodiment of the present application.

[0226] FIG11 is a second schematic diagram of the structure of a communication device provided in an embodiment of the present application, which is applied to a second device. As shown in FIG11 , the communication device includes:

[0227] The communication unit 1101 is configured to receive a beacon frame sent by a first device and send a first frame to the first device; wherein the first frame carries a first MIC, and the first MIC is used by the first device to verify the legitimacy of the second device.

[0228] In some embodiments, the first MIC is generated by the second device based on at least one parameter, where the at least one parameter includes at least one of the following: a first random number, a second random number, and a PSK; the first random number is a random number generated by the first device; the second random number is a random number generated by the second device; and the PSK is a password used to access the first device.

[0229] In some embodiments, when the at least one parameter includes the first random number, the beacon frame carries the first random number.

[0230] In some implementations, when the at least one parameter includes the second random number, the first frame further carries the second random number.

[0231] In some implementations, the first frame further carries data securely protected by the first MIC.

[0232] In some implementations, the communication unit 1101 is configured to receive a second frame sent by the first device, where the second frame is configured to instruct the first device to confirm that data has been correctly received.

[0233] In some implementations, the second frame is an association response frame or an acknowledgment frame.

[0234] In some implementations, the communication unit 1101 is configured to receive a third frame sent by the first device, where the third frame carries a second MIC, and the second MIC is used by the second device to verify the legitimacy of the first device.

[0235] In some implementations, the third frame is an association response frame.

[0236] In some implementations, the communication unit 1101 is configured to send the data secured by the first MIC to the first device after verifying the legitimacy of the first device.

[0237] In some embodiments, the security algorithm used by the first device and the second device is agreed upon in a protocol; or, the security algorithm used by the first device and the second device is selected by the first device; or, the security algorithm used by the first device and the second device is selected by the second device; wherein, the security algorithm is used to generate the MIC.

[0238] In some implementations, when the security algorithm used by the first device and the second device is selected by the first device, the beacon frame carries the security algorithm selected by the first device.

[0239] In some implementations, when the security algorithm used by the first device and the second device is selected by the second device, the first frame carries the security algorithm selected by the second device.

[0240] In some implementations, when the security algorithm used by the first device and the second device is selected by the second device, the beacon frame carries a list of security algorithms supported by the first device.

[0241] In some implementations, the first frame is an association request frame.

[0242] In some implementations, the first device is an AP, and the second device is a STA.

[0243] Those skilled in the art should understand that the relevant description of the above-mentioned communication device in the embodiment of the present application can be understood with reference to the relevant description of the communication method in the embodiment of the present application.

[0244] Figure 12 is a schematic structural diagram of a communication device 1200 provided in an embodiment of the present application. The communication device can be a first device or a second device. The communication device 1200 shown in Figure 12 includes a processor 1210, which can call and execute a computer program from a memory to implement the method in the embodiment of the present application.

[0245] Optionally, as shown in FIG12 , the communication device 1200 may further include a memory 1220. The processor 1210 may call and execute a computer program from the memory 1220 to implement the method in the embodiment of the present application.

[0246] The memory 1220 may be a separate device independent of the processor 1210 , or may be integrated into the processor 1210 .

[0247] Optionally, as shown in FIG12 , the communication device 1200 may further include a transceiver 1230 , and the processor 1210 may control the transceiver 1230 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices.

[0248] The transceiver 1230 may include a transmitter and a receiver. The transceiver 1230 may further include an antenna, and the number of antennas may be one or more.

[0249] Optionally, the communication device 1200 may specifically be the first device of the embodiment of the present application, and the communication device 1200 may implement the corresponding processes implemented by the first device in each method of the embodiment of the present application. For the sake of brevity, they will not be repeated here.

[0250] Optionally, the communication device 1200 may specifically be the second device of the embodiment of the present application, and the communication device 1200 may implement the corresponding processes implemented by the second device in each method of the embodiment of the present application. For the sake of brevity, they will not be repeated here.

[0251] Figure 13 is a schematic structural diagram of a chip according to an embodiment of the present application. The chip 1300 shown in Figure 13 includes a processor 1310, which can call and run a computer program from a memory to implement the method according to the embodiment of the present application.

[0252] Optionally, as shown in FIG13 , the chip 1300 may further include a memory 1320 , wherein the processor 1310 may call and execute a computer program from the memory 1320 to implement the method in the embodiment of the present application.

[0253] The memory 1320 may be a separate device independent of the processor 1310 , or may be integrated into the processor 1310 .

[0254] Optionally, the chip 1300 may further include an input interface 1330. The processor 1310 may control the input interface 1330 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.

[0255] Optionally, the chip 1300 may further include an output interface 1340. The processor 1310 may control the output interface 1340 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.

[0256] Optionally, the chip can be applied to the first device in the embodiment of the present application, and the chip can implement the corresponding processes implemented by the first device in each method of the embodiment of the present application. For the sake of brevity, it will not be repeated here.

[0257] Optionally, the chip can be applied to the second device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the second device in each method of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0258] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0259] FIG14 is a schematic block diagram of a communication system 1400 provided in an embodiment of the present application. As shown in FIG14 , the communication system 1400 includes a first device 1410 and a second device 1420 .

[0260] Among them, the first device 1410 can be used to implement the corresponding functions implemented by the terminal device in the above method, and the second device 1420 can be used to implement the corresponding functions implemented by the network device in the above method. For the sake of brevity, they are not repeated here.

[0261] It should be understood that the processor of the embodiments of the present application may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method embodiment can be completed by hardware integrated logic circuits in the processor or software instructions. The above processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0262] It is understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0263] It should be understood that the above-mentioned memories are exemplary but not restrictive. For example, the memories in the embodiments of the present application may also be static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM RAM (DR RAM), etc. In other words, the memories in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.

[0264] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program.

[0265] Optionally, the computer-readable storage medium can be applied to the first device in the embodiment of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the first device in the various methods of the embodiment of the present application. For the sake of brevity, they are not repeated here.

[0266] Optionally, the computer-readable storage medium can be applied to the second device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the second device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.

[0267] An embodiment of the present application also provides a computer program product, including computer program instructions.

[0268] Optionally, the computer program product can be applied to the first device in the embodiment of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the first device in the various methods of the embodiment of the present application. For the sake of brevity, they are not repeated here.

[0269] Optionally, the computer program product can be applied to the second device in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the second device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.

[0270] The embodiment of the present application also provides a computer program.

[0271] Optionally, the computer program can be applied to the first device in the embodiment of the present application. When the computer program runs on the computer, the computer executes the corresponding processes implemented by the first device in the various methods of the embodiment of the present application. For the sake of brevity, they are not repeated here.

[0272] Optionally, the computer program can be applied to the second device in the embodiments of the present application. When the computer program runs on the computer, the computer executes the corresponding processes implemented by the second device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.

[0273] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0274] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0275] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0276] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0277] 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.

[0278] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0279] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A communication method, the method include: The first device sends a beacon frame to the second device, and receives a first frame sent by the second device; wherein the first frame carries a first message integrity code MIC, and the first MIC is used by the first device to verify the legitimacy of the second device.

2. The method according to claim 1, in, The first MIC is generated by the second device based on at least one parameter, and the at least one parameter includes at least one of the following: a first random number, a second random number and a pre-shared key PSK; the first random number is a random number generated by the first device; the second random number is a random number generated by the second device; and the PSK is a password used to access the first device.

3. The method according to claim 2, in, When the at least one parameter includes the first random number, the beacon frame carries the first random number.

4. The method according to claim 2 or 3, in, When the at least one parameter includes the second random number, the first frame also carries the second random number.

5. The method according to any one of claims 2 to 4, in, The method further comprises: The first device generates a second MIC based on the at least one parameter, and verifies the legitimacy of the second device by comparing whether the second MIC is consistent with the first MIC.

6. The method according to any one of claims 1 to 5, in, The first frame also carries data protected by the first MIC security; and the method further includes: After the first device successfully verifies the legitimacy of the second device, it obtains the data in the first frame.

7. The method according to claim 6, in, The method further comprises: The first device sends a second frame to the second device, where the second frame is used to indicate that the first device confirms correct reception of data.

8. The method according to claim 7, in, The second frame is an association response frame or a confirmation frame.

9. The method according to any one of claims 1 to 5, in, The method further comprises: After successfully verifying the legitimacy of the second device, the first device sends a third frame to the second device, where the third frame carries a second MIC, and the second MIC is used by the second device to verify the legitimacy of the first device.

10. The method according to claim 9, in, The third frame is an association response frame.

11. The method according to claim 9 or 10, in, The method further comprises: The first device receives the data securely protected by the first MIC sent by the second device.

12. The method according to any one of claims 1 to 11, in, The security algorithm used by the first device and the second device is agreed upon in a protocol; or, The security algorithm used by the first device and the second device is selected by the first device; or, The security algorithm used by the first device and the second device is selected by the second device; The security algorithm is used to generate MIC.

13. The method according to any one of claims 1 to 12, in, In a case where the security algorithm used by the first device and the second device is selected by the first device, the beacon frame carries the security algorithm selected by the first device.

14. The method according to any one of claims 1 to 12, in, In a case where the security algorithm used by the first device and the second device is selected by the second device, the first frame carries the security algorithm selected by the second device.

15. The method according to claim 14, in, In a case where the security algorithm used by the first device and the second device is selected by the second device, the beacon frame carries a list of security algorithms supported by the first device.

16. The method according to any one of claims 1 to 15, in, The first frame is an association request frame.

17. The method according to any one of claims 1 to 16, in, The first device is an access point AP, and the second device is a station STA.

18. A communication method, the method comprising: include: The second device receives the beacon frame sent by the first device, and sends a first frame to the first device; wherein the first frame carries a first MIC, and the first MIC is used by the first device to verify the legitimacy of the second device.

19. The method according to claim 18, in, The first MIC is generated by the second device based on at least one parameter, and the at least one parameter includes at least one of the following: a first random number, a second random number and a PSK; the first random number is a random number generated by the first device; the second random number is a random number generated by the second device; and the PSK is a password for accessing the first device.

20. The method according to claim 19, in, When the at least one parameter includes the first random number, the beacon frame carries the first random number.

21. The method according to claim 19 or 20, in, When the at least one parameter includes the second random number, the first frame also carries the second random number.

22. The method according to any one of claims 18 to 21, in, The first frame also carries data securely protected by the first MIC.

23. The method according to claim 22, in, The method further comprises: The second device receives a second frame sent by the first device, where the second frame is used to indicate that the first device confirms that data is correctly received.

24. The method according to claim 23, in, The second frame is an association response frame or a confirmation frame.

25. The method according to any one of claims 18 to 21, in, The method further comprises: The second device receives a third frame sent by the first device, where the third frame carries a second MIC, and the second MIC is used by the second device to verify the legitimacy of the first device.

26. The method according to claim 25, in, The third frame is an association response frame.

27. The method according to claim 25 or 26, in, The method further comprises: After successfully verifying the legitimacy of the first device, the second device sends the data securely protected by the first MIC to the first device.

28. The method according to any one of claims 18 to 27, in, The security algorithm used by the first device and the second device is agreed upon in a protocol; or, The security algorithm used by the first device and the second device is selected by the first device; or, The security algorithm used by the first device and the second device is selected by the second device; The security algorithm is used to generate MIC.

29. The method according to any one of claims 18 to 28, in, In a case where the security algorithm used by the first device and the second device is selected by the first device, the beacon frame carries the security algorithm selected by the first device.

30. The method according to any one of claims 18 to 28, in, In a case where the security algorithm used by the first device and the second device is selected by the second device, the first frame carries the security algorithm selected by the second device.

31. The method according to claim 30, in, In a case where the security algorithm used by the first device and the second device is selected by the second device, the beacon frame carries a list of security algorithms supported by the first device.

32. The method according to any one of claims 18 to 31, in, The first frame is an association request frame.

33. The method according to any one of claims 18 to 32, in, The first device is an AP, and the second device is a STA.

34. A communication device, applied to a first device, the device include: A communication unit is used to send a beacon frame to a second device and receive a first frame sent by the second device; wherein the first frame carries a first MIC, and the first MIC is used by the first device to verify the legitimacy of the second device.

35. A communication device, applied to a second device, the device include: A communication unit is used to receive a beacon frame sent by a first device, and send a first frame to the first device; wherein the first frame carries a first MIC, and the first MIC is used by the first device to verify the legitimacy of the second device.

36. A communication device, include: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory so that the terminal device executes the method as described in any one of claims 1 to 17, or the method as described in any one of claims 18 to 33.

37. A chip, include: A processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes a method as claimed in any one of claims 1 to 17, or a method as claimed in any one of claims 18 to 33.

38. A computer-readable storage medium for storing a computer program, wherein the computer program causes a computer to execute the method according to any one of claims 1 to 17, or the method according to any one of claims 18 to 33.

39. A computer program product comprising computer program instructions, the computer program instructions causing a computer to execute the method of any one of claims 1 to 17, or any one of claims 18 to 33.

40. A computer program, the computer program causing a computer to execute the method of any one of claims 1 to 17, or any one of claims 18 to 33.

Citation Information

Patent Citations

  • Method and apparatus for authentication of wireless devices

    CN108293185A

  • Authentication method and device, equipment and storage medium

    CN110198539A

  • Methods and devices for multi-link device (MLD) address discovery in a wireless network

    CN113630774A

  • Authentication protection mechanism

    US20190132128A1