From Interactive Device Design Fall13
- We are using XBee Series 1 radios.
- To configure your XBee radios through a GUI, download the Digi X-CTU software.
- Adafruit has useful general info on these radios: http://www.ladyada.net/make/xbee/
- We're using the BLE112 breakout board by Jeff Rowberg.
- This board is based on the BlueGiga BLE112 chipset.
- To reprogram the BLE112, you'll need a Windows machine and the Texas Instruments CC Debugger dongle.
- You'll need to look up UUIDs in the Bluetooth GATT Browser
Cached from BlueGiga for easier access:
- Example of a BLE project: http://www.ambientsensors.com/bluetooth-low-energy-projects
- 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.
- 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.
- You can only develop on Windows machines.
- Download and install the driver for the CC Debugger: swrc12a.zip (both 32 and 64 bit versions inside the zip)
- Download and install the BlueGiga SDK: Bluegiga_ble-1.2.0-89.zip install both the SDK and the update tool.
- If for some reason the update tool didn't install, here's a separate download for it: bleupdate-1.0.6.exe
- Download software examples: Bluetooth_Smart_Software_Examples.zip
- If you want syntax highlighting for BGScript, you can download Notepad++ (npp.6.4.5.Installer.exe) and install the BGScript Syntax Highlighting package BGScript_Syntax_highlighting_for_Notepad++.zip Installation instructions are in the zip file.
- 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
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.