Wireless communication method, first device, and second device

By directly carrying encrypted information in the access message in the WiFi system, the access process of zero-power consumption devices is simplified, and the problem of long access delay is solved, device authentication and information security are realized, and it is suitable for high delays. Required IoT applications.

WO2024234343A1PCT designated stage expired Publication Date: 2024-11-21GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD

Patent Information

Application Number
PCT/CN2023/094863
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-05-17
Publication Date
2024-11-21

AI Technical Summary

Technical Problem

Due to its low complexity and low power consumption characteristics in WiFi systems, zero-power devices are difficult to support traditional access processes, resulting in excessive access delay and cannot meet the Internet of Things application scenarios with high latency requirements.

Method used

By directly carrying encrypted target information in the access message during the first device access to the second device, the access process and key exchange are simplified, the access delay and energy consumption of the device are reduced, and the first Secret key encrypts information to realize device authentication and information security.

Benefits of technology

It effectively reduces the access delay and energy consumption of zero-power consumption devices, ensures information security, and is suitable for the communication process of AMP devices based on environmental energy in logistics, positioning and other scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023094863_21112024_PF_FP_ABST
    Figure CN2023094863_21112024_PF_FP_ABST
Patent Text Reader

Abstract

The embodiment of the present application provide a wireless communication method, a first device, and a second device. The method comprises: when accessing a second device, a first device sending a first message to the second device; wherein the first message comprises target information encrypted via a first key. Compared with a solution involving the first device performing scanning, authentication, and association so as to complete the access process, and using four handshakes to exchange the key and then report the target information, in the present embodiment, the first device directly carries target information in a first message during the access process, thereby simplifying access and key exchange when the first device reports target information, and reducing first device access delay and energy consumed; moreover, using the key to encrypt the target information not only allows the second device to authenticate whether the first device has access qualifications, but also ensures the security of the target information.
Need to check novelty before this filing date? Find Prior Art

Description

Wireless communication method, first device, and second device Technical Field

[0001] The embodiments of the present application relate to the field of communications, and more specifically, to a wireless communication method, a first device, and a second device. Background Art

[0002] Zero-power devices offer low complexity and cost, are maintenance-free, and require no batteries. They can support energy harvesting and / or backscatter communications, enabling high-density and large-scale deployments at a low cost. Zero-power devices are also an important deployment scenario as communication devices in wireless fidelity (Wi-Fi) or cellular networks.

[0003] Typically, when a station (STA) and an access point (AP) in a WiFi system communicate, they must complete the access process through scanning, authentication, and association, as well as a four-way handshake to exchange keys before communication can proceed. However, zero-power devices, due to their low complexity and low power consumption, may not necessarily support these processes. This is especially true for ambient power (AMP) devices, which have limited energy sources and face significant challenges completing the traditional access process. This can result in excessive latency, making it challenging for some Internet of Things (IoT) applications with high latency requirements.

[0004] Therefore, there is an urgent need in this field for a wireless communication method that can, during the process of a first device (such as STA) accessing a second device (such as AP), achieve authentication of the first device and ensure the security of information reported by the first device on the basis of reducing the access delay and energy consumption of the first device.

[0005] Summary of the Invention

[0006] The embodiments of the present application provide a wireless communication method, a first device, and a second device, which can authenticate the first device and ensure the security of information reported by the first device on the basis of reducing the access delay and energy consumption of the first device.

[0007] In a first aspect, an embodiment of the present application provides a wireless communication method, including:

[0008] During the process of the first device accessing the second device, sending a first message to the second device;

[0009] The first message includes target information encrypted by a first secret key.

[0010] In a second aspect, an embodiment of the present application provides a wireless communication method, including:

[0011] During the process of the first device accessing the second device, receiving a first message sent by the first device;

[0012] The first message includes target information encrypted by a first secret key.

[0013] In a third aspect, an embodiment of the present application provides a first device for executing the method of the first aspect or its various implementations mentioned above. Specifically, the first device includes a functional module for executing the method of the first aspect or its various implementations mentioned above.

[0014] In one implementation, the first device may include a processing unit configured to execute functions related to information processing. For example, the processing unit may be a processor.

[0015] In one implementation, the first device may include a transmitting unit and / or a receiving unit. The transmitting unit is configured to perform functions related to transmission, and the receiving unit is configured to perform functions related to reception. For example, the transmitting unit may be a transmitter, and the receiving unit may be a receiver. For another example, if the first device is a communication chip, the transmitting unit may be an input circuit or interface of the communication chip, and the transmitting unit may be an output circuit or interface of the communication chip.

[0016] In a fourth aspect, an embodiment of the present application provides a second device for executing the method in the second aspect or its respective implementations mentioned above. Specifically, the second device includes a functional module for executing the method in the second aspect or its respective implementations mentioned above.

[0017] In one implementation, the second device may include a processing unit configured to execute functions related to information processing. For example, the processing unit may be a processor.

[0018] In one implementation, the second device may include a transmitting unit and / or a receiving unit. The transmitting unit is configured to perform functions related to transmission, and the receiving unit is configured to perform functions related to reception. For example, the transmitting unit may be a transmitter, and the receiving unit may be a receiver. For another example, if the second device is a communication chip, the receiving unit may be an input circuit or interface of the communication chip, and the transmitting unit may be an output circuit or interface of the communication chip.

[0019] In a fifth aspect, an embodiment of the present application provides a first device, comprising a transceiver, a processor, and a memory. The memory is configured to store a computer program, and the processor is configured to call and execute the computer program stored in the memory, so that the transceiver and / or the processor performs the method of the first aspect or its implementations described above.

[0020] In one implementation, there are one or more processors and one or more memories.

[0021] In one implementation, the memory may be integrated with the processor, or the memory may be provided separately from the processor.

[0022] In one implementation, the transceiver further includes a transmitter (transmitter) and a receiver (receiver).

[0023] In a sixth aspect, embodiments of the present application provide a second device comprising a transceiver, a processor, and a memory. The memory is configured to store a computer program, and the processor is configured to call and execute the computer program stored in the memory, so that the transceiver and / or the processor execute the method of the second aspect or its implementations described above.

[0024] In one implementation, there are one or more processors and one or more memories.

[0025] In one implementation, the memory may be integrated with the processor, or the memory may be provided separately from the processor.

[0026] In one implementation, the transceiver includes a transmitter (transmitter) and a receiver (receiver).

[0027] In a seventh aspect, embodiments of the present application provide a chip for implementing the method described in any one of the first and second aspects above, or in their respective implementations. Specifically, the chip includes a processor for calling and executing a computer program from a memory, causing a device equipped with the chip to execute the method described in any one of the first and second aspects above, or in their respective implementations.

[0028] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium for storing a computer program. When the computer program is run on a computer, the computer executes the method of any one of the first to second aspects mentioned above or any of their implementations.

[0029] In a ninth aspect, an embodiment of the present application provides a computer program product, comprising computer program instructions, which enable a computer to execute the method of any one of the first to second aspects mentioned above or any of their implementations.

[0030] In a tenth aspect, an embodiment of the present application provides a computer program, which, when executed on a computer, enables the computer to execute the method in any one of the first to second aspects mentioned above or in each of their implementations.

[0031] Based on the above technical solution, during the process of the first device accessing the second device, a first message is sent to the second device; wherein, the first message includes target information encrypted by a first secret key. Compared with the solution in which the first device completes the access process through scanning, authentication, and association processes, and exchanges secret keys through a 4-way handshake process before reporting the target information, in this embodiment, the first device directly carries the target information in the first message during the access process, which simplifies the access process and key exchange process when the first device reports the target information, and can reduce the access delay and energy consumption of the first device; in addition, by encrypting the target information with the first secret key, not only can the second device authenticate whether the first device has access qualifications, but also can ensure the security of the target information. Therefore, the wireless communication method provided by the present application can achieve authentication of the first device and ensure the security of the information reported by the first device on the basis of reducing the access delay and energy consumption of the first device. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] FIG1 is a schematic diagram of a communication system provided in an embodiment of the present application.

[0033] FIG2 is an example of an access process of active scanning provided in an embodiment of the present application.

[0034] FIG3 is an example of the access process of passive scanning provided in an embodiment of the present application.

[0035] FIG4 is an example of a four-way handshake process provided in an embodiment of the present application.

[0036] FIG5 is a schematic flowchart of a wireless communication method provided in an embodiment of the present application.

[0037] FIG6 is an example of an access process in which a first device determines a first key according to an embodiment of the present application.

[0038] FIG7 is another example of an access process in which a first device determines a first key according to an embodiment of the present application.

[0039] FIG8 is an example of an access process in which a second device broadcasts a first key according to an embodiment of the present application.

[0040] FIG9 is another example of an access process in which a second device broadcasts a first key according to an embodiment of the present application.

[0041] FIG10 is a schematic block diagram of a first device provided in an embodiment of the present application.

[0042] FIG11 is a schematic block diagram of a second device provided in an embodiment of the present application.

[0043] FIG12 is a schematic block diagram of a communication device provided in an embodiment of the present application.

[0044] FIG13 is a schematic block diagram of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.

[0046] The embodiments of the present application can be applied to various communication systems. For example, applicable communication systems include, but are not limited to, Global System of Mobile communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, Advanced Long Term Evolution (LTE-A) system, New Radio (NR) system, NR system evolution system, LTE-based access to unlicensed spectrum (LTE-U) system on unlicensed spectrum, NR-based access to unlicensed spectrum (NR-U) system on unlicensed spectrum, Universal Mobile Telecommunication System (UMTS), Wireless Local Area Networks (WLAN), Wireless Fidelity (WiFi), next generation communication system, zero power communication system, cellular Internet of Things, cellular passive Internet of Things or other communication systems.

[0047] Among them, the cellular Internet of Things is the development product of the combination of cellular mobile communication network and Internet of Things. It is also called passive cellular Internet of Things. It is composed of network equipment and passive terminals. In the cellular passive Internet of Things, passive terminals can communicate with other passive terminals through network equipment, or passive terminals can communicate using device to device (D2D) communication, and the network equipment only needs to send a carrier signal, that is, a power supply signal, to supply energy to the passive terminal.

[0048] Generally speaking, traditional communication systems support a limited number of connections and are easy to implement. However, with the development of communication technology, mobile communication systems will not only support traditional communications, but will also support, for example, D2D communication, machine-to-machine (M2M) communication, machine-type communication (MTC), and vehicle-to-vehicle (V2V) communication, etc. The embodiments of the present application can also be applied to these communication systems.

