CN113453307A - Communication device and method for dynamically adjusting packet detection threshold - Google Patents

Communication device and method for dynamically adjusting packet detection threshold Download PDF

Info

Publication number
CN113453307A
CN113453307A CN202010219954.7A CN202010219954A CN113453307A CN 113453307 A CN113453307 A CN 113453307A CN 202010219954 A CN202010219954 A CN 202010219954A CN 113453307 A CN113453307 A CN 113453307A
Authority
CN
China
Prior art keywords
threshold
packet
communication device
circuit
packet detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010219954.7A
Other languages
Chinese (zh)
Inventor
赖炜棋
张维轩
李慎中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Realtek Semiconductor Corp
Original Assignee
Realtek Semiconductor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Realtek Semiconductor Corp filed Critical Realtek Semiconductor Corp
Priority to CN202010219954.7A priority Critical patent/CN113453307A/en
Publication of CN113453307A publication Critical patent/CN113453307A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Abstract

The application relates to a communication device and a method for dynamically adjusting a packet detection threshold. A communication device, comprising: a packet detection circuit, a decoding circuit, and a threshold determination circuit. The packet detection circuit is used for executing packet detection according to at least one threshold value so as to judge whether a received signal contains a packet or not. The decoding circuit is used for decoding a packet to judge whether the packet is a predetermined packet or not when the packet detection circuit judges that the received signal comprises the packet. The threshold decision circuit is used for calculating a number of the predetermined packets received in a time interval and adjusting the threshold according to the number of the predetermined packets.

Description

