CscMonitor -- Bluetooth Low Energy Application
The purpose of this application is to demonstrate how to use selected BlackBerry 10 Bluetooth Low Energy APIs in the context of a practical real-world use case. The Release History section gives details of those APIs which are covered and any changes as the sample evolves over time.
The use case examines how to interface to a Bluetooth Low Energy device that supports the Cycling Speed and Cadence Profile (overview available here) as defined by the Bluetooth SIG. This is the type of device that cyclists typically attach to their cycles to allow them to monitor information such as wheel and peddle revolutions and timings.
The sample code for this application is Open Source under the Apache 2.0 License.
- V1.0.0 - Initial release
- V1.0.1 - Updated FLOT to version 0.8.2. Trigger device scanning on start now performed in C++ instead of QML as this was blocking completion of QML loading/rendering at 10.2.1. Added ActivityIndicator to indicate scanning activity
- Minimal requirement for BlackBerry 10 Device Software is 10.0.9
- Minimal requirement for BlackBerry 10 Native SDK is 10.0.9
How to Build CscMonitor
Simply import the project into a workspace in your NDK. Of course you should review the project after it's been imported; for example, paying attention to the settings in the bar-descriptor.xml file.
What else will I need?
You will need a Bluetooth Smart (Low Energy) device that supports the standard Cycling Speed and Cadence Profile and pair it to the BlackBerry 10 device before using the application.
This application was tested successfully against the following device:
Our use of this device for testing shouldn't be regarded as an endorsement, explicit or implied, of it by BlackBerry.
But I don't want to build it myself!
If you don't want to build this sample application yourself we've included a pre-built and signed BAR file. You can find it in the folder "installable-bar-files" as follows:
- CscMonitor-1_0_0_31.bar -- Signed BAR file for Version 1.0 (V1.0) of the application (requires BlackBerry 10 Software 10.0.9 or later).
To contribute code to this repository you must be signed up as an official contributor.
- You should ensure that the Bluetooth LE device that you use has been paired with the BlackBerry 10 device before using the application. Dynamic pairing may be added in a later release of this application.
Please see the README of the Cascades-Community-Samples repository for instructions on how to add new Samples or make modifications to existing Samples.
Bug Reporting and Feature Requests
If you find a bug in a Sample, or have an enhancement request, simply file an Issue for the Sample and send a message (via github messages) to the Sample Author(s) to let them know that you have filed an Issue. If you have a solution to an issue you can contribute your fix and issue a Pull Request to have it reviewed and integrated into the main repo.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.