[0049] It should be understood that the communication system in the embodiment of the present application can be applied to a carrier aggregation (CA) scenario, a dual connectivity (DC) scenario, and a standalone (SA) networking scenario. The embodiment of the present application does not limit the spectrum to which it is applied. For example, the embodiment of the present application can be applied to a licensed spectrum or an unlicensed spectrum.

[0050] FIG1 is a schematic diagram of a communication system 100 provided in an embodiment of the present application.

[0051] As shown in Figure 1, the communication system 100 may include a network device 110, which may be a device that communicates with a terminal device 120 (or a communication terminal or terminal). The network device 110 may provide communication coverage for a specific geographic area and may communicate with terminal devices within the coverage area.

[0052] Exemplarily, the network device 110 may be a device for communicating with a mobile device. The network device 110 may be an access point (AP) in WLAN, a base station (BTS) in GSM or CDMA, a base station (NodeB, NB) in WCDMA, an evolved base station (eNB or eNodeB) in LTE, or a relay station or access point, or a vehicle-mounted device, a wearable device, a network device (gNB) in an NR network, or a network device in a future evolved PLMN network, etc.

[0053] Among them, the network device 110 provides services for the cell, and the terminal device 120 communicates with the network device through the transmission resources used by the cell (for example, frequency domain resources, or spectrum resources). The cell can be the cell corresponding to the network device 110 (for example, a base station). The cell can belong to a macro base station or a base station corresponding to a small cell. The small cells here may include: urban cells (Metro cell), micro cells (Micro cell), pico cells (Pico cell), femto cells (Femto cell), etc. These small cells have the characteristics of small coverage and low transmission power, and are suitable for providing high-speed data transmission services.

[0054] Exemplarily, the terminal device 120 may also be referred to as user equipment (UE), an access terminal, a user unit, a user station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent or a user device, etc. The terminal device may be a station (STAION, ST) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, an in-vehicle device, a wearable device, and a next-generation communication system, for example, a terminal device in an NR network or a terminal device in a future evolved Public Land Mobile Network (PLMN) network, or a zero-power device, etc.

[0055] For example, the terminal device 120 can 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 for daily wear, 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 only hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and independent of smartphones to achieve complete or partial functions, 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.

[0056] For another example, the terminal device 120 may be a zero-power device. A zero-power device may be understood as a device whose power consumption is lower than a preset power consumption, including, for example, a passive terminal or even a semi-passive terminal.

[0057] It should be understood that FIG1 is merely an example of the present application and should not be construed as limiting the present application.

[0058] For example, in other alternative embodiments, the communication system 100 may include multiple network devices and each network device may include other numbers of terminal devices within its coverage area. For another example, a device having a communication function in a network / system in an embodiment of the present application may be referred to as a communication device. Taking the communication system 100 shown in FIG1 as an example, the communication device may include a network device 110 and a terminal device 120 having a communication function. The network device 110 and the terminal device 120 may be the specific devices described above and will not be described in detail here. The communication system 100 may also include other communication devices, such as a network controller and other network entities such as a mobility management entity, which is not specifically limited in the embodiment of the present application.

[0059] Furthermore, it should be understood that the terms "system" and "network" are often used interchangeably herein. The term "and / or" in this document simply describes an association 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 " / " in this document generally indicates that the associated objects are in an "or" relationship. The term "correspond" in this document can indicate a direct or indirect correspondence between two objects, an association between two objects, or a relationship between an indicator and the indicated, a configuration and the configured, and so on. The term "indicate" in this document can mean a direct indication, an indirect indication, or an association. 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 association. The term "predefined" in this document can be implemented by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in a device (for example, including a terminal device and a network device), and this application does not limit its specific implementation method. For example, pre-configuration can refer to what is defined in the protocol. It should also be understood that in the embodiments of the present application, the "protocol" can refer to a standard protocol in the field of communications, such as the LTE protocol, the NR protocol, and related protocols used in future communication systems, and this application does not limit this.

[0060] Taking an example to facilitate understanding of the technical solution provided by this application, the relevant technology is explained below.

[0061] (1) Cellular passive Internet of Things.

[0062] As 5G industry applications expand, the types of connected objects and application scenarios will increase, placing higher demands on the price and power consumption of communication terminals. The application of battery-free, low-cost passive IoT devices has become a key technology for cellular IoT, expanding the types and number of terminals connected to 5G networks and truly realizing the interconnection of everything. Passive IoT devices can be based on zero-power technologies, such as RFID, and can be extended to suit cellular IoT.

[0063] (2) Classification of zero-power terminals.

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

[0065] 1. Passive zero-power terminal.

[0066] Zero-power devices do not require internal batteries. When they approach network devices (such as the reader / writer of a radio frequency identification (RFID) system), they are within the near field formed by the radiation from the network device's antenna. Therefore, the zero-power device antenna generates an induced current through electromagnetic induction, which drives the low-power chip circuit of the zero-power device. This implements tasks such as demodulating the forward link signal (downlink, the link from the network device to the zero-power device) and modulating the backward link signal (uplink, the link from the zero-power device to the network device). For backscatter links, the zero-power device uses backscattering to transmit signals.

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

[0068] Passive zero-power devices do not require batteries, and their RF and baseband circuits are very simple. For example, they do not require a low-noise amplifier (LNA), a power amplifier (PA), a crystal oscillator, or an analog-to-digital conversion (ADC). Therefore, they have many advantages such as small size, light weight, very low price, and long service life.

[0069] Passive zero-power terminals can also support other energy collection methods. By collecting energy from the environment (such as light energy, thermal energy, kinetic energy, mechanical energy, etc.), they can obtain energy for driving circuits and support terminal devices to communicate.

[0070] 2. Semi-passive zero-power terminal.

[0071] Semi-passive zero-power devices do not have conventional batteries installed themselves, but can use radio frequency (RF) energy harvesting modules to harvest radio wave energy or use energy harvesting modules to harvest energy from the environment (such as solar energy, thermal energy, mechanical vibration energy, etc.), and store the harvested energy in an energy storage unit (such as a capacitor). After the energy storage unit obtains energy, it can drive the low-power chip circuit of the zero-power device. It can realize tasks such as demodulation of forward link signals and modulation of backward link signals. For backscatter links, zero-power devices use backscatter implementation to transmit signals.

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

[0073] Semi-passive zero-power devices inherit many advantages of passive zero-power devices, so they have many advantages such as small size, light weight, very low price, and long service life.

[0074] 3. Active zero-power terminal.

[0075] The zero-power devices used in some scenarios can also be active zero-power devices. Such terminals can have built-in batteries (conventional batteries, such as dry batteries, rechargeable lithium batteries, etc.). The battery is used to drive the low-power chip circuit of the zero-power device. It realizes the demodulation of the forward link signal and the modulation of the reverse link signal. However, for the backscatter link, the zero-power device uses the backscatter implementation method to transmit the signal. Therefore, the zero power consumption of this type of terminal is mainly reflected in the fact that the signal transmission of the reverse link does not require the terminal's own power, but uses the backscatter method. Although the active zero-power device uses a battery, due to the sampling of ultra-low power communication technology, the power consumption is very low, so compared with the existing technology, the battery life can be greatly improved.

[0076] Active zero-power devices, with built-in batteries to power the RFID chip, increase the tag's read and write distance and improve communication reliability. Therefore, they are suitable for scenarios with relatively high requirements for communication distance and read latency.

[0077] It is worth noting that some zero-power terminals, such as semi-passive zero-power terminals or active zero-power terminals, can also have the ability to actively transmit, that is, in addition to communicating through backscattering, the backward link can also use active transmission to communicate.

[0078] (3) Equipment based on ambient energy.

[0079] In NR and Wi-Fi systems, the battery-free and low-cost nature of devices can support low-cost, large-scale deployment and maintenance-free IoT devices. IoT devices that support ambient energy in NR and Wi-Fi systems are called Ambient IoT or Ambient Powered IoT (AMP IoT) devices. Ambient IoT refers to IoT devices that use various ambient energies, such as radio frequency energy, light energy, solar energy, thermal energy, and mechanical energy. Ambient IoT devices can have no energy storage capabilities or very limited energy storage capabilities (such as using capacitors with a capacity of tens of microfarads). These devices are similar to passive or semi-passive devices in zero-power communications.

[0080] (4) 802.11 access process.

[0081] A station (STA) accesses a Basic Service Set (BSS) through the following three stages:

[0082] 1. Scan (SCAN).

[0083] STA must first perform scanning, which is divided into two categories: active scanning and passive scanning.

[0084] Active scanning means that a STA sends a Probe Request frame on a supported channel to detect nearby wireless networks. After receiving the Probe Request frame, the Access Point (AP) sends a Probe Response frame. Passive scanning means that a STA listens for Beacon frames periodically sent by an AP on different channels to discover wireless networks. Beacon frames contain basic information and capabilities of the BSS to which the AP belongs, including but not limited to: Basic Service Set Identifier (BSSID), Service Set Identifier (SSID), supported rates, authentication methods, encryption algorithms, Beacon frame transmission interval, and used channels.

[0085] The STA discovers the BSS through the scanning process and obtains BSS information.

[0086] 2. Authentication.

[0087] The STA initiates the authentication process to confirm the STA's identity. Only stations that pass the identity authentication can gain wireless access.

[0088] The authentication process includes two steps: authentication request and authentication response. The corresponding STA sends an authentication request frame and the AP responds with an authentication response frame.

[0089] 3. Association.

[0090] The STA that passes authentication initiates the association process.

[0091] The association process is the process of negotiating wireless link services between a STA and an AP. The association process consists of two steps: an association request and an association response. Specifically, the corresponding STA sends an Association Request frame, and the AP responds with an Association Response frame.

[0092] FIG2 is an example of an access process of active scanning provided in an embodiment of the present application.

[0093] As shown in Figure 2, during the active scanning access process, the STA sends a probe request frame on a supported channel to detect nearby wireless networks. After receiving the probe request frame, the AP sends a probe response frame. Next, the STA sends an authentication request frame to the AP and receives an authentication response frame from the AP. Finally, the STA sends an association request frame to the AP and receives an association response frame from the AP, completing the access process.

[0094] FIG3 is an example of the access process of passive scanning provided in an embodiment of the present application.

[0095] As shown in Figure 3, during the passive scanning access process, the STA listens for beacon frames periodically sent by the AP on different channels. After receiving the beacon frames, the STA sends an authentication request frame to the AP and receives an authentication response frame from the AP. The STA then sends an association request frame to the AP and receives an association response frame from the AP, completing the access process.

