Wireless 2

From Interactive Device Design Fall13
Jump to: navigation, search



XBee Radios

Bluetooth LE

General Info


Cached from BlueGiga for easier access:


  • Programming
    • To program the BLE112 board, you connect it to the CC Debugger via a the small header cable, and then run the BLE SW Update Tool to build and flash your code.
    • The CC Debugger also powers the board while it is connected (green LED lights up)
    • On the board, look for a small arrow pointing to pin 1 on the header. The plastic key protrusion of the header should be on the same row as the pin 1 indicator so that a green LED lights up when connected. If you don't see the green LED, your header is on backwards.
  • Using
    • Windows: To connect to your BLE device from a Windows machine, you'll need the BLED 112 USB dongle. It will show up as a serial port. blegui2.exe then uses that serial port to communicate with the device.
    • iOS: You'll need at least an iPhone 4S or later; or an iPad 4 or iPad mini or later. You'll also have to run iOS 6.x or 7 for BLE support.
    • Android: Hardware and support is still spotty. Nexus 4,5 or the second generation of Nexus 7 support BLE. You'll need Android 4.3 or later.

Software Environment

  • To discover and read BLE devices, install:
    • LightBlue for iOS (iPhone 4S+ , iPad 4+)
    • blegui2.exe on Windows, which came with the SDK
    • Android: don't know which application is reasonable, please edit if you find something that works

Editing and uploading your first BLE program

  • Open Bluetooth_Smart_Software_Examples/Heart_Rate. You'll find the following files:
    • gatt.xml: defines services and characteristics.
    • hr.bgs: BGSCript file
    • no need to modify the other files.