Communication device and method for dynamically adjusting packet detection threshold
Technical Field
The present invention relates to a method for dynamically adjusting a packet detection threshold (packet) applied in a communication device, and more particularly, to a method for dynamically adjusting a packet detection threshold, which can effectively improve the sensitivity and accuracy of packet detection in a noisy environment.
Background
In a Wireless Local Area Network (WLAN), an Access Point (AP) broadcasts its Service Set Identifier (SSID) via a Beacon (Beacon) packet to notify devices (Station) in its coverage Area of the presence of the Access Point, so that after a device enters an Area, it can know whether there is an Access Point in the Area through scanning. In addition to the service set identifier, the beacon packet may also include information such as the transmission rate supported by the Access point, the Media Access Control (MAC) address of the Access point, etc., so that the device can thereby connect with the Access point.
Generally, the device can continuously detect signal energy using corresponding packet detection techniques and determine whether the received signal is a beacon packet transmitted by the access point. However, in a noisy environment, signals transmitted from different access points or devices may also affect the reception of beacon packets. For a device, when the reception performance of the beacon packet transmitted by a specific access point is poor or the device cannot receive the beacon packet transmitted by the specific access point, the device must perform a scanning operation to scan the energy in the environment, which may cause a reduction in the transmission throughput (throughput) of the device and even cause the device to disconnect from the specific access point.
Accordingly, there is a need for a method for dynamically adjusting a packet detection threshold, so that the sensitivity and accuracy of packet detection can be dynamically adjusted adaptively according to environmental conditions by dynamically adjusting the threshold used when performing packet detection. As such, the communication device can accurately detect the beacon packet even in a noise-laden environment.
Disclosure of Invention
An objective of the present invention is to provide a method for dynamically adjusting a packet detection threshold to solve the problem of poor receiving performance of a communication device in a noisy environment.
At least one embodiment of the present invention provides a communication apparatus including: a packet detection circuit, a decoding circuit, and a threshold determination circuit. The packet detection circuit is used for executing packet detection according to at least one threshold value so as to judge whether a received signal contains a packet or not. The decoding circuit is used for decoding a packet to judge whether the packet is a predetermined packet or not when the packet detection circuit judges that the received signal comprises the packet. The threshold decision circuit is used for calculating a number of the predetermined packets received in a time interval and adjusting the threshold according to the number of the predetermined packets.
Another embodiment of the present invention provides a method for dynamically adjusting at least one threshold used when packet detection is performed by a communication device, comprising: performing packet detection according to the threshold to determine whether a received signal contains a packet; when the received signal is judged to contain a packet, decoding the packet to judge whether the packet is a preset packet or not and obtain a judgment result; calculating a number of predetermined packets received by the communication device during the time interval according to the judgment result obtained during the time interval; and adjusting the threshold, wherein the threshold is adjusted according to the number of predetermined packets.
Drawings
Fig. 1 is a block diagram illustrating an exemplary communication device according to an embodiment of the invention.
Fig. 2 is a flowchart illustrating a method for dynamically adjusting a threshold for packet detection according to an embodiment of the invention.
Fig. 3 is a flowchart illustrating the adjustment/determination of the threshold according to the first embodiment of the present invention.
Fig. 4 is a flowchart illustrating the adjustment/determination of the threshold according to the second embodiment of the present invention.
Fig. 5 is a detailed flowchart showing the first-stage setting of the threshold according to the RSSI according to the second embodiment of the present invention.
Fig. 6 is a detailed flowchart showing the second-stage setting of the threshold value according to BCN _ Cnt according to the second embodiment of the present invention.
Detailed Description
Fig. 1 is a block diagram illustrating an exemplary communication device according to an embodiment of the invention. It is noted that fig. 1 is a simplified schematic diagram of a communication device, in which only the components relevant to the present invention are shown. Those skilled in the art will appreciate that a communication device may include many components not shown in fig. 1 to perform the functions of wireless communication and related signal processing.
The communication device 100 may include at least one antenna 110, an rf circuit 120, a packet detection circuit 130, an Automatic Gain Control (AGC) circuit 140, a decoding circuit 150, and a threshold determination circuit 160. The rf circuit 120 is used for transmitting or receiving a wireless rf signal through the antenna 110, and further processes the received rf signal and the rf signal to be transmitted. The packet detection circuit 130 is a detection circuit for performing packet detection according to at least one threshold to determine whether a received signal contains a packet. The packet detection circuit 130 may continuously perform packet detection on the received signal to continuously generate corresponding packet detection results. The automatic gain control circuit 140 is used to control the gain of an amplifier (not shown) in the RF circuit 120. For example, the agc circuit 140 may adjust the gain of the amplifier according to the packet detection result and/or a Signal Strength indicator (RSSI) generated by the packet detection circuit 130.
The decoding circuit 150 is used for further decoding a packet to determine the content of the packet and obtain a corresponding determination result when the packet detection circuit 130 determines that the received signal includes a packet. For example, the decoding circuit 150 can determine whether the packet is a predetermined packet, determine whether the packet is a packet transmitted to the communication device 100, and determine the content carried by the packet. The threshold determination circuit 160 is used for calculating or counting a number of predetermined packets received in a time interval according to the determination result obtained from the decoding circuit 150 in the time interval, and adjusting the threshold according to the number of the predetermined packets.
Fig. 2 is a flowchart illustrating a method for dynamically adjusting a threshold for packet detection according to an embodiment of the invention.
Step S202, receiving the signal by the rf circuit 120 through the antenna 110 and processing the received signal.
In step S204, the packet detection circuit 130 performs packet detection according to at least one threshold to determine whether a received signal contains a packet. According to an embodiment of the present invention, the packet detection circuit 130 may perform a cross correlation (cross correlation) operation on the received signal and a predetermined signal sequence (e.g., a Barker code) by using a matched filter (match filter) to obtain an operation result, and determine whether the operation result is greater than a cross correlation threshold. If yes, a first flag is set. In addition, the packet detection circuit 130 may further count the energy (or power) of the received signal within a period of two consecutive symbol (symbol) time lengths to obtain an energy statistical result, and determine whether the energy statistical result is greater than an energy threshold. If yes, set up a second flag. After the above operations are completed, the packet detection circuit 130 determines whether the first flag and the second flag are both set. If so, the packet detection circuit 130 determines that the received signal contains a packet (i.e., the packet detection circuit 130 detects a packet), and the flow proceeds to step S206. If not, the packet detection circuit 130 determines that the received signal does not contain a packet (i.e., the packet detection circuit 130 does not detect a packet), and the process returns to step S202. In another embodiment of the present invention, the packet detection circuit 130 determines whether the received signal comprises a packet by determining whether at least one of the first flag and the second flag is set.
In step S206, the decoding circuit 150 decodes the packet detected by the packet detection circuit 130 to determine whether the packet is a predetermined packet. If yes, the flow proceeds to step S208. If not, the flow returns to step S202. According to an embodiment of the present invention, the predetermined packet is a broadcast packet. According to another embodiment of the present invention, the predetermined packet is a packet periodically transmitted by a specific device (e.g., an ap currently connected to the communication device 100 or an ap to which the communication device 100 is connected). For example, the predetermined packet is a beacon (beacon) packet periodically transmitted by the specific device. The decoding circuit 150 may determine whether a beacon packet is transmitted by a particular device based on the header content of the packet.
In an embodiment of the present invention, the predetermined packet may be a packet (e.g., a beacon packet) modulated according to a Complementary Code Keying (CCK) modulation technique, a packet (e.g., a beacon packet) modulated according to an Orthogonal Frequency Division Multiplexing (OFDM) modulation technique, or a packet modulated according to other modulation techniques in compliance with Institute of Electrical and Electronics Engineers (IEEE) 802.11 specifications. It should be noted that the threshold used in packet detection may be adjusted or set according to the modulation technique adopted by the predetermined packet to be detected.
In step S208, the threshold decision circuit 160 calculates a number of predetermined packets received by the communication device 100 in a time interval according to the determination result in step S206. For example, the threshold determination circuit 160 may set an initial count value to 0 when a new counting time interval starts, and count the number of received predetermined packets by using the initial count value. The threshold determination circuit 160 may increment the count value by 1 each time the process proceeds to step S208.
In step S210, the threshold determination circuit 160 may determine whether the time interval has expired. For example, the statistical time interval for counting the number of predetermined packets may be set to 2 seconds. The threshold determination circuit 160 may determine whether the time interval has expired according to a system frequency. If yes, the process proceeds to step S212. If not, the flow returns to step S202.
In step S212, the threshold determination circuit 160 may adjust the at least one threshold according to the obtained count value (i.e., the number of received predetermined packets), provide the adjusted threshold to the packet detection circuit 130 for performing subsequent packet detection, and start a new statistical time interval before returning to step S202, and reset the count value. In an embodiment of the present invention, the threshold decision circuit 160 may adjust at least one of the aforementioned cross-correlation threshold and the aforementioned energy threshold according to the number of received predetermined packets. It should be noted that the cross-correlation threshold and the energy threshold are only one embodiment of the present invention, and the present invention is not limited thereto. In embodiments of the present invention, threshold decision circuit 160 may adjust any threshold used in performing packet detection based on the number of predetermined packets received.
Fig. 3 is a flowchart illustrating the adjustment/determination of the threshold according to the first embodiment of the present invention. In the first embodiment of the present invention, the threshold determination circuit 160 may adjust or set at least one threshold used when performing packet detection according to the number of received predetermined packets.
In step S302, the threshold determination circuit 160 counts the number of predetermined packets received within a time interval to obtain a statistical value BCN _ Cnt.
In step S304, the threshold decision circuit 160 determines whether the statistic BCN _ Cnt is smaller than the first statistic threshold THBCNLV 1. If yes, the process proceeds to step S306. If not, the process proceeds to step S308.
In step S306, the threshold determination circuit 160 sets at least one threshold PD _ TH used in packet detection to PD _ TH 1.
In step S308, the threshold determination circuit 160 determines whether the statistic BCN _ Cnt is between the first statistic threshold THBCNLV1 and the second statistic threshold THBCNLV 2. If yes, the process proceeds to step S310. If not, the process proceeds to step S312.
In step S310, the threshold determination circuit 160 sets at least one threshold PD _ TH used in packet detection to PD _ TH 2.
In step S312, the threshold determination circuit 160 determines whether the statistic BCN _ Cnt is between the second statistic threshold THBCNLV2 and the third statistic threshold THBCNLV 3. If yes, the process proceeds to step S314. If not, the process proceeds to step S316.
In step S314, the threshold determination circuit 160 sets at least one threshold PD _ TH used in packet detection to PD _ TH 3.
In step S316, the threshold decision circuit 160 determines whether the statistic BCN _ Cnt is between the third statistic threshold THBCNLV3 and the fourth statistic threshold THBCNLV 4. If yes, the process proceeds to step S318. If not, the process proceeds to step S320.
In step S318, the threshold determination circuit 160 sets at least one threshold PD _ TH used in packet detection to PD _ TH 4.
In step S320, the threshold determination circuit 160 sets at least one threshold PD _ TH used in packet detection to PD _ TH 5.
It should be noted that, although the threshold determination circuit 160 determines which of the five predetermined references PD _ TH1 to PD _ TH5 the packet detection threshold PD _ TH is to be set according to the four statistical thresholds THBCNLV1 to THBCNLV4 in the above-described embodiment, the invention is not limited thereto. In the embodiment of the present invention, the number of the statistical threshold and the predetermined reference can be flexibly selected or designed according to the system requirement. In addition, the values of the predetermined references PD _ TH 1-PD _ TH5 can also be flexibly selected or designed according to the system requirements.
According to an embodiment of the present invention, by repeatedly executing the process shown in fig. 3, the packet detection threshold PD _ TH is adjusted/set correspondingly with the change of the predetermined number statistic BCN _ Cnt of the packets. For example, when the number of the predetermined packets received by the communication device 100 is found to decrease, it represents that the current communication environment is difficult for the communication device 100 to detect/receive the predetermined packets, and therefore, the threshold determination circuit 160 may determine to decrease the packet detection threshold PD _ TH to increase the probability of detecting the predetermined packets. In contrast, when it is found that the number of predetermined packets received by the communication apparatus 100 increases, the threshold decision circuit 160 may decide to increase the packet detection threshold PD _ TH to improve the overall signal processing performance.
More specifically, according to an embodiment of the present invention, when the threshold decision circuit 160 determines that the number of predetermined packets received by the communication device 100 in the current statistical time interval is less than the number of predetermined packets received by the communication device 100 in another previous statistical time interval, the threshold decision circuit 160 may decide to decrease the packet detection threshold PD _ TH. When the threshold decision circuit 160 determines that the number of predetermined packets received by the communication device 100 in the current statistical time interval is greater than the number of predetermined packets received by the communication device 100 in another previous statistical time interval, the threshold decision circuit 160 may decide to increase the packet detection threshold PD _ TH.
Fig. 4 is a flowchart illustrating the adjustment/determination of the threshold according to the second embodiment of the present invention. In the second embodiment of the present invention, the threshold determination circuit 160 may further obtain a signal strength indicator (RSSI) of the received signal, and adjust or set at least one threshold used in performing packet detection according to the RSSI and the number of received predetermined packets (e.g., the number statistic BCN _ Cnt). In a second embodiment of the invention, the adjustment/setting of the threshold may be stepwise. For example, the threshold determination circuit 160 may perform a preliminary setting (coarse tuning) of the threshold according to the RSSI, and then perform a fine setting (fine tuning) of the threshold according to the number of received predetermined packets.
In step S402, the threshold determination circuit 160 counts the number of predetermined packets received within a time interval to obtain a statistical value BCN _ Cnt. The threshold determination circuit 160 also acquires the RSSI of the received signal. For example, the packet detection circuit 130 may calculate the RSSI of the received signal according to the aforementioned energy statistics, wherein the RSSI may be an average, a median, a maximum, a minimum, or a value obtained by calculating according to any one of the aforementioned or any measured energy value of the received signal within a time interval. The threshold determination circuit 160 may obtain information about the RSSI of the received signal from the packet detection circuit 130.
In step S404, the threshold determination circuit 160 performs a first stage of setting (rough adjustment) of the threshold according to the RSSI. For example, the threshold determination circuit 160 determines a first setting value according to the RSSI.
In step S406, the threshold determination circuit 160 performs a second stage of setting (fine adjustment) of the threshold value based on BCN _ Cnt. For example, the threshold determination circuit 160 determines a second setting value according to the statistical value BCN _ Cnt, and determines the threshold PD _ TH according to a sum of the first setting value and the second setting value.
In step S408, the threshold decision circuit 160 provides the adjusted threshold PD _ TH to the packet detection circuit 130 for performing the subsequent packet detection, and resets the packet number count value BCN _ Cnt in step S212 for counting the number of the received predetermined packets again in a new counting time interval.
Fig. 5 is a detailed flowchart showing the first stage setting (e.g., the aforementioned step S404) according to the RSSI according to the second embodiment of the present invention.
In step S502, the threshold decision circuit 160 determines whether the RSSI is less than the first RSSI threshold value thrssicv 1. If yes, the process proceeds to step S504. If not, the process proceeds to step S506.
In step S504, the threshold determination circuit 160 sets at least one threshold PD _ TH used in packet detection to PD _ TH 1.
In step S506, the threshold determination circuit 160 determines whether the RSSI is between the first RSSI threshold THRSSILV1 and the second RSSI threshold THRSSILV 2. If yes, the process proceeds to step S508. If not, the process proceeds to step S510.
In step S508, the threshold determination circuit 160 sets at least one threshold PD _ TH used in packet detection to PD _ TH 2.
In step S510, the threshold decision circuit 160 determines whether the RSSI is between the second RSSI threshold value thrsslv 2 and the third RSSI threshold value thrsslv 3. If yes, the process proceeds to step S512. If not, the process proceeds to step S514.
In step S512, the threshold determination circuit 160 sets at least one threshold PD _ TH used in packet detection to PD _ TH 3.
In step S514, the threshold decision circuit 160 determines whether the RSSI is between the third RSSI threshold THRSSILV3 and the fourth RSSI threshold THRSSILV 4. If yes, the process proceeds to step S516. If not, the process proceeds to step S518.
In step S516, the threshold determination circuit 160 sets at least one threshold PD _ TH used in packet detection to PD _ TH 4.
In step S518, the threshold determination circuit 160 sets at least one threshold PD _ TH used in packet detection to PD _ TH 5.
It is to be noted that, although in the above-described embodiment, the threshold determination circuit 160 determines which of the five predetermined references PD _ TH1 to PD _ TH5 the packet detection threshold PD _ TH is to be set according to the four RSSI thresholds thrsslv 1 to thrsslv 4, the present invention is not limited thereto. In the embodiment of the present invention, the RSSI threshold and the number of predetermined references can be flexibly selected or designed according to the system requirements. In addition, the values of the predetermined references PD _ TH 1-PD _ TH5 can also be flexibly selected or designed according to the system requirements.
Fig. 6 is a detailed flowchart showing the second-stage setting of the threshold value according to BCN _ Cnt according to the second embodiment of the present invention (e.g., the aforementioned step S406).
In step S602, the threshold decision circuit 160 determines whether the statistic BCN _ Cnt is smaller than the first statistic threshold THBCNLV 1. If yes, the process proceeds to step S604. If not, the process proceeds to step S606.
In step S604, the threshold determination circuit 160 sets the fine adjustment amount (Offset) of at least one threshold used for packet detection to Offset value _ 1.
In step S606, the threshold determination circuit 160 determines whether the statistic BCN _ Cnt is between the first statistic threshold THBCNLV1 and the second statistic threshold THBCNLV 2. If yes, the process proceeds to step S608. If not, the process proceeds to step S610.
In step S608, the threshold determination circuit 160 sets the fine adjustment amount of at least one threshold used in packet detection to Offset _ 2.
In step S610, the threshold determination circuit 160 determines whether the statistic BCN _ Cnt is between the second statistic threshold THBCNLV2 and the third statistic threshold THBCNLV 3. If yes, the process proceeds to step S612. If not, the process proceeds to step S614.
In step S612, the threshold determination circuit 160 sets the fine adjustment amount of at least one threshold used in packet detection to Offset _ 3.
In step S614, the threshold decision circuit 160 determines whether the statistic BCN _ Cnt is between the third statistic threshold THBCNLV3 and the fourth statistic threshold THBCNLV 4. If yes, the process proceeds to step S616. If not, the process proceeds to step S618.
In step S616, the threshold determination circuit 160 sets the fine adjustment amount of at least one threshold used in packet detection to Offset _ 4.
In step S618, the threshold determination circuit 160 sets the fine adjustment amount of at least one threshold used in packet detection to Offset _ 5.
In step S620, the threshold determination circuit 160 sets the threshold to PD _ TH + Offset based on the trimming amount (second set value) of the determined threshold and the first set value obtained in step S404.
It should be noted that although in the above-described embodiment, the threshold determination circuit 160 determines which of the five predetermined references value _1 to value _5 the fine adjustment amount of the packet detection threshold is to be set according to the four statistical thresholds THBCNLV1 to THBCNLV4, the present invention is not limited thereto. In the embodiment of the present invention, the number of the statistical threshold and the predetermined reference can be flexibly selected or designed according to the system requirement.
According to an embodiment of the present invention, by repeatedly executing the process shown in fig. 4, the packet detection threshold PD _ TH is adjusted/set according to the variation of RSSI and the predetermined packet statistics BCN _ Cnt. An adjustment step of the threshold determining circuit 160 according to the RSSI adjustment threshold may be larger than an adjustment step of the threshold according to the number statistic BCN _ Cnt of the predetermined packets. For example, the adjustment step distance of the first setting value in step S404 may be 1 (e.g., PD _ TH1 in fig. 5 is 5, PD _ TH2 is 6, and so on), and the adjustment step distance of the second setting value in step S406 may be 0.5 or 0.1 (e.g., value _1 in fig. 6 is 0.5, value _2 is 0.6, and so on).
Furthermore, according to an embodiment of the present invention, when the number of the predetermined packets received by the communication device 100 is found to be decreased, it represents that the communication environment is difficult for the communication device 100 to detect/receive the predetermined packets, and therefore, the threshold determination circuit 160 may determine to decrease the packet detection threshold PD _ TH by decreasing the fine-tuning amount (the second setting value) of the threshold, so as to increase the probability of detecting the predetermined packets. In contrast, when it is found that the number of predetermined packets received by the communication apparatus 100 increases, the threshold determination circuit 160 may determine to increase the packet detection threshold PD _ TH by increasing the fine adjustment amount (second setting value) of the threshold, so as to improve the overall signal processing performance.
More specifically, according to an embodiment of the present invention, when the threshold decision circuit 160 determines that the number of predetermined packets received by the communication device 100 in the current statistical time interval is less than the number of predetermined packets received by the communication device 100 in another previous statistical time interval, the threshold decision circuit 160 may decide to lower the packet detection threshold PD _ TH. When the threshold decision circuit 160 determines that the number of predetermined packets received by the communication device 100 in the current statistical time interval is greater than the number of predetermined packets received by the communication device 100 in another previous statistical time interval, the threshold decision circuit 160 may decide to increase the packet detection threshold PD _ TH.
Similarly, when the RSSI is found to be decreasing, the threshold determination circuit 160 may determine to decrease the packet detection threshold PD _ TH by decreasing the first setting of the threshold to increase the probability of detecting the predetermined packet. In contrast, when the RSSI is found to rise, the threshold determination circuit 160 may determine to raise the packet detection threshold PD _ TH by increasing the first setting value of the threshold, so as to improve the overall signal processing performance.
According to the third embodiment of the present invention, the threshold determining circuit 160 may further obtain a false alarm (false alarm) rate of packet detection, and adjust or set at least one threshold used in performing packet detection according to the false alarm rate and the number of received predetermined packets (e.g., the number statistic BCN _ Cnt). When the decoding circuit 150 decodes a packet and determines that the packet is not a packet transmitted to the communication device 100, an error alarm count value may be added, and the error alarm rate may be obtained according to the error alarm count value and a packet count value counted according to the number of packets detected by the packet detecting circuit 130.
In the third embodiment of the present invention, the adjustment/setting of the threshold value may also be stepwise. For example, the threshold determination circuit 160 may perform a preliminary setting (coarse tuning) of the threshold according to the false alarm rate as shown in fig. 4 and 5, and a fine setting (fine tuning) of the threshold according to the number of received predetermined packets as shown in fig. 4 and 6. The method of adjusting or setting at least one threshold used in performing packet detection according to the false alarm rate and the number of received predetermined packets in the third embodiment of the present invention is similar to the method of adjusting or setting at least one threshold used in performing packet detection according to the RSSI and the number of received predetermined packets in the second embodiment of the present invention, wherein a detailed flowchart of the adjustment/setting of the threshold described in the third embodiment of the present invention can be derived by only making corresponding modifications to the parameters (e.g., RSSI threshold, first setting value, etc.) used in fig. 4 and 5. Therefore, for the sake of brevity, further description is omitted here.
Similarly, according to an embodiment of the present invention, by repeatedly executing the process shown in fig. 4, the packet detection threshold PD _ TH is adjusted/set according to the variation of the false alarm rate and the predetermined packet statistics BCN _ Cnt. Wherein, an adjustment step of the threshold value adjustment by the threshold value determination circuit 160 according to the false alarm rate may be larger than an adjustment step of the threshold value adjustment according to the quantity statistics value BCN _ Cnt of the predetermined group.
Furthermore, according to an embodiment of the present invention, when the number of the predetermined packets received by the communication device 100 is found to be decreased, it represents that the communication environment is difficult for the communication device 100 to detect/receive the predetermined packets, and therefore, the threshold determination circuit 160 may determine to decrease the packet detection threshold PD _ TH by decreasing the fine-tuning amount (the second setting value) of the threshold, so as to increase the probability of detecting the predetermined packets. In contrast, when it is found that the number of predetermined packets received by the communication apparatus 100 increases, the threshold determination circuit 160 may determine to increase the packet detection threshold PD _ TH by increasing the fine adjustment amount (second setting value) of the threshold, so as to improve the overall signal processing performance.
For example, when the threshold decision circuit 160 determines that the number of predetermined packets received by the communication device 100 in the current statistical time interval is less than the number of predetermined packets received by the communication device 100 in another previous statistical time interval, the threshold decision circuit 160 may decide to lower the packet detection threshold PD _ TH. When the threshold decision circuit 160 determines that the number of predetermined packets received by the communication device 100 in the current statistical time interval is greater than the number of predetermined packets received by the communication device 100 in another previous statistical time interval, the threshold decision circuit 160 may decide to increase the packet detection threshold PD _ TH.
In summary, the present invention provides a method for dynamically adjusting a packet detection threshold, which dynamically adjusts at least one threshold used in performing packet detection according to one or more of RSSI, false alarm rate, and number of received predetermined packets, so that the sensitivity and accuracy of packet detection can be dynamically adjusted adaptively according to environmental conditions. As such, the communication device can accurately detect the beacon packet even in a noise-laden environment. It should be noted that the above-mentioned steps can be implemented by hardware, software or firmware according to the requirement of a designer.
The above description is only a preferred embodiment of the present invention, and all the equivalent changes and modifications made according to the claims of the present invention should be covered by the present invention.
[ notation ] to show
100 communication device
110 antenna
120 radio frequency circuit
130 packet detection circuit
140 automatic gain control circuit
150 decoding circuit
160 threshold value decision circuit