[0096] After completing the above access process, the STA and AP need to securely authenticate and exchange keys through a four-way handshake process, so that they can use the keys for subsequent communications, verify the legitimacy of the other end, and prevent man-in-the-middle attacks.

[0097] FIG4 is an example of a four-way handshake process provided in an embodiment of the present application.

[0098] As shown in Figure 4, before starting the four-step handshake, the STA and AP will pre-generate a pairwise master key (PMK) locally using a key generation function (PRF) based on the authentication password and SSID, respectively. The authentication password is the password required to connect to Wi-Fi, and the SSID is the service set identifier used by the STA and AP for air interface transmission (for example, the SSID is usually the name of the Wi-Fi network displayed on the STA).

[0099] The four-way handshake process mainly includes the following steps:

[0100] 1. The AP sends ANonce to the STA.

[0101] ANonce is a random number generated by the authenticator (eg, AP) during the authentication process and used to generate a Pairwise Transit Key (PTK).

[0102] The process of AP sending ANonce to STA is also called the first handshake.

[0103] 2. The STA generates an SNonce and uses ANonce and SNonce to calculate the PTK and message integrity check (MIC), and then sends the SNonce and MIC to the AP.

[0104] SNonce is a random number generated by an applicant (eg, STA) during the authentication process and used to generate a PTK.

[0105] The process of STA sending SNonce and MIC to AP is also called the second handshake.

[0106] 3. After receiving the SNonce and MIC sent by the STA, the AP uses the SNonce to calculate the PTK and MIC. It then uses the calculated MIC and the received MIC for a match check, for example, to verify that the calculated MIC and the received MIC are consistent. If the verification is successful, the AP sends the encrypted multicast key (GTK) to the STA.

[0107] GTK can be generated by ANonce and / or AP identification.

[0108] The GTK can be encrypted using the PTK calculated by the AP.

[0109] The process in which the AP sends the encrypted GTK to the STA is also called the third handshake.

[0110] 4. The STA sends a key confirmation to the AP.

[0111] The process of STA sending key confirmation to AP is also called the fourth handshake.

[0112] After the STA and AP complete the four-way handshake, the STA installs the PTK generated after the first handshake and the GTK received. Installation refers to using the PTK to encrypt data. The AP installs the PTK generated after the second handshake. With both parties having the PTK and GTK, they can use them to encrypt subsequent messages. For example, after the key exchange is complete, all unicast data frames will be protected by the PTK, and all multicast and broadcast data will be protected by the GTK.

[0113] Logistics and warehousing are typical application scenarios for zero-power communication. Large quantities of goods require frequent transfer, storage, loading and unloading, and inventory management at logistics stations or warehouses. The processes of warehouse ordering, goods receipt, goods management, and goods shipment generate a large amount of warehouse information, which typically requires frequent data read operations and high latency requirements. Zero-power devices, with their extremely low cost, small size, maintenance-free design, durability, and long lifespan, are particularly well-suited for recording, storing, and updating goods information in logistics and warehousing. Building logistics and warehousing systems based on the zero-power IoT can further reduce operating costs, significantly improve the efficiency of logistics and warehousing management, and contribute to the realization of smart logistics and smart warehousing. Positioning scenarios based on zero-power terminals also require the AP or STA to read information stored by the zero-power terminal, such as the positioning information stored by the zero-power terminal, and then perform positioning based on the positioning information reported by the zero-power terminal.

[0114] In logistics and warehousing scenarios, zero-power communication is characterized by frequent, small data volumes, requiring rapid reading and identification of cargo information during the logistics process. While 802.11 technology supports zero-power communication, existing access procedures cannot meet these communication requirements. For some zero-power communication scenarios, such as logistics, large amounts of data transmission are not required. The primary communication requirement is to identify information carried by zero-power devices attached to goods, such as their IDs. This functionality is similar to RFID, but zero-power communication offers significantly improved communication range and compatibility with 802.11 systems. Therefore, how to support this type of zero-power communication in 802.11 systems remains a challenge.

[0115] However, as shown in the above description of the 802.11 access process, STAs and APs must complete the access process through scanning, authentication, and association, as well as exchange keys through a four-way handshake before communication can begin. Zero-power terminals, due to their low complexity and low power consumption, may not necessarily support these processes. This is especially true for AMP devices that rely on ambient energy. Their limited energy resources make traditional access processes challenging, resulting in long access delays. This poses a challenge for IoT applications with high latency requirements.

[0116] In view of this, an embodiment of the present application provides a wireless communication method that can achieve authentication of a first device and ensure the security of information reported by the first device while reducing the access latency and energy consumption of the first device. The wireless communication method provided by the present application is exemplarily described below with reference to the accompanying drawings.

[0117] FIG5 is a schematic flowchart of a wireless communication method 200 provided in an embodiment of the present application.

[0118] It should be understood that the wireless communication method 200 may be interactively executed by a first device and a second device. The first device may be the terminal device 120 shown in FIG1 . The second device may be the network device 110 shown in FIG1 .

[0119] Exemplarily, the first device may be a STA.

[0120] Exemplarily, the first device may be a zero-power device, which may include devices based on ambient energy, such as an ambient power enabled IoT device (AMP IoT) or an ambient energy IoT device, a battery-free terminal, a maintenance-free terminal, etc. AMP IoT refers to an IoT device that uses various ambient energies, such as wireless radio frequency energy, light energy, solar energy, thermal energy, mechanical energy, and other ambient energies. AMP IoT may have no energy storage capability or may have very limited energy storage capability (such as using a capacitor with a capacity of tens of microfarads).

[0121] Zero-power devices can be used as communication devices in WiFi or cellular networks.

[0122] From the perspective of energy harvesting, zero-power devices can also be called energy harvesting devices.

[0123] The energy supply device of the zero-power device is a device that sends an energy supply signal. It can be the same device as the device that sends data, such as a base station or AP, or it can be a separate energy supply device.

[0124] A zero-power terminal can perform backscatter communication based on a received trigger signal. The trigger signal can be used to schedule or trigger backscatter communication by the zero-power terminal. The trigger signal carries scheduling information for a network device, or the trigger signal is scheduling signaling or a scheduling signal sent by the network device.

[0125] It should be noted that the energy supply signal and the trigger signal can be one signal or two independent signals, and this application does not make any specific limitation on this.

[0126] For example, in a cellular network, since zero-power devices are not battery-powered, a power supply signal needs to be provided by the network device for the zero-power device to obtain energy, thereby performing the corresponding communication process. Among them, the signal for power supply (i.e., the power supply signal) and the signal for information transmission (i.e., the trigger signal) can be two signals or one signal. For another example, in RFID technology, the power supply signal and the trigger signal can be one signal, and in cellular passive Internet of Things technology, the power supply signal and the trigger signal can be two independent signals. These two signals may not be sent in the same frequency band. For example, the network device continuously or intermittently sends a power supply signal in a certain frequency band, and the zero-power device performs energy collection. After the zero-power device obtains energy, it can perform the corresponding communication process, such as measurement, channel / signal reception, channel / signal transmission, etc.

[0127] Exemplarily, the second device may be an AP.

[0128] As shown in FIG5 , the wireless communication method 200 may include:

[0129] S210: During the process of the first device accessing the second device, the first device sends a first message to the second device; the first message includes target information encrypted using a first key. Correspondingly, during the process of the first device accessing the second device, the second device receives the first message sent by the first device; the first message includes target information encrypted using the first key.

[0130] In this embodiment, during the process of the first device accessing the second device, a first message is sent to the second device; wherein the first message includes target information encrypted by a first secret key. Compared with the solution in which the first device completes the access process through scanning, authentication, and association processes and exchanges secret keys through a 4-way handshake process before reporting the target information, in this embodiment, the first device directly carries the target information in the first message during the access process, which simplifies the access process and secret key exchange process when the first device reports the target information, and can reduce the access delay and energy consumption of the first device; in addition, by encrypting the target information with the first secret key, not only can the second device authenticate whether the first device has access qualifications, but also the security of the target information can be guaranteed. Therefore, the wireless communication method provided in this application can realize the authentication of the first device and ensure the security of the information reported by the first device on the basis of reducing the access delay and energy consumption of the first device. It is particularly suitable for the communication process or information reporting process of AMP devices based on environmental energy in scenarios such as logistics and positioning.

[0131] In some embodiments, the first key is a key agreed upon by the first device and the second device.

[0132] Exemplarily, the secret key agreed upon by the first device and the second device may be implemented by writing the secret key into the first device and the second device.

[0133] In some embodiments, the method 200 may further include:

[0134] The first device receives first information sent by the second device; wherein the first information includes the first key or information used to determine the first key.

[0135] Correspondingly, the second device generates and sends the first information to the first device.

[0136] Exemplarily, after the first device receives the first information, if the first information includes the first key, the first device can directly encrypt the target information based on the first key carried in the first information, and send the target information to the second device in the first message.

[0137] Exemplarily, after the first device receives the first information, if the first information includes information used to determine the first key, the first device can determine the first key based on the information used to determine the first key, and then encrypt the target information based on the first key, and carry the target information in the first message and send it to the second device.

[0138] Exemplarily, the first information includes security-related information, and the security-related information includes the information used to determine the first key.

[0139] Exemplarily, the first information is carried on a beacon frame sent by the second device.

[0140] Exemplarily, the first information is carried on a discovery frame sent by the second device.

[0141] In some embodiments, the first information includes the information used to determine the first key; the method 200 may further include:

[0142] The first device determines the first key based on at least one of the following:

[0143] The information used to determine the first key, the random number generated by the first device, and the key agreed upon by the first device and the second device.

[0144] Correspondingly, after receiving the first message, the second device determines the first key in the same manner as the first device.

[0145] For example, the key agreed upon by the first device and the second device may be a group master key (GMK) or another type of known key. Determining the first key by using the key agreed upon by the first device and the second device can increase the security of the first key.

[0146] Taking a logistics scenario as an example, the second device can be an AP, which can be a zero-power device attached to the cargo. For cargo managed by a logistics company, the zero-power device used can be pre-programmed with an agreed-upon key. During cargo transportation, only the logistics company's AP can identify and read the information from these zero-power devices. Furthermore, the zero-power device can obtain information used to determine the first key from the AP, and then determine the first key based on the information used to determine the first key, the random number SNonce generated by the zero-power device, and the agreed-upon key.

[0147] In some embodiments, the information used to determine the first key includes at least one of the following:

