Overview of BLE Rate Adaptive Algorithm Based on RSSI Threshold

Sun Zhongjie

Nanjing Silan Microelectronics Technology Co., Ltd.Jiangsu Nanjing 210042

AbstractIn recent yearshow to reasonably use multiple rates for communication in BLE has received wide attention but most studies focus on performance optimization at a single communication rate which has a certain impact on the throughput of BLE device systemsTo address these issues a RSSI threshold-based BLE rate adaptive algorithm is proposedCompared to traditional BLE single-rate communication this algorithm can adaptively select the optimal rate for communication under different RSSI thresholds thereby improving system throughput at the same time, under the communication rate of 2 Mb/s the algorithm can minimize transmission power thus reducing system power consumptionThis paper also uses the nRF52840 chip for algorithm verification and from the measured results the algorithm can maintain a throughput of 318 Kb/s at 40 dBm

KeywordsRSSI Threshold Rate Adaptation Signal Strength Threshold Bluetooth Low Energy Throughput Communication Rate

Classification NumberTN391.4 Document Identification CodeA

Article Number2095-1302202209-0057-03

0 Introduction

In recent decades with the explosive growth of internet applications there are more and more emerging miniaturized internet devicesThese miniaturized internet devices most of which have functions such as cloud communication voice recognition and self-organizing networks further improve the quality of life [1]The Internet of Things applications require various communication technologies among which Bluetooth Low EnergyBluetooth Low Energy, BLE as an important short-range radio technology plays an indispensable role in the Internet of Things [2]

BLE is an energy-saving low-power low-cost and relatively simple short-range radio technology originally designed for lightweight short-range data exchangeBLE is applicable in various application fields thus achieving widespread adoptionIn 2006 BLE was first introduced by Nokia and was added to the Bluetooth 4.0 core specification in 2010 [3]Since then, multiple versions have been standardized and the overall performance of BLE has been optimized in the upgrades of versionsThe Bluetooth Special Interest GroupSIG released the BLE 5.0 version in 2016 and the BLE 5.3 version in 2021 to meet the multifunctional needs of the upcoming wave of Internet of Things applicationsThe BLE 5.0 Bluetooth specification does not only provide a data rate of 1 Mb/s as in previous versionsBluetooth specification 4.2 but also adds three rate options2 Mb/s500 Kb/s and 125 Kb/s[4]Among them, the latter two combined with physical layer coding although sacrificing data communication throughput improve communication reliabilityIn addition the BLE 5.0 Bluetooth specification also increases the maximum transmission power from 10 dBm to 20 dBmIn practical applications due to the more choices of communication rate and transmission power in BLE 5.0 adaptive control of these two parameters can be performed which can further improve the overall performance of the system without sacrificing communication quality while reducing system power consumption

However currently there is little research on rate adaptive control algorithms for BLE 5.0Badihi et al. [5] studied the transmission efficiency of multiple rates in BLE 5.0 in actual office environments including performance such as communication throughput and power consumptionBocker et al. [6] demonstrated the applicability of BLE 5.0 in complex communication scenarios from aspects such as frequency hopping algorithmsKarvonen et al. [7] obtained performance evaluation data for BLE 5.0 and BLE 4.0 through physical testing with the nRF52840 chipPau et al. [8] proposed an optimization scheme based on fuzzy logic using fuzzy logic controllers to change transmission power to manage power consumption in BLE 5.0Sheikh et al. [9] focused on analyzing the trade-offs between different PHY mode rates in BLE 5.0 and their impact on power consumption and throughputThe above studies focus on demonstrating the new outstanding performance of BLE 5.0 but do not conduct extensive optimization research on its new featuresEspecially in the case where BLE 5.0 has more choices for data rates there is little research on how to utilize rate and power for adaptive control

This paper proposes a RSSI threshold-based BLE rate adaptive algorithm which dynamically selects the transmission power and rate of BLE based on the RSSI threshold adaptively selecting the optimal rate for communication thereby improving system throughputAt the same time, power control is used in high throughput areas to reduce the power consumption of BLE

1 RSSI Threshold-Based BLE Rate Adaptive Algorithm

In the BLE 4.0 protocol the transmission rate of devices is constant at 1 Mb/sIn the BLE 5.0 protocol the transmission rate of devices has become four types1 Mb/s2 Mb/s500 Kb/s125 Kb/s

