Wireless communication method and apparatus, and electronic device and readable storage medium
By dynamically adjusting the CCA threshold in the terminal device and evaluating the channel state based on signal quality and fluctuation parameters, the problem of low wireless resource utilization in dense networks is solved, and higher transmission opportunities and communication reliability are achieved.
Patent Information
- Application Number
- PCT/CN2025/104896
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-07-18
- Filing Date
- 2025-06-27
- Publication Date
- 2026-01-22
AI Technical Summary
In dense wireless network environments, terminal devices frequently detect invalid signal strengths that meet preset thresholds, leading to channel congestion and low utilization of wireless resources.
Based on the signal quality information and signal fluctuation parameters of the access point device, the terminal device dynamically adjusts the CCA threshold to accurately assess whether the channel is idle and reduce the impact of invalid signal interference.
It increases the transmission opportunities of terminal devices in dense network environments, and enhances the utilization of wireless resources and communication reliability.
Smart Images

Figure CN2025104896_22012026_PF_FP_ABST
Abstract
Description
Wireless communication methods, apparatus, electronic devices and readable storage media
[0001] Cross-references to related applications
[0002] This application claims priority to Chinese Patent Application No. 202410967639.0, filed in China on July 18, 2024, the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application belongs to the field of communication technology, specifically relating to a wireless communication method, apparatus, electronic device, and readable storage medium. Background Technology
[0004] Clear Channel Accession (CCA) is a critical process in wireless communication systems. It involves evaluating a channel before a device attempts to transmit data on it to determine whether the channel is idle, thereby avoiding data collisions.
[0005] In related technologies, when a terminal device detects a signal with a signal strength greater than a preset threshold on a channel, it considers the channel busy and waits for a certain period of time to check if the channel is idle again. To minimize channel collisions, existing protocols stipulate that a channel is considered busy when the detected signal strength is greater than -82dBm. However, with the increasing number of communication nodes (such as terminal devices and routers) in the network and the increasing density of wireless network environments, many communication nodes need to share limited time-frequency resources for communication. If the original preset threshold is continued to be used, terminal devices will frequently detect invalid signals with signal strengths that meet the preset threshold, thus frequently determining the channel to be busy.
[0006] This can lead to terminal devices being unable to use the channel for extended periods, resulting in low utilization of wireless resources. Summary of the Invention
[0007] The purpose of this application is to provide a wireless communication method, apparatus, electronic device, and readable storage medium that can increase the transmission opportunities of terminal devices, thereby improving the utilization rate of wireless resources.
[0008] In a first aspect, embodiments of this application provide a wireless communication method, the method comprising: a terminal device, upon receiving a wireless signal from an access point device, acquiring signal quality information of the wireless signal; the terminal device, based on the aforementioned signal quality information and signal fluctuation parameters, determining a first CCA threshold, the signal fluctuation parameters characterizing the signal fluctuation between the terminal device and the access point device, the first CCA threshold being used to determine whether the channel between the terminal device and the access point device is in an idle state.
[0009] Secondly, embodiments of this application provide a wireless communication device, which includes an acquisition module and a determination module, wherein: the acquisition module is used to acquire signal quality information of a wireless signal received from an access point device; the determination module is used to determine a first CCA threshold based on the signal quality information and signal fluctuation parameters, wherein the signal fluctuation parameters characterize the signal fluctuation between the terminal device and the access point device, and the first CCA threshold is used to determine whether the channel between the terminal device and the access point device is in an idle state.
[0010] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0011] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0012] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0013] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0014] In this embodiment, when a terminal device receives a wireless signal from an access point device, it acquires the signal quality information of the wireless signal. Based on the signal quality information and signal fluctuation parameters, it determines a first CCA threshold. The signal fluctuation parameters characterize the signal fluctuation between the terminal device and the access point device. The first CCA threshold is used to determine whether the channel between the terminal device and the access point device is idle. Through this method, the terminal device can determine the CCA threshold based on the signal quality and signal fluctuation parameters of the effective signal between itself and the access point device. This allows the terminal device to determine a CCA threshold more suitable for its current wireless network environment based on the actual signal quality and signal fluctuations in the wireless communication environment. This effectively reduces the interference from invalid signals such as interference signals in dense network environments, thereby increasing the terminal device's transmission opportunities and improving the utilization rate of wireless resources. Attached Figure Description
[0015] Figure 1 is a flowchart illustrating one of the wireless communication methods provided in this application.
[0016] Figure 2 is a second schematic flowchart of the wireless communication method provided in the embodiments of this application;
[0017] Figure 3 is a third schematic flowchart of the wireless communication method provided in the embodiments of this application;
[0018] Figure 4 is a schematic diagram of the structure of the wireless communication device provided in an embodiment of this application;
[0019] Figure 5 is a schematic diagram of the structure of the electronic device provided in an embodiment of this application;
[0020] Figure 6 is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of this application. Detailed Implementation
[0021] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0022] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0023] The terms "at least one," "at least one of," etc., used in the specification and claims of this application refer to any one, any two, or a combination of two or more of the included items. For example, at least one of a, b, and c can mean: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two" refers to two or more items, and its meaning is similar to that of "at least one."
[0024] Currently, the IEEE 802.11 protocol uses unlicensed radio frequency resources. The protocol stipulates that communication stations must use Carrier Sense Multiple Access (CSMA) or Collision Avoidance (CA) mechanisms to compete for channels and perform backoff. This mechanism requires stations to perform carrier sensing before using the channel for transmission; the channel can only be used if the carrier sensing result indicates that the channel is idle. CCA is one of the key mechanisms for achieving collision avoidance in the CSMA / CA protocol. CCA determines whether the channel is idle by detecting the signal power or energy level on the channel. If the detected signal power or energy level is below a preset threshold, the channel is considered idle, and the device can transmit data; otherwise, the channel is considered busy, and the device needs to wait or adopt a backoff strategy. Through the CCA mechanism, terminal devices can reduce the possibility of data collisions to avoid conflicts.
[0025] In related technologies, to minimize channel conflicts, existing protocols stipulate that a channel is considered busy when the detected signal strength is greater than -82dBm on a 20MHz bandwidth. However, with the widespread adoption of 802.11 networks, the number of wireless communication nodes (such as terminal devices and routers) in the network is increasing, leading to a denser wireless network environment. Many wireless communication nodes need to share limited wireless spectrum resources for communication. Furthermore, there may be hidden nodes in the wireless network, increasing the number of weak, noisy, and interference signals. If the original preset threshold is continued, terminal devices will frequently detect invalid signals with signal strengths matching the preset threshold, leading to frequent channel busy determinations. This can result in terminal devices being unable to use the channel for extended periods, resulting in low utilization of wireless resources.
[0026] The wireless communication method provided in this application allows a terminal device to determine a CCA threshold based on the signal quality and signal fluctuation parameters of the effective signal between itself and the access point device. This enables the terminal device to determine a CCA threshold more suitable for its current wireless communication environment based on the signal quality and signal fluctuations during actual transmission. Furthermore, the determined CCA threshold can be dynamically adjusted according to actual communication indicators. This effectively reduces the interference caused by weak signals, noise signals, and other invalid signals in dense network environments, thereby increasing the terminal device's transmission opportunities and improving the utilization rate of wireless resources.
[0027] The wireless communication method provided in this application can be executed by an electronic device, or at least one of the functional modules and physical modules within that electronic device capable of implementing the wireless communication method. The specific implementation can be determined based on actual usage requirements, and this application does not impose any limitations. The following description uses a terminal device executing the wireless communication method as an example to illustrate the wireless communication method provided in this application.
[0028] The wireless communication method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0029] Figure 1 is a flowchart illustrating the wireless communication method provided in an embodiment of this application. As shown in Figure 1, the wireless communication method may include the following steps 201 and 202:
[0030] Step 201: When the terminal device receives a wireless signal from the access point device, it obtains the signal quality information of the wireless signal.
[0031] In some embodiments of this application, the terminal device can obtain signal quality information of a wireless signal received from an access point device when it is in a single connection state.
[0032] It should be noted that a single connection state refers to a state in which the terminal device only needs to communicate with the access point device with which it has established a connection.
[0033] It should be noted that when a terminal device is in a single-connection state, it typically only communicates with the access point device with which it currently has a connection. Since this state only involves the access point device with which the terminal device is currently connected, the acquired signal quality primarily reflects the signal quality during communication with that access point. Therefore, the terminal device can accurately determine the CCA threshold for assessing the channel state between itself and the access point device based on this signal quality, thus accurately evaluating whether the channel is idle. If the terminal device is in a non-single-connection state, it may need to communicate with multiple access point devices. In this case, channel usage may be more complex. Again, it should be noted that when a terminal device is in a single-connection state, it typically only communicates with the access point device with which it currently has a connection. Since this state only involves the access point device with which the terminal device is currently connected, the acquired signal quality primarily reflects the signal quality during communication with that access point. Therefore, the terminal device can accurately determine the CCA threshold for assessing the channel state between itself and the access point device based on this signal quality, thus accurately evaluating whether the channel is idle. If a terminal device is in a non-single-connection state, it may need to communicate with multiple access point devices. This makes channel usage more complex because the signal quality of different access point devices may vary, and mutual interference may occur. In this case, setting the CCA threshold based on a uniform signal quality may not accurately reflect the wireless environment when all access point devices coexist, thus affecting the accuracy of the CCA assessment.
[0034] In some embodiments of this application, the access point device described above can be a wireless access point (AP), a base station, a router, a switch, or other network-side device.
[0035] Understandably, access point devices play a crucial role in wireless communication. By connecting to access point devices, user equipment (i.e., terminal devices) can access the network, thereby enabling data transmission and exchange.
[0036] It should be noted that, in addition to the access point devices listed above, access point devices can also be other types of devices, and the specific configuration can be determined according to the network environment and business requirements. This application embodiment does not limit this.
[0037] In some embodiments of this application, the aforementioned wireless signal is a wireless signal received by the terminal device on a channel, which is a wireless channel between the terminal device and the access point device.
[0038] In some embodiments of this application, the aforementioned wireless signal is a valid signal received from an access point device.
[0039] It should be noted that a valid signal refers to a wireless signal that can be successfully received, decoded, and understood. The characteristics of a valid signal mainly include signal strength, clarity, stability, and accuracy. In other words, when the above characteristics of a signal meet certain requirements or thresholds, such a signal is considered a valid signal.
[0040] In some embodiments of this application, the signal quality information may include at least one of the following: Received Signal Strength Indicator (RSSI), Reference Signal Receiving Power (RSRP), Signal to Interference plus Noise Ratio (SINR), Signal to Noise Ratio (SNR), etc.
[0041] Understandably, RSSI is usually represented as a negative value (in dBm), and the closer the value is to zero, the higher the signal strength. SNR or SINR represents the ratio of signal quality to noise or interference, which reflects the degree of noise and interference the signal is subjected to during transmission. SNR or SINR is a positive value, and the larger the value, the better the signal quality.
[0042] It should be noted that the above signal quality information includes, but is not limited to, the items listed in the embodiments of this application. The specific information can be set according to actual needs, and the embodiments of this application do not limit it.
[0043] For ease of description, the received signal strength indication is referred to as signal strength in the embodiments of this application.
[0044] In some embodiments of this application, the terminal device may perform signal measurement or use network analysis tools to collect and analyze wireless signal quality information.
[0045] Step 202: The terminal device determines the first CCA threshold based on signal quality information and signal fluctuation parameters.
[0046] Among them, the above signal fluctuation parameters characterize the signal fluctuation between the terminal device and the access point device, and the first CCA threshold is used to determine whether the channel between the terminal device and the access point device is idle.
[0047] In some embodiments of this application, the aforementioned signal fluctuation parameter can be a preset parameter or can be determined based on signal fluctuations during transmission. Furthermore, the value of this signal fluctuation parameter is positive.
[0048] For example, the signal fluctuation parameter can be a parameter preset based on the stability of the current network environment. For instance, when the network environment is relatively stable, a smaller signal fluctuation parameter can be set, such as 3dBm, 5dBm, or 7dBm; or, when the network environment is less stable, a larger signal fluctuation parameter can be set, such as 10dBm, 15dBm, or 20dBm.
[0049] For example, the signal fluctuation parameter can be determined in real time based on the signal fluctuation during transmission. Specifically, the terminal device can measure the change in the signal strength of the received valid signal over a period of time and determine the signal fluctuation parameter based on the change. For instance, if the signal strength of the valid signal received by the terminal device fluctuates between -70dBm and -80dBm, the signal fluctuation parameter can be the difference between the maximum and minimum signal strength, calculated as: (-70dBm) - (-80dBm) = 10dBm. That is, the signal fluctuation parameter is 10 or 10dBm, indicating that the signal strength fluctuation is 10dBm.
[0050] It should be noted that when a terminal device communicates with an access point device, the signal strength of the received valid signal may fluctuate due to changes in the terminal device's mobility or the wireless network environment. In the example above, a signal fluctuation parameter of 10 indicates that the signal strength changed by 10 dBm during the measurement period. This value can be used to evaluate signal stability; specifically, the smaller the value, the more stable the signal; the larger the value, the greater the signal fluctuation, i.e., the worse the communication stability.
[0051] In some embodiments of this application, the terminal device can subtract the signal quality represented by the signal quality information from the signal fluctuation parameter, and then determine the difference as the first CCA threshold.
[0052] It should be noted that the first CCA threshold can be represented as CCA_threshold, and the signal fluctuation parameter can be represented as Margin.
[0053] For example, taking the access point device as a router and the signal quality information as RSSI, assuming that the RSSI of the effective signal received by the terminal device from the router is -70dBm and the signal fluctuation parameter is 5dBm, then the first CCA threshold can be -75dBm, that is, (-70dBm)-5dBm=-75dBm.
[0054] It should be noted that signal strength may fluctuate due to various factors. If such fluctuations are not considered and the CCA threshold is determined solely based on the signal strength, the CCA threshold may fail to accurately detect the valid signal when the signal strength decreases due to fluctuations, leading to communication interruption or signal loss.
[0055] In this embodiment, by determining the difference between the signal strength of the valid signal and the signal fluctuation parameter as the CCA threshold, on the one hand, it can be ensured that the CCA threshold is always less than the signal strength of the valid signal. This allows the terminal to consider the channel to be idle as long as the signal strength exceeds the CCA threshold when performing channel evaluation, and to receive and parse the valid signal. This avoids the terminal device mistaking the detected valid signal as less than the CCA threshold due to the signal strength of the valid signal being less than the CCA threshold, thus incorrectly ignoring the valid signal and increasing the success rate of receiving valid signals. On the other hand, by subtracting the signal fluctuation parameter from the signal strength of the valid signal, the influence of signal fluctuation can be offset, making the CCA threshold more stable and reliable, thereby improving the reliability of communication.
[0056] It should be noted that this preset value can be the lowest value of the CCA threshold adjustment, CCA_Min.
[0057] In some embodiments of this application, the terminal device can determine whether the channel between the terminal device and the access point device is idle based on the first CCA threshold mentioned above; or, the terminal can adjust the original CCA threshold of the current application to the first CCA threshold.
[0058] In some embodiments of this application, the original CCA threshold can be a preset value.
[0059] In some embodiments of this application, the above preset value is the minimum sensitivity of the terminal device or the minimum sensitivity requirement of the protocol. For example, the preset value can be -82dBm.
[0060] In some embodiments of this application, the terminal device measures the signal strength on the channel. Then, the terminal device compares the measured signal strength with a first CCA threshold. If the measured signal strength is lower than the CCA threshold, the terminal device determines that the channel is idle, and therefore data transmission or reception can be performed on the channel. Alternatively, if the measured signal strength exceeds the CCA threshold, the terminal device determines that the channel is busy. In this case, the terminal device will choose to wait for a period of time to re-evaluate the channel, or find other available channels for communication.
[0061] For example, taking a first CCA threshold of -75dBm as an example, if the terminal device detects a signal with a signal strength of -80dBm on the channel, since the signal strength of the signal is less than the first CCA threshold, the signal is considered invalid and the channel is currently in an idle state.
[0062] For another example, taking a first CCA threshold of -75dBm as an example, if the terminal device detects a signal with a signal strength of -70dBm on the channel, since the signal strength of the signal is greater than the first CCA threshold, it is considered that the current channel is occupied and the channel is currently in a busy state.
[0063] It should be noted that the process by which the terminal device determines whether the channel between the terminal device and the access point device is in an idle state based on the first CCA threshold can also be referred to as the terminal performing an idle channel assessment based on the first CCA threshold.
[0064] It should be noted that the specific process of the terminal performing idle channel assessment based on the CCA threshold can be found in the description in the relevant technologies, and will not be repeated here.
[0065] In some embodiments of this application, the terminal device can perform energy detection on the signal on the channel to obtain the signal strength of the signal on the channel.
[0066] In some embodiments of this application, if the terminal device exits the single connection state, the first CCA threshold is adjusted to a preset value. For example, after the terminal device enters the scanning state, the first CCA threshold is adjusted to the preset value.
[0067] The wireless communication method provided in this application embodiment involves a terminal device receiving a wireless signal from an access point device, acquiring signal quality information of the wireless signal, and determining a first CCA threshold based on the signal quality information and signal fluctuation parameters. These signal fluctuation parameters characterize the signal fluctuation between the terminal device and the access point device. Based on the first CCA threshold, the terminal device determines whether the channel between the terminal device and the access point device is idle. This method allows the terminal device to determine the CCA threshold based on the signal quality and signal fluctuation parameters of the effective signal between itself and the access point device. This enables the terminal device to determine a CCA threshold more suitable for its current wireless network environment based on actual transmission indicators and signal fluctuations in the wireless communication environment. Consequently, in dense network environments, this effectively reduces interference from invalid signals such as interference signals, increasing the terminal device's transmission opportunities and improving the utilization rate of wireless resources.
[0068] In some embodiments of this application, step 202 may include steps 202a and 202b:
[0069] Step 202a: The terminal device determines the initial CCA threshold based on the signal quality information.
[0070] Step 202b: The terminal device calculates the first difference between the initial CCA threshold and the signal fluctuation parameter, and determines the first difference as the first CCA threshold.
[0071] The aforementioned signal quality information includes at least one of RSSI and SNR.
[0072] In some possible implementations, signal quality information includes RSSI, and the terminal device can determine the initial CCA threshold based on RSSI.
[0073] In some embodiments of this application, the terminal device may determine the value of RSSI as the initial CCA threshold, or the terminal device may determine a value less than the value of RSSI as the initial CCA threshold.
[0074] For example, if the RSSI of the valid signal received by the terminal device from the router is -75dBm, then the initial CCA threshold is determined to be -75dBm, or the initial CCA threshold is determined to be -76dBm.
[0075] Understandably, to prevent terminal devices from ignoring valid signals, it is necessary to ensure that the first CCA threshold is lower than the strength of the valid signal, i.e., CCA_threshold. <RSSI。
[0076] In some embodiments of the present application, the terminal device may determine the difference obtained by subtracting the signal fluctuation parameter from the initial CCA threshold (i.e., the first difference) as the first CCA threshold, that is, CCA_threshold.
[0077] Exemplarily, taking the initial CCA threshold as -75 dBm and the signal fluctuation parameter as 5 dBm as an example, the terminal device subtracts the signal fluctuation parameter from the initial CCA threshold, and then determines the obtained difference of -80 dBm as the first CCA threshold. The calculation formula is: CCA_threshold = RSSI - Margin.
[0078] In the embodiments of the present application, by reasonably setting the CCA threshold according to the signal strength of the valid signal received by the terminal device and the signal fluctuation parameter, and then performing idle channel evaluation according to the CCA threshold, it can ensure that the terminal device can receive valid signals in most cases, and can also avoid communication problems caused by signal fluctuations, enabling the terminal device to perform channel evaluation and signal reception more intelligently, thereby improving the overall communication performance.
[0079] In some other possible implementation manners, the above signal quality information includes RSSI and SNR, and the terminal device may determine the initial CCA threshold based on RSSI and SNR.
[0080] In some embodiments of the present application, the terminal device may determine the difference obtained by subtracting the value of SNR from the value of RSSI as the initial CCA threshold.
[0081] Exemplarily, if the RSSI of the valid signal received by the terminal device from the router is -70 dBm and the SNR is 8 dB, the initial CCA threshold is determined as -78 Bm, that is, RSSI minus SNR.
[0082] It can be understood that in order to correctly demodulate and analyze the valid signal, certain signal-to-noise ratio requirements need to be met. In an environment with high noise, RSSI may show a high value due to the increase in noise power, but it does not mean that the signal quality is good. Therefore, considering the influence of noise in the wireless environment, the signal-to-noise ratio can be subtracted from the signal strength, that is, the CCA threshold is appropriately reduced, so that the first CCA threshold is lower than the difference between the signal strength of the valid signal and the signal-to-noise ratio, that is, CCA_threshold < RSSI - SNR, thereby further avoiding the influence of noise on the missed reception of valid signals by the terminal device.
[0083] In some embodiments of the present application, the terminal device may determine the difference obtained by subtracting the signal fluctuation parameter from the initial CCA threshold (i.e., the first difference) as the first CCA threshold, that is, CCA_threshold.
[0084] For example, taking an initial CCA threshold of -78dBm and a signal fluctuation parameter of 3dBm as an example, the terminal device subtracts the initial CCA threshold from the signal fluctuation parameter, and then determines the difference of -81dBm as the first CCA threshold. The calculation formula is: CCA_threshold = RSSI - SNR - Margin.
[0085] In this embodiment, by reasonably setting the CCA threshold based on the signal strength, signal-to-noise ratio, and signal fluctuation parameters of the valid signal received by the terminal device, and then performing idle channel assessment based on the CCA threshold, it is possible to ensure that the terminal device can receive valid signals in noisy environments and avoid communication problems caused by signal fluctuations. This allows the terminal device to perform channel assessment and signal reception more intelligently, thereby improving overall communication performance.
[0086] In some embodiments of this application, referring to Figure 1 above and as shown in Figure 2, after step 202 above, the wireless communication method provided in the embodiments of this application further includes the following steps 203 and 204:
[0087] Step 203: The terminal device obtains communication indicator information.
[0088] The aforementioned communication metrics represent the data transmission performance between the terminal device and the access point device.
[0089] Step 204: The terminal device adjusts the first CCA threshold based on the communication indicator information.
[0090] In some embodiments of this application, the aforementioned communication indicator information includes at least one of the following:
[0091] The quantity ratio represents the proportion of the first broadcast signal in the second broadcast signal. The first broadcast signal is the number of broadcast signals that the terminal device failed to receive within the first time period, and the second broadcast signal is the number of broadcast signals sent by the access point device within the first time period.
[0092] The first transmission rate is the rate at which the terminal device sends data packets to the access point device;
[0093] The second transmission rate is the rate at which the terminal device sends data packets to the access point device before performing idle channel assessment based on the first CCA threshold.
[0094] The first data volume is the amount of data packets received by the terminal device from the access point device within the second time period;
[0095] The second data volume is the amount of data packets received by the terminal device from the access point device within the second duration before the idle channel assessment is performed based on the first CCA threshold.
[0096] In some embodiments of this application, the first broadcast signal and the second broadcast signal may be beacon frames.
[0097] It should be noted that a beacon frame is a broadcast signal of a specific format sent by the access point device. It is a frame format for sending signals at fixed time intervals in a wireless communication system. The larger the proportion of beacon frames received by the terminal device in the beacon frames sent by the access point device, the better the communication performance; conversely, the smaller the proportion, the worse the communication performance.
[0098] In some embodiments of this application, the first transmission rate can be the transmission rate at a single moment or the average transmission rate over a period of time.
[0099] In some embodiments of this application, the sending rate of data packets from the terminal device to the access point device, and the amount of data received by the terminal from the access point device within a certain period of time, can reflect the current communication performance to a certain extent. Generally, the higher the sending rate or the larger the amount of data received from the access point device within a certain period of time, the better the communication performance; conversely, the lower the sending rate or the larger the amount of data received from the access point device within a certain period of time, the worse the communication performance.
[0100] In some embodiments of this application, when the terminal device performs channel evaluation using a first CCA threshold, it can acquire communication indicator information related to data transmission in real time or periodically.
[0101] In some embodiments of this application, the terminal device can determine the adjustment amount of the CCA threshold based on the above-mentioned communication quality information, and adjust the CCA threshold according to the adjustment amount.
[0102] For example, the terminal device can dynamically adjust the first CCA threshold based on the current communication quality. For instance, when the communication quality is good, the CCA threshold can be appropriately increased to reduce interference with the surrounding environment; or, when the communication quality is poor, the CCA threshold can be decreased to increase the chance of receiving a valid signal.
[0103] It should be noted that if the first CCA threshold is increased by a certain value relative to the preset value, it will increase the transmission opportunities of the terminal devices. However, the access point device may simultaneously receive signals from the end-side devices and other signals, causing collisions and decoding failures, resulting in the transmission still failing. Therefore, the CCA threshold can be adjusted based on the actual transmission results, for example, by appropriately lowering the CCA threshold to ensure transmission reliability. For example, assuming that the terminal devices communicating with the access point device include device A and device B, after adjusting the CCA threshold of device B to the first CCA threshold, assuming that device B's transmission opportunities increase, device B may simultaneously send data on the channel from device A, leading to resource conflicts and causing the transmission of both device A and device B to fail.
[0104] In this embodiment, the terminal can further adjust the determined first CCA threshold based on the actual transmission-related communication quality information, so that the CCA threshold can adapt to the changing network environment, thereby improving the reliability of communication.
[0105] In some embodiments of this application, the aforementioned communication indicator information includes the quantity ratio. For example, step 204 can be implemented via step 204a.
[0106] Step 204a: If the quantity ratio is greater than or equal to the first threshold, the terminal device reduces the first CCA threshold by a first value.
[0107] The first value mentioned above is the product of the first adjustment coefficient and the quantity ratio, and the first adjustment coefficient is a value greater than 0.
[0108] In some embodiments of this application, the first threshold can be 10%, 20%, or 30%.
[0109] It should be noted that the first threshold can be set according to actual needs, and this application embodiment does not limit it.
[0110] In some embodiments of this application, the first adjustment coefficient is a preset coefficient.
[0111] In some embodiments of this application, the first adjustment coefficient may be 0.3, 0.5 or 0.7; or, the first adjustment coefficient may be 1, 1.2 or 1.3, etc.
[0112] It should be noted that the first adjustment coefficient can be set according to actual needs, and this application embodiment does not limit it.
[0113] In some embodiments of this application, the terminal device may calculate the product of a first adjustment coefficient and a quantity ratio, and subtract the product from the first CCA threshold to adjust the first CCA threshold.
[0114] In some embodiments of this application, the calculation formula for the adjusted CCA threshold, based on the above-described calculation process for the first CCA threshold, is as follows: CCA_threshold = RSSI - SNR - Margin - a * BMissRatio
[0115] Where RSSI is the signal strength of the effective signal received by the terminal device from the access point device, SNR is the signal-to-noise ratio of the effective signal received by the terminal device from the access point device, Margin is the signal fluctuation parameter, a is the first adjustment coefficient, and BMissRatio is the ratio of the above quantities.
[0116] It should be noted that 'a' can also be called the weight of BMissRatio, which can be adjusted based on actual measurement results.
[0117] For example, taking a first CCA threshold of -80dBm, a first threshold of 0.4, and a first adjustment factor of 1 as an example, assuming that the proportion of beacon frames received by the terminal device from the router to the number of beacon frames sent by the router is 0.5, the terminal device determines that the proportion is greater than 0.4, then calculates the product of the proportion and the first adjustment factor, which is 0.5, and then reduces the first CCA threshold by this product value, that is, (-80)-0.5=-80.5dBm, that is, adjusts the first CCA threshold from -80dBm to -80.5dBm.
[0118] It should be noted that if the number of received beacon frames decreases after adjusting the CCA threshold, it may be due to their low strength being ignored. In this case, the CCA threshold can be appropriately lowered so that the terminal device can correctly receive the valid signal.
[0119] In this embodiment, when the proportion of missed beacon frames received by the terminal device is large, by reducing the CCA threshold, on the one hand, the terminal device can be more sensitive to changes in the channel, more easily identify and receive valid signals, and thus more accurately assess whether the channel is idle; on the other hand, the terminal can adaptively adjust the CCA threshold according to the beacon frame reception status, making the determined CCA threshold more suitable for the current wireless environment, thereby increasing the stability and reliability of the network connection.
[0120] In some embodiments of this application, the aforementioned communication indicator information includes a first transmission rate and a second transmission rate. For example, step 204 can be implemented via step 204b.
[0121] Step 204b: If the first transmission rate is less than the second transmission rate, the terminal device reduces the first CCA threshold to a second value.
[0122] Wherein, the second value is the product of the second adjustment coefficient and the second difference, the second adjustment coefficient is a value greater than 0, and the second difference is the difference between the second transmission rate and the first transmission rate.
[0123] In some embodiments of this application, the second adjustment coefficient is a preset coefficient.
[0124] In some embodiments of this application, the second adjustment coefficient can be 0.3, 0.5 or 0.7; or the first adjustment coefficient can be 1, 1.2 or 1.3, etc.
[0125] It should be noted that the second adjustment coefficient can be set according to actual needs, and this application embodiment does not limit it.
[0126] In some embodiments of this application, the terminal device may calculate the difference between the second transmission rate and the first transmission rate when the first transmission rate is less than the second transmission rate, then calculate the product of the difference and the second adjustment coefficient, and then subtract the product from the first CCA threshold to adjust the first CCA threshold.
[0127] In some embodiments of this application, the calculation formula for the adjusted CCA threshold, based on the above-described calculation process for the first CCA threshold, is as follows: CCA_threshold = RSSI - SNR - Margin - b * deltaTxRate
[0128] Where RSSI is the signal strength of the effective signal received by the terminal device from the access point device, SNR is the signal-to-noise ratio of the effective signal received by the terminal device from the access point device, Margin is the signal fluctuation parameter, a is the first adjustment coefficient, and deltaTxRate is the difference between the second transmission rate and the first transmission rate.
[0129] It should be noted that deltaTxRate specifically refers to the change in transmission rate before and after modifying the CCA threshold to the first CCA threshold. If the rate decreases, the CCA threshold should also be decreased. b is the deltaTxRate weight, which can be adjusted according to the actual test results.
[0130] For example, taking a first CCA threshold of -76dBm and a second adjustment coefficient of 1 as an example, after the terminal device adjusts the CCA threshold to the first CCA threshold and performs idle channel assessment, it can compare the transmission rate of data packets sent to the access point device before and after the CCA threshold adjustment. Assuming that the transmission rate before the CCA threshold adjustment is 90Mbps, after adjusting the CCA threshold to the first CCA threshold, the transmission rate of data packets sent to the router at a certain moment is 86Mbps. The transmission rate after adjusting the CCA threshold is 4Mbps lower than the transmission rate before adjusting the CCA threshold, that is, the first difference is 4. Then, the product of 4 and the first adjustment coefficient is calculated, that is, 4. Then, the first CCA threshold is reduced by this product value, that is, (-76)-4=-80dBm, that is, the first CCA threshold is adjusted from -76dBm to -80dBm.
[0131] It should be noted that the protocol stipulates that the terminal device will retransmit at a reduced speed after failing to send a data packet. Therefore, if the data packet sending rate decreases after adjusting the CCA threshold, it may be because the terminal device has more opportunities to send data after using the first CCA threshold, and the packet error rate increases due to collision failures when sending data packets, thus reducing the sending rate. Therefore, the CCA threshold can be appropriately reduced to avoid resource conflicts.
[0132] In this embodiment, the terminal device can obtain the change in the data packet transmission rate before and after adjusting the CCA threshold to the first CCA threshold. When the terminal device detects a decrease in the data packet transmission rate, it can appropriately reduce the CCA threshold, making it easier for the terminal device to detect signals with signal strength greater than the CCA threshold. This reduces the number of times the terminal device determines that the channel is idle, thereby appropriately reducing the terminal's transmission opportunities. In this way, resource conflicts can be avoided when transmitting data, thereby improving transmission performance.
[0133] In some embodiments of this application, the above-mentioned communication indicator information includes a first data volume and a second data volume; for example, the above-mentioned step 204 can be implemented by the following step 204c.
[0134] Step 204c: If the first data volume is less than the second data volume, the terminal device reduces the first CCA threshold to a third value.
[0135] The third value is the product of the third adjustment coefficient and the third difference. The third adjustment coefficient is a value greater than or equal to 0. The third difference is the difference between the second data volume and the first data volume.
[0136] In some embodiments of this application, the aforementioned third adjustment coefficient is a preset coefficient.
[0137] In some embodiments of this application, the third adjustment coefficient can be 0.3, 0.5 or 0.7; or the first adjustment coefficient can be 1, 1.2 or 1.3, etc.
[0138] It should be noted that the third adjustment coefficient can be set according to actual needs, and this application embodiment does not limit it.
[0139] In some embodiments of this application, the terminal device may calculate the difference between the first data volume and the second data volume when the first data volume is less than the second data volume, then calculate the product of the difference and the third adjustment coefficient, and then subtract the product from the first CCA threshold to adjust the first CCA threshold.
[0140] In some embodiments of this application, the calculation formula for the adjusted CCA threshold, based on the above-described calculation process for the first CCA threshold, is as follows: CCA_threshold = RSSI - SNR - Margin - c * deltaRxTput
[0141] Where RSSI is the signal strength of the effective signal received by the terminal device from the access point device, SNR is the signal-to-noise ratio of the effective signal received by the terminal device from the access point device, Margin is the signal fluctuation parameter, a is the first adjustment coefficient, and deltaRxTput is the difference between the second data volume and the first data volume.
[0142] It should be noted that ddeltaRxTput specifically refers to the change in the amount of received data before and after modifying the CCA threshold to the first CCA threshold. If the amount of received data increases, the CCA threshold should also be reduced. c is the deltaRxTput weight, which can be adjusted according to the actual test results.
[0143] For example, taking a first CCA threshold of -76dBm and a third adjustment coefficient of 1 as an example, after the terminal device adjusts the CCA threshold to the first CCA threshold for idle channel assessment, it can compare the amount of data packets sent to the access point device within a certain period of time before and after the CCA threshold adjustment. Assuming that the amount of data received from the router in 2 seconds before the CCA threshold adjustment is 5Mb, and the amount of data received from the router in 2 seconds after adjusting the CCA threshold to the first CCA threshold is 3Mb, the amount of data received after adjusting the CCA threshold is reduced by 2Mb compared to the amount of data received before adjusting the CCA threshold, that is, the second difference is 2. Then, the product of 2 and the third adjustment coefficient is calculated, that is, 2. Then, the first CCA threshold is reduced by this product value, that is, (-76)-2=-78dBm, that is, the first CCA threshold is adjusted from -76dBm to -78dBm.
[0144] It should be noted that when the CCA threshold is high, the terminal device is more likely to determine that the channel is idle, thus initiating more resource requests and expecting to obtain more resources from the Internet. If the amount of data received by the terminal decreases, it may be because the current CCA threshold is high, leading to an increase in collision conflicts.
[0145] In this embodiment, the terminal device can obtain the change in the amount of received data before and after adjusting the CCA threshold to the first CCA threshold. When the terminal device detects a decrease in the amount of received data, it can appropriately lower the CCA threshold, making it easier for the terminal device to detect signals with signal strength greater than the CCA threshold. This reduces the number of times the terminal device determines that the channel is idle, thereby reducing the terminal's transmission opportunities. In this way, resource conflicts can be avoided when transmitting data, thereby improving transmission performance.
[0146] In some embodiments of this application, when the communication indicator information includes a quantity ratio and a first transmission rate, the terminal device can adjust the first CCA threshold according to the quantity ratio and the first transmission rate.
[0147] For example, when the quantity ratio is greater than or equal to the first threshold and the first transmission rate is less than the second transmission rate, the terminal device can first subtract the first CCA threshold from the first value, and then subtract the result from the second value to adjust the first CCA threshold. The calculation formula is as follows: CCA_threshold = RSSI - SNR - Margin - a * BMissRatio - b * deltaTxRate
[0148] It should be noted that the explanation of each parameter in this calculation formula can be found in the description of the above embodiments, and will not be repeated here.
[0149] In some embodiments of this application, when the communication indicator information includes a quantity ratio, a first transmission rate, and a first data volume, the terminal device can adjust the first CCA threshold according to the quantity ratio, the first transmission rate, and the first data volume.
[0150] For example, when the quantity ratio is greater than or equal to a first threshold, the first transmission rate is less than a second transmission rate, and the first data volume is less than the second data volume, the terminal device can first subtract the first CCA threshold from the first value, then subtract the result from the second value, and finally subtract the result from the third value to adjust the first CCA threshold. The calculation formula is as follows: CCA_threshold=RSSI-SNR-Margin-a*BMissRatio-b*deltaTxRate- c*deltaRxTput
[0151] It should be noted that the explanation of each parameter in this calculation formula can be found in the description of the above embodiments, and will not be repeated here.
[0152] In this embodiment, the terminal device can comprehensively consider multiple transmission quality information and adjust the first CCA threshold based on the multiple transmission quality information, so that the CCA threshold can better adapt to the actual wireless environment, thereby improving transmission reliability.
[0153] In some embodiments of this application, referring to Figure 1 above, as shown in Figure 3, after step 202 above, the wireless communication method provided in the embodiments of this application further includes the following step 205 or step 206:
[0154] Step 205: If the first CCA threshold is greater than the maximum CCA threshold within the preset CCA threshold range, the terminal device adjusts the first CCA threshold to the maximum CCA threshold.
[0155] or,
[0156] Step 206: If the first CCA threshold is less than the minimum CCA threshold within the preset CCA threshold range, adjust the first CCA threshold to the minimum CCA threshold.
[0157] In some embodiments of this application, the preset CCA threshold range includes multiple CCA thresholds, the minimum CCA threshold among the multiple CCA thresholds can be -82dBm, and the maximum CCA threshold among the multiple CCA thresholds can be -62dBm.
[0158] It should be noted that the minimum CCA threshold, i.e., the lower limit of the preset CCA threshold range, can be represented as CCA_Min. The maximum CCA threshold, i.e., the upper limit of the preset CCA threshold range, can be represented as CCA_Max. The aforementioned preset CCA threshold range can be represented as CCA_Min <= CCA_thredhold <= CCA_Max.
[0159] In some embodiments of this application, after determining the first CCA threshold, the terminal device can determine whether the first CCA threshold is within a preset CCA threshold range.
[0160] For example, if the first CCA threshold is determined to be -85, since the first CCA threshold is less than CCA_Min, the first CCA threshold is adjusted to CCA_Min, i.e., -82.
[0161] For another example, if the first CCA threshold is determined to be -60, since the first CCA threshold is greater than CCA_Max, the first CCA threshold is adjusted to CCA_Max, i.e., -62.
[0162] In this embodiment, by maintaining the CCA threshold within a preset range, the terminal device can have a reasonable standard for assessing whether a channel is idle. On the one hand, this avoids the threshold being too low, causing the terminal device to misinterpret weak signals as channel occupancy, leading to unnecessary communication delays. On the other hand, it avoids the threshold being too high, causing the terminal device to fail to detect channel occupancy signals and incorrectly determine that the channel is idle, resulting in resource conflicts. Therefore, limiting the threshold to an appropriate range ensures communication stability.
[0163] The above-described method embodiments, or various possible implementations of the method embodiments, can be executed individually, or, provided there are no contradictions, they can be combined with each other. The specific implementation can be determined according to actual usage requirements, and this application embodiment does not impose any restrictions on this.
[0164] The wireless communication method provided in this application can be executed by a wireless communication device. This application uses an example of a wireless communication device executing the wireless communication method to illustrate the wireless communication device provided in this application.
[0165] Figure 4 is a schematic diagram of the structure of the wireless communication device provided in the embodiment of this application. As shown in Figure 4, the wireless communication device may include an acquisition module 401 and a determination module 402, wherein: the acquisition module 401 is used to acquire signal quality information of the wireless signal when receiving a wireless signal from the access point device; the determination module 402 is used to determine a first idle channel assessment CCA threshold based on the signal quality information and signal fluctuation parameters acquired by the acquisition module 401, the signal fluctuation parameters characterizing the signal fluctuation between the terminal device and the access point device, and the first CCA threshold used to determine whether the channel between the terminal device and the access point device is in an idle state.
[0166] In some embodiments of this application, the determining module is specifically used for: determining an initial CCA threshold based on RSSI; calculating a first difference between the initial CCA threshold and the signal fluctuation parameter, and determining the first difference as a first CCA threshold; wherein the signal quality information includes at least one of RSSI and SNR.
[0167] In some embodiments of this application, the above-mentioned apparatus further includes: an execution module; the acquisition module is further configured to acquire communication indicator information after determining a first CCA threshold based on signal quality information and signal fluctuation parameters, wherein the communication indicator information characterizes the data transmission performance between the terminal device and the access point device; the execution module is configured to adjust the first CCA threshold based on the communication indicator information acquired by the acquisition module.
[0168] In some embodiments of this application, the aforementioned communication indicator information includes at least one of the following:
[0169] The quantity ratio represents the proportion of the first broadcast signal in the second broadcast signal. The first broadcast signal is the number of broadcast signals that the terminal device failed to receive within the first time period, and the second broadcast signal is the number of broadcast signals sent by the access point device within the first time period.
[0170] The first transmission rate is the rate at which the terminal device sends data packets to the access point device;
[0171] The second transmission rate is the rate at which the terminal device sends data packets to the access point device before performing idle channel assessment based on the first CCA threshold mentioned above.
[0172] The first data volume is the amount of data packets received by the terminal device from the access point device within the second time period;
[0173] The second data volume is the amount of data packets received by the terminal device from the access point device within the second duration before the idle channel assessment is performed based on the first CCA threshold mentioned above.
[0174] In some embodiments of this application, the aforementioned communication indicator information includes a quantity ratio; the aforementioned execution module is specifically used to reduce the first CCA threshold by a first value when the quantity ratio is greater than or equal to a first threshold; wherein, the first value is: the product of a first adjustment coefficient and the quantity ratio, and the first adjustment coefficient is a value greater than 0.
[0175] In some embodiments of this application, the aforementioned communication indicator information includes a first transmission rate and a second transmission rate; the aforementioned execution module is specifically used to reduce the first CCA threshold by a second value when the first transmission rate is less than the second transmission rate; wherein, the second value is the product of a second adjustment coefficient and a second difference, the second adjustment coefficient is a value greater than 0, the second difference is the difference between the second transmission rate and the first transmission rate, and the second transmission rate is the transmission rate at which data packets are sent to the access point device before idle channel assessment based on the first CCA threshold.
[0176] In some embodiments of this application, the aforementioned communication indicator information includes a first data volume and a second data volume; the aforementioned execution module is specifically used to reduce the first CCA threshold by a third value when the first data volume is less than the second data volume; wherein, the third value is the product of a third adjustment coefficient and a third difference, the third adjustment coefficient is a value greater than or equal to 0, the third difference is the difference between the second data volume and the first data volume, and the second data volume is the amount of data packets received from the access point device within a second time period before idle channel assessment based on the first CCA threshold.
[0177] In some embodiments of this application, the above-mentioned apparatus further includes: an update module; the update module is configured to, after determining a first CCA threshold based on signal quality information and signal fluctuation parameters, adjust the first CCA threshold to the maximum CCA threshold if the first CCA threshold is greater than the maximum CCA threshold within a preset CCA threshold range; or, the update module is configured to adjust the first CCA threshold to the minimum CCA threshold if the first CCA threshold is less than the minimum CCA threshold within a preset CCA threshold range.
[0178] The wireless communication device provided in this application embodiment, upon receiving a wireless signal from an access point device, acquires the signal quality information of the wireless signal, and determines a first CCA threshold based on the signal quality information and signal fluctuation parameters. The signal fluctuation parameters characterize the signal fluctuation between the terminal device and the access point device. The first CCA threshold is used to determine whether the channel between the terminal device and the access point device is idle. Through this method, the wireless communication device can determine the CCA threshold based on the signal quality and signal fluctuation parameters of the effective signal between the terminal device and the access point device. This allows the terminal device to determine a CCA threshold more suitable for the current wireless network environment of the terminal device based on the actual transmission indicators and signal fluctuations of the wireless communication environment. In this way, it can effectively reduce the interference caused by invalid signals such as interference signals in a dense network environment, thereby increasing the transmission opportunities of the terminal device and improving the utilization rate of wireless resources.
[0179] The channel evaluation device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the specific type of device.
[0180] The channel evaluation device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.
[0181] The channel evaluation apparatus provided in this application can implement the various processes implemented in the method embodiments of Figures 1 to 3. To avoid repetition, these processes will not be described again here.
[0182] Optionally, as shown in FIG5, this application embodiment also provides an electronic device 500, including a processor 501 and a memory 502. The memory 502 stores a program or instructions that can run on the processor 501. When the program or instructions are executed by the processor 501, they implement the various steps of the above-described channel evaluation method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0183] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0184] Figure 6 is a schematic diagram of the hardware structure of an electronic device that implements an embodiment of this application.
[0185] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
[0186] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for powering various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in Figure 6 does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0187] The processor 110 is configured to acquire signal quality information of the wireless signal when it receives a wireless signal from the access point device. The processor 110 is also configured to determine a first idle channel assessment (CCA) threshold based on the signal quality information and signal fluctuation parameters acquired by the processor 110. The signal fluctuation parameters characterize the signal fluctuation between the terminal device and the access point device, and the first CCA threshold is used to determine whether the channel between the terminal device and the access point device is idle.
[0188] In some embodiments of this application, the signal quality information includes signal strength RSSI; the processor 110 is specifically configured to: determine an initial CCA threshold based on RSSI; calculate a first difference between the initial CCA threshold and the signal fluctuation parameter, and determine the first difference as a first CCA threshold; wherein the above-mentioned signal quality information includes at least one of RSSI and SNR.
[0189] In some embodiments of this application, the processor 110 is specifically configured to: determine an initial CCA threshold based on RSSI and SNR; calculate a second difference between the initial CCA threshold and the signal fluctuation parameter, and determine the second difference as the first CCA threshold.
[0190] In some embodiments of this application, the processor 110 is further configured to obtain communication indicator information after determining the first CCA threshold based on signal quality information and signal fluctuation parameters. The communication indicator information characterizes the data transmission performance between the terminal device and the access point device. The processor 110 is also configured to adjust the first CCA threshold based on the communication indicator information obtained by the processor 110.
[0191] In some embodiments of this application, the aforementioned communication indicator information includes at least one of the following:
[0192] The quantity ratio represents the proportion of the first broadcast signal in the second broadcast signal. The first broadcast signal is the number of broadcast signals that the terminal device failed to receive within the first time period, and the second broadcast signal is the number of broadcast signals sent by the access point device within the first time period.
[0193] The first transmission rate is the rate at which the terminal device sends data packets to the access point device;
[0194] The second transmission rate is the rate at which the terminal device sends data packets to the access point device before the idle channel assessment is performed based on the first CCA threshold.
[0195] The first data volume is the amount of data packets received by the terminal device from the access point device within the second time period;
[0196] The second data volume is the amount of data packets received by the terminal device from the access point device within a second time period before the idle channel assessment is performed based on the first CCA threshold.
[0197] In some embodiments of this application, the aforementioned communication indicator information includes a quantity ratio; the aforementioned processor 110 is specifically used to reduce the first CCA threshold by a first value when the quantity ratio is greater than or equal to a first threshold; wherein, the first value is: the product of a first adjustment coefficient and the quantity ratio, and the first adjustment coefficient is a value greater than 0.
[0198] In some embodiments of this application, the aforementioned communication indicator information includes a first transmission rate and a second transmission rate; the aforementioned processor 110 is specifically used to reduce the first CCA threshold by a second value when the first transmission rate is less than the second transmission rate; wherein, the second value is the product of a second adjustment coefficient and a second difference, the second adjustment coefficient is a value greater than 0, and the second difference is the difference between the second transmission rate and the first transmission rate.
[0199] In some embodiments of this application, the aforementioned communication indicator information includes a first data volume and a second data volume; the aforementioned processor 110 is specifically used to reduce the first CCA threshold by a third value when the first data volume is less than the second data volume; wherein, the third value is the product of a third adjustment coefficient and a third difference, the third adjustment coefficient is a value greater than or equal to 0, and the third difference is the difference between the second data volume and the first data volume.
[0200] In some embodiments of this application, the processor 110 is further configured to, after determining the first CCA threshold based on signal quality information and signal fluctuation parameters, adjust the first CCA threshold to the maximum CCA threshold if the first CCA threshold is greater than the maximum CCA threshold within the preset CCA threshold range; or, the processor 110 is further configured to adjust the first CCA threshold to the minimum CCA threshold if the first CCA threshold is less than the minimum CCA threshold within the preset CCA threshold range.
[0201] The terminal device provided in this application embodiment, upon receiving a wireless signal from an access point device, acquires the signal quality information of the wireless signal. Based on the signal quality information and signal fluctuation parameters, it determines a first CCA threshold. The signal fluctuation parameters characterize the signal fluctuation between the terminal device and the access point device. The first CCA threshold is used to determine whether the channel between the terminal device and the access point device is idle. Through this method, the terminal device can determine the CCA threshold based on the signal quality and signal fluctuation parameters of the effective signal between itself and the access point device. This allows the terminal device to determine a CCA threshold more suitable for its current wireless network environment based on actual transmission indicators and signal fluctuations in the wireless communication environment. This effectively reduces the interference caused by invalid signals such as interference signals in dense network environments, thereby increasing the terminal device's transmission opportunities and improving the utilization rate of wireless resources.
[0202] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0203] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may 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), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0204] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.
[0205] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described channel evaluation method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0206] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0207] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described channel evaluation method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0208] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0209] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the channel evaluation method embodiment described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0210] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0211] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0212] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A method for wireless communication, the method comprising: obtaining, by a terminal device, signal quality information of a wireless signal received from an access point device, wherein the signal quality information comprises at least one of a received signal strength indicator (RSSI) and a signal to noise ratio (SNR) ; determining, by the terminal device, a first clear channel assessment (CCA) threshold based on the signal quality information and a signal fluctuation parameter, wherein the signal fluctuation parameter characterizes a signal fluctuation between the terminal device and the access point device, and the first CCA threshold is used to determine whether a channel between the terminal device and the access point device is idle; and adjusting, by the terminal device, the first CCA threshold based on communication index information, wherein the communication index information characterizes a data transmission performance between the terminal device and the access point device. The method further comprises: determining, by the terminal device, an initial CCA threshold based on the signal quality information; and calculating, by the terminal device, a first difference between the initial CCA threshold and the signal fluctuation parameter, and determining the first CCA threshold as the first difference.
2. The method of claim 1, wherein, The method further comprises: obtaining, by the terminal device, the communication index information; and adjusting, by the terminal device, the first CCA threshold based on the communication index information. The communication index information comprises at least one of: a quantity ratio, wherein the quantity ratio characterizes a quantity proportion of a first broadcast signal in a second broadcast signal, the first broadcast signal is a number of broadcast signals that the terminal device fails to receive within a first time duration, and the second broadcast signal is a number of broadcast signals that the access point device transmits within the first time duration; 3. The method of claim 1 or 2, wherein, a first transmission rate, wherein the first transmission rate is a transmission rate of data packets that the terminal device transmits to the access point device; a second transmission rate, wherein the second transmission rate is a transmission rate of data packets that the terminal device transmits to the access point device before performing a clear channel assessment based on the first CCA threshold; a first data amount, wherein the first data amount is an amount of data packets that the terminal device receives from the access point device within a second time duration; 4. The method of claim 3, wherein, a second data amount, wherein the second data amount is an amount of data packets that the terminal device receives from the access point device within the second time duration before performing a clear channel assessment based on the first CCA threshold. The communication index information comprises the quantity ratio. The method further comprises: decreasing, by the terminal device, the first CCA threshold by a first value when the quantity ratio is greater than or equal to a first threshold, wherein the first value is a product of a first adjustment coefficient and the quantity ratio, and the first adjustment coefficient is a positive number. The communication index information comprises the first transmission rate and the second transmission rate. The method further comprises:
5. The method of claim 4, wherein, decreasing, by the terminal device, the first CCA threshold by a first value when the first transmission rate is greater than the second transmission rate, wherein the first value is a product of a first adjustment coefficient and a difference between the first transmission rate and the second transmission rate, and the first adjustment coefficient is a positive number. 6. The method of claim 4, wherein, in a case where the first sending rate is less than the second sending rate, the terminal device decreases the first CCA threshold by a second value; wherein the second value is a product of a second adjustment coefficient and a second difference value, the second adjustment coefficient is a value greater than 0, and the second difference value is a difference between the second sending rate and the first sending rate.
7. The method of claim 4, wherein, The communication index information includes the first data amount and the second data amount; and the terminal device adjusts the first CCA threshold based on the communication index information, including: in a case where the first data amount is less than the second data amount, the terminal device decreases the first CCA threshold by a third value; wherein the third value is a product of a third adjustment coefficient and a third difference value, the third adjustment coefficient is a value greater than or equal to 0, and the third difference value is a difference between the second data amount and the first data amount.
8. The method of claim 1, wherein, After the terminal device determines the first CCA threshold based on the signal quality information and a signal fluctuation parameter, the method further includes: in a case where the first CCA threshold is greater than a maximum CCA threshold within a preset CCA threshold range, the terminal device adjusts the first CCA threshold to the maximum CCA threshold; or, in a case where the first CCA threshold is less than a minimum CCA threshold within a preset CCA threshold range, the terminal device adjusts the first CCA threshold to the minimum CCA threshold.
9. A wireless communication device, the device comprising: The apparatus further includes an obtaining module and a determining module, wherein: the obtaining module is configured to, in a case where a wireless signal from an access point device is received, obtain signal quality information of the wireless signal; the determining module is configured to determine a first CCA threshold based on the signal quality information obtained by the obtaining module and a signal fluctuation parameter, the signal fluctuation parameter representing a signal fluctuation condition between the terminal device and the access point device, and the first CCA threshold being used to determine whether a channel between the terminal device and the access point device is in an idle state.
10. The apparatus of claim 9, wherein, The determining module is specifically configured to: determine an initial CCA threshold based on the signal quality information; calculate a first difference value between the initial CCA threshold and the signal fluctuation parameter, and determine the first difference value as the first CCA threshold; wherein the signal quality information includes at least one of RSSI and SNR.
11. The apparatus of claim 9 or 10, wherein, The apparatus further includes an executing module. The obtaining module is further configured to, after determining the first CCA threshold based on the signal quality information and the signal fluctuation parameter, obtain communication index information, the communication index information representing a data transmission performance between the terminal device and the access point device. The executing module is configured to adjust the first CCA threshold based on the communication index information obtained by the obtaining module.
12. The apparatus of claim 11, wherein, The communication index information includes at least one of: a quantity ratio representing a quantity proportion of a first broadcast signal in a second broadcast signal, the first broadcast signal being a number of broadcast signals that the terminal device fails to successfully receive within a first time length, and the second broadcast signal being a number of broadcast signals sent by the access point device within the first time length; a first sending rate, the first sending rate being a sending rate of the terminal device sending data packets to the access point device; a second sending rate, the second sending rate being a sending rate of the terminal device sending data packets to the access point device before performing the idle channel assessment based on the first CCA threshold; a first data amount, the first data amount being an amount of data received by the terminal device from the access point device within a second time duration; a second data amount, the second data amount being an amount of data received by the terminal device from the access point device within the second time duration before performing the idle channel assessment based on the first CCA threshold.
13. The apparatus of claim 12, wherein, the communication index information comprises the quantity ratio; the execution module is specifically configured to, in a case where the quantity ratio is greater than or equal to a first threshold, decrease the first CCA threshold by a first value by the terminal device; wherein the first value is a product of a first adjustment coefficient and the quantity ratio, and the first adjustment coefficient is a value greater than 0.
14. The apparatus of claim 12, wherein, the communication index information comprises the first sending rate and the second sending rate; and the execution module is specifically configured to, in a case where the first sending rate is less than the second sending rate, decrease the first CCA threshold by a second value by the terminal device; wherein the second value is a product of a second adjustment coefficient and a second difference value, the second adjustment coefficient is a value greater than 0, and the second difference value is a difference between the second sending rate and the first sending rate.
15. The apparatus of claim 12, wherein, the communication index information comprises the first data amount and the second data amount; the execution module is specifically configured to, in a case where the first data amount is less than the second data amount, decrease the first CCA threshold by a third value by the terminal device; wherein the third value is a product of a third adjustment coefficient and a third difference value, the third adjustment coefficient is a value greater than or equal to 0, and the third difference value is a difference between the second data amount and the first data amount.
16. The apparatus of claim 9, wherein, the apparatus further comprises an updating module; the updating module is configured to, after determining the first CCA threshold based on the signal quality information and a signal fluctuation parameter, in a case where the first CCA threshold is greater than a maximum CCA threshold within a preset CCA threshold range, adjust the first CCA threshold to the maximum CCA threshold by the terminal device; or, the updating module is configured to, in a case where the first CCA threshold is less than a minimum CCA threshold within the preset CCA threshold range, adjust the first CCA threshold to the minimum CCA threshold.
17. An electronic device comprising a processor and a memory, the memory storing programs or instructions executable on the processor, the programs or instructions being executed by the processor to implement the steps of the wireless communication method of any one of claims 1-8.
18. A readable storage medium, the readable storage medium storing programs or instructions, the programs or instructions being executed by a processor to implement the steps of the wireless communication method of any one of claims 1-8.
19. A computer program product stored in a storage medium, the computer program product being executed by at least one processor to implement the wireless communication method according to any one of claims 1 to 8.
20. A chip, comprising a processor and a communication interface coupled to the processor, the processor being configured to execute a program or an instruction to implement the wireless communication method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Channel detection method and channel detection apparatus
CN105939543A
CCA detection method and device, storage medium, and terminal
CN109495923A
Clear channel assessment threshold adjusting method, device, equipment, and readable storage medium
CN111642024A
Adjustment of a clear channel assessment (CCA) threshold
US20080008133A1