bluetooth2 2.0.0.0
|
Bluetooth 2 Click features WT41u, a long range class 1, Bluetooth® 2.1 + EDR module. WT41u is a highly integrated and sophisticated Bluetooth® module, containing all the necessary elements from Bluetooth® radio and a fully implemented protocol stack. Therefore WT41u provides an ideal solution for developers who want to integrate Bluetooth® wireless technology into their design with limited knowledge of Bluetooth® and RF technologies. WT41u optimized for long range applications is available with an integrated chip antenna. By default, the WT41u module is equipped with powerful and easy-to-use iWRAP firmware which enables users to access Bluetooth® functionality with simple ASCII commands delivered to the module over serial interface - it's just like a Bluetooth® modem.
We provide a library for the Bluetooth2 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for Bluetooth2 Click driver.
bluetooth2_cfg_setup
Config Object Initialization function. bluetooth2_init
Initialization function. bluetooth2_default_cfg
Click Default Configuration function. bluetooth2_factory_reset
This function factory resets the device. bluetooth2_set_device_name
This function sets the local device name. bluetooth2_generic_write
This function writes a desired number of data bytes by using UART serial interface. This example reads and processes data from Bluetooth2 clicks.
The demo application is composed of two sections :
Initializes the driver, then performs a factory reset, removes all pairings, and sets the local device name.
Logs all the received messages/responses on the USB UART, and if there's any device connected to the click board the module sends a desired message every 5 seconds back to it.
We have used the Serial Bluetooth Terminal smartphone application for the test. A smartphone and the click board must be paired in order to exchange messages with each other.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.