MPLAB Harmony Bluetooth Help
|
If you are new to Bluetooth, this section provides definitions of basic concepts found in most discussions of Bluetooth.
Bluetooth is a wireless technology standard for exchanging data over relatively short distances, operating between frequencies 2.400 and 2.4835 GHz, using a radio technology called frequency-hopping spread spectrum. Bluetooth sends data in packets on one of 79 channels, each with a bandwidth of 1 MHz.
Bluetooth Low Energy (BLE) is aimed at very low power applications powered by a coin cell and uses 2 MHz spacing, which allows for 40 channels. It has a latency time of only 6 ms, compared to 100 ms for classic Bluetooth. However BLE does not support voice.
Classic Bluetooth and BLE can be implemented in the same device and operational at the same time.
Bluetooth exists in numerous products such as telephones, speakers, tablets, media players, robotics systems, laptops, and console gaming equipment as well as headsets, modems, hearing aids and watches. BLE applications include mobile phones, gaming, smart homes, wearables, automotive, PCs, security, proximity, health care, sports and fitness.
The range of Bluetooth devices is based on their class:
Ranges of Bluetooth devices by class
Class |
Max. permitted power (mW) |
Typical range (m) |
1 |
100 |
~100 |
2 |
2.5 |
~10 |
3 |
1 |
~1 |
4 |
0.5 |
~0.5 |
Most Bluetooth applications are for indoor conditions, where attenuation of walls and signal fading due to signal reflections make the range far lower than the specified line-of-sight ranges of some Bluetooth products.
Any classic Bluetooth device in discoverable mode transmits the following information on demand:
During pairing, the two devices establish a relationship by creating a shared secret known as a link key. Pairing requires both devices to support the same profile.
Bluetooth devices must be able to interpret certain Bluetooth profiles, which define possible applications and specify general behaviors that they will use to communicate with other Bluetooth devices. Som eof the profiles relevant to Harmony applications are:
BLE devices are detected through a procedure based on broadcasting advertising packets. This is done using 3 separate channels in order to reduce interference.
All Bluetooth Low Energy devices use the Generic Attribute Profile (GATT). GATT has the following terminology:
A large number of low energy application profiles is based on GATT, including:
In addition, some Bluetooth modules support a “Transparent Data Service” for basic communication, where data in any structured format can be communicated. This is used in the BM64_ble_comm demonstration in this distribution.
MPLAB Harmony Bluetooth Help
|