Wireless CCA setting method and device, storage medium and terminal equipment
By statistically analyzing and sorting the background energy signal, a probability map is generated to dynamically set the CCA threshold, which solves the problem of inaccurate CCA threshold setting in the prior art and realizes stable signal transmission and efficient data transmission in complex environments.
Patent Information
- Application Number
- CN202511777791.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-28
- Publication Date
- 2026-02-13
AI Technical Summary
Existing CCA setting methods are difficult to accurately set the CCA threshold in complex wireless interference environments, resulting in low signal transmission efficiency.
By averaging and sorting the received background energy signals within a preset time period, an energy value distribution probability map is generated. The CCA threshold is determined by combining the RSSI of the receiving device, and the CCA threshold is dynamically and adaptively set.
It improves the accuracy and flexibility of CCA threshold setting, ensures stable transmission of wireless signals in complex electromagnetic environments, and enhances transmission efficiency and throughput.
Smart Images

Figure CN121530504A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of wireless communication, and particularly relates to a wireless CCA setting method, device, storage medium and terminal equipment. BACKGROUND
[0002] CCA (Clear Channel Assessment) is a kind of clear channel detection technology for wireless communication, which detects the intensity of surrounding wireless signal interference in real time, automatically controls whether a sending operation should be performed, and thus improves signal stability and transmission efficiency.
[0003] An existing CCA setting method is to statistically obtain a general background noise by using various means, and then set a CCA threshold according to the obtained background noise. The existing CCA setting method can only set a relatively mild CCA threshold, and cannot guarantee that the device occupies an advantage in air transmission. However, the current wireless interference environment is increasingly complex, and the CCA setting method is difficult to meet the current demand.
[0004] In addition, another existing CCA setting method is to select multiple powers for judgment, and select a suitable power as a threshold. However, the method of using multiple powers for judgment cannot accurately estimate the background energy of the wireless environment in essence, and belongs to a second-best method. SUMMARY
[0005] The application provides a wireless CCA setting method, device, storage medium and terminal equipment, aiming to improve the accuracy and flexibility of CCA threshold setting. The application is implemented by the following technical solutions.
[0006] In a first aspect, the application provides a wireless CCA setting method, comprising:
[0007] S100, performing average calculation on the total energy of received background energy signals in a preset statistical time, in a preset unit time, to obtain a plurality of background energy signal energy values, and the unit time is much less than the statistical time;
[0008] S200, sorting the plurality of background energy signal energy values obtained in the statistical time to obtain a background energy value distribution probability graph;
[0009] S300, calculating the energy value of the current wireless dominant energy value and the energy value of the lowest background noise value according to the background wireless energy distribution probability graph, combining the RSSI of the receiving device to judge, and obtaining the CCA threshold to be set.
[0010] As a preferred technical solution, step S100 specifically comprises:
[0011] S110, receiving a wireless signal in an environment;
[0012] S120, judging whether the current received wireless signal is a background energy signal, if yes, entering step S130, otherwise judging that the current wireless signal is a non-background energy signal and returning to step S110;
[0013] S130, performing average calculation on the total energy of the background energy signal received in the current unit time to obtain a background energy signal energy value corresponding to the current unit time;
[0014] S140, judging whether the wireless signal receiving time reaches a preset statistical time, if yes, entering step S200, otherwise returning to step S110.
[0015] As a preferred technical solution, in step S120, it is judged whether the current received wireless signal can be parsed as valid data, if yes, it is judged that the current received wireless signal is a non-background energy signal, otherwise it is a background energy signal.
[0016] As a preferred technical solution, step S200 specifically includes: performing normal distribution sorting or effective arrival sorting on the plurality of background energy signal energy values obtained in the statistical time to obtain a background energy value distribution probability graph.
[0017] As a preferred technical solution, step S300 specifically includes:
[0018] S310, according to the background energy value distribution probability graph, obtaining an energy value a of the current wireless dominant and an energy value b of the lowest background noise, a>b;
[0019] S320, judging whether the energy value a is greater than the RSSI value of the receiving device, if yes, entering step S330, otherwise setting the energy value c equal to the energy value a and entering step S340;
[0020] S330, judging whether the energy value b is greater than the RSSI value of the receiving device, if yes, setting the energy value c equal to the RSSI value of the receiving device and entering step S340, otherwise setting the energy value c equal to the energy value b and entering step S340;
[0021] S340, setting the CCA threshold value as the energy value c.
[0022] As a preferred technical solution, in step S310, in the background energy value distribution probability graph, the energy value located above 80% is selected as the energy value a, and the energy value located in the 50% area is selected as the energy value b.
[0023] In a second aspect, the present application further provides a wireless CCA setting device, comprising:
[0024] The energy value statistical module: in a preset statistical time, the total energy of the received background energy signal is averaged in a preset unit time to obtain a plurality of background energy signal energy values, and the unit time << statistical time;
[0025] The probability graph generation module: the plurality of background energy signal energy values obtained in the statistical time are sorted to obtain a background energy value distribution probability graph;
[0026] The CCA threshold acquisition module: according to the background wireless energy distribution probability graph, the energy value of the current wireless dominant energy value and the energy value of the lowest background noise value are calculated, combined with the RSSI of the receiving device to judge, and the CCA threshold to be set is obtained.
[0027] As a preferred technical solution, the energy value statistical module specifically comprises:
[0028] The wireless signal receiving unit receives the wireless signal in the environment;
[0029] The background energy judgment unit judges whether the current received wireless signal is a background energy signal;
[0030] The energy value acquisition unit averages the total energy of the received background energy signal in the current unit time to obtain the background energy signal energy value corresponding to the current unit time;
[0031] The timing and statistical unit judges whether the wireless signal receiving time reaches the preset statistical time, if yes, the background energy signal energy value obtained by the energy value acquisition unit is counted, otherwise the wireless signal receiving unit is controlled to continue receiving the wireless signal;
[0032] The CCA threshold acquisition module specifically comprises:
[0033] The reference energy value acquisition unit acquires the current wireless dominant energy value a and the energy value b as the lowest background noise according to the background energy value distribution probability graph, a > b;
[0034] The first comparison and assignment unit judges whether the energy value a is greater than the RSSI value of the receiving device, if yes, the second comparison and assignment unit is triggered, otherwise the energy value c is set to be equal to the energy value a and the threshold setting unit is triggered;
[0035] The second comparison and assignment unit judges whether the energy value b is greater than the RSSI value of the receiving device, if yes, the energy value c is set to be equal to the RSSI value of the receiving device and the threshold setting unit is triggered, otherwise the energy value c is set to be equal to the energy value b and the threshold setting unit is triggered;
[0036] A threshold setting unit sets the CCA threshold to an energy value c.
[0037] In a third aspect, the present application provides a computer storage medium storing a plurality of instructions, which are suitable for being loaded by a processor and performing the steps of the wireless CCA setting method.
[0038] In a fourth aspect, the present application provides a terminal device, comprising: a processor and a computer storage medium; wherein the computer storage medium stores a computer program, which is suitable for being loaded by the processor and performing the steps of the wireless CCA setting method.
[0039] The technical scheme of the present application has the following beneficial effects: the method of background energy statistics is used to obtain the energy distribution of the current wireless environment, and then according to the current use requirement (such as the requirement of ensuring the transmission efficiency), the CCA threshold is set to an energy threshold in a high position in the current wireless environment energy distribution, that is, the CCA threshold is dynamically and adaptively set according to the whole wireless environment energy distribution rule, so as to ensure the efficiency of wireless signal transmission. BRIEF DESCRIPTION OF DRAWINGS
[0040] In order to more clearly illustrate the technical scheme in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.
[0041] Figure 1 Fig. 1 is a main flow chart of the wireless CCA setting method provided by the embodiments of the present application.
[0042] Figure 2 Fig. 2 is a detailed control flow chart of the wireless CCA setting method provided by the embodiments of the present application.
[0043] Figure 3 Fig. 3 is a structure block diagram of the wireless CCA setting device provided by the embodiments of the present application.
[0044] Figure 4 Fig. 4 is a structure schematic diagram of a terminal device provided by the present application. DETAILED DESCRIPTION
[0045] In order to make the technical solutions of the present application clearer and the technical advantages more obvious, the technical solutions of the present application will be described clearly and completely in combination with specific embodiments. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work belong to the scope disclosed by the present application.
[0046] The specific embodiments of the present application will be further described in combination with the accompanying drawings. In order to facilitate the description, the directions in the present application are defined in combination with the accompanying drawings. The definitions of these directions are only for facilitating the description of the relative position relationship, and are not used to limit the actual directions of the products or devices in the production, use, sale and other processes. In addition, the terms "first" and "second" are only for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Furthermore, in the embodiments of the present application, unless otherwise explicitly specified and limited, the terms "mounting", "setting", "connecting", "fixing" and the like should be understood in a broad sense. For example, it can be fixed connection, or detachable connection, or integrated; it can be directly connected, or indirectly connected through an intermediate medium. For those skilled in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.
[0047] Reference is made to Figure 1 As a basic embodiment, the present embodiment provides a wireless CCA setting method, which comprises:
[0048] S100, in a preset statistical time, the energy sum of the received background energy signals is averaged in a preset unit time to obtain a plurality of background energy signal energy values, and the unit time is much less than the statistical time; for example, the statistical time is set to 2 seconds, and the unit time is set to 8 microseconds;
[0049] S200, the plurality of background energy signal energy values obtained in the statistical time are sorted to obtain a background energy value distribution probability graph;
[0050] S300, according to the background wireless energy distribution probability graph, the energy value of the current wireless dominant energy value and the energy value of the lowest background noise value are calculated, combined with the RSSI (received signal strength indication) of the receiving device to judge the CCA threshold to be set.
[0051] The key point of the above technical solution is to obtain the energy distribution of the background energy signal in the environment within a certain time. As long as the distribution of the environmental background energy is accurately obtained, the CCA threshold can be dynamically updated. The prior art can only estimate the background noise or determine the CCA threshold through several specific power points. Here, the background energy signal refers to a wireless signal that does not contain valid data. In contrast, the valid wireless signal contains valid data that can be analyzed.
[0052] In combination Figure 2 As a specific embodiment, step S100 specifically includes:
[0053] S110, receiving a wireless signal in an environment;
[0054] S120, determining whether the currently received wireless signal is a background energy signal. If yes, go to step S130; otherwise, determine that the current wireless signal is a non-background energy signal and return to step S110;
[0055] S130, performing average calculation on the total energy of the background energy signal received in the current unit time to obtain the background energy signal energy value corresponding to the current unit time;
[0056] S140, determining whether the wireless signal reception time reaches a preset statistical time. If yes, go to step S200; otherwise, return to step S110.
[0057] In step S120, it is determined whether the currently received wireless signal can be parsed as valid data. If yes, the currently received wireless signal is determined to be a non-background energy signal; otherwise, it is a background energy signal.
[0058] In addition, as a feasible embodiment, step S200 specifically includes: performing normal distribution sorting or effective arrival sorting on the plurality of background energy signal energy values obtained in the statistical time to obtain a background energy value distribution probability graph.
[0059] Continuing to refer to Figure 2 As a specific embodiment, step S300 specifically includes:
[0060] S310, obtaining the energy value a of the current wireless dominant and the energy value b of the lowest background noise according to the background energy value distribution probability graph, a > b;
[0061] S320, determining whether the energy value a is greater than the RSSI value of the receiving device. If yes, go to step S330; otherwise, set the energy value c equal to the energy value a and go to step S340;
[0062] S330, judging whether the energy value b is greater than the RSSI value of the receiving device, if yes, setting the energy value c equal to the RSSI value of the receiving device and entering step S340, otherwise setting the energy value c equal to the energy value b and entering step S340;
[0063] S340, setting the CCA threshold value as the energy value c.
[0064] As a preferred embodiment, in step S310, the energy value a is selected as the energy value located above 80% in the background energy value distribution probability graph, preferably the energy value a is selected from the energy values located in the interval of 80%-90%; in addition, the energy value b is selected as the energy value located in the 50% interval.
[0065] In combination with Figure 3 the specific embodiment of the present application further provides a wireless CCA setting device, comprising:
[0066] an energy value statistical module: performing average calculation on the total energy of the received background energy signal in a preset unit time as a unit in a preset statistical time, obtaining a plurality of background energy signal energy values, and unit time << statistical time;
[0067] a probability graph generation module: sorting the plurality of background energy signal energy values obtained in the statistical time, obtaining a background energy value distribution probability graph;
[0068] a CCA threshold value acquisition module: calculating the current energy value of the wireless dominant and the energy value of the lowest background noise value according to the background wireless energy distribution probability graph, combining the RSSI of the receiving device for judgment, and obtaining the CCA threshold value to be set.
[0069] Continuing to refer to Figure 3 , the energy value statistical module specifically comprises:
[0070] a wireless signal receiving unit: receiving wireless signals in the environment;
[0071] a background energy judging unit: judging whether the currently received wireless signal is a background energy signal;
[0072] an energy value acquisition unit: performing average calculation on the total energy of the received background energy signal in the current unit time, obtaining the background energy signal energy value corresponding to the current unit time;
[0073] a timing and statistical unit: judging whether the wireless signal receiving time reaches the preset statistical time, if yes, statistically processing the background energy signal energy values obtained by the energy value acquisition unit, otherwise controlling the wireless signal receiving unit to continue receiving wireless signals.
[0074] Continuing to refer to Figure 3 The CCA threshold obtaining module specifically comprises:
[0075] A reference energy value obtaining unit obtains an energy value a of the current wireless dominant and an energy value b of the lowest background noise according to the background energy value distribution probability graph, and a>b;
[0076] A first comparison and assignment unit judges whether the energy value a is greater than the RSSI value of the receiving device, and if yes, triggers a second comparison and assignment unit, and if not, sets the energy value c equal to the energy value a and triggers a threshold setting unit;
[0077] The second comparison and assignment unit judges whether the energy value b is greater than the RSSI value of the receiving device, and if yes, sets the energy value c equal to the RSSI value of the receiving device and triggers the threshold setting unit, and if not, sets the energy value c equal to the energy value b and triggers the threshold setting unit;
[0078] The threshold setting unit sets the CCA threshold as the energy value c.
[0079] Please refer to Figure 4 A terminal device and a storage medium are provided for the embodiments of the present application. As shown in Figure 4 The terminal device 500 can include at least one processor 501, at least one network interface 504, a user interface 503, a storage medium 505, and at least one communication bus 502.
[0080] The processor 501 can include one or more processing cores. The processor 501 connects various parts within the terminal device 500 through various interfaces and lines, and performs various functions of the terminal device 500 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the storage medium 505, and calling data stored in the storage medium 505. Optionally, the processor 501 can be implemented in at least one of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 501 can be integrated with a combination of one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU is mainly used to process operating systems, user interfaces, and application programs; the GPU is used to render and draw the content to be displayed on the display screen; and the modem is used to process wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 501, but can be realized by a separate chip.
[0081] The storage medium 505 can include a random access memory (RAM) and a read-only memory (ROM). Optionally, the storage medium 505 includes a non-transitory computer-readable storage medium. The storage medium 505 can be used to store instructions, programs, codes, code sets or instruction sets. The storage medium 505 can include a storage program area and a storage data area. The storage program area can store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The storage data area can store data involved in the above-mentioned various method embodiments, etc. The storage medium 505 can also be at least one storage device located away from the above-mentioned processor 501. As shown in the figure, the storage medium 505 as a computer storage medium can include an operating system, a network communication module, a user interface module, and an application program. Figure 4 As shown in the figure, the storage medium 505 as a computer storage medium can include an operating system, a network communication module, a user interface module, and an application program.
[0082] In Figure 4In the terminal device 500 shown, the user interface 503 is mainly used to provide an interface for the user to input, and obtain data input by the user; and the processor 501 can be used to call an application stored in the storage medium 505, and specifically execute the steps of the wireless CCA setting method provided in the above embodiments, which will not be described herein again.
[0083] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by a computer program instructing related hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the steps of the wireless CCA setting method provided in the above embodiments. The storage medium can be a magnetic disc, an optical disc, a read-only memory, a random access memory, or the like.
[0084] The technical solutions of the present application have the following beneficial effects: using the background energy statistical method, the energy distribution of the current wireless environment is obtained, and then according to the current use requirement (such as the need to ensure the transmission efficiency), the CCA threshold value is set to an energy threshold in a high position in the current wireless environment energy distribution, that is, the CCA threshold value is set according to the whole wireless environment energy distribution rule, which can ensure smooth data transmission in a complex electromagnetic environment. Specifically, when the RSSI of the receiving device is large, the CCA threshold value set by the present application can ensure normal transmission under strong interference and ensure wireless throughput; when the RSSI of the receiving device is small, the CCA threshold value set by the present application can ensure that the device signal is not treated as background noise, and the data transmission is still maintained.
[0085] The above only discloses the preferred embodiments of the present application, and of course cannot limit the scope of the rights of the present application, so the equivalent changes made according to the claims of the present application still fall within the scope of the present application.
Claims
1. A wireless CCA setting method, characterized in that, include: S100. Within a preset statistical time period, the total energy of the received background energy signals is averaged using a preset unit time as the unit to obtain energy values containing multiple background energy signals, where the unit time is less than or equal to the statistical time. S200: Sort the energy values of multiple background energy signals obtained within the statistical time period to obtain a background energy value distribution probability map; S300. Based on the background wireless energy distribution probability map, calculate the current dominant wireless energy value and the energy value of the lowest background noise value, and make a judgment in conjunction with the RSSI of the receiving device to obtain the CCA threshold to be set.
2. The wireless CCA setting method according to claim 1, characterized in that, Step S100 specifically includes: S110, Receives wireless signals from the environment; S120. Determine whether the currently received wireless signal is a background energy signal. If yes, proceed to step S130; otherwise, determine that the current wireless signal is a non-background energy signal and return to step S110. S130. Calculate the average energy of the background energy signal received in the current unit time to obtain the background energy signal energy value corresponding to the current unit time. S140. Determine whether the wireless signal reception time has reached the preset statistical time. If yes, proceed to step S200; otherwise, return to step S110.
3. The wireless CCA setting method according to claim 2, characterized in that, In step S120, it is determined whether the currently received wireless signal can be parsed into valid data. If yes, the currently received wireless signal is determined to be a non-background energy signal; otherwise, it is a background energy signal.
4. The wireless CCA setting method according to claim 1, characterized in that, Step S200 specifically includes: sorting the energy values of multiple background energy signals obtained within the statistical time period according to normal distribution or effective arrival order to obtain a probability distribution map of background energy values.
5. The wireless CCA setting method according to claim 1, characterized in that, Step S300 specifically includes: S310. Based on the background energy value distribution probability map, obtain the current wireless dominant energy value a and the energy value b as the lowest background noise, where a > b; S320. Determine whether the energy value a is greater than the RSSI value of the receiving device. If yes, proceed to step S330; otherwise, set the energy value c to be equal to the energy value a and proceed to step S340. S330. Determine whether the energy value b is greater than the RSSI value of the receiving device. If yes, set the energy value c to be equal to the RSSI value of the receiving device and proceed to step S340. Otherwise, set the energy value c to be equal to the energy value b and proceed to step S340. S340. Set the CCA threshold to the energy value c.
6. The wireless CCA setting method according to claim 5, characterized in that, In step S310, in the background energy value distribution probability map, energy values with energy values above 80% are selected as energy value a, and energy values with energy values in the 50% range are selected as energy value b.
7. A wireless CCA setting device, characterized in that, include: Energy value statistics module: Within a preset statistical time period, the total energy of the received background energy signals is averaged using a preset unit time to obtain energy values containing multiple background energy signals, where the unit time is less than or equal to the statistical time. Probability map generation module: Sorts the energy values of multiple background energy signals obtained within the statistical time period to obtain a probability map of background energy value distribution; CCA threshold acquisition module: Based on the background wireless energy distribution probability map, calculate the current dominant wireless energy value and the energy value of the lowest background noise value, and make a judgment in conjunction with the RSSI of the receiving device to obtain the CCA threshold to be set.
8. The wireless CCA setting device according to claim 7, characterized in that, The energy value statistics module specifically includes: a wireless signal receiving unit, which receives wireless signals in the environment; Background energy determination unit determines whether the currently received wireless signal is a background energy signal; The energy value acquisition unit calculates the average energy of the background energy signal received in the current unit time to obtain the background energy signal energy value corresponding to the current unit time. The timing and statistics unit determines whether the wireless signal reception time has reached the preset statistics time. If so, it counts the background energy signal energy value obtained by the energy value acquisition unit; otherwise, it controls the wireless signal receiving unit to continue receiving wireless signals. The CCA threshold acquisition module specifically includes: The reference energy value acquisition unit acquires the current wireless dominant energy value a and the energy value b, which is the lowest background noise, based on the background energy value distribution probability map, where a > b; The first comparison and assignment unit determines whether the energy value a is greater than the RSSI value of the receiving device. If so, the second comparison and assignment unit is triggered; otherwise, the energy value c is set to be equal to the energy value a and the threshold setting unit is triggered. The second comparison and assignment unit determines whether the energy value b is greater than the RSSI value of the receiving device. If it is, the energy value c is set to be equal to the RSSI value of the receiving device and the threshold setting unit is triggered. Otherwise, the energy value c is set to be equal to the energy value b and the threshold setting unit is triggered. The threshold setting unit sets the CCA threshold to the energy value c.
9. A storage medium, characterized in that, The computer storage medium stores a plurality of instructions adapted for loading by a processor and executing the steps of the wireless CCA setting method as described in any one of claims 1-6.
10. A terminal device, characterized in that, include: A processor and a storage medium; wherein the storage medium stores a computer program adapted to be loaded by the processor and to execute the steps of the wireless CCA setting method as described in any one of claims 1-6.