Skip to content

bso-d/NRF52840

Repository files navigation

NRF52840

Stuff related to nRF52840 This repo consists of stuff that I found related to nRF52840 The study material collected is based on the dongle being configured as a beacon.

NRF SDK 17: https://www.nordicsemi.com/Products/Development-software/nRF5-SDK/Download#infotabs

NRF Connect: https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-desktop

nRF Series: Developing on Windows with ARM Keil SDK: https://github.com/anikethj61/NRF52840/blob/main/getting_started_keil.pdf

Following are screenshots in order to elaborate how to test the working of nRF52840 as a beacon using the example code:

  1. Install NRF Connect software by nRF Semiconductors (Can be downloaded from the above)
  2. The software requires you to install applications to enable and test features of the dongle. Go ahead, make sure to install Bluetooth Low Enegy, RSSI Viewer and Programmer applications.

alttext

  1. Once done with installation, plug in the nRF52840 dongle. Open the Bluetooth Low Energy application. On the top left corner there is a device selection drop down menu. If no devices are selected it shows "No Devices Available" and if there is a compatible device detected by the USB ports it shows "Select Device". Select the device from the drop down menu and select YES to the prompt asking if the device needs to be programmed. (Note: In case of any errors or timeout in the log, retry the same process it should work.)

alttext

alttext

alttext

  1. Once the device is selected it will appear on the screen with details about the dongle, click on the settings icon to setup advertising data and initate advertising

alttext

  1. Press on start advertising

alttext

  1. Now open a beacon scanner on phone and scan for devices.

  2. To flash the program onto the dongle, open the programmer app and select the device from the drop down menu.

alttext

  1. To execute the beacon code, Go to the source folder where the NRF SDK has been installed {Path:Drive Name:.......\nRF5_SDK_17.1.0_ddde560\nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_beacon\hex}. In the SDK examples folder -> ble_peripheral -> ble_app_beacon -> hex folder are the saved hex files that can be added.

alttext

  1. Once uploading the hex file, write the code from the device menu on the right -> Wait for the code to be flashes and the device will function as a beacon as soon as powered.

  2. Issues Faced: The example code for ble_app_beacon provided in NRF SDK is designed to advertise a certain 128 bit UUID. The code doesnt provide any manipulation options for the developer to set his own set of data.

  3. Further debugging of code using nRF Connect has been challenging as the application throws a "DFU - Device Firmware Update" error which disconnects the device from nRF Connect application without actually halting the code execution

alttext

  1. After configuring the beacon using a nrfConnect a possible realisation of code can be done using KEiL or SEGGER Embedded Studio IDEs, however SEGGER Embedded Studio requires JLink to be connected. JLink is a USB Powered device that is used for microcontroller debugging built by SEGGER. It is a USB Powered JTAG Emulator.

NRF52840 as iBeacon Setup Refferred Tutorial: https://www.novelbits.io/ibeacon-nrf52/

NRF52840 Dongle Documentation, Getting Started: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_getting_started%2FUG%2Fgs%2Favail_protocols.html&cp=1_0_0

iBeacon is a BLE Advertising data format defined by Apple Inc.. It need not neccesarily require an apple device for its functioning for it merely being a advertising format

About

Stuff related to nRF52840

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published