Claims (10)

1. A communication device, comprising:
a packet detection circuit for performing packet detection according to at least one threshold to determine whether a received signal contains a packet;
a decoding circuit for decoding a packet to determine whether the packet is a predetermined packet when the packet detection circuit determines that the received signal contains the packet; and
a threshold determination circuit to count a number of the predetermined packets received within a time interval and adjust the threshold based on the number of the predetermined packets.
2. The communication device of claim 1, wherein the threshold comprises at least one of a cross-correlation threshold and an energy threshold.
3. The communication device of claim 1, wherein the decoding circuit determines whether the packet is a packet transmitted to the communication device to calculate a false alarm rate; the threshold decision circuit also adjusts the threshold in accordance with the false alarm rate.
4. The communication device of claim 1, wherein the predetermined packet is a broadcast packet or a packet periodically transmitted by a specific device.
5. The communications device of claim 1, wherein the predetermined packet is a beacon packet transmitted by a particular device.
6. The communication device of claim 1, wherein the threshold determination circuit further obtains a signal strength indicator of the received signal, and further adjusts the threshold according to the signal strength indicator.
7. The communication device as claimed in claim 6, wherein the threshold determination circuit determines a first setting according to the RSSI, determines a second setting according to the number of the predetermined packets, and determines the threshold according to a sum of the first setting and the second setting.
8. A method of dynamically adjusting at least one threshold used when packet detection is performed by a communication device, the method comprising:
performing packet detection according to the threshold to determine whether a received signal contains a packet;
when the received signal is judged to contain a packet, decoding the packet to judge whether the packet is a preset packet or not and obtain a judgment result;
calculating a number of the predetermined packets received by the communication apparatus in a time interval according to the judgment result obtained in the time interval; and
adjusting the threshold according to the number of the predetermined packets.
9. The method of claim 8, further comprising:
obtaining a signal strength indicator of the received signal, wherein in the step of adjusting the threshold, the threshold is further adjusted according to the signal strength indicator.
10. The method of claim 9, wherein the step of adjusting the threshold further comprises:
determining a first set value according to the signal strength indicator;
determining a second set value according to the number of the predetermined groups; and
and determining the threshold value according to a sum of the first set value and the second set value.
CN202010219954.7A 2020-03-25 2020-03-25 Communication device and method for dynamically adjusting packet detection threshold Pending CN113453307A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010219954.7A CN113453307A (en) 2020-03-25 2020-03-25 Communication device and method for dynamically adjusting packet detection threshold

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010219954.7A CN113453307A (en) 2020-03-25 2020-03-25 Communication device and method for dynamically adjusting packet detection threshold

