Abstract
This chapter presents Bluetooth Low Energy (BLE) applications in MATLAB. Through these applications we acquire measurement data from BLE compatible sensors to PC. The sensors are CC2541 Keyfob and CC2650 Sensor Tag. The first one contains an accelerometer and a temperature sensor while the second one contains more sensors, but inertial sensors and magnetometer are invoked. The PC should be equipped with a general USB BLE adapter. The most important steps for implementing a BLE application are presented: scanning, connecting, configuring and data reading. Following this, more detailed applications are presented: a wireless sensor network for temperature measurement with three Keyfob-based nodes, an application that displays in real time accelerometer data and a heading computed method using either the gyroscope or the magnetometer of CC2650 Sensor Tag. The most important MATLAB elements that are used to implement these applications are different types of variables such as structure, table and object, methods to implement endless loops and real-time display of acquired data and using quaternions to handle 3D orientation of a device.
Reference18 articles.
1. Katsikis V, editor. MATLAB. A fundamental tool for scientific computing and engineering applications. Volume1. IntechOpen; 2012. DOI: 10.5772/2557, Volume 2. IntechOpen; 2012. DOI: 10.5772/3338, Volume 3 IntechOpen; 2012. DOI: 10.5772/3339
2. Mohamad Omar Al Kalaa, Refai H. Bluetooth Standard v4.1: Simulation the Bluetooth Low Energy Data Channel Selection Algorithm. In: Proceedings of Globecom 2014 Workshop – Telecommunication Standards – From Research to Standards. P. 729-733
3. Afaneh M. Bluetooth5 & Bluetooth Low Energy. A Developer’s Guide, e-book, 2018. Available from: https://www.novelbits.io/bluetooth-5-developers-e-book/ [Accessed: 2020-12-02]
4. Bluetooth. Available from https://www.bluetooth.com/ [Accessed: 2020-12-02]
5. Wu Taiyang, Redoute J.M, Yuce M. A wireless Implantable Sensor Design with Subcutaneous Energy Harvesting for Long-Term IoT Healthcare Applications. In IEEE Access, vol. 6, 2018, p.35801-35808