Wireless communication method and device, electronic equipment and readable storage medium
By dynamically adjusting the CCA threshold based on signal quality and fluctuation parameters in the terminal device, the problem of channel busyness determination in high-density wireless networks is solved, and the utilization of wireless resources and communication reliability are improved.
Patent Information
- Application Number
- CN202410967639.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-09-20
AI Technical Summary
In a high-density wireless network environment, terminal equipment frequently detects invalid signals, leading to channel busy determinations, resulting in low resource utilization, and the existing preset CCA threshold cannot accurately reflect the channel status.
The terminal device dynamically adjusts the CCA threshold based on the signal quality information and signal fluctuation parameters of the received wireless signal to more accurately determine whether the channel is idle, reduce the impact of interfering signals, and improve transmission opportunities.
By dynamically adjusting the CCA threshold, terminal equipment can effectively reduce the impact of interference signals in high-density network environments and improve wireless resource utilization and communication reliability.
Smart Images

Figure CN118678480A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a wireless communication method, device, electronic device and readable storage medium. Background Art
[0002] Clear Channel Access (CCA) is a key process in wireless communication systems. Before a device attempts to send data on a channel, it first evaluates the channel to determine whether the channel is idle, thereby avoiding data conflicts.
[0003] In the related art, when a terminal device detects that there is a signal with a signal strength greater than a preset threshold on a channel, it considers that the channel is busy and will wait for a certain period of time to detect whether the channel is idle again. In order to avoid channel conflicts to the greatest extent, the existing protocol stipulates that the channel is considered busy when the detected signal strength is greater than -82dBm. However, as the number of communication nodes (such as terminal devices and routers) in the network increases, the density of the wireless network environment increases, and more communication nodes need to share limited time and frequency resources to communicate. If the original preset threshold is continued to be used, the terminal device will frequently detect invalid signals with signal strengths that meet the preset threshold, and thus frequently determine that the channel is busy.
[0004] As a result, the terminal device may be unable to use the channel for a long time, resulting in low wireless resource utilization. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a wireless communication method, device, electronic device and readable storage medium, which can increase the transmission opportunities of terminal devices and thus improve the utilization rate of wireless resources.
[0006] In a first aspect, an embodiment of the present application provides a wireless communication method, the method comprising: when a terminal device receives a wireless signal from an access point device, obtaining signal quality information of the wireless signal; the terminal device determines a first CCA threshold based on the above signal quality information and a signal fluctuation parameter, the signal fluctuation parameter characterizing the 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 in an idle state.
[0007] In a second aspect, an embodiment of the present application provides a wireless communication device, comprising: an acquisition module and a determination module, wherein: the acquisition module is used to acquire signal quality information of the wireless signal when a wireless signal is received from an access point device; the determination module is used to determine a first CCA threshold based on the signal quality information and a signal fluctuation parameter, the signal fluctuation parameter characterizing 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.
[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0010] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0012] In an embodiment of the present application, when a terminal device receives a wireless signal from an access point device, it obtains the signal quality information of the wireless signal, and determines a first CCA threshold based on the signal quality information and the signal fluctuation parameter, wherein the signal fluctuation parameter characterizes 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. Through this method, the terminal device can determine the CCA threshold based on the signal quality and signal fluctuation parameter of the effective signal between the terminal device and the access point device, so that the terminal device can determine the CCA threshold that is more suitable for the wireless network environment in which the terminal device is currently located according to the actual signal quality and the signal fluctuation of the wireless communication environment, so that in a network environment with a high degree of density, the interference effect caused by invalid signals such as interference signals can be effectively reduced, thereby increasing the transmission opportunities of the terminal device, and further improving the utilization rate of wireless resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1One of the flowcharts of the wireless communication method provided in the embodiment of the present application;
[0014] Figure 2 A second flowchart of a wireless communication method provided in an embodiment of the present application;
[0015] Figure 3 A third flowchart of a wireless communication method provided in an embodiment of the present application;
[0016] Figure 4 A schematic diagram of the structure of a wireless communication device provided in an embodiment of the present application;
[0017] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0018] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0020] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0021] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "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 (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".
[0022] At present, the IEEE802.11 protocol uses unlicensed wireless 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 backoff. This mechanism requires stations to perform carrier sensing before using the channel for transmission, and can only use the channel when the carrier sensing result shows that the channel is idle. CCA is one of the key mechanisms for implementing conflict 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 lower than the 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.
[0023] In the related art, in order to avoid channel conflicts to the greatest extent, the existing protocol stipulates that when the signal strength detected on the 20MHz bandwidth is greater than -82dBm, the channel is judged to be busy. However, with the popularization of 802.11 networks, the number of wireless communication nodes (such as terminal devices and routers) in the network is increasing, the density of the wireless network environment is increasing, and more wireless communication nodes need to share limited wireless spectrum resources to communicate. In addition, there may be some hidden nodes in the wireless network, which increases the number of invalid signals such as weak signals, noise signals, and interference signals in the wireless network environment. If the original preset threshold is continued to be used, the terminal device will frequently detect invalid signals whose signal strength meets the preset threshold, and thus frequently judge the channel to be busy, resulting in the terminal device being unable to use the channel for a long time, resulting in low wireless resource utilization.
[0024] In the wireless communication method provided in the embodiment of the present application, the terminal 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, so that the terminal device can determine the CCA threshold that is more suitable for the wireless communication environment in which the terminal device is currently located according to the signal quality in the actual transmission process and the signal fluctuation of the wireless communication environment, and can dynamically adjust the determined CCA threshold according to the actual communication indicators, so that in a high-density network environment, the interference effects caused by invalid signals such as weak signals, noise signals and interference signals can be effectively reduced, thereby increasing the transmission opportunities of the terminal device and further improving the utilization rate of wireless resources.
[0025] The wireless communication method provided in the embodiment of the present application can be executed by an electronic device or at least one of a functional module and an entity module in the electronic device that can implement the wireless communication method. The specific execution can be determined according to actual use requirements and is not limited in the embodiment of the present application. The wireless communication method provided in the embodiment of the present application is described below by taking the terminal device executing the wireless communication method as an example.
[0026] The wireless communication method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0027] Figure 1 A flow chart of a wireless communication method provided in an embodiment of the present application is shown as follows: Figure 1 As shown, the wireless communication method may include the following steps 201 and 202:
[0028] Step 201: When receiving a wireless signal from an access point device, the terminal device obtains signal quality information of the wireless signal.
[0029] In some embodiments of the present application, when the terminal device is in a single connection state and receives a wireless signal from an access point device, the terminal device can obtain signal quality information of the wireless signal.
[0030] It should be noted that the single connection state refers to a state in which the terminal device only needs to communicate with the access point device currently establishing a connection.
[0031] It should be noted that when the terminal device is in a single connection state, the terminal device usually only communicates with one access point device that is currently connected. Since in a single connection state, only the access point device currently connected to the terminal device is involved, the currently acquired signal quality is mainly the signal quality when communicating with the current access point device. Therefore, the terminal device can accurately determine the CCA threshold for evaluating the channel state between the terminal device and the access point device based on the signal quality, thereby accurately evaluating whether the channel is idle. If the terminal device is in a non-single connection state, the terminal device may need to communicate with multiple access point devices, and the channel usage may be more complicated. It should be noted that when the terminal device is in a single connection state, the terminal device usually only communicates with one access point device that is currently connected. Since in a single connection state, only the access point device currently connected to the terminal device is involved, the currently acquired signal quality is mainly the signal quality when communicating with the current access point device. Therefore, the terminal device can accurately determine the CCA threshold for evaluating the channel state between the terminal device and the access point device based on the signal quality, thereby accurately evaluating whether the channel is idle. If the terminal device is not in a single connection state, it may need to communicate with multiple access point devices. At this time, the channel usage becomes more complicated because the signal quality of different access point devices may be different and there may be mutual interference. At this time, if the CCA threshold is set based on a unified signal quality, it may not accurately reflect the wireless environment when all access point devices coexist, thus affecting the accuracy of the CCA evaluation.
[0032] In some embodiments of the present application, the access point device may be a network-side device such as a wireless access point (AP), a base station, a router, or a switch.
[0033] It is understandable that access point devices play a vital role in wireless communications. By connecting to access point devices, user devices (ie, terminal devices) can access the network, thereby achieving data transmission and exchange.
[0034] It should be noted that, in addition to the access point devices listed above, the access point device may also be other types of devices, which may be specifically configured according to the network environment and service requirements, and the embodiments of the present application do not limit this.
[0035] In some embodiments of the present application, the wireless signal is a wireless signal received by a terminal device on a channel, and the channel is a wireless channel between the terminal device and an access point device.
[0036] In some embodiments of the present application, the wireless signal is a valid signal received from an access point device.
[0037] 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. That is to say, when the above characteristics of a signal meet certain requirements or thresholds, such a signal is a valid signal.
[0038] In some embodiments of the present application, the above-mentioned signal quality information may include at least one of the following: received signal strength indication (Received Signal Strength Indicator, RSSI), reference signal received power (ReferenceSignal Receiving Power, RSRP), signal to interference plus noise ratio (Signal to Interference plusNoise Ratio, SINR), signal to noise ratio (Signal to Noise Ratio, SNR), etc.
[0039] It can be understood that RSSI is usually expressed as a negative value (in dBm). The closer the value is to zero, the higher the signal strength is. SNR or SINR is expressed as the ratio of signal quality to noise or interference, which can reflect the degree of noise and interference received by the signal during transmission. SNR or SINR is a positive value. The larger the value, the better the signal quality.
[0040] It should be noted that the above-mentioned signal quality information includes but is not limited to the items listed in the embodiments of the present application, and can be set according to actual needs, and the embodiments of the present application are not limited to this.
[0041] For ease of description, in the embodiments of the present application, the received signal strength indication is referred to as signal strength.
[0042] In some embodiments of the present application, the terminal device may perform signal measurement or utilize a network analysis tool to collect and analyze wireless signal quality information.
[0043] Step 202: The terminal device determines a first CCA threshold based on the signal quality information and the signal fluctuation parameter.
[0044] The signal fluctuation parameter represents 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.
[0045] In some embodiments of the present application, the signal fluctuation parameter may be a preset parameter or may be determined based on the signal fluctuation during the transmission process. Further, the value of the signal fluctuation parameter is a positive value.
[0046] Exemplarily, the signal fluctuation parameter may be a parameter pre-set based on the stability of the current network environment. For example, when the network environment is relatively stable, a smaller signal fluctuation parameter is set, such as 3dBm, 5dBm, or 7dBm, etc.; or, when the network environment is less stable, a larger signal fluctuation parameter is set, such as 10dBm, 15dBm, or 20dBm, etc.
[0047] Exemplarily, the signal fluctuation parameter can be determined in real time according to the signal fluctuation during the transmission process. Specifically, the terminal device can measure the change in the signal strength of the valid signal received over a period of time, and determine the signal fluctuation parameter based on the change. For example, the signal strength of the valid signal received by the terminal device fluctuates between -70dBm and -80dBm, then the signal fluctuation parameter can be the difference between the maximum value and the minimum value of the signal strength, and the calculation formula is: (-70dBm)-(-80dBm)=10dBm, that is, the signal fluctuation parameter is 10 or 10dBm, indicating that the fluctuation of the signal strength is 10dBm.
[0048] 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 the influence of the mobility of the terminal device or the change of the wireless network environment. In the above example, the signal fluctuation parameter of 10 means that the signal strength changes by 10 dBm during the measurement period. This value can be used to evaluate the stability of the signal. Specifically, the smaller the value, the more stable the signal; the larger the value, the greater the signal fluctuation, that is, the worse the communication stability.
[0049] In some embodiments of the present application, the terminal device may subtract the signal quality represented by the signal quality information from the signal fluctuation parameter, and then determine the obtained difference as the first CCA threshold.
[0050] It should be noted that the first CCA threshold can be expressed as CCA_threshold, and the signal fluctuation parameter can be expressed as Margin.
[0051] Exemplarily, taking the access point device as a router and the signal quality information as RSSI, assuming that the RSSI of the valid signal received by the terminal device from the router is -70dBm and the signal fluctuation parameter is 5dBm, the first CCA threshold can be -75dBm, that is, (-70dBm)-5dBm=-75dBm.
[0052] It should be noted that since the signal strength may fluctuate due to various factors, if such fluctuations are not taken into account and the CCA threshold is determined based solely on a single signal strength, then when the signal strength decreases due to fluctuations, the CCA threshold may not be able to accurately detect the valid signal, resulting in communication interruption or signal loss.
[0053] In an embodiment of the present application, by determining the difference between the signal strength of the effective 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 effective signal, so that when the terminal performs channel evaluation, as long as the signal strength exceeds the CCA threshold, the channel can be considered to be idle, and the effective signal is received and parsed, avoiding the signal strength of the effective signal being less than the CCA threshold, so that the terminal device determines that the detected effective signal is less than the CCA threshold, thereby mistakenly ignoring the effective signal, thereby increasing the success rate of receiving the effective signal; on the other hand, by subtracting the signal fluctuation parameter based on the signal strength of the effective signal, the influence of the signal fluctuation can be offset, making the CCA threshold more stable and reliable, thereby improving the reliability of communication.
[0054] It should be noted that the preset value may be the minimum value CCA_Min for adjusting the CCA threshold.
[0055] In some embodiments of the present application, the terminal device may determine whether the channel between the terminal device and the access point device is in an idle state based on the above-mentioned first CCA threshold; or, the terminal may adjust the original CCA threshold currently applied to the first CCA threshold.
[0056] In some embodiments of the present application, the original CCA threshold may be a preset value.
[0057] In some embodiments of the present application, the above preset value is the minimum sensitivity of the terminal device or the minimum sensitivity requirement required by the protocol. Exemplarily, the preset value may be -82dBm.
[0058] In some embodiments of the present application, the terminal device measures the signal strength on the channel, and 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, so data transmission or reception can be performed on the channel; or, if the measured signal strength exceeds the CCA threshold, the terminal device determines that the channel is busy, and the terminal device will choose to wait for a while to perform channel evaluation again, or look for other available channels for communication.
[0059] Exemplarily, taking the first CCA threshold of -75dBm as an example, assuming that 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 to be an invalid signal, and the channel is determined to be currently idle.
[0060] As another example, taking the first CCA threshold of -75dBm as an example, assuming that 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 determined to be busy.
[0061] It should be noted that the process in 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 may also be referred to as the terminal performing idle channel assessment based on the first CCA threshold.
[0062] 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 of the relevant technology, which will not be described in detail here.
[0063] In some embodiments of the present application, the terminal device may perform energy detection on the signal on the channel to obtain the signal strength of the signal on the channel.
[0064] In some embodiments of the present 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 a preset value.
[0065] In the wireless communication method provided in the embodiment of the present application, when a terminal device receives a wireless signal from an access point device, the terminal device obtains signal quality information of the wireless signal, and determines a first CCA threshold based on the signal quality information and a signal fluctuation parameter, wherein the signal fluctuation parameter characterizes the signal fluctuation between the terminal device and the access point device. 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. Through this method, the terminal device can determine the CCA threshold based on the signal quality and signal fluctuation parameter of the effective signal between the terminal device and the access point device, so that the terminal device can determine a CCA threshold that is more suitable for the wireless network environment in which the terminal device is currently located according to the actual transmission index and the signal fluctuation of the wireless communication environment, thereby being able to effectively reduce the interference effect caused by invalid signals such as interference signals in a network environment with a high degree of density, thereby increasing the transmission opportunities of the terminal device, and further improving the utilization rate of wireless resources.
[0066] In some embodiments of the present application, the above step 202 may include the following steps 202a and 202b:
[0067] Step 202a: The terminal device determines an initial CCA threshold based on the signal quality information.
[0068] Step 202b: The terminal device calculates a first difference between the initial CCA threshold and the signal fluctuation parameter, and determines the first difference as a first CCA threshold.
[0069] The signal quality information includes at least one of RSSI and SNR.
[0070] In some possible implementations, the signal quality information includes RSSI, and the terminal device can determine the initial CCA threshold based on RSSI.
[0071] In some embodiments of the present application, the terminal device may determine the RSSI value as the initial CCA threshold, or the terminal device may determine a numerical value less than the RSSI value as the initial CCA threshold.
[0072] Exemplarily, if the RSSI of the valid signal received by the terminal device from the router is -75dBm, the initial CCA threshold is determined to be -75dBm, or the initial CCA threshold is determined to be -76dBm.
[0073] It is understandable that in order to prevent the terminal device from ignoring the valid signal, it is necessary to ensure that the first CCA threshold is lower than the strength of the valid signal, that is, CCA_threshold <RSSI。
[0074] In some embodiments of the present application, the terminal device may determine a difference (ie, a first difference) obtained by subtracting a signal fluctuation parameter from an initial CCA threshold as a first CCA threshold, ie, CCA_threshold.
[0075] Exemplarily, taking the initial CCA threshold of -75dBm and the signal fluctuation parameter of 5dBm as an example, the terminal device subtracts the initial CCA threshold from the signal fluctuation parameter, and then determines the obtained difference of -80dBm as the first CCA threshold, and the calculation formula is: CCA_threshold = RSSI-Margin.
[0076] In an embodiment of the present application, by reasonably setting the CCA threshold according to the signal strength and signal fluctuation parameters of the effective signal received by the terminal device, and then performing idle channel assessment according to the CCA threshold, it can not only ensure that the terminal device can receive the effective signal in most cases, but also avoid communication problems caused by signal fluctuations, so that the terminal device can perform channel assessment and signal reception more intelligently, thereby improving the overall communication performance.
[0077] In some other possible implementations, the signal quality information includes RSSI and SNR, and the terminal device can determine the initial CCA threshold based on RSSI and SNR.
[0078] 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.
[0079] 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 to be -78 dBm, that is, RSSI minus SNR.
[0080] It can be understood that in order to correctly demodulate and parse the valid signal, certain signal-to-noise ratio requirements also need to be met. In an environment with high noise, the RSSI may show a high value due to the increase in noise power, but it does not indicate good signal quality. 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 the valid signal by the terminal device.
[0081] In some embodiments of the present application, the terminal device may determine the difference (i.e., the first difference) obtained by subtracting the signal fluctuation parameter from the initial CCA threshold as the first CCA threshold, that is, CCA_threshold.
[0082] Exemplarily, taking the initial CCA threshold as -78 dBm and the signal fluctuation parameter as 3 dBm as an example, the terminal device subtracts the signal fluctuation parameter from the initial CCA threshold, and then determines the obtained difference of -81 dBm as the first CCA threshold. The calculation formula is: CCA_threshold = RSSI - SNR - Margin.
[0083] In the embodiments of the present application, by reasonably setting the CCA threshold according to the signal strength, signal-to-noise ratio, and signal fluctuation parameter of the valid signal received by the terminal device, and then performing idle channel evaluation according to the CCA threshold, it can not only ensure that the terminal device can receive the valid signal in an environment with high noise, but 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.
[0084] In some embodiments of the present application, in combination with the above Figure 1 , as Figure 2 shown, after step 202 above, the wireless communication method provided by the embodiments of the present application further includes the following steps 203 and 204:
[0085] Step 203: The terminal device obtains communication metric information.
[0086] Wherein, the above communication metric information characterizes the data transmission performance between the terminal device and the access point device.
[0087] Step 204: The terminal device adjusts the first CCA threshold based on the communication metric information.
[0088] In some embodiments of the present application, the communication indicator information includes at least one of the following:
[0089] A quantity ratio, where the quantity ratio represents the proportion of the first broadcast signal in the second broadcast signal, where the first broadcast signal is the number of broadcast signals that the terminal device has not successfully received within a 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;
[0090] A first sending rate, where the first sending rate is a sending rate at which a terminal device sends a data packet to an access point device;
[0091] A second sending rate, where the second sending rate is a sending rate at which a terminal device sends a data packet to the access point device before performing an idle channel assessment based on the first CCA threshold;
[0092] A first data volume, where the first data volume is the data volume of the data packet received by the terminal device from the access point device within the second time period;
[0093] The second data volume is the amount of data packets received by the terminal device from the access point device within the second time period before the idle channel assessment is performed based on the first CCA threshold.
[0094] In some embodiments of the present application, the first broadcast signal and the second broadcast signal may be beacon frames.
[0095] It should be noted that the beacon frame is a broadcast signal in a specific format sent by the access point device. It is a frame format for sending fixed time interval signals in the 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 communication performance is poor.
[0096] In some embodiments of the present application, the first sending rate may be a sending rate at a moment, or an average sending rate within a time period.
[0097] In some embodiments of the present application, the sending rate of data packets sent by 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 greater the sending rate or the greater the amount of data received from the access point device within a certain period of time, the better the communication performance, and vice versa, it indicates that the communication performance is poor.
[0098] In some embodiments of the present application, when the terminal device adopts the first CCA threshold to perform channel assessment, it can obtain communication indicator information related to data transmission in real time or periodically.
[0099] In some embodiments of the present application, the terminal device may determine an adjustment amount of the CCA threshold based on the above-mentioned communication quality information, and adjust the CCA threshold according to the adjustment amount.
[0100] Exemplarily, the terminal device can dynamically adjust the first CCA threshold according to the current communication quality. For example, when the communication quality is good, the CCA threshold can be appropriately increased to reduce interference to the surrounding environment; or when the communication quality is poor, the CCA threshold can be lowered to increase the chance of receiving a valid signal.
[0101] It should be noted that if the first CCA threshold is increased by a certain value relative to the preset value, the transmission opportunity of the terminal device will increase. However, the access point device may receive the signal of the terminal device and other signals at the same time, resulting in a collision and decoding failure, so that the current transmission still fails. Therefore, the CCA threshold can be corrected according to the actual transmission result, for example, the CCA threshold can be appropriately lowered to ensure the reliability of the transmission. For example, assuming that the terminal devices communicating with the access point device include device A and device B, after the CCA threshold of device B is adjusted to the first CCA threshold, assuming that the transmission opportunity of device B increases, device B may send data on the channel at the same time as device A, thereby causing a resource conflict, causing the transmission of device A and device B to fail.
[0102] In an embodiment of the present application, the terminal may further adjust the determined first CCA threshold according to communication quality information related to actual transmission, so that the CCA threshold can adapt to the changing network environment, thereby improving the reliability of communication.
[0103] In some embodiments of the present application, the communication indicator information includes the quantity ratio. Exemplarily, the step 204 can be implemented by the following step 204a.
[0104] Step 204a: When the quantity ratio is greater than or equal to the first threshold, the terminal device reduces the first CCA threshold by a first value.
[0105] The first value is: the product of the first adjustment coefficient and the quantity ratio, and the first adjustment coefficient is a value greater than 0.
[0106] In some embodiments of the present application, the first threshold may be 10%, 20% or 30%.
[0107] It should be noted that the first threshold can be set according to actual needs, and the embodiments of the present application do not limit this.
[0108] In some embodiments of the present application, the first adjustment coefficient is a preset coefficient.
[0109] In some embodiments of the present 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.
[0110] It should be noted that the first adjustment coefficient can be set according to actual needs, and the embodiment of the present application does not limit this.
[0111] In some embodiments of the present application, the terminal device may calculate the product of the first adjustment coefficient and the quantity ratio, and subtract the product from the first CCA threshold to adjust the first CCA threshold.
[0112] In some embodiments of the present application, combined with the calculation process of the first CCA threshold, the calculation formula of the adjusted CCA threshold is as follows:
[0113] CCA_threshold=RSSI-SNR-Margin-a*BMissRatio
[0114] Among them, 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 above quantity ratio.
[0115] It should be noted that a can also be called the weight of BMissRatio, which can be adjusted according to actual measurement results.
[0116] Exemplarily, taking the first CCA threshold as -80dBm, the first threshold as 0.4, and the first adjustment coefficient as 1, assuming that the ratio of the number of beacon frames received by the terminal device from the router to the beacon frames sent by the router is 0.5, and the terminal device determines that the ratio is greater than 0.4, then the product value of the ratio and the first adjustment coefficient is calculated, that is, 0.5, and then the first CCA threshold is reduced by the product value, that is, (-80)-0.5=-80.5dBm, that is, the first CCA threshold is adjusted from -80dBm to -80.5dBm.
[0117] It should be noted that if the number of beacon frames received decreases after adjusting the CCA threshold, it may be because they are ignored due to their low strength. At this time, the CCA threshold can be appropriately lowered so that the terminal device can correctly receive valid signals.
[0118] In an embodiment of the present application, when a large proportion of beacon frames missed by the terminal device are received, by lowering 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 evaluate whether the channel is idle; on the other hand, the terminal can adaptively adjust the CCA threshold according to the beacon frame reception status, so that the determined CCA threshold is more suitable for the current wireless environment, thereby increasing the stability and reliability of the network connection.
[0119] In some embodiments of the present application, the communication indicator information includes a first transmission rate and a second transmission rate. Exemplarily, the step 204 can be implemented by the following step 204b.
[0120] Step 204b: When the first transmission rate is lower than the second transmission rate, the terminal device reduces the first CCA threshold by a second value.
[0121] 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 sending rate and the first sending rate.
[0122] In some embodiments of the present application, the second adjustment coefficient is a preset coefficient.
[0123] In some embodiments of the present application, the second 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.
[0124] It should be noted that the second adjustment coefficient can be set according to actual needs, and the embodiment of the present application does not limit this.
[0125] In some embodiments of the present application, the terminal device may, when the first transmission rate is less than the second transmission rate, calculate the difference between the second transmission rate and the first 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.
[0126] In some embodiments of the present application, combined with the calculation process of the first CCA threshold, the calculation formula of the adjusted CCA threshold is as follows:
[0127] CCA_threshold=RSSI-SNR-Margin-b*deltaTxRate
[0128] Among them, 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 the CCA threshold is modified to the first CCA threshold. If the rate is reduced, the CCA threshold must also be reduced. b is the deltaTxRate weight, which can be adjusted according to actual measurement results.
[0130] Exemplarily, taking the first CCA threshold as -76dBm and the second adjustment coefficient as 1 as an example, after the terminal device adjusts the CCA threshold to the first CCA threshold for idle channel assessment, the sending rate of data packets sent to the access point device before and after the CCA threshold adjustment can be compared. Assuming that the sending rate before the CCA threshold adjustment is 90Mbps, after the CCA threshold is adjusted to the first CCA threshold, the sending rate of data packets sent to the router at a certain moment is 86Mbps. The sending rate after adjusting the CCA threshold is 4Mbps lower than the sending rate before adjusting the CCA threshold, that is, the first difference is 4, then the product value of 4 and the first adjustment coefficient is calculated, that is, 4, and then the first CCA threshold is reduced by the 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 reduce the speed and retransmit 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 sending opportunities after using the first CCA threshold, and fails to send a data packet due to a collision, then the packet error rate increases and the sending rate decreases. Therefore, the CCA threshold can be appropriately lowered to avoid resource conflicts.
[0132] In an embodiment of the present application, the terminal device can obtain the change in the data packet sending rate before and after the CCA threshold is adjusted to the first CCA threshold. When the terminal device detects that the data packet sending rate has decreased, the CCA threshold can be appropriately lowered, so that the terminal device can more easily detect signals with signal strength greater than the CCA threshold, so as to appropriately reduce the number of times the terminal device determines that the channel is idle, thereby appropriately reducing the terminal's sending opportunities. In this way, resource conflicts can be avoided when sending data, thereby improving transmission performance.
[0133] In some embodiments of the present application, the above-mentioned communication indicator information includes a first data volume and a second data volume; illustratively, the above-mentioned step 204 can be implemented by the following step 204c.
[0134] Step 204c: When the first data amount is smaller than the second data amount, the terminal device reduces the first CCA threshold by 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, and the third difference is the difference between the second data amount and the first data amount.
[0136] In some embodiments of the present application, the third adjustment coefficient is a preset coefficient.
[0137] In some embodiments of the present application, the third 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.
[0138] It should be noted that the third adjustment coefficient can be set according to actual needs, and the embodiment of the present application does not limit this.
[0139] In some embodiments of the present application, the terminal device may calculate the difference between the first data amount and the second data amount when the first data amount is smaller than the second data amount, 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 the present application, combined with the calculation process of the first CCA threshold, the calculation formula of the adjusted CCA threshold is as follows:
[0141] CCA_threshold=RSSI-SNR-Margin-c*deltaRxTput
[0142] Among them, 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 amount and the first data amount.
[0143] It should be noted that ddeltaRxTput specifically refers to the change in the amount of received data before and after the CCA threshold is modified to the first CCA threshold. If the amount of received data increases, the CCA threshold should also be lowered. c is the deltaRxTput weight, which can be adjusted according to actual measurement results.
[0144] Exemplarily, taking the first CCA threshold as -76dBm and the third adjustment coefficient as 1 as an example, after the terminal device adjusts the CCA threshold to the first CCA threshold for idle channel assessment, the amount of data packets sent to the access point device within a period of time before and after the CCA threshold adjustment can be compared. Assuming that the amount of data received from the router within 2s before the CCA threshold adjustment is 5Mb, after the CCA threshold is adjusted to the first CCA threshold, the amount of data received from the router within 2s is 3Mb. The amount of received data after adjusting the CCA threshold is reduced by 2Mb compared to the amount of received data before adjusting the CCA threshold, that is, the second difference is 2, then the product value of 2 and the third adjustment coefficient is calculated, that is, 2, and then the first CCA threshold is reduced by the product value, that is, (-76)-2=-78dBm, that is, the first CCA threshold is adjusted from -76dBm to -78dBm.
[0145] It should be noted that when the CCA threshold is high, it is easier for the terminal device to determine that the channel is idle. Therefore, the more resource requests initiated, the more resources expected to be obtained from the Internet. If the amount of data received by the terminal decreases, it may be because the current CCA threshold is high, resulting in an increase in collisions.
[0146] In an embodiment of the present application, the terminal device can obtain the change in the amount of received data before and after the CCA threshold is adjusted to the first CCA threshold. When the terminal device detects that the amount of received data has decreased, the CCA threshold can be appropriately lowered, so that the terminal device can more easily detect signals with signal strength greater than the CCA threshold, so as to appropriately reduce the number of times the terminal device determines that the channel is idle, thereby appropriately reducing the terminal's sending opportunities. In this way, resource conflicts can be avoided when sending data, thereby improving transmission performance.
[0147] In some embodiments of the present application, when the communication indicator information includes a quantity ratio and a first transmission rate, the terminal device may adjust the first CCA threshold according to the quantity ratio and the first transmission rate.
[0148] Exemplarily, 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 may first subtract the first CCA threshold from the first value, and then subtract the result of the subtraction from the second value to adjust the first CCA threshold, and the calculation formula is as follows:
[0149] CCA_threshold=RSSI-SNR-Margin-a*BMissRatio-b*deltaTxRate
[0150] It should be noted that the explanation of each parameter in the calculation formula can be found in the description of the above embodiment and will not be repeated here.
[0151] In some embodiments of the present application, when the communication indicator information includes a quantity ratio, a first sending rate and a first data volume, the terminal device may adjust the first CCA threshold according to the quantity ratio, the first sending rate and the first data volume.
[0152] Exemplarily, when the quantity ratio is greater than or equal to the first threshold, the first transmission rate is less than the second transmission rate, and the first data volume is less than the second data volume, the terminal device may first subtract the first CCA threshold from the first value, then subtract the result of the subtraction from the second value, and then subtract the result of the subtraction from the third value to adjust the first CCA threshold, and the calculation formula is as follows:
[0153] CCA_threshold=RSSI-SNR-Margin-a*BMissRatio-b*deltaTxRate-c*deltaRxTput
[0154] It should be noted that the explanation of each parameter in the calculation formula can be found in the description of the above embodiment and will not be repeated here.
[0155] In an embodiment of the present application, 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.
[0156] In some embodiments of the present application, in combination with the above Figure 1 ,like Figure 3 As shown, after the above step 202, the wireless communication method provided in the embodiment of the present application further includes the following step 205 or step 206:
[0157] Step 205: When 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.
[0158] or,
[0159] Step 206: When the first CCA threshold is less than the minimum CCA threshold in the preset CCA threshold range, adjust the first CCA threshold to the minimum CCA threshold.
[0160] In some embodiments of the present application, the above-mentioned preset CCA threshold range includes multiple CCA thresholds, the minimum CCA threshold among the multiple CCA thresholds may be -82dBm, and the maximum CCA threshold among the multiple CCA thresholds may be -62dBm.
[0161] It should be noted that the minimum CCA threshold, that is, the lower limit of the preset CCA threshold range, can be expressed as CCA_Min. The maximum CCA threshold, that is, the upper limit of the preset CCA threshold range, can be expressed as CCA_Max. The above preset CCA threshold range can be expressed as CCA_Min<=CCA_thredhold<=CCA_Max.
[0162] In some embodiments of the present application, after determining the first CCA threshold, the terminal device may determine whether the first CCA threshold is within a preset CCA threshold range.
[0163] Exemplarily, taking the determined first CCA threshold as -85 as an example, since the first CCA threshold is less than CCA_Min, the first CCA threshold is adjusted to CCA_Min, that is, -82.
[0164] As another example, taking the determined first CCA threshold as -60 as an example, since the first CCA threshold is greater than CCA_Max, the first CCA threshold is adjusted to CCA_Max, that is, -62.
[0165] In an embodiment of the present application, by keeping the CCA threshold within a preset CCA threshold range, the terminal device can have a reasonable standard when evaluating whether the channel is idle. On the one hand, it is to avoid the threshold being too low, so that the terminal device misjudges a weak signal as a signal occupying the channel, resulting in unnecessary communication delays. On the other hand, it is to avoid the threshold being too high, so that the terminal device cannot detect the signal occupying the channel, and mistakenly determines that the channel is idle, resulting in resource conflicts. Therefore, the threshold is limited to a suitable range, so that the stability of communication can be ensured.
[0166] The above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or, under the premise that there is no contradiction, can also be executed in combination with each other. The specific implementation can be determined according to actual usage requirements, and the embodiments of the present application do not limit this.
[0167] The wireless communication method provided in the embodiment of the present application may be executed by a wireless communication device. In the embodiment of the present application, the wireless communication device provided in the embodiment of the present application is described by taking the wireless communication method executed by the wireless communication device as an example.
[0168] Figure 4 A schematic diagram of the structure of a wireless communication device provided in an embodiment of the present application, such as Figure 4As shown, 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 an 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 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.
[0169] In some embodiments of the present application, the determination module is specifically used to: determine the initial CCA threshold based on RSSI; calculate the first difference between the initial CCA threshold and the signal fluctuation parameter, and determine the first difference as the first CCA threshold; wherein the signal quality information includes at least one of RSSI and SNR. .
[0170] In some embodiments of the present application, the above-mentioned device also includes: an execution module; the above-mentioned acquisition module is also used to obtain communication indicator information after determining the first CCA threshold based on signal quality information and signal fluctuation parameters, and the communication indicator information characterizes the data transmission performance between the terminal device and the access point device; the above-mentioned execution module is used to adjust the first CCA threshold based on the communication indicator information obtained by the acquisition module.
[0171] In some embodiments of the present application, the communication indicator information includes at least one of the following:
[0172] A quantity ratio, where 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 has not successfully received 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;
[0173] A first sending rate, where the first sending rate is a sending rate at which a terminal device sends a data packet to an access point device;
[0174] A second sending rate, where the second sending rate is a sending 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;
[0175] A first data volume, where the first data volume is the data volume of the data packet received by the terminal device from the access point device within the second time period;
[0176] The second data volume is the amount of data packets received by the terminal device from the access point device within the second time period before the idle channel assessment is performed based on the first CCA threshold.
[0177] In some embodiments of the present application, the above-mentioned communication indicator information includes a quantity ratio; the above-mentioned execution module is specifically used to reduce the first CCA threshold by a first value by the terminal device when the quantity ratio is greater than or equal to the first threshold; wherein the first value is: the product of the first adjustment coefficient and the quantity ratio, and the first adjustment coefficient is a value greater than 0.
[0178] In some embodiments of the present application, the above-mentioned communication indicator information includes a first sending rate and a second inverse sending rate; the above-mentioned execution module is specifically used to reduce the first CCA threshold by a second value by the terminal device when the first sending rate is less than the second sending rate; 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, the second difference is the difference between the second sending rate and the first sending rate, and the second sending rate is the sending rate of sending data packets to the access point device before performing idle channel assessment based on the first CCA threshold.
[0179] In some embodiments of the present application, the above-mentioned communication indicator information includes a first data volume and a second data volume; the above-mentioned execution module is specifically used to reduce the first CCA threshold by a third value by the terminal device 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 value, the third adjustment coefficient is a value greater than or equal to 0, the third difference value 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 an idle channel assessment is performed based on the first CCA threshold.
[0180] In some embodiments of the present application, the above-mentioned device also includes: an update module; the above-mentioned update module is used to, after determining the first CCA threshold based on signal quality information and signal fluctuation parameters, when the first CCA threshold is greater than the maximum CCA threshold within a preset CCA threshold range, the terminal device adjusts the first CCA threshold to the maximum CCA threshold; or, the above-mentioned update module is used to adjust the first CCA threshold to the minimum CCA threshold when the first CCA threshold is less than the minimum CCA threshold within the preset CCA threshold range.
[0181] The wireless communication device provided in the embodiment of the present application obtains signal quality information of the wireless signal when receiving the wireless signal from the access point device, and determines a first CCA threshold based on the signal quality information and the signal fluctuation parameter, wherein the signal fluctuation parameter characterizes 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. Through this method, the wireless communication device can determine the CCA threshold based on the signal quality and signal fluctuation parameter of the effective signal between the terminal device and the access point device, so that the terminal device can determine the CCA threshold that is more suitable for the wireless network environment in which the terminal device is currently located according to the actual transmission index and the signal fluctuation of the wireless communication environment, so that the interference effect caused by invalid signals such as interference signals can be effectively reduced in a network environment with a high degree of density, thereby increasing the transmission opportunities of the terminal device and further improving the utilization rate of wireless resources.
[0182] The channel assessment device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0183] The channel assessment device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0184] The channel assessment device provided in the embodiment of the present application can achieve Figures 1 to 3 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0185] Alternatively, if Figure 5As shown, an embodiment of the present application also provides an electronic device 500, including a processor 501 and a memory 502, wherein the memory 502 stores a program or instruction that can be executed on the processor 501, and when the program or instruction is executed by the processor 501, the various steps of the above-mentioned channel assessment method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0186] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0187] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0188] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
[0189] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0190] Among them, the above-mentioned processor 110 is used to obtain signal quality information of the wireless signal when receiving a wireless signal from the access point device; the above-mentioned processor 110 is also used to determine the first idle channel assessment CCA threshold based on the signal quality information and signal fluctuation parameters obtained 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 in an idle state.
[0191] In some embodiments of the present application, the signal quality information includes signal strength RSSI; the processor 110 is specifically used to: determine an initial CCA threshold based on RSSI; calculate a first difference between the initial CCA threshold and a 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.
[0192] In some embodiments of the present application, the processor 110 is specifically used 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.
[0193] In some embodiments of the present application, the above-mentioned processor 110 is also used to obtain communication indicator information after determining the first CCA threshold based on signal quality information and signal fluctuation parameters, and the communication indicator information characterizes the data transmission performance between the terminal device and the access point device; the above-mentioned processor 110 is also used to adjust the first CCA threshold based on the communication indicator information obtained by the processor 110.
[0194] In some embodiments of the present application, the communication indicator information includes at least one of the following:
[0195] A quantity ratio, where 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 has not successfully received 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;
[0196] A first sending rate, where the first sending rate is a sending rate at which a terminal device sends a data packet to an access point device;
[0197] A second sending rate, where the second sending rate is a sending rate at which the terminal device sends a data packet to the access point device before performing an idle channel assessment based on the first CCA threshold;
[0198] A first data volume, where the first data volume is the data volume of the data packet received by the terminal device from the access point device within the second time period;
[0199] The second data volume is the data volume of the data packet received by the terminal device from the access point device within the second time length before the idle channel assessment is performed based on the first CCA threshold.
[0200] In some embodiments of the present application, the above-mentioned communication indicator information includes a quantity ratio; the above-mentioned processor 110 is specifically used to reduce the first CCA threshold by a first value by the terminal device when the quantity ratio is greater than or equal to the first threshold; wherein the first value is: the product of the first adjustment coefficient and the quantity ratio, and the first adjustment coefficient is a value greater than 0.
[0201] In some embodiments of the present application, the above-mentioned communication indicator information includes a first sending rate and a second sending rate; the above-mentioned processor 110 is specifically used to reduce the first CCA threshold by a second value by the terminal device when the first sending rate is less than the second sending rate; 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 sending rate and the first sending rate.
[0202] In some embodiments of the present application, the above-mentioned communication indicator information includes a first data volume and a second data volume; the above-mentioned processor 110 is specifically used to, when the first data volume is less than the second data volume, the terminal device reduces the first CCA threshold by a third value; wherein the third value is the 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 the difference between the second data volume and the first data volume.
[0203] In some embodiments of the present application, the above-mentioned processor 110 is also used to, after determining the first CCA threshold based on signal quality information and signal fluctuation parameters, when the first CCA threshold is greater than the maximum CCA threshold within a preset CCA threshold range, the terminal device adjusts the first CCA threshold to the maximum CCA threshold; or, the above-mentioned processor 110 is also used to, when 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.
[0204] The terminal device provided in the embodiment of the present application, when receiving a wireless signal from an access point device, obtains the signal quality information of the wireless signal, and determines the first CCA threshold based on the signal quality information and the signal fluctuation parameter, the signal fluctuation parameter characterizing 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. Through this method, the terminal device can determine the CCA threshold based on the signal quality and signal fluctuation parameter of the effective signal between the terminal device and the access point device, so that the terminal device can determine the CCA threshold that is more suitable for the wireless network environment in which the terminal device is currently located according to the actual transmission index and the signal fluctuation of the wireless communication environment, so that it can effectively reduce the interference effect caused by invalid signals such as interference signals in a network environment with a high degree of density, thereby increasing the transmission opportunities of the terminal device, and further improving the utilization rate of wireless resources.
[0205] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0206] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0207] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.
[0208] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned channel assessment method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0209] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0210] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned channel assessment method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0211] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0212] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned channel assessment method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0213] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0214] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0215] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A wireless communication method, characterized in that: The method comprises: When receiving a wireless signal from an access point device, the terminal device obtains signal quality information of the wireless signal; The terminal device determines a first idle channel assessment CCA threshold based on the signal quality information and the signal fluctuation parameter, the signal fluctuation parameter characterizes 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.
2. The method according to claim 1, characterized in that The terminal device determines a first CCA threshold based on the signal quality information and the signal fluctuation parameter, including: The terminal device determines an initial CCA threshold based on the signal quality information; The terminal device calculates a first difference between the initial CCA threshold and the signal fluctuation parameter, and determines the first difference as the first CCA threshold; The signal quality information includes at least one of a signal strength RSSI and a signal-to-noise ratio SNR.
3. The method according to claim 1 or 2, characterized in that: After the terminal device determines the first CCA threshold based on the signal quality information and the signal fluctuation parameter, the method further includes: The terminal device acquires communication indicator information, where the communication indicator information represents the data transmission performance between the terminal device and the access point device; The terminal device adjusts the first CCA threshold based on the communication indicator information.
4. The method according to claim 3, characterized in that The communication indicator information includes at least one of the following: A quantity ratio, where 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 has not successfully received within a 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; a first sending rate, where the first sending rate is a sending rate at which the terminal device sends data packets to the access point device; a second sending rate, where the second sending rate is a sending 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; A first data volume, where the first data volume is a data volume of data packets received by the terminal device from the access point device within a second time period; The second data volume is the amount of data packets received by the terminal device from the access point device within the second time period before the idle channel assessment is performed based on the first CCA threshold.
5. The method according to claim 4, characterized in that The communication indicator information includes the quantity ratio; and the terminal device adjusts the first CCA threshold based on the communication indicator information, including: When the quantity ratio is greater than or equal to a first threshold, the terminal device reduces the first CCA threshold by a first value; The first value is: the product of the first adjustment coefficient and the quantity ratio, and the first adjustment coefficient is a value greater than 0.
6. The method according to claim 4, characterized in that The communication indicator information includes the first transmission rate and the second transmission rate; and the terminal device adjusts the first CCA threshold based on the communication indicator information, including: When the first transmission rate is lower than the second transmission rate, the terminal device reduces the first CCA threshold by a second value; 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 sending rate and the first sending rate.
7. The method according to claim 4, characterized in that The communication indicator information includes the first data volume and the second data volume; and the terminal device adjusts the first CCA threshold based on the communication indicator information, including: When the first data amount is less than the second data amount, the terminal device reduces the first CCA threshold by a third value; The third value is the 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 the difference between the second data amount and the first data amount.
8. The method according to claim 1, characterized in that After the terminal device determines the first CCA threshold based on the signal quality information and the 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, When the first CCA threshold is less than a minimum CCA threshold within a preset CCA threshold range, the first CCA threshold is adjusted to the minimum CCA threshold.
9. A wireless communication device, characterized in that: The device comprises: an acquisition module and a determination module, wherein: The acquisition module is used to acquire signal quality information of the wireless signal when receiving the wireless signal from the access point device; The determination module is used to determine a first CCA threshold based on the signal quality information and signal fluctuation parameters obtained by the acquisition module, 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.
10. The device according to claim 9, characterized in that The determination module is specifically used for: Based on the signal quality information, determining an initial CCA threshold; Calculating a first difference between the initial CCA threshold and the signal fluctuation parameter, and determining the first difference as the first CCA threshold; The signal quality information includes at least one of RSSI and SNR.
11. The device according to claim 9 or 10, characterized in that The device further comprises: an execution module; The acquisition module is further configured to acquire communication indicator information after determining the first CCA threshold based on the signal quality information and the signal fluctuation parameter, wherein the communication indicator information represents the data transmission performance between the terminal device and the access point device; The execution module is used to adjust the first CCA threshold based on the communication indicator information acquired by the acquisition module.
12. The device according to claim 11, characterized in that The communication indicator information includes at least one of the following: A quantity ratio, where 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 has not successfully received within a 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; a first sending rate, where the first sending rate is a sending rate at which the terminal device sends data packets to the access point device; a second sending rate, where the second sending rate is a sending 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; A first data volume, where the first data volume is a data volume of data packets received by the terminal device from the access point device within a second time period; The second data volume is the amount of data packets received by the terminal device from the access point device within the second time period before the idle channel assessment is performed based on the first CCA threshold.
13. The device according to claim 12, characterized in that The communication indicator information includes the quantity ratio; The execution module is specifically configured to, when the quantity ratio is greater than or equal to a first threshold, reduce the first CCA threshold by a first value by the terminal device; The first value is: the product of the first adjustment coefficient and the quantity ratio, and the first adjustment coefficient is a value greater than 0.
14. The device according to claim 12, characterized in that The communication indicator information includes the first transmission rate and the second transmission rate; the execution module is specifically configured to reduce the first CCA threshold by a second value by the terminal device when the first transmission rate is less than the second transmission rate; 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 sending rate and the first sending rate.
15. The device according to claim 12, characterized in that The communication indicator information includes the first data volume and the second data volume; The execution module is specifically configured to, when the first data amount is less than the second data amount, reduce the first CCA threshold by a third value by the terminal device; The third value is the 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 the difference between the second data amount and the first data amount.
16. The device according to claim 9, characterized in that The device further comprises: an updating module; The updating module is configured to, after determining a first CCA threshold based on the signal quality information and the signal fluctuation parameter, adjust the first CCA threshold to the maximum CCA threshold by the terminal device if the first CCA threshold is greater than a maximum CCA threshold within a preset CCA threshold range; or, The updating module is used to adjust the first CCA threshold to the minimum CCA threshold when the first CCA threshold is less than the minimum CCA threshold within a preset CCA threshold range.
17. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the wireless communication method according to any one of claims 1 to 8 are implemented.
18. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the wireless communication method according to any one of claims 1 to 8 are implemented.