Publications (1)

Publication Number Publication Date
CN113453307A true CN113453307A (en) 2021-09-28

Family

ID=77806814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010219954.7A Pending CN113453307A (en) 2020-03-25 2020-03-25 Communication device and method for dynamically adjusting packet detection threshold

Country Status (1)

Country Link
CN (1) CN113453307A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060013180A1 (en) * 2004-07-19 2006-01-19 Ittiam Systems (P) Ltd. Frame detection method for 802.11b/g based WLAN systems
US20100110913A1 (en) * 2008-10-31 2010-05-06 Samsung Electro-Mechanics Co., Ltd. Interference detecting device and method for detecting interference for wireless communication
US20140119231A1 (en) * 2012-10-30 2014-05-01 Lai-chong CHAN Method and system for identifying matching packets
CN106471763A (en) * 2014-07-02 2017-03-01 瑞典爱立信有限公司 The method and apparatus realizing the self-adapting detecting to dispatch request
WO2017039894A1 (en) * 2015-08-28 2017-03-09 Qualcomm Incorporated Techniques for performing carrier sense adaptive transmission in unlicensed spectrum according to estimated carrier utilization
CN106664721A (en) * 2014-07-11 2017-05-10 索尼公司 Information processing device
CN106817759A (en) * 2015-12-01 2017-06-09 展讯通信(上海)有限公司 Reception gain control method and device under user equipment WIFI patterns
CN107926021A (en) * 2015-08-28 2018-04-17 索尼公司 Information processor and information processing method
CN108293178A (en) * 2015-09-28 2018-07-17 赫思曼自动化控制有限公司 System and method for automated wireless coupling
CN109963302A (en) * 2017-12-25 2019-07-02 富士通株式会社 Determine the method, apparatus and terminal device of the quantity of wireless network access points
CN110087255A (en) * 2019-04-22 2019-08-02 新华三技术有限公司 Information statistical method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060013180A1 (en) * 2004-07-19 2006-01-19 Ittiam Systems (P) Ltd. Frame detection method for 802.11b/g based WLAN systems
US20100110913A1 (en) * 2008-10-31 2010-05-06 Samsung Electro-Mechanics Co., Ltd. Interference detecting device and method for detecting interference for wireless communication
US20140119231A1 (en) * 2012-10-30 2014-05-01 Lai-chong CHAN Method and system for identifying matching packets
CN106471763A (en) * 2014-07-02 2017-03-01 瑞典爱立信有限公司 The method and apparatus realizing the self-adapting detecting to dispatch request
CN106664721A (en) * 2014-07-11 2017-05-10 索尼公司 Information processing device
WO2017039894A1 (en) * 2015-08-28 2017-03-09 Qualcomm Incorporated Techniques for performing carrier sense adaptive transmission in unlicensed spectrum according to estimated carrier utilization
CN107926021A (en) * 2015-08-28 2018-04-17 索尼公司 Information processor and information processing method
CN108293178A (en) * 2015-09-28 2018-07-17 赫思曼自动化控制有限公司 System and method for automated wireless coupling
CN106817759A (en) * 2015-12-01 2017-06-09 展讯通信(上海)有限公司 Reception gain control method and device under user equipment WIFI patterns
CN109963302A (en) * 2017-12-25 2019-07-02 富士通株式会社 Determine the method, apparatus and terminal device of the quantity of wireless network access points
CN110087255A (en) * 2019-04-22 2019-08-02 新华三技术有限公司 Information statistical method and device

