nRF5 IoT SDK  v0.9.0
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Phone commissioner

The nRF BLE Joiner is the new Android-based IoT application geared to commission Bluetooth Smart based 6LoWPAN nodes to a desired cloud service. The mobile application has been designed to scan and filter the IPSP enabled BLE devices and configure them to connect to the local 6LoWPAN network using the SSID and Passphrase (this could be the same as the Wi-Fi network on the same router). In addition to configuring the BLE nodes, you can manually scan and configure the local Wi-Fi network that might be used in the nRF IoT Joiner application.

Having Wi-Fi access on the router is not mandatory - the Router daemon may be configured with a static SSID and Passphrase manually.

Getting started

  1. Download the nRF BLE Joiner application from either the Google Play Store or Nordic's GitHub page.


    joiner_app_1.png
    Figure 1: Main dashboard


  2. After installing and starting the application you will be prompted to enable Bluetooth permissions in order to start a Bluetooth scan. After enabling Bluetooth, the application will scan for nearby devices.
  3. Select the list of devices to find and configure your BLE device. You will have to preconfigure the credentials in order to join your device, as mentioned before. This can be done either by tapping on the options menu at the top right hand corner of the application or by continuing to configure the BLE device itself. You will be prompted to configure a Wi-Fi network at this point.


    joiner_app_2.png
    Figure 2: Wi-Fi configuration alert


  4. Tap Configure to navigate to a new screen where you can add a new Wi-Fi network. Tap on the button on the toolbar at the top of the screen. You will be prompted again to select a method to add a Wi-Fi network.


    joiner_app_3.png
    Figure 3: Wi-Fi configuration methods


    If you choose the Add manually option, you will have to enter the Wi-Fi SSID and the Passphrase in the fields provided on the screen below (see Figure 4). There is also an option where you can set the Wi-Fi network as default, so when configuring a BLE device you will not be prompted again to choose a Wi-Fi network in the case where there can be multiple Wi-Fi networks. The Wi-Fi networks can be edited by tapping Edit next to each Wi-Fi network on the Wi-Fi network list.


    joiner_app_4.png
    Figure 4: Adding Wi-Fi configuration


  5. Select Scan for Wi-Fi and the application will automatically do a scan for all nearby Wi-Fi networks and allow you to pick the desired Wi-Fi network and enter the relevant password for it.


joiner_app_5.png
Figure 5: Wi-Fi scanning



joiner_app_6.png
Figure 6: Password prompt


After completing these steps, you can go back by tapping the navigation button at the top of the screen or the back button on the phone to return to the BLE devices screen. You can now tap on a device and the application will connect to the device via Bluetooth Smart in order to configure the particular node. Now you will be prompted with three options:

  • Identify
  • Edit Configuration
  • Configure


joiner_app_7.png
Figure 7: Configuration alert


Identify

Select Identify to see which device your phone is connected to. You will see a blinking LED on the BLE device. This is useful if you have multiple BLE devices nearby.

Edit configuration

The Edit configuration checkbox displays some advanced configuration options supported by the application which you can edit. The application is preconfigured by default with preset values which allow a time frame for the BLE device to connect to the local router. This would be an action delay where the BLE node waits for a time frame (in seconds) before trying to connect to the local router with the information and a backup mode to which the device will fall back to in the case of failure to connect to the router. The presets and the time frames (in seconds) provided here are already preconfigured, but you can change them according to your requirements. There is also a field named Manufacture Specific Data where you can pass some information to the BLE node. After selecting Configure, this information is passed on to the node via BLE. Based on the configuration you provided, the device will try to connect to the local router in range.

Configure

Configure shown in Figure 8 sets the presets provided by default in the application, which is to connect to the local 6LoWPAN network.


joiner_app_8.png
Figure 8: Configuration window


Limitation

Currently a node that has been joined to a 6LoWPAN network does not communicate success or failure of the ongoing operation back to the phone.