According to Shannon’s theorem

Overview of BLE Rate Adaptive Algorithm Based on RSSI Threshold

WhereC is the channel capacityB is the channel bandwidthSNR is the signal-to-noise ratio

Due to some newly added low rates500 Kb/s125 Kb/s being lower than the original 1 Mb/s rate according to Shannon’s theorem the transmission power of the original devices will be lower than that of the low-rate devices

In the BLE 5.0 Bluetooth specification the basic method of rate switching is proposed which is to switch rates through the PHY Update ProcedureThe basic switching process is shown in Figure 1 after two devices enter the connection state one of the devices initiates the PHY Update Procedure process first sending the LL_PHY_REQ packet to inform the other party of the desired communication rate for switching the receiving party replies with the LL_PHY_RSP packet to inform whether it supports the communication rate finally, the rate switching is completed through the LL_PHY_UPDATE_IND allowing both devices to smoothly switch to the new communication rate

Overview of BLE Rate Adaptive Algorithm Based on RSSI Threshold

The PHY Update Procedure can complete the switching of multiple rates but before switching, it must be ensured that both devices can support the communication rate to be switched toIn different environments for example, when the distances between the two devices are different this process can be dynamically used for rate switching ensuring that both parties have the optimal communication throughput

In the BLE 5.0 Bluetooth specification the basic method of power control is also proposed which is to control power through the Power Control Request ProcedureThe process is shown in Figure 2 which involves the interaction of LL_POWER_CONTROL_REQ and LL_POWER_CONTROL_RSP allowing both devices to minimize transmission power while ensuring communication quality

Overview of BLE Rate Adaptive Algorithm Based on RSSI Threshold

Based on the above two processes this paper proposes a RSSI threshold-based BLE rate adaptive algorithm the specific process is shown in Figure 3The algorithm first obtains the RSSI value of the other device in the connection state and then selects the rate based on the set RSSI threshold valueIf the current RSSI value is below the RSSI_500K threshold then select the transmission rate of 125 Kb/s if the current RSSI value is between the RSSI_500K threshold and the RSSI_1M threshold then select the transmission rate of 500 Kb/s if the current RSSI value is between the RSSI_1M threshold and the RSSI_2M threshold then select the transmission rate of 1 Mb/s if the current RSSI value is above the RSSI_2M threshold then select the transmission rate of 2 Mb/s while performing power control between devicesIt is important to note that each rate selection should maintain the current rate for a period of time to ensure that the RSSI value does not change during this periodThis rate adaptive algorithm can ensure that the communication throughput between connected devices is maximized as the RSSI value changes

Overview of BLE Rate Adaptive Algorithm Based on RSSI Threshold

This algorithm is based on the selection of the RSSI_2M threshold adding a power control algorithm that is, when the devices are close to each other the communication throughput between the devices is basically approaching the limitAt this time, the transmission power of the devices can be appropriately reduced as long as the throughput limit can be maintainedBy reducing the transmission power of the devices it is possible to lower the power consumption of the devices while also reducing interference to surrounding devices

2 Testing and Analysis

2.1 Testing Parameters

This paper selects the nRF52840 chip as the experimental chip which complies with the BLE 5.0 standard and can perform multiple processes such as PHY Update Procedure [10]Table 1 shows the basic parameter configuration of the nRF52840 during the experiment

Overview of BLE Rate Adaptive Algorithm Based on RSSI Threshold

2.2 Testing Results

Figure 4 reflects the relationship between the transmission power and power consumption of the nRF52840 chip at different ratesAt the same transmission power when communicating at a rate of 2 Mb/s it has the lowest power consumption while communicating at a rate of 125 Kb/s it has the highest power consumptionAt the same time, under fixed transmission rates the greater the transmission power the more energy consumed

Overview of BLE Rate Adaptive Algorithm Based on RSSI Threshold

Figure 5 shows the relationship between the RSSI value and throughput under traditional single-rate communicationIt can be seen from the figure that when the RSSI is greater than 83 dBm the throughput of 2 Mb/s is optimal when the RSSI is between 8390 dBm the throughput of 1 Mb/s is optimal when the RSSI is between 9098 dBm the throughput of 500 Kb/s is optimal when the RSSI is less than 98 dBm the throughput of 125 Kb/s is optimalAt the same time when the RSSI is greater than 55 dBm the throughput of the device changes little even if the RSSI increases it will not significantly increase the throughput of the device