[0148] a random number generated by the second device;

[0149] address information of the second device;

[0150] A key for determining the first key.

[0151] Exemplarily, after the first device generates the random number SNonce, it can use one or more of SNonce, the address information of the second device, the key used to determine the first key, and the random number ANonce generated by the second device to calculate the first key through a key generation function.

[0152] Exemplarily, if the information used to determine the first key includes a key used to determine the first key, the first device may determine the first key based on the information used to determine the first key and a random number generated by the first device.

[0153] Exemplarily, if the information used to determine the first key does not include the key used to determine the first key, the first device may determine the first key based on the information used to determine the first key, the random number generated by the first device, and the key agreed upon by the first device and the second device.

[0154] In some embodiments, the information used to determine the first key further includes information for indicating a key generation function of the first key, or the key generation function of the first key is a function agreed upon by the first device and the second device.

[0155] Exemplarily, the function agreed upon by the first device and the second device may be implemented by writing into the first device and the second device.

[0156] Exemplarily, if the information used to determine the first key also includes information for indicating a key generation function of the first key, the first device can determine the first key based on the indicated key generation function, based on the information used to determine the first key, the random number generated by the first device, and at least one of the keys agreed upon by the first device and the second device.

[0157] Exemplarily, if the information used to determine the first key does not include information for indicating a key generation function of the first key, the first device may determine the first key based on the key generation function agreed upon by the first device and the second device, based on at least one of the information used to determine the first key, the random number generated by the first device, and the key agreed upon by the first device and the second device.

[0158] It should be understood that this application does not specifically limit the key generation function of the first key. In other words, in this embodiment, the key generation function of the first key can be any function that can generate a key. For example, the key generation function of the first key can be a SHA1 function or other type of function. In addition, the key generation function of the first key can also be referred to as the key derivation function of the first key, the key derivation method, the key generation method, the encryption method, or other terms with similar meanings, and this application does not specifically limit these terms.

[0159] In some embodiments, the first information further includes at least one of the following:

[0160] Information used to indicate that the first message carries the target information and that the target information is encrypted;

[0161] Information used to indicate at least one primary channel used by the target basic service set BSS;

[0162] Information used to indicate a first time domain resource, where the first time domain resource is used to determine a time domain resource of the first message;

[0163] Information used to indicate a first frequency domain resource, where the first time domain resource is used to determine the frequency domain resource of the first message;

[0164] Information used by the first device to identify whether the second device is a target device.

[0165] Exemplarily, when the first information includes information indicating that the first message carries the target information and that the target information is encrypted, the first device uses the first message to access the second device, uses an access procedure including the first message to establish a connection with the second device, or uses the first message to carry the encrypted target information to directly report the information. This avoids completing the access process through scanning, authentication, and association processes, and exchanging keys through a four-way handshake process before reporting the target information, thereby reducing the latency and energy consumption of the first device's access. In other alternative embodiments, the access process including the first message may be referred to as a target access process.

[0166] In other words, when the first information includes information indicating that the first message carries the target information and that the target information is encrypted, the first information is used to trigger the first device to send the first message carrying the encrypted target information to the second device, or in other words, the first information is used to trigger the first device to access the second device through the first message carrying the encrypted target information, or in other words, the first information is used to trigger the first device to report the encrypted target information to the second device. In other words, when the first information includes information indicating that the first message carries the target information and that the target information is encrypted, the first device determines that it can access the second device according to the target access procedure, and thus carries the encrypted target information in the first message of the target access procedure for information reporting.

[0167] Taking a logistics scenario as an example, the second device can be an AP, which can be a zero-power device attached to the cargo. When the cargo arrives at the warehouse, it needs to be triggered by the AP to report information. However, during the cargo transportation process, active reporting is not required, reducing energy consumption. Therefore, during the access process, the AP needs to send first information to the zero-power device, which triggers subsequent processes, including reporting the zero-power terminal ID or cargo information.

[0168] Exemplarily, the first information indicates at least one primary channel used by the target BSS via a frame used to carry the first information.

[0169] Taking the first device as a zero-power device and the second device as an AP as an example, in order to reduce the power consumption and delay caused by the scanning process of the zero-power device, the zero-power device can obtain the primary channel (primary channel) or primary channel set of the target BSS through the discovery frame sent by the AP carrying the first information, thereby reducing the subsequent zero-power device determining the primary channel of the target BSS by scanning on multiple channels, causing excessive power consumption and delay.

[0170] Exemplarily, when the first information includes information indicating a first time domain resource, the first device may determine a time domain resource for the first message based on the first time domain resource, so that the first device sends the first message on the time domain resource for the first message. For example, the first time domain resource may be a time slot used for uplink transmission by the first device.

[0171] Exemplarily, when the first information includes information indicating a first frequency domain resource, the first device may determine the frequency domain resource of the first message based on the first frequency domain resource, so that the first device sends the first message on the frequency domain resource of the first message. For example, the first frequency domain resource may be channel information used for uplink transmission by the first device, a frequency domain position within the channel used for uplink transmission by the first device, or bandwidth information used for uplink transmission by the first device.

[0172] It is worth noting that, since the first information is a broadcast information, after obtaining the first information, the first device can determine the time domain resources and / or frequency domain resources of the first message based on the ID of the first device.

[0173] For example, the first device may determine the time domain resource of the first message based on the result of performing a modulo operation on the ID of the first device based on the number of resource units included in the first time domain resource. Similarly, the first device may also determine the frequency domain resource of the first message based on the result of performing a modulo operation on the ID of the first device based on the number of resource units included in the first frequency domain resource. Thus, not only can the time domain resource and / or frequency domain resource of the first message be determined, but the probability of collision between multiple devices when the multiple devices simultaneously access the second device can also be reduced.

[0174] Exemplarily, when the first information includes information used by the first device to identify whether the second device is a target device, if the identification result of the first device is that the second device is a target device, the first device accesses the second device through the first message and reports the information through the first message; if the identification result of the first device is that the second device is not a target device, the first device does not access the second device and does not report the information.

[0175] Taking a logistics scenario as an example, the second device may be an AP, which may be a zero-power device attached to the cargo. Accordingly, the target device may be an AP that supports the target access process, an AP that supports zero-power device access, an AP that supports establishing a connection with the second device using the access process including the first message, or an AP that supports directly reporting information using the first message. This application does not limit this.

[0176] In some embodiments, the first device detects the first information on a predefined first channel.

[0177] Exemplarily, the first device may detect a discovery frame on a predefined first channel, where the discovery frame carries the first information.

[0178] In some embodiments, the first channel includes a channel corresponding to a predefined frequency band.

[0179] Exemplarily, the first channel includes a channel corresponding to a specific frequency band. For example, the first channel may include channel 1 in the 2.4 GHz frequency band. For another example, the first channel may include channel 40, channel 44, channel 149 or channel 153 in the 5 GHz frequency band. For another example, the first channel may include a channel corresponding to a predefined frequency band below 1 GHz.

[0180] In some embodiments, the first message further includes at least one of the following:

[0181] a random number generated by the first device;

[0182] Integrity check (MIC) information of the first message.

[0183] Exemplarily, the random number generated by the first device and carried in the first message is used by the second device to determine the first key. The information and key generation function used by the second device to determine the first key are the same as the information and key generation function used by the first device to determine the first key.

[0184] Exemplarily, the MIC information in the first message is recorded as MIC1. The first device can determine MIC1 based on the first key determined by the first device. For example, the first device can use a portion of the information of the first key determined by the first device (for example, the first 16 bytes) as MIC1. After receiving the first message, the second device can determine the first key based on the random number generated by the first device, and determine MIC2 based on the determined first key. For example, the second device can use a portion of the information of the first key determined by the second device (for example, the first 16 bytes) as MIC2. After obtaining MIC2, the second device can verify the first key based on MIC1 and MIC2. If MIC1 and MIC2 are the same, it is determined that the verification of the first key has passed; if MIC1 and MIC2 are different, it is determined that the verification of the first key has failed. At this time, the first message can be discarded or the access of the first device can be denied.

[0185] Exemplarily, after determining the first secret key, the second device may decrypt the target information in the first message to obtain the decrypted target information.

[0186] Exemplarily, the random number generated by the first device is unencrypted information.

[0187] Exemplarily, the MIC information of the first message is unencrypted information or information encrypted using the first secret key.

[0188] In some embodiments, the first message is carried in a radio frame that the first device actively sends to the second device, or the first message is carried in a radio frame that the second device triggers the first device to send information to the second device.

[0189] Exemplarily, the wireless frame that the first device actively sends to the second device may be a probe request frame or other types of frames. Alternatively, the wireless frame that the first device actively sends to the second device may be a frame newly defined for the target access procedure provided in this application or the first message.

[0190] Exemplarily, the wireless frame that the second device triggers the first device to send information to the second device may be an authentication request frame, an association request frame, or other types of frames. Alternatively, the wireless frame that the first device actively sends to the second device may be a frame newly defined for the target access procedure provided in this application or the first message.

[0191] Exemplarily, the radio frame carrying the first message may be a physical layer protocol data unit (PPDU) frame, and the PPDU frame includes a physical layer header and a data portion.

[0192] Among them, the physical layer header includes three parts: a short training field (STF), a long training field (LTF), and some specific settings of the data part, which is named SIGNAL. STF is mainly composed of 10 short symbols (t1-t10), each of which is 0.8us. It includes many functions, mainly realizing frame synchronization and coarse frequency synchronization. t1-t7 mainly includes functions such as signal detection (Signal Detect), automatic gain control (AGC), and diversity selection (Diversity Selection). t8-t10 mainly includes functions such as coarse frequency (Coarse Freq), offset estimation (Offset Estimation), and timing synchronization (Timing Synchronize). LTF realizes fine frequency synchronization and channel estimation. The SIGNAL part carries information related to the data part, including data transmission rate, data packet length (Length) information, reserved bits, etc. The data portion of the PPDU may be used to carry a MAC frame. The frame format of the MAC frame includes the following parts: a MAC header, a frame body, and a frame check sequence (FCS).

[0193] In conjunction with the first message, the target message can be carried in a physical layer header or a MAC header. For example, the information related to the device identifier in the target message can be carried in the address field of the physical layer header or the MAC header. The information related to the device identifier can include the identifier of the first device. Of course, the target message can also be carried in the frame body of the PPDU frame or other locations, and this application does not specifically limit this.

[0194] In some embodiments, the method 200 may further include:

[0195] The first device receives a second message sent by the second device; wherein the second message includes feedback information of the target information.

