Coder Social home page Coder Social logo

beaconsample's Introduction

OVERVIEW


What is beacon?

View this video first https://www.youtube.com/watch?v=dpSGbWxjQNw

Beacons are permanently sending out their unique identifier to notify nearby smartphones of their existence, hence the name beacons. A compatible app running on the smartphone then knows that it is in a close proximity. Depending on the application, this can trigger an action on the smartphone, e.g. displaying some information about nearby items.

Beacons are available in different sizes and shapes and from different vendors, like this one

ScreenShot

Is beacon work with Iphone and Android devices?

Yes but they work differently. Only devices from IOS7 above will always scan Bluetooth Low Enery (BLE) and active related apps when it in the area of beacons in system operating level (although the app is closed). For Android devices there is no beacon system at operating level so must have a beacon app running in device at least is in background level and need to scan BLE to find and interact with beacons. And because android devices need to scan beacon at application level so it mean will costs energy.

Bluetooth Low Energy (BLE) / Bluetooth Smart

Bluetooth Low Energy is also known as Bluetooth Smart. Since Android 4.3 Jelly Bean, Android also supports Bluetooth Smart. Android Smartphone Requirements:

1. Android > 4.3
2. Bluetooth Smart radio unit

The Android SDK has no built-in support for beacons. But there is a library from [Radius-Networks] (http://www.radiusnetworks.com/) that can be used.

[How BLE work?] (http://www.warski.org/blog/2014/01/how-ibeacons-work/)

Beacon Advertisements

Beacons broadcast in regular intervals. They send out their ID and ID consist three part (see image):

1. UUID (organization or company)
2. major (arbitrarily, e.g. specific chain store)
3. minor (e.g. location in store)

![ScreenShot] (http://www.codemag.com/Article/Image/1405051/image2.png) ScreenShot ScreenShot

Demo

You can buy an beacon or [turn your mac into a beacon] (http://beekn.net/2013/11/turn-your-mac-into-a-bluetooth-beacon/) or iphone, ipad also. Unfortunately, I don't have any beacons or mac now :( . Make sure you have devices support for Bluetooth LE or you can't test this. Zenfone 5 is will be OK. So keep calm and stay turn! Below image is my tablet do not support for bluetooth LE so my app didn't work.

![ScreenShot] (https://dl.dropboxusercontent.com/s/tisa82l8nag8gu6/Screenshot_2015-06-01-18-46-11.png)

Reference

[Develop an iBeacons App] (http://beekn.net/developing-ibeacon-app/)

beaconsample's People

Contributors

thanhbc avatar

Watchers

James Cloos 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.