Code Monkey home page Code Monkey logo

absniffer-ibeacon's Introduction

absniffer-ibeacon

nRF52-based configurable iBeacon for running on ABSniffer USB 528 Dongle

Build Instructions

This guide assumes you have already have the nRF SDK (version 14.2.0), the command-line tools and an ARM GCC toolchain installed on your machine. It's best to verify this by building one of the SDK samples first.

Create a file called CMakeEnv.cmake and add the paths to those tools. Example:

set(ARM_NONE_EABI_TOOLCHAIN_PATH "/Users/ahs/local/gcc-arm-none-eabi-7-2017-q4-major")
set(NRF5_SDK_PATH "/Users/ahs/local/nRF5_SDK_14.2.0_17b948a")
set(NRFJPROG "/Users/ahs/local/nRF5x-Command-Line-Tools_9_7_2_OSX/nrfjprog/nrfjprog")

Create the Makefiles, erase the flash.flash of SoftDevice

$ cmake -H. -B"build"
$ cmake --build build --target FLASH_ERASE
$ cmake --build build --target FLASH_SOFTDEVICE

Flash the SoftDevice (nRF BLE stack):

$ cmake --build build --target FLASH_SOFTDEVICE

Build and flash beacon firmware:

$ cmake --build build --target absniffer-ibeacon
$ cmake --build build --target FLASH_absniffer-ibeacon

Serial Command Interface

When plugged in to a USB port, the device exposes a virtual serial port, over which it accepts commands. The serial port parameters are 115200/8-N-1. Commands are in textual form and terminated by line breaks.

Retrieve Device Information

The I command is used to retrieve the firmware version, MAC address and beacon identity of the device.

> I
< OK V1.0.0 ED:CB:9C:B8:60:4E CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 1 1

Set iBeacon Configuration

The C command is used to set the advertising parameters for the iBeacon. The proximity UUID (16 bytes) is specified as a 32 character hex string. The major and minor values are given as integers.

> C AABBCCDDAABBCCDDAABBCCDDAABBCCDD 123 456
< OK

The configuration is stored persisently in flash memory.

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.