[0196] Correspondingly, after the second device receives the first message sent by the first device, it determines the first key based on the random number generated by the first device in the first message, and after performing integrity verification on the first key based on the MIC information in the first message, uses the first key to decrypt the target message in the first message to obtain the decrypted target message. Furthermore, the second device sends a second message in the access process to the first device, and the second message includes feedback information of the target information. The main function of the feedback information is to successfully confirm (ACK) or fail to confirm (NACK) the receipt of the target information by the second device. Of course, the second message may also include other types of information, which is not limited in this application. After the first device receives the second message, it can determine whether the access is successful based on the feedback information. For example, if it is NACK or the second message is not successfully received, the first device re-initiates the target access process or sends the first message.

[0197] Exemplarily, the second message may be carried in a probe response frame, an authentication response frame, an association response frame, or other types of frames. Alternatively, the radio frame used to carry the second message may be a newly defined frame for the target access procedure provided in this application or the second message.

[0198] In some embodiments, the second message also includes at least one of the following: a second key, information used to determine the second key; wherein the second key is the key used by the first device in the next access process, or the second key is used to determine the key used by the first device in the next access process.

[0199] For example, if the key used to determine the first key is the key sent by the second device to the first device, then the second key is the key used by the first device during the next access process. In other words, if the key used to determine the first key is the key sent by the second device to the first device, it means that the second device will broadcast the key. In this case, when the first device determines the key to be used during the next access process, the second key can be used to update the key used by the first device.

[0200] Exemplarily, if the key used to determine the first key is a key agreed upon by the first device and the second device, the second key is used to determine the key used by the first device during the next access process. In other words, if the key used to determine the first key is a key agreed upon by the first device and the second device, the second device will not broadcast the key used to determine the first key. In this case, when the first device determines the key to be used during the next access process, the second key can be used to update the key used to determine the key to be used.

[0201] In some embodiments, the second message includes the information used to determine the second key; the method 200 may further include:

[0202] The first device determines the second key based on at least one of the following:

[0203] The first key, a key used to encrypt part or all of the information in the second message, and information used to determine the second key.

[0204] Exemplarily, when the second message includes the second key, the second device determines the second key based on the first key, the key used to encrypt part or all of the information in the second message, and at least one of the information used to determine the second key, and sends the second key to the first device through the second message.

[0205] Exemplarily, when the second message includes information used to determine the second key, after receiving the second message, the first device can determine the second key based on at least one of the first key, the key used to encrypt part or all of the information in the second message, and the information used to determine the second key, and perform the next access process or perform the next information reporting through the second key.

[0206] Exemplarily, the key generation function of the second key and the key generation function of the first key may be the same or different.

[0207] In some embodiments, the information used to determine the second key includes at least one of the following:

[0208] a random number generated by the second device;

[0209] address information of the second device;

[0210] A key for determining the second key.

[0211] Exemplarily, if the second device has sent the first information mentioned above, the information used to determine the second key may not include the address information of the second device.

[0212] For example, the random number generated by the second device included in the first information mentioned above and the random number generated by the second device included in the information used to determine the second key may be the same or different; if they are the same, the information used to determine the second key may not include the random number generated by the second device. Similarly, the key used to determine the first key included in the first information mentioned above and the key used to determine the second key included in the information used to determine the second key may be the same or different; if they are the same, the information used to determine the second key may not include the key used to determine the second key. In addition, it can be sent to the first device by the second device, or it can be a key predetermined by the first and second devices. For example, when the information used to determine the second key does not include the key used to determine the second key, the key used to determine the second key is the key agreed upon by the first and second devices.

[0213] In some embodiments, part or all of the information in the second message is encrypted using the first key.

[0214] Exemplarily, at least one of the feedback information, the second key, and the information used to determine the second key in the second message is encrypted using the first key.

[0215] In some embodiments, part or all of the information in the second message is encrypted using a third key; wherein the third key is determined based on at least one of: the first key, and unencrypted information in the second message used to determine the third key.

[0216] Exemplarily, at least one of the feedback information, the second key, and the information used to determine the second key in the second message is encrypted using the first key.

[0217] In some embodiments, the information used to determine the third key includes at least one of the following:

[0218] a random number generated by the second device;

[0219] address information of the second device;

[0220] A key used to determine the third key.

[0221] Exemplarily, if the second device has sent the first information mentioned above, the information used to determine the third key may not include the address information of the second device.

[0222] For example, the random number generated by the second device included in the first information mentioned above and the random number generated by the second device included in the information used to determine the third key may be the same or different; if they are the same, the information used to determine the third key may not include the random number generated by the second device. Similarly, the key used to determine the first key included in the first information mentioned above and the key used to determine the third key included in the information used to determine the third key may be the same or different; if they are the same, the information used to determine the third key may not include the key used to determine the third key. In addition, it can be sent to the first device by the second device, or it can be a key predetermined by the first and second devices. For example, when the information used to determine the third key does not include the key used to determine the third key, the key used to determine the third key is the key agreed upon by the first and second devices.

[0223] In some embodiments, the target information includes at least one of the following:

[0224] The identifier of the first device and the information stored in the first device.

[0225] Of course, in other alternative embodiments, the target information may also include other information, such as the time or location of the next expected information reporting.

[0226] In some embodiments, the information stored in the first device includes an identification of goods stored in the first device.

[0227] Of course, in other alternative embodiments, the information stored in the first device may also include other types of information besides the cargo identification, such as the time or location of the next expected information reporting.

[0228] FIG6 is an example of an access process 310 in which a first device determines a first key according to an embodiment of the present application.

[0229] As shown in FIG6 , the access process 310 of the first device determining the first key may include:

[0230] S311: The first device receives first information sent by the second device.

[0231] The first information is carried in a beacon frame or a discovery frame sent by the second device. The first information includes at least one of the following: a key for determining the first key, Anonce, address information of the second device, and information indicating a key generation function for the first key. Anonce is a random number generated by the second device.

[0232] S312: The first device determines a first key and MIC1 based on the first information and Snonce, and encrypts the target information using the first key.

[0233] Snonce is a random number generated by the first device.

[0234] Specifically, if the information used to determine the first key also includes information indicating a key generation function for the first key, the first device may determine the first key based on the indicated key generation function, the information used to determine the first key, and the random number generated by the first device. If the information used to determine the first key does not include information indicating a key generation function for the first key, the first device may determine the first key based on a key generation function agreed upon by the first device and the second device, the information used to determine the first key, and the random number generated by the first device.

[0235] In addition, assuming that the MIC information in the first message is recorded as MIC1, the first device can determine MIC1 based on the first key determined by the first device. For example, the first device can use part of the information of the first key determined by the first device (for example, the first 16 bytes) as MIC1.

[0236] S313: The first device sends a first message to the second device.

[0237] The first device sends a request frame carrying the first message to the second device. For example, the first message is carried in a probe request frame, an authentication request frame, an association request frame, or other types of frames sent by the first device. Of course, the frame used to carry the first message may also be a newly defined frame for the target access procedure provided in this application or the first message. The first message includes at least one of the following: Snonce, MIC1, target information, etc.

[0238] S314 , determining a first secret key and MIC2 based on the first information and Snonce, performing integrity verification on the first secret key based on MIC1 and MIC2, decrypting the target information using the first secret key and generating confirmation information.

[0239] After receiving the first message, the second device can determine the first key based on the first message and Snonce, and determine MIC2 based on the determined first key. For example, the second device can use a portion of the first key determined by the second device (for example, the first 16 bytes) as MIC2. After obtaining MIC2, the second device can verify the first key based on MIC1 and MIC2. If MIC1 and MIC2 are the same, it is determined that the verification of the first key has passed; if MIC1 and MIC2 are different, it is determined that the verification of the first key has failed. At this time, the first message can be discarded or the access of the first device can be denied. If the verification of the first key passes, the second device can decrypt the target information in the first message and obtain the decrypted target information.

[0240] S315: The first device receives the second message sent by the second device.

[0241] The second device sends a response frame carrying a second message during the access process to the first device, and the second message includes feedback information of the target information. The main function of the feedback information is to successfully confirm (ACK) or fail to confirm (NACK) the receipt of the target information by the second device. For example, the second message can be carried in a probe response frame, an authentication response frame, an association response frame, or other types of frames. Of course, the wireless frame used to carry the second message can be a newly defined frame for the target access process or the second message provided in this application.

[0242] S316: The first device confirms whether the target access process is completed.

[0243] After receiving the second message, the first device may determine whether the access is successful based on the feedback information. For example, if it is a NACK or the second message is not received successfully, the first device re-initiates the target access process or sends the first message.

[0244] In this embodiment, the first key is determined by the first device, and the key used to determine the first key is information broadcast by the second device in the first information, which can ensure the security of the first key.

[0245] FIG. 7 is another example of an access process 320 in which a first device determines a first key provided by an embodiment of the present application.

[0246] As shown in FIG7 , the access process 320 of the first device determining the first key may include:

[0247] S321: The first device receives first information sent by the second device.

[0248] The first information is carried in a beacon frame or a discovery frame sent by the second device. The first information includes at least one of the following: Anonce, address information of the second device, information indicating a key generation function of the first key, etc. Anonce is a random number generated by the second device.

[0249] S322: The first device determines a first key and MIC1 based on the first information, Snonce, and the agreed key, and encrypts the target information using the first key.

[0250] Snonce is a random number generated by the first device.

[0251] Specifically, if the information used to determine the first key also includes information indicating a key generation function for the first key, the first device may determine the first key based on the indicated key generation function, the information used to determine the first key, the Snonce, and the key agreed upon by the first device and the second device. If the information used to determine the first key does not include information indicating a key generation function for the first key, the first device may determine the first key based on the key generation function agreed upon by the first device and the second device, the information used to determine the first key, the Snonce, and the key agreed upon by the first device and the second device.

[0252] In addition, assuming that the MIC information in the first message is recorded as MIC1, the first device can determine MIC1 based on the first key determined by the first device. For example, the first device can use part of the information of the first key determined by the first device (for example, the first 16 bytes) as MIC1.

[0253] S323: The first device sends a first message to the second device.

[0254] The first device sends a request frame carrying the first message to the second device. For example, the first message is carried in a probe request frame, an authentication request frame, an association request frame, or other types of frames sent by the first device. Of course, the frame used to carry the first message may also be a newly defined frame for the target access procedure provided in this application or the first message. The first message includes at least one of the following: Snonce, MIC1, target information, etc.

