Coder Social home page Coder Social logo

prohan-git / android-nrf-blinky Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nordicsemiconductor/android-nrf-blinky

0.0 2.0 0.0 955 KB

nRF Blinky is an application developed targeting an audience of developers who are new to Bluetooth Low Energy

Home Page: https://www.nordicsemi.com/

License: BSD 3-Clause "New" or "Revised" License

Java 100.00%

android-nrf-blinky's Introduction

nRF BLINKY

nRF Blinky is an application developed targeting an audience of developers who are new to Bluetooth Low Energy. This is a very simple application with two basic features to turn on LED 3 on the nRF DK and to receive the Button 1 press event from a nRF DK on the nRF Blinky Application. It demonstrates how to the BleManager class from Android nRF Blinky library can be used from View Model (see Architecture Components).

Nordic LED and Button Service

Service UUID: 00001523-1212-EFDE-1523-785FEABCD123

A simplified proprietary service by Nordic Semiconductor, containing two characteristics one to control LED 3 and Button 1:

  • First characteristic controls the LED state (On/Off).

    • UUID: 00001525-1212-EFDE-1523-785FEABCD123
    • Value: 1 => LED On
    • Value: 0 => LED Off
  • Second characteristic notifies central of the button state on change (Pressed/Released).

    • UUID: 00001524-1212-EFDE-1523-785FEABCD123
    • Value: 1 => Button Pressed
    • Value: 0 => Button Released

For full specification, check out documentation.

Requirements

  • This application depends on Android BLE Library version 2.
  • Android 4.3 or newer is required.
  • nRF5 DK is required in order to test the BLE Blinky service.

Installation and usage

Prepare your Development kit.

  • Plug in the Development Kit to your computer via USB.
  • Power On the Development Kit.
  • The Development Kit will now appear as a Mass storage device.
  • Drag (or copy/paste) the appropriate HEX file onto that new device.
  • The Development Kit LEDs will flash and it will disconnect and reconnect.
  • The Development Kit is now ready and flashed with the nRF Blinky example firmware.

For your convenience, we have bundled two firmwares in this project under the Firmwares directory.

To get the latest firmwares and check the source code, you may go directly to our Developers website and download the SDK version you need. Then, find the source code and hex files in the directory /examples/ble_peripheral/ble_app_blinky/.

More information about the nRF Blinky example firmware can be found in the documentation.

Note

In order to scan for Bluetooth LE device the Location permission must be granted and, on some phones, the Location must be enabled. This app will not use the location information in any way.

android-nrf-blinky's People

Contributors

philips77 avatar roshanrajaratnam avatar

Watchers

 avatar  avatar

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.