- Breakout Board with BLE112
- CC Debugger - User Guide - swru197
- bluegiga BLE Update Tool - under "the PC Tools" section. Create an account and log in using the little gear widget in the top-right to access.
- bluegiga Bluetooth Smart Software and SDK v1.2 - under the "Software Releases" section. Create an account and log in using the little gear widget in the top-right to access.
I followed Programming the BLE with C code using IAR almost exactly. The pinout is only slightly different.
Here is the CC Debugger Pinout:
Here is the BLE Breakout Pinout, with the 6 CC Debugger Pin numbers indicated in black:
A word of caution: I used the included ribbon cable initially, but I think the pins get flipped, so I ended up just using female-to-male jumper wire. With the CC Debugger plugged in to my laptop, as soon as I connected the 3.3V pin, the LED on the debugger changed to green immediately.
- Attach your CC Debugger using the pinout above. Your CC debugger light should be green. Open the BLE Update Tool (called BLE SW Update Tool after install). Click info. You will get your Serial Number. Click the "Request License Key" link under license key to get a license key. I had to right-click and copy the link location, then paste that into my browser. It is actually a
mailto:
link, so you need to wait a day to get your license key back from support. - Build one of the example projects: in
cmd
:
cd \Bluegiga\ble-1.2.2-100\example\find_me\
..\..\bin\bgbuild.exe project.bgproj
- open
C:\Bluegiga\ble-1.2.2-100\example\find_me\out.hex
in the BLE SW Update Tool. An click "Update". The screen should show a green "Update completed" panel. - On your iOS device with BLE (iPhone 4S and up), if you have one, download BTL Explorer. You should see "Bluegiga Find Me" in the peripherals list.
Now for some fun stuff. The toggle_led project toggles an LED attached to the device on and off every second you can disable the toggling using a Bluetooth LE program on your phone that supports the Generic Attribute Profile. I made a modified version of the toggle_led project from Programming the BLE112 using BGScript from bluetooth-smart.com, which is an excellent tutorial.
Head over to the toggle_led project to program it.