[0255] S324: Determine the first key and MIC2 based on the first information, Snonce, and the agreed key, perform integrity verification on the first key based on MIC1 and MIC2, decrypt the target information using the first key, and generate confirmation information.

[0256] After receiving the first message, the second device can determine the first key based on the first message, Snonce, and the key agreed upon by the first device and the second device, and determine MIC2 based on the determined first key. For example, the second device can use a portion of the first key determined by the second device (for example, the first 16 bytes) as MIC2. After obtaining MIC2, the second device can verify the first key based on MIC1 and MIC2. If MIC1 and MIC2 are the same, it is determined that the verification of the first key has passed; if MIC1 and MIC2 are different, it is determined that the verification of the first key has failed. At this time, the first message can be discarded or the access of the first device can be denied. If the verification of the first key passes, the second device can decrypt the target information in the first message and obtain the decrypted target information.

[0257] S325: The first device receives the second message sent by the second device.

[0258] The second device sends a response frame carrying a second message during the access process to the first device. The second message includes feedback information of the target information, a second key, information for determining the second key, etc. The second key is used to determine the key used by the first device in the next access process. The main function of the feedback information is to successfully confirm (ACK) or fail to confirm (NACK) the receipt of the target information by the second device. The second key is used to determine the key used by the first device in the next access process. In other words, when the first device determines the key to be used in the next access process, the second key can be used to update the key used to determine the key to be used. The second message can be carried in a probe response frame, an authentication response frame, an association response frame, or other types of frames. Of course, the wireless frame used to carry the second message can be a newly defined frame for the target access process or the second message provided in this application.

[0259] S326: The first device confirms whether the target access process is completed.

[0260] After receiving the second message, the first device may determine whether the access is successful based on the feedback information. For example, if it is a NACK or the second message is not received successfully, the first device re-initiates the target access process or sends the first message.

[0261] In this embodiment, the first key is determined by the first device, and the key used to determine the first key is information agreed upon by the first device and the second device, thereby ensuring the security of the first key. In addition, by carrying the second key or information used to determine the second key in the second message, the first device stores the received second key or the second key determined based on the information locally on the device and uses it to determine the key to be used during the next access process.

[0262] FIG8 is an example of an access process 330 in which a second device broadcasts a first key according to an embodiment of the present application.

[0263] As shown in FIG8 , the access process 330 of the second device broadcasting the first key may include:

[0264] S331: The first device receives first information sent by the second device.

[0265] The first information is carried in a beacon frame or a discovery frame sent by the second device. The first information includes a first key.

[0266] S332: The first device encrypts the target information using the first key.

[0267] Specifically, the first device encrypts the target message using the first key in the first information.

[0268] S333: The first device sends a first message to the second device.

[0269] The first device sends a request frame carrying the first message to the second device. For example, the first message is carried in a probe request frame, an authentication request frame, an association request frame, or other types of frames sent by the first device. Of course, the frame used to carry the first message may also be a newly defined frame for the target access procedure provided in this application or the first message. The first message includes target information, etc.

[0270] S334: The second device decrypts the target information using the first key and generates confirmation information.

[0271] After receiving the first message, the second device may decrypt the target information in the first message, obtain the decrypted target information and generate feedback information of the target information.

[0272] S335: The first device receives the second message sent by the second device.

[0273] The second device sends a response frame carrying a second message during the access process to the first device, and the second message includes feedback information of the target information. The main function of the feedback information is to successfully confirm (ACK) or fail to confirm (NACK) the receipt of the target information by the second device. The second message can be carried in a probe response frame, an authentication response frame, an association response frame, or other types of frames. Of course, the wireless frame used to carry the second message can be a newly defined frame for the target access process or the second message provided in this application.

[0274] S336: The first device confirms whether the target access process is completed.

[0275] After receiving the second message, the first device may determine whether the access is successful based on the feedback information. For example, if it is a NACK or the second message is not received successfully, the first device re-initiates the target access process or sends the first message.

[0276] In this embodiment, the first key is information broadcast by the first device in the first message. The first device can directly use the first key to encrypt the first message. This reduces the computational complexity of the first device, and the first key used only serves to distinguish the intended recipient device of the first message.

[0277] FIG9 is another example of an access process 340 in which a second device broadcasts a first key provided by an embodiment of the present application.

[0278] As shown in FIG9 , the access process 340 of the second device broadcasting the first key may include:

[0279] S341: The first device receives first information sent by the second device.

[0280] The first information is carried in a beacon frame or a discovery frame sent by the second device. The first information includes a first key.

[0281] S342: The first device encrypts the target information using the first key.

[0282] Specifically, the first device encrypts the target message using the first key in the first information.

[0283] S343: The first device sends a first message to the second device.

[0284] The first device sends a request frame carrying the first message to the second device. For example, the first message is carried in a probe request frame, an authentication request frame, an association request frame, or other types of frames sent by the first device. Of course, the frame used to carry the first message may also be a newly defined frame for the target access procedure provided in this application or the first message. The first message includes target information, etc.

[0285] S344: The second device decrypts the target information using the first key and generates confirmation information.

[0286] After receiving the first message, the second device may decrypt the target information in the first message, obtain the decrypted target information and generate feedback information of the target information.

[0287] S345: The first device receives the second message sent by the second device.

[0288] The second device sends a response frame carrying the second message during the access process to the first device, and the second message includes feedback information of the target information. The main function of the feedback information is to successfully confirm (ACK) or fail to confirm (NACK) the receipt of the target information by the second device. The second key is the key used by the first device in the next access process. In other words, when the first device determines the key to be used in the next access process, the second key can be used to update the key of the key used by the first device. The second message can be carried in a probe response frame, an authentication response frame, an association response frame or other types of frames. Of course, the wireless frame used to carry the second message can be a newly defined frame for the target access process or the second message provided in this application.

[0289] S346: The first device confirms whether the target access process is completed.

[0290] After receiving the second message, the first device may determine whether the access is successful based on the feedback information. For example, if it is a NACK or the second message is not received successfully, the first device re-initiates the target access process or sends the first message.

[0291] In this embodiment, the first key is the information broadcast by the first device in the first message. The first device can directly use the first key to encrypt the first message. This reduces the computational complexity of the first device, and the first key used only serves to distinguish the target receiving device of the first message. In addition, by carrying the second key or information used to determine the second key in the second message, the first device stores the received second key or the second key determined based on the information locally on the device and compares it with the received key during the next access process. If the two keys are consistent, the device sending the key is determined to be a device that the first device can access.

[0292] 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 embodiments mentioned above. 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 specific embodiments mentioned above can be combined in any suitable manner unless there is any contradiction. In order to avoid unnecessary repetition, the present application will not further explain various possible combinations. For another example, the various different embodiments of the present application can also be arbitrarily combined, and as long as they do not violate the ideas of the present application, they should also be regarded as the contents disclosed in the present application.

[0293] It should also be understood that in the various method embodiments of the present application, the size of the serial numbers of the processes involved above does not mean 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.

[0294] The method embodiment of the present application is described in detail above with reference to FIG. 1 to FIG. 9 , and the device embodiment of the present application is described in detail below with reference to FIG. 10 to FIG. 13 .

[0295] FIG10 is a schematic block diagram of a first device 400 according to an embodiment of the present application.

[0296] As shown in FIG10 , the first device 400 may include:

[0297] The sending unit 410 is configured to send a first message to the second device during the process of the first device accessing the second device;

[0298] The first message includes target information encrypted by a first secret key.

[0299] In some embodiments, the first key is a key agreed upon by the first device and the second device.

[0300] In some embodiments, the sending unit 410 is further configured to:

[0301] receiving first information sent by the second device;

[0302] The first information includes the first key or information used to determine the first key.

[0303] In some embodiments, the first information includes the information used to determine the first key;

[0304] The sending unit 410 is further configured to:

[0305] The first key is determined based on at least one of the following:

[0306] The information used to determine the first key, the random number generated by the first device, and the key agreed upon by the first device and the second device.

[0307] In some embodiments, the information used to determine the first key includes at least one of the following:

[0308] a random number generated by the second device;

[0309] address information of the second device;

[0310] A key for determining the first key.

[0311] In some embodiments, the information used to determine the first key further includes information for indicating a key generation function of the first key, or the key generation function of the first key is a function agreed upon by the first device and the second device.

[0312] In some embodiments, the first information further includes at least one of the following:

[0313] Information used to indicate that the first message carries the target information and that the target information is encrypted;

[0314] Information used to indicate at least one primary channel used by the target basic service set BSS;

[0315] Information used to indicate a first time domain resource, where the first time domain resource is used to determine a time domain resource of the first message;

[0316] Information used to indicate a first frequency domain resource, where the first time domain resource is used to determine the frequency domain resource of the first message;

[0317] Information used by the first device to identify whether the second device is a target device.

[0318] In some embodiments, the sending unit 410 is specifically configured to:

[0319] The first information is detected on a predefined first channel.

[0320] In some embodiments, the first channel includes a channel corresponding to a predefined frequency band.

[0321] In some embodiments, the first message further includes at least one of the following:

[0322] a random number generated by the first device;

[0323] The integrity check MIC information of the first message.

[0324] In some embodiments, the first message is carried in a radio frame that the first device actively sends to the second device, or the first message is carried in a radio frame that the second device triggers the first device to send information to the second device.

[0325] In some embodiments, the sending unit 410 is further configured to:

[0326] receiving a second message sent by the second device;

[0327] The second message includes feedback information of the target information.

[0328] In some embodiments, the second message also includes at least one of the following: a second key, information used to determine the second key; wherein the second key is the key used by the first device in the next access process, or the second key is used to determine the key used by the first device in the next access process.

[0329] In some embodiments, the second message includes the information for determining the second key;

[0330] The sending unit 410 is further configured to:

[0331] The second key is determined based on at least one of the following:

[0332] The first key, a key used to encrypt part or all of the information in the second message, and information used to determine the second key.

[0333] In some embodiments, the information used to determine the second key includes at least one of the following:

[0334] a random number generated by the second device;

[0335] address information of the second device;

[0336] A key for determining the second key.

[0337] In some embodiments, part or all of the information in the second message is encrypted using the first key.

[0338] In some embodiments, part or all of the information in the second message is encrypted using a third key; wherein the third key is determined based on at least one of: the first key, and unencrypted information in the second message used to determine the third key.

[0339] In some embodiments, the information used to determine the third key includes at least one of the following:

[0340] a random number generated by the second device;

[0341] address information of the second device;

[0342] A key used to determine the third key.

