Skip to content

Seeed-Studio/BLE_Example

Repository files navigation

BLE Example

Introduction

BLE Example
This android app is used to build communication with BLE Slave device. You can send/receive message with these devices, such as Xadow BLE or Xadow BLE Slave. It will help you to increase the understanding of BLE.

Usage

####1. Install the APK

  1. Install the APK file(BLE_Example.apk) in bin/ folder, you need to make sure the android verison of your smart phone is higher than 4.3.
  2. After successful install, click the ico of the APK, and you will see the UI as follow.
    BLE UI

####2. Scan for slave devices

1.click the start button in the center of UI, it will start to scan for BLE slave devices. just like follow:
BLE Scan

2. The scan period will be up to 8 seconds, when it finished, the scan result will be show in the following dialog:
BLE Scan Result

3. click the BLE device that you want to connect, then your mobilephone will try to connect the specified device automatically.

####3. Select specified UUID

  1. If you can connect the ble slave device successfully, the UI will be as follow:
    BLE Select UUID
    You will find that the UUID is null and you need to pick up one from the list of Characteristics UUID List
  2. Here we choose the UUID:0000ffe1-0000-1000-8000-00805f9b34fb, and the UI turns to:
    BLE UUID Selected

####4. Send and recv data OK, the exciting moment has come! Input the command(data) to the textbox, and then click the Send button, the message will be send to the specified ble devices. and the recv textbox will show the message from the slave devices, just as follow. Have fun!
BLE Send Data BLE Recv Data


This software is written by lawliet zou () for Seeed Technology Inc. and is licensed under The GPL v2 License. Check License.txt for more information.

Contributing to this software is warmly welcomed. You can do this basically by forking, committing modifications and then pulling requests (follow the links above for operating guide). Adding change log and your contact into file header is encouraged.
Thanks for your contribution.

Seeed is a hardware innovation platform for makers to grow inspirations into differentiating products. By working closely with technology providers of all scale, Seeed provides accessible technologies with quality, speed and supply chain knowledge. When prototypes are ready to iterate, Seeed helps productize 1 to 1,000 pcs using in-house engineering, supply chain management and agile manufacture forces. Seeed also team up with incubators, Chinese tech ecosystem, investors and distribution channels to portal Maker startups beyond.

Analytics

Releases

No releases published

Packages

No packages published

Languages