Giter VIP home page Giter VIP logo

nrf52-ble-lr-demo's Introduction

Long range demo kit

This application is a demo kit that can be used to easily test the Bluetooth 5 long range feature with the nRF52840.

Requirements

  • 2x nRF52840-DK (with battery, if it is not connected to PC during the testing)
  • A PC running either Windows, Linux, or Mac OS-X with nrfjprog installed
  • The latest version of the J-Link Software and Documentation pack
  • 1 or 2 micro USB cables

Optional, for logging and debugging

How to test long range

  1. Program the two nRF52840-DK: one peripheral and one central

    a) Peripheral: program peripheral_long_range_demo_pca10056_s140.hex found in the following folder: ..\nrf52840-long-range-demo-kit\peripheral_long_range_demo_kit\hex

    b) Central: program central_long_range_demo_pca10056_s140.hex found in the following folder: ..\nrf52840-long-range-demo-kit\central_long_range_demo_kit\hex

  2. Use the buttons on the two nRF52840-DKs to select mode.

  3. Ready to test! Prepare yourself for a long walk!

Compile, debug, log

  • Compile and debug: The demo is made with SDK 15.0.0 and the nrf52840-long-range-demo-kit folder should be placed in the following folder: ..\nRF5_SDK_15.0.0_a53641a\examples\ble_central_and_peripheral\
  • Log: To see the logged information, use either a Serial Port Viewer (UART log) or RTT viewer.

Note 1: The central filters devices based on device name, both when initiating a connection and when reporting RSSI of the advertiser. The default device name is "Long range demo".

Note 2: For non-connectable advertising on coded phy, the central does not filter on device name because the device name is not included in the advertising packet.

Buttons and LED configurations

Peripheral

LEDs
LED 1 «on»: coded phy
«slow blinking»: 1Mbps
LED 2 «on»: 0 dBm
«slow blinking»: 8 dBm
LED 3 «fast blinking»: non-connectable advertising
·
LED 4 «fast blinking»: connectable advertising
«on»: connected state
Buttons
Button 1 Switch between coded phy and 1Mbps
·
Button 2 Switch between 0 dbm and 8 dBm
·
Button 3 Switch between non-connectable and connectable advertising
·
Button 4 Not in use
·

Central

LEDs
LED 1 «on»: coded phy
«slow blinking»: 1Mbps
LED 2 «on»: 0 dBm
«slow blinking»: 8 dBm
LED 3 «on»: scanning, trying to connect
«slow blinking»: scanning
LED 4 «on»: connected state
«toggling»: changing state upon received adv report
Buttons
Button 1 Switch between coded phy and 1Mbps
·
Button 2 Switch between 0 dbm and 8 dBm
·
Button 3 Switch between «scanning» and «scanning, trying to connect»
·
Button 4 Not in use
·

Default parameters

Peripheral

  • Coded phy
  • 8 dBm
  • Connectable advertising

Central

  • Coded phy
  • 8 dBm
  • Scanning only
  • If connected to PC: log RSSI over UART/RTT

About this project

This application is one of several applications that has been built by the support team at Nordic Semiconductor, as a demo of some particular feature or use case. It has not necessarily been thoroughly tested, so there might be unknown issues. It is hence provided as-is, without any warranty.

However, in the hope that it still may be useful also for others than the ones we initially wrote it for, we've chosen to distribute it here on GitHub.

The application is built to be used with the official nRF5 SDK, that can be downloaded from https://www.nordicsemi.no

Please post any questions about this project on https://devzone.nordicsemi.com.

nrf52-ble-lr-demo's People

Contributors

r3b3lallianc3 avatar

Watchers

James Cloos avatar  avatar

Forkers

r3b3lalliance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.