[0343] In some embodiments, the target information includes at least one of the following:

[0344] The identifier of the first device and the information stored in the first device.

[0345] In some embodiments, the information stored in the first device includes an identification of goods stored in the first device.

[0346] It should be understood that the apparatus embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. Specifically, the first device 400 shown in Figure 10 may correspond to the corresponding subject in executing the wireless communication method provided in the embodiment of the present application, and the aforementioned and other operations and / or functions of each unit in the first device 400 are respectively for implementing the corresponding processes in each method provided in the embodiment of the present application. For the sake of brevity, they are not repeated here.

[0347] FIG11 is a schematic block diagram of a second device 500 according to an embodiment of the present application.

[0348] As shown in FIG11 , the second device 500 may include:

[0349] The receiving unit 510 is configured to receive a first message sent by the first device during the process of the first device accessing the second device;

[0350] The first message includes target information encrypted by a first secret key.

[0351] In some embodiments, the first key is a key agreed upon by the first device and the second device.

[0352] In some embodiments, the receiving unit 510 is further configured to:

[0353] sending first information to the first device;

[0354] The first information includes the first key or information used to determine the first key.

[0355] In some embodiments, the first information includes the information used to determine the first key;

[0356] The receiving unit 510 is further configured to:

[0357] The first key is determined based on at least one of the following:

[0358] The information used to determine the first key, the random number generated by the first device, and the key agreed upon by the first device and the second device.

[0359] In some embodiments, the information used to determine the first key includes at least one of the following:

[0360] a random number generated by the second device;

[0361] address information of the second device;

[0362] A key for determining the first key.

[0363] In some embodiments, the information used to determine the first key further includes information for indicating a key generation function of the first key, or the key generation function of the first key is a function agreed upon by the first device and the second device.

[0364] In some embodiments, the first information further includes at least one of the following:

[0365] Information used to indicate that the first message carries the target information and that the target information is encrypted;

[0366] Information used to indicate at least one primary channel used by the target basic service set BSS;

[0367] Information used to indicate a first time domain resource, where the first time domain resource is used to determine a time domain resource of the first message;

[0368] Information used to indicate a first frequency domain resource, where the first time domain resource is used to determine the frequency domain resource of the first message;

[0369] Information used by the first device to identify whether the second device is a target device.

[0370] In some embodiments, the receiving unit 510 is specifically configured to:

[0371] The first information is sent to the first device on a predefined first channel.

[0372] In some embodiments, the first channel includes a channel corresponding to a predefined frequency band.

[0373] In some embodiments, the first message further includes at least one of the following:

[0374] a random number generated by the first device;

[0375] The integrity check MIC information of the first message.

[0376] In some embodiments, the first message is carried in a radio frame that the first device actively sends to the second device, or the first message is carried in a radio frame that the second device triggers the first device to send information to the second device.

[0377] In some embodiments, the receiving unit 510 is further configured to:

[0378] sending a second message to the first device;

[0379] The second message includes feedback information of the target information.

[0380] In some embodiments, the second message also includes at least one of the following: a second key, information used to determine the second key; wherein the second key is the key used by the first device in the next access process, or the second key is used to determine the key used by the first device in the next access process.

[0381] In some embodiments, the second message includes the information for determining the second key;

[0382] The receiving unit 510 is further configured to:

[0383] The second key is determined based on at least one of the following:

[0384] The first key, a key used to encrypt part or all of the information in the second message, and information used to determine the second key.

[0385] In some embodiments, the information used to determine the second key includes at least one of the following:

[0386] a random number generated by the second device;

[0387] address information of the second device;

[0388] A key for determining the second key.

[0389] In some embodiments, part or all of the information in the second message is encrypted using the first key.

[0390] In some embodiments, part or all of the information in the second message is encrypted using a third key; wherein the third key is determined based on at least one of: the first key, and unencrypted information in the second message used to determine the third key.

[0391] In some embodiments, the information used to determine the third key includes at least one of the following:

[0392] a random number generated by the second device;

[0393] address information of the second device;

[0394] A key used to determine the third key.

[0395] In some embodiments, the target information includes at least one of the following:

[0396] The identifier of the first device and the information stored in the first device.

[0397] In some embodiments, the information stored in the first device includes an identification of goods stored in the first device.

[0398] It should be understood that the apparatus embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. Specifically, the second device 500 shown in Figure 11 may correspond to the corresponding subject in executing the wireless communication method provided in the embodiment of the present application, and the aforementioned and other operations and / or functions of each unit in the second device 500 are respectively for implementing the corresponding processes in each method provided in the embodiment of the present application. For the sake of brevity, they are not repeated here.

[0399] The communication device of the embodiment of the present application is described above from the perspective of functional modules in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, or can be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor for execution, or can be completed by a combination of hardware and software modules in the decoding processor. Optionally, the software module can be located in a mature storage medium 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 in the method embodiment mentioned above in conjunction with its hardware.

[0400] For example, the transmitting unit or receiving unit mentioned above may be implemented by a transceiver.

[0401] FIG12 is a schematic structural diagram of a communication device 600 according to an embodiment of the present application.

[0402] As shown in FIG. 12 , the communication device 600 may include a processor 610 .

[0403] The processor 610 may call and execute a computer program from the memory to implement the method in the embodiment of the present application.

[0404] As shown in FIG. 12 , the communication device 600 may further include a memory 620 .

[0405] The memory 620 can be used to store information and can also be used to store code, instructions, etc. executed by the processor 610. The processor 610 can call and run computer programs from the memory 620 to implement the methods in the embodiments of the present application. The memory 620 can be a separate device independent of the processor 610 or integrated into the processor 610.

[0406] As shown in FIG. 12 , the communication device 600 may further include a transceiver 630 .

[0407] The processor 610 may control the transceiver 630 to communicate with other devices. Specifically, the processor 610 may send information or data to other devices or receive information or data sent by other devices. The transceiver 630 may include a transmitter and a receiver. The transceiver 630 may further include one or more antennas.

[0408] It should be understood that the various components in the communication device 600 are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.

[0409] It should also be understood that the communication device 600 may be a terminal device in an embodiment of the present application, and the communication device 600 may implement the corresponding processes implemented by the terminal device in each method in the embodiment of the present application, that is, the communication device 600 in an embodiment of the present application may correspond to the first device 400 in an embodiment of the present application, and may correspond to the execution of the corresponding subject in the method 200 according to an embodiment of the present application. For the sake of brevity, it will not be repeated here. Similarly, the communication device 600 may be a network device in an embodiment of the present application, and the communication device 600 may implement the corresponding processes implemented by the network device in each method in the embodiment of the present application. That is, the communication device 600 in an embodiment of the present application may correspond to the second device 500 in an embodiment of the present application, and may correspond to the execution of the corresponding subject in the method 300 according to an embodiment of the present application. For the sake of brevity, it will not be repeated here.

[0410] In addition, a chip is also provided in an embodiment of the present application.

[0411] For example, the chip may be an integrated circuit chip with signal processing capabilities that can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application. The chip may also be referred to as a system-on-chip, a system-on-chip, a system-on-chip, or a system-on-chip chip. Optionally, the chip can be applied to various communication devices, so that the communication devices equipped with the chip can execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application.

[0412] FIG13 is a schematic structural diagram of a chip 700 according to an embodiment of the present application.

[0413] As shown in FIG. 13 , the chip 700 includes a processor 710 .

[0414] The processor 710 may call and execute a computer program from the memory to implement the method in the embodiment of the present application.

[0415] As shown in FIG. 13 , the chip 700 may further include a memory 720 .

[0416] The processor 710 can call and execute a computer program from the memory 720 to implement the method in the embodiment of the present application. The memory 720 can be used to store instruction information and can also be used to store code, instructions, etc. executed by the processor 710. The memory 720 can be a separate device independent of the processor 710 or integrated into the processor 710.

[0417] As shown in FIG. 13 , the chip 700 may further include an input interface 730 .

[0418] The processor 710 may control the input interface 730 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.

[0419] As shown in FIG. 13 , the chip 700 may further include an output interface 740 .

[0420] The processor 710 may control the output interface 740 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.

[0421] It should be understood that the chip 700 can be applied to the network device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the network device in the various methods of the embodiments of the present application, and can also implement the corresponding processes implemented by the terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0422] It should also be understood that the various components in the chip 700 are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus, and a status signal bus.

[0423] The processors mentioned above may include but are not limited to:

[0424] General-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0425] The processor can be used to implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The steps of the methods 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 a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the method involved above in combination with its hardware.

[0426] The memories mentioned above include but are not limited to:

[0427] Volatile memory and / or non-volatile memory. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be 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 DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).

[0428] It should be noted that the memory described herein is intended to encompass these and any other suitable types of memory.

[0429] A computer-readable storage medium is also provided in an embodiment of the present application for storing a computer program. The computer-readable storage medium stores one or more programs, and the one or more programs include instructions, which, when executed by a portable electronic device including multiple applications, can enable the portable electronic device to perform the wireless communication method provided in the present application. Optionally, the computer-readable storage medium can be applied to the network device in the embodiment of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the network device in each method of the embodiment of the present application. For the sake of brevity, it is not repeated here. Optionally, the computer-readable storage medium can be applied to the mobile terminal / terminal device in the embodiment of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the mobile terminal / terminal device in each method of the embodiment of the present application. For the sake of brevity, it is not repeated here.

[0430] The embodiments of the present application also provide a computer program product, including a computer program. Optionally, the computer program product can be applied to the network device in the embodiments of the present application, and the computer program causes the computer to execute the corresponding processes implemented by the network device in the various methods of the embodiments of the present application. For the sake of brevity, this will not be described in detail here. Optionally, the computer program product can be applied to the mobile terminal / terminal device in the embodiments of the present application, and the computer program causes the computer to execute the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of the present application. For the sake of brevity, this will not be described in detail here.

[0431] A computer program is also provided in an embodiment of the present application. When the computer program is executed by a computer, the computer can perform the wireless communication method provided in the present application. Optionally, the computer program can be applied to the network device in the embodiment of the present application. When the computer program is run on the computer, the computer can perform the corresponding processes implemented by the network device in each method of the embodiment of the present application. For the sake of brevity, it is not described here. Optionally, the computer program can be applied to the mobile terminal / terminal device in the embodiment of the present application. When the computer program is run on the computer, the computer can perform the corresponding processes implemented by the mobile terminal / terminal device in each method of the embodiment of the present application. For the sake of brevity, it is not described here.

