===== Pairing phone and sensor to perform updates ===== Before being able to perform a [[public:sensor_dfu_procedure|DFU]] you need create a bond between your sensor and your smartphone. You can do it from within the Lab App (not for versions below and including 0.2.18), directly in the Android [[#pairing_with_system_settings|system settings]] or use the [[#pairing_with_nrf_connect|nRF Connect App]]. Unpairing is also described below. ==== Requirements ==== * Bluetooth is enabled on smartphone * (optionally) nRF Connect App * [[https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp|Android]] ---- ==== Pairing with system settings (Android) ==== **Please note** that this will work slightly different depending on your phone manufacturer and your operating system version. Open your system settings and go to Bluetooth and activate your sensor. {{:public:android_10_bluetooth_1.png?250|}} {{:public:android_10_bluetooth_2.png?250|}} On some operating systems you will already see the scanned devices in this menu. If not, you may have to navigate into a submenu. If you find you sensor, simply tap on it to initate the pairing notification where you enter **111111** and confirm with OK. {{:public:android_10_bluetooth_3.png?250|}} {{:public:android_10_bluetooth_4.png?250|}} ==== Unpairing with system settings ==== **Please note** that this will look different depending on your phone manufacturer and your operating system version. To delete an existing bond between your phone and a sensor, open your system settings and go to Bluetooth. Tap on your device and then unpair. {{:public:android_10_bluetooth_5.png?250|}} {{:public:android_10_bluetooth_6.png?250|}} ---- ==== Pairing with nRF Connect (Android) ==== Begin by opening the nRF Connect App on your smartphone. {{ :public:home_start.png?300 }} Make sure you're on the scanner tab and then click on scan in the upper right corner. \\ \\ {{ :public:home_start_scan_hl.png?300 }} You should now see all Bluetooth devices in range. It can be cumbersome to sort through all of the devices when all you want to do is connect to one specific device so there are filters available. The simplest way to find your device is to set an RSSI filter. To do this, click on the filter button. {{ :public:home_start_no_filter_hl.png?300 }} Now drag the RSSI value to something lower than -100 dBm. Somewhere between -50 and -60 is usually fine if your phone is very close to the sensor. {{ :public:rssi_filter_hl.png?300 }} When you go back to your scan results, you should hopefully only see a couple devices listed. {{ :public:scan_with_filter.png?300 }} From there, connect to your device with the connect button. You will now see a list of all of the services the device supports. {{ :public:connected_unknown_service.png?300 }} From here, click on the dropdown menu in the upper right corner and then select **Bond.** {{ :public:connected_three_dots_hl.png?300 }} You should now receive a notification to enter a passkey to complete the bonding procedure. **Note:** You may get the notification in your navigation bar if a popup doesn't appear (pull down the menu from the top). Enter "**111111**" as the passkey. {{ :public:pin_input.png?300 }} If performed correctly, you should now see the device is bonded. This means that this smartphone and this sensor from now on know each other. {{ :public:connected_bonded.png?300 }} Now, please disconnect from the sensor by either clicking on the **Disconnect** button in the upper right corner or by completely closing the app. Merely backing out of the app may keep the Bluetooth connection alive in the background and this will prevent the cosinuss° LabApp from establishing a connection. {{ :public:connected_disconnect_button.png?300 }} After diconnecting from the nRF Connect App please follow these steps for the actual DFU update: [[public:sensor_dfu_procedure#starting_the_device_firmware_update|DFU]] ==== Unpairing with nRF Connect ==== To unpair, ... - move to the tab "Bonded" - press the three little dots of next to the connect button - press "Delete bond information" {{ :public:nrf_unpair.png?400 |}} **Note** that this may sometimes not always work. If the process fails, you have to do it from the [[#unpairing_with_system_settings|system settings]].