Overview of BLE Rate Adaptive Algorithm Based on RSSI Threshold

According to Figure 5 this paper selects the RSSI_2M value as 83 dBm the RSSI_1M value as 90 dBm the RSSI_500K value as 98 dBm and the RSSI_2M_POWER value as 55 dBm

Figure 6 shows the relationship between RSSI and throughput tested on the nRF52840 chip using this algorithmFrom the figure, it can be seen that when the RSSI value is below the RSSI_500K threshold then select the transmission rate of 125 Kb/s if the current RSSI value is between the RSSI_500K threshold and the RSSI_1M threshold then select the transmission rate of 500 Kb/s if the current RSSI value is between the RSSI_1M threshold and the RSSI_2M threshold then select the transmission rate of 1 Mb/s if the current RSSI value is above the RSSI_2M threshold then select the transmission rate of 2 Mb/s while performing power control between devicesThe power control threshold is 55 dBm at this time, the devices adjust their transmission power as long as they can maintain the throughput limitIt can also be seen from the figure that the maximum throughput can reach 318 Kb/s

Overview of BLE Rate Adaptive Algorithm Based on RSSI Threshold

From the testing data, it can be concluded that the rate adaptive algorithm proposed in this paper can dynamically select the optimal rate for communication as the RSSI changes to ensure that the communication throughput is maximized

3 Conclusion

This paper proposes a RSSI threshold-based BLE rate adaptive algorithm on the basis of traditional single-rate communication dynamically selecting the transmission power and rate of BLE through the RSSI threshold adaptively choosing the optimal rate for communication thereby improving system throughputAt the same time, power control is used in high throughput areas which can reduce the power consumption of BLE and through actual testing with the nRF52840 chip it can be seen from the testing data that the algorithm can achieve the expected effect maintaining a throughput of 318 Kb/s at 40 dBm

References

[1] AL-FUQAHA AGUIZANI MMOHAMMADI Met al. Internet of Things a survey on enabling technologiesprotocolsand applications [J]. IEEE communications surveys & tutorials2015174):2347-2376.

[2] Li YingchuanWang JunjiYao Weiet al. Research on security mechanisms of low-power Bluetooth technology [J]. Internet of Things Technology2020109):51-53.

[3] XU Jinguo . Research and implementation of the core technology protocol of Bluetooth 4.0 [D]. Shanghai: Shanghai Jiao Tong University2013.

[4] Wang Wei . Characteristics of Bluetooth 5.1 standard and testing schemes [J]. Information Communication Technology and Policy2019455):98-99.

[5] BADIHI BGHAVIMI FJANTTI R. On the system-level performance evaluation of Bluetooth 5 in IoT open office case study[C]// Proceedings of 16th International Symposium on Wireless Communication SystemsISWCS 2019. OuluFinlandIEEE2019.

[6] BOCKER SARENDT CWIETFELD C. On the suitability of Bluetooth 5 for the Internet of Things performance and scalability analysis [C]// Proceedings of 2017 IEEE 28th Annual International Symposium on PersonalIndoorand Mobile Radio CommunicationsPIMRC. MontrealQCCanada :IEEE2018.

[7] KARVONEN HPOMALAZA-RÁEZ CMIKHAYLOV K. Experimental performance evaluation of BLE 4 vs BLE 5 in indoors and outdoors scenarios [C]// Proceedings of International Conference on Body Area Networks. DalianACM2017.

[8] PAU GCOLLOTTA MMANISCALCO V. Bluetooth 5 energy management through a Fuzzy-PSO solution for mobile devices of Internet of Things [J]. Energies2017107):1-22.

[9] SHEIKH M UBADIHI BRUTTIK K. Adaptive physical layer selection for Bluetooth 5measurements and simulations [J]. Wireless communications and mobile computing202120211-10.

[10] Dong Heng . Design of display controller for Bluetooth 5.0 chip nRF52840 [J]. Microcontroller and Embedded System Applications2020204):79-82.

Leave a Comment