GithubHelp home page GithubHelp logo

jahyunkim-portfolio / android-blecommunication Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 1.74 MB

An android application that enable to use the smartphone as BLE Peripheral & Central

Kotlin 89.85% Python 10.15%
bluetooth bluetooth-low-energy beacon android smartphone peripherals central

android-blecommunication's Introduction

Android-BLECommunication

Notice: This project is still being modified to meet the Bluetooth 5.0 standard. Please stay tuned.

An android application that enable to use the smartphone as BLE Peripheral & Central.
The project was developed by using Kotlin with AndroidStudio in Windows 10 OS, refered to Google's official documentations on Android BluetoothLE and package summary on bluetooth.le.

The major goal of this project is to use smartphones(Android OS, minimum SDK 25) as two kind of BLE devices, Peripheral and Central.
Both functions operate independently in two different activities, of course, a smartphone can only operate with one type of device at a time. It is technically not difficult to operate with two types of equipment at once, but it reflects the properties of the actual BLE Peripheral (eg Beacon).

Functions

BLE Peripheral

Transmits BLE Broadcast signal to others every 5 seconds.
The UUID used in this process is fixed and can be modified in the source code.

BLE Central

Continuously receives nearby BLE Broadcast signals and repots the list on display and saves to file in the device. The list contains the device name(address) and the RSSI, updates every 5 seconds. It is designed to capture only the UUID that the same as the used one in BLE Peripheral on this project. You can fixed it by removing the filter in the source code.

Getting Started

There are 2 methods for getting started.
I recommend the first method for only the users to try out this project. The devlopers who want to utilize it to your own project, try the second method essentially.

Use pre-compiled APK

just download and run the given precompiled APK on the smartphones, the easiest way.

Clone project and run

Second, clone the project to your PC then compile&run with the smartphones or Virtual Devices.
It does not guarantee that the application will run successfully on the virtual device. However, this method has the advantage of being able to modify the source code more easily and can be further developed if necessary.

android-blecommunication's People

Contributors

dshyun0226 avatar

Stargazers

 avatar  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.