|
SmartSnippets DA1459x SDK
|
This application is an implementation of the Bond Management Service, as defined by the Bluetooth Special Interest Group.
Features:
The project is located in the projects/dk_apps/ble_profiles/bms folder.
To install the project follow the General Installation and Debugging Procedure.
Default pin configuration may be changed in config/bms_config.h file.
Application can be readily used for executing PTS. It does not require any user intervention during testing.
First download (by QSPI) the code on the board. Then run serial communication terminal (could be as administrator). Connection settings: 115200 8n1. Now you can run bms_qspi. You should see a message "Start advertising...". During the tests basic information will be printed, like which function was called, how many devices are connected, if any device should be unpaired, which is the pass key to bond two devices, etc. That last one is very helpful when you have to pair two devices with each other. The pass key should be entered to the BMS client device in order to connect.
To test the project, you will need to run a suitable application (contact Renesas support for suggested applications). After running the application, it should automatically start scanning for devices. If not, press button "SCAN". Find the device named 'Renesas BMS demo' and press "CONNECT" button next to this device. If the connection is completed successfully on the communication terminal screen you should see information about this connection. If the device will want to pair and ask for pass key, enter the pass key printed in serial communication terminal.
On the application, you should see two characteristics: 'Bond Management Control Point' and 'Bond Management Feature'. The first is writable, and the following values can be written to it:
with or without authorization code. If you write an authorization code it should be displayed on communication terminal screen. If you write different values than 0x03, 0x06, 0x09, you should see no information on the screen because the function is not called.
When all values are writen to previous characteristic you should see the table of connected devices where the last column should show information about unpairing device during its disconnecion (0 - not unpair device, 1 - unpair device).
To unpair non-connected devices, press 'K1' button. If any device has been unpaired, you should see information about bond data on screen.
1.8.16