Coder Social home page Coder Social logo

bluelamp's Introduction

blueLamp

blog origine medium link https://medium.com/mindorks/bluetooth-low-energy-3656ac323c4e

Bluetooth low energy is one of many wireless technologies in our world it is used in almost every project in IoT and smart home we can find it anywhere (beacons, smart watch,heart rate sensor ..) but before talking about how we can use it in our projects with raspberry we need to know some theory about it so lets start.

what is BLE ?

ble started as part of bluetooth 4.0 core specification, it is originally designed by nokia as wibree before being adopted by Bluetooth Special Interes Group .

specification of BLE:

a complete single mode BLE device is divided into three parts Application Host and Controller

Application:

is the highest layer and it is responsible for containing the logic

Host

includes the flowing layer :

Generic Access Profile (GAP)
Generic Attribute Profile (GATT)
Logic Link Control and Adaptation Protocol (L2CAP)
Attribute Protocol (ATT)
Security Manager (SM)
Hos Control Interface (HCI),host side

Controller :

includes:

Hos Control Interface (HCI),controller side
Link Layer (LL)
Physical Layer(PHY)

the different roles that BLE device can take are :

Advertiser (Broadcaster):

a device sending advertising information (name , MAC address)

Scanner:

a device scanning for advertising information.

Central:

a device that initiates a connection and manges later.

peripheral :

a device that accept a connexion request and follows a master timing.

these roles can be grouped into tow pairs advertiser and scanner and central and peripheral

image4

bluelamp

blue lamp is an application built to work on android >5.0 which allows us to control smart lamp over ble the service of the lamp has 0000f00d-1212-efde-1523-785feabcd123 as UUID and the control light characteristic has 0000beef-1212-efde-1523-785feabcd123 as UUID. to be able to established the conexion with a peripheral you just have to change the condition on the device name below you find a screenshot of the app

rsz_1screenshot_20181029-104609

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.