Similar Documents

Publication Publication Date Title
RU2420923C2 (en) Method and device for distributed detection of spectrum for wireless communication
EP2389725B1 (en) Automatic gain control in a wireless communication network
KR100749029B1 (en) Mobile equipment based filtering for packet radio service applications
US8331462B2 (en) Method and apparatus for selective disregard of co-channel transmissions on a medium
US7379724B2 (en) Method and apparatus for classifying interference
US5574750A (en) Methods and apparatus for detecting a cellular digital packet data (CDPD) carrier
US7072632B2 (en) Fast signal detection process
KR101512414B1 (en) Adaptive rf saturation detection in a wireless device implementing multiple wireless protocols
JP2015154306A (en) Automatic gain controller, automatic gain control method, and receiver
US8213891B2 (en) Gain control apparatus and method in receiver of multiband OFDM system
US6996373B2 (en) Base station
CN113453307A (en) Communication device and method for dynamically adjusting packet detection threshold
TWI739349B (en) Communication apparatus and method for dynamically adjusting packet detection threshold
CN102369769B (en) Method and device for adjusting gain
US20040137859A1 (en) Automatic gain controlling device and method, and radio communication device
CN110392387B (en) Method and apparatus for angle measurement of wireless signals
CN112887235B (en) Interference detection method of received signal, terminal and storage device
CN111447655A (en) Method, device, equipment and medium for accessing terminal to network
US6356739B1 (en) Measurement method
US6611776B2 (en) Signal quality measurement
CN115499905A (en) Narrow-band Internet of things data transmission method based on corrected signal power judgment
JP4860569B2 (en) Wireless communication terminal and wireless communication method
Kikuzuki et al. Automatic standard classification method for the 2.4 GHz ISM band
CN104124986A (en) Wireless signal receiver and signal processing method thereof
KR100664066B1 (en) Method and apparatus which searches mobile position in TDD wireless network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination