Coder Social home page Coder Social logo

pandazheng / blesuite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lucabongiorni/blesuite

0.0 2.0 0.0 2.97 MB

BLESuite is a Python package that provides an easier way to test Bluetooth Low Energy (BLE) device

License: GNU General Public License v2.0

Makefile 0.54% Python 18.96% Shell 0.03% C++ 16.48% C 63.99%

blesuite's Introduction

BLESuite README

BLESuite is both a Python package that provides an easier way to
test Bluetooth Low Energy (BLE) devices. By utilizing pygattlib and the Bluez Bluetooth stack,
we are able to scan, read from, and write to BLE devices using Generic Attribute Profile (GATT) over the
Attribute protocol (ATT).
The goal of this tool is to create
an alternative to the Bluez gatttool typically used for communicating with BLE devices using
the GATT/ATT protocol.

Features:
    * Scan for BTLE devices
    * Scan BTLE devices for primary services and characteristics
    * SmartScan - Scan a BTLE device for basic information, primary services, characteristics, and then
    determining which descriptors are present, their handle, permissions, and current value (if applicable)
    * Write arbitrary values to a BTLE device (sync/async)
    * Read values from a specific handle and/or UUID on a BTLE device (sync/async)
    * Bluetooth address (BD_ADDR) spoofing (only some Bluetooth adapter chipsets are supported). This can be enabled by uncommenting a line in setup.py. Beware
    that this does require tools to compile CPython and libbluetooth.


Note to the reader:
    This tool was developed and tested on Debian 8. Specifically the testing
    distribution that includes a more current version of the Bluez Bluetooth
    stack (version 5.36 at the time of writing this)

    In order to access Bluetooth Low Energy functionality, you must have access
    to a Bluetooth adapter that supports it. I use the Pluggable Technologies
    USB-BT4LE Adapter.

The following are requirements in order to use BLESuite:
    * Bluez bluetooth stack
    * libbluetooth-dev and libpython-dev
    * Python library PyGattlib (https://bitbucket.org/OscarAcena/pygattlib)
The version included in this project is a fork of PyGattlib
that contains additional fixes that have not yet been implemented
in the mainline of PyGattlib.

To install Python library:
    Open the PyGattlib directory and run sudo python setup.py install
    Run sudo python setup.py install

To view full documenation for the package, please install sphinx and sphinx_rtd_theme
using pip (if applicable) and use the make file in bleSuite/docs







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.