[0432] The present application also provides a communication system, which may include the terminal devices and network devices mentioned above to form a communication system 100 as shown in Figure 1. For the sake of brevity, the details are not repeated here. It should be noted that the term "system" in this article may also be referred to as "network management architecture" or "network system".

[0433] It should also be understood that the terms used in the embodiments of the present application and the appended claims are for the purpose of describing specific embodiments only and are not intended to limit the embodiments of the present application. For example, the singular forms "a," "the," "above," and "the" used in the embodiments of the present application and the appended claims are intended to include the plural forms unless the context clearly indicates otherwise.

[0434] 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 to be beyond the scope of the embodiments of the present application. If implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or in other words, 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, which is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present application. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk, or an optical disk.

[0435] Those skilled in the art will also appreciate that, for ease of description and brevity, the specific operating 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. 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 division of units, modules, or components in the device embodiments described above is merely a logical functional division, and in actual implementation, other division methods may be used. For example, multiple units, modules, or components may be combined or integrated into another system, or some units, modules, or components may be ignored or not executed. For another example, the units, modules, or components described above as separate / displayed components may or may not be physically separate, i.e., they may be located in one place or distributed across multiple network units. Some or all of the units, modules, or components may be selected according to actual needs to achieve the objectives of the embodiments of this application. Finally, it should be noted that the mutual coupling, direct coupling, or communication connection shown or discussed above may be through some interface, indirect coupling, or communication connection of devices or units, and may be electrical, mechanical, or other forms.

[0436] The above content is only a specific implementation of the embodiment of the present application, but the scope of protection of the embodiment of the present application is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the embodiment of the present application, and they should be included in the scope of protection of the embodiment of the present application. Therefore, the scope of protection of the embodiment of the present application should be based on the scope of protection of the claims.

Claims

1. A wireless communication method, characterized in that: The method is applicable to a first device, and the method includes: During the process of the first device accessing the second device, sending a first message to the second device; The first message includes target information encrypted by a first secret key.

2. The method according to claim 1, characterized in that The first key is a key agreed upon by the first device and the second device.

3. The method according to claim 1, characterized in that The method further comprises: receiving first information sent by the second device; The first information includes the first key or information used to determine the first key.

4. The method according to claim 3, characterized in that The first information includes the information used to determine the first secret key; The method further comprises: The first secret key is determined based on at least one of the following: The information used to determine the first secret key, the random number generated by the first device, and the secret key agreed upon by the first device and the second device.

5. The method according to claim 3 or 4, characterized in that: The information used to determine the first secret key includes at least one of the following: a random number generated by the second device; address information of the second device; A key used to determine the first key.

6. The method according to claim 5, characterized in that The information used to determine the first key also includes information used to indicate a key generation function of the first key, or the key generation function of the first key is a function agreed upon by the first device and the second device.

7. The method according to claim 5, characterized in that The first information also includes at least one of the following: Information used to indicate that the first message carries the target information and encrypts the target information; Information used to indicate at least one primary channel used by the target basic service set BSS; Information used to indicate a first time domain resource, where the first time domain resource is used to determine a time domain resource of the first message; Information used to indicate a first frequency domain resource, where the first time domain resource is used to determine a frequency domain resource of the first message; Information used by the first device to identify whether the second device is a target device.

8. The method according to any one of claims 3 to 7, characterized in that The receiving the first information sent by the second device includes: The first information is detected on a predefined first channel.

9. The method according to claim 8, characterized in that The first channel includes a channel corresponding to a predefined frequency band.

10. The method according to any one of claims 1 to 9, characterized in that The first message also includes at least one of the following: a random number generated by the first device; The integrity check MIC information of the first message.

11. The method according to any one of claims 1 to 10, characterized in that The first message is carried in a radio frame that the first device actively sends to the second device, or the first message is carried in a radio frame that the second device triggers the first device to send information to the second device.

12. The method according to any one of claims 1 to 11, characterized in that The method further comprises: receiving a second message sent by the second device; The second message includes feedback information of the target information.

13. The method according to claim 12, characterized in that The second message also includes at least one of the following: a second key, information used to determine the second key; wherein the second key is the key used by the first device in the next access process, or the second key is used to determine the key used by the first device in the next access process.

14. The method according to claim 13, characterized in that The second message includes the information used to determine the second secret key; The method further comprises: The second secret key is determined based on at least one of the following: the first secret key, a secret key used to encrypt part or all of the information in the second message, a secret key used to determine the second secret key Key information.

15. The method according to claim 14, characterized in that The information used to determine the second secret key includes at least one of the following: a random number generated by the second device; address information of the second device; A key used to determine the second key.

16. The method according to any one of claims 12 to 15, characterized in that Part or all of the information in the second message is encrypted using the first secret key.

17. The method according to any one of claims 12 to 15, characterized in that Part or all of the information in the second message is encrypted by a third key; wherein the third key is determined based on at least one of the following: the first key, and unencrypted information in the second message used to determine the third key.

18. The method according to claim 17, characterized in that The information used to determine the third key includes at least one of the following: a random number generated by the second device; address information of the second device; A key used to determine the third key.

19. The method according to any one of claims 1 to 18, characterized in that The target information includes at least one of the following: The identifier of the first device and the information stored in the first device.

20. The method according to claim 19, characterized in that The information stored in the first device includes a goods identification stored in the first device.

21. A wireless communication method, characterized in that: The method is applicable to a second device, and the method includes: In the process of the first device accessing the second device, receiving a first message sent by the first device; The first message includes target information encrypted by a first secret key.

22. The method according to claim 21, characterized in that The first key is a key agreed upon by the first device and the second device.

23. The method according to claim 21, characterized in that The method further comprises: Sending first information to the first device; The first information includes the first key or information used to determine the first key.

24. The method according to claim 23, characterized in that The first information includes the information used to determine the first secret key; The method further comprises: The first secret key is determined based on at least one of the following: The information used to determine the first secret key, the random number generated by the first device, and the secret key agreed upon by the first device and the second device.

25. The method according to claim 23 or 24, characterized in that The information used to determine the first secret key includes at least one of the following: a random number generated by the second device; address information of the second device; A key used to determine the first key.

26. The method according to claim 25, characterized in that The information used to determine the first key also includes information used to indicate a key generation function of the first key, or the key generation function of the first key is a function agreed upon by the first device and the second device.

27. The method according to claim 25, characterized in that The first information also includes at least one of the following: Information used to indicate that the first message carries the target information and encrypts the target information; Information used to indicate at least one primary channel used by the target basic service set BSS; Information used to indicate a first time domain resource, where the first time domain resource is used to determine a time domain resource of the first message; Information used to indicate a first frequency domain resource, where the first time domain resource is used to determine a frequency domain resource of the first message; Information used by the first device to identify whether the second device is a target device.

28. The method according to any one of claims 23 to 27, characterized in that The sending the first information to the first device includes: The first information is sent to the first device on a predefined first channel.

29. The method according to claim 28, characterized in that The first channel includes a channel corresponding to a predefined frequency band.

30. The method according to any one of claims 21 to 29, characterized in that The first message also includes at least one of the following: a random number generated by the first device; The integrity check MIC information of the first message.

31. The method according to any one of claims 21 to 30, characterized in that The first message is carried in a radio frame that the first device actively sends to the second device, or the first message is carried in a radio frame that the second device triggers the first device to send information to the second device.

32. The method according to any one of claims 21 to 31, characterized in that The method further comprises: Sending a second message to the first device; The second message includes feedback information of the target information.

33. The method according to claim 32, characterized in that The second message also includes at least one of the following: a second key, information used to determine the second key; wherein the second key is the key used by the first device in the next access process, or the second key is used to determine the key used by the first device in the next access process.

34. The method according to claim 33, characterized in that The second message includes the information used to determine the second secret key; The method further comprises: The second secret key is determined based on at least one of the following: The first secret key, a secret key used to encrypt part or all of the information in the second message, and information used to determine the second secret key.

35. The method according to claim 34, characterized in that The information used to determine the second secret key includes at least one of the following: a random number generated by the second device; address information of the second device; A key used to determine the second key.

36. The method according to any one of claims 32 to 35, characterized in that Part or all of the information in the second message is encrypted using the first secret key.

37. The method according to any one of claims 32 to 35, characterized in that Part or all of the information in the second message is encrypted by a third key; wherein the third key is determined based on at least one of the following: the first key, and unencrypted information in the second message used to determine the third key.

38. The method according to claim 37, characterized in that The information used to determine the third key includes at least one of the following: a random number generated by the second device; address information of the second device; A key used to determine the third key.

39. The method according to any one of claims 21 to 38, characterized in that The target information includes at least one of the following: The identifier of the first device and the information stored in the first device.

40. The method according to claim 39, characterized in that The information stored in the first device includes a goods identification stored in the first device.

41. A first device, characterized in that: include: A sending unit, configured to send a first message to a second device during a process in which the first device is connected to the second device; The first message includes target information encrypted by a first secret key.

42. A second device, characterized in that: include: A receiving unit, configured to receive a first message sent by the first device during a process in which the first device accesses the second device; The first message includes target information encrypted by a first secret key.

43. A first device, characterized in that: include: A transceiver, a processor and a memory, wherein 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, so that the transceiver and / or the processor executes the method according to any one of claims 1 to 20.

44. A second device, characterized in that: include: A transceiver, a processor and a memory, wherein 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, so that the transceiver and / or the processor executes the method according to any one of claims 21 to 40.

45. A chip, characterized in that: 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 according to any one of claims 1 to 20 or a method according to any one of claims 21 to 40.

46. ​​A computer-readable storage medium, characterized in that Used to store a computer program, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 20 or the method according to any one of claims 21 to 40.

47. A computer program product, characterized in that Comprising computer program instructions which cause a computer to perform the method according to any one of claims 1 to 20 or the method according to any one of claims 21 to 40.

48. A computer program, characterized in that The computer program causes a computer to perform the method according to any one of claims 1 to 20 or the method according to any one of claims 21 to 40.

Citation Information

Patent Citations

  • Access control authority management system and access control authority management method

    CN107767510A

  • Communication method, communication processing apparatus, and computer readable storage medium

    CN109068317A

  • Secure transaction method based on neighbor sensing network, terminal and storage medium

    CN109120586A

Cited By

  • Preserving privacy during secure transactions with ambient power devices

    US12549942B2

  • Secure end-to-end signaling for ambient power (AMP) devices

    US20260197167A1

  • Secure end-to-end signaling for ambient power (AMP) devices

    WO2026151505A1