This is the source code for the Simplicity Connect mobile application.
Silicon Labs Simplicity Connect is a generic BLE mobile app for testing and debugging Bluetooth® Low Energy applications. With Simplicity Connect, you can quickly troubleshoot your BLE embedded application code, Over-the-Air (OTA) firmware update, data throughput, and interoperability with Android and iOS mobiles, among the many other features. You can use the Simplicity Connect app with all Silicon Labs Bluetooth development kits, Systems on Chip (SoC), and modules.
Simplicity Connect radically saves the time you will use for testing and debugging! With Simplicity Connect, you can quickly see what’s wrong with your code and how to fix and optimize it. Simplicity Connect is the first BLE mobile app allowing you to test data throughput and mobile interoperability with a single tap on the app.
Using Simplicity Connect BLE mobile app is easy. It runs on your mobile devices such as a smartphone or tablet. It utilizes the Bluetooth adapter on the mobile to scan, connect and interact with nearby BLE hardware.
After connecting the Simplicity Connect app and BLE hardware (e.g., a dev kit), the Blinky test on the app shows a green light indicating when your setup is ready to go. The app includes simple demos to teach you how to get started with Simplicity Connect and all Silicon Labs development tools.
The Browser, Advertiser, and Logging features help you to find and fix bugs quickly and test throughput and mobile interoperability simply, with a tap of a button. With our Simplicity Studio’s Network Analyzer tool (free of charge), you can view the packet trace data and dive into the details.
Simplicity Connect includes many demos to test sample apps in the Silicon Labs GSDK quickly. Here are demo examples:
Simplicity Connect helps developers create and troubleshoot Bluetooth applications running on Silicon Labs’ BLE hardware. Here’s a rundown of some example functionalities.
Bluetooth Browser - A powerful tool to explore the BLE devices around you. Key features include:
Bluetooth Advertiser – Create and enable multiple parallel advertisement sets:
Bluetooth GATT Configurator – Create and manipulate multiple GATT databases
Bluetooth Interoperability Test – Verify interoperability between the BLE hardware and your mobile device
Clone the project repository
Open the project directory in Android Studio
Wait for Gradle sync to finish
In the Build Variants tool window, select the desired variant: release (blueGeckoRelease
) or debug (blueGeckoDebug
)
Build the project with Build > Build Project
and run it on a connected mobile device with Run > Run 'mobile'
or Run > Debug 'mobile'
You can also build an APK installation package with Build > Build Bundle(s) / APK(s) > Build APK(s)...
- the APK will be built, and a link to its location on the disk displayed in a notification in Studio.
The main application code lies in the <project_directory>\mobile\src\main\java\com\siliconlabs\bledemo
directory.
The main application screen's code can be found there in the home_screen
directory, while the application features (scanner, IOP test, advertiser/server configuration, all the demos)
are separated into corresponding directories in the the features
directory.
The application architecture mostly follows the MVVM (Model-View-Viewmodel) pattern, and the feature/demo directories contain their own views, model and viewmodels.
Handling the Bluetooth operations is covered mainly by the code in the bluetooth
directory, most importantly the BluetoothService
class.
GATT service/characteristic/descriptor definitions are contained in <project_directory>\mobile\src\main\java\assets
.
The app can be found on the Google PlayStore and Apple App Store.
Learn more about Simplicity Connect BLE mobile app.
For more information on Silicon Labs product portfolio please visit www.silabs.com.
Copyright 2021 Silicon Laboratories
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.