3 posts in this topic

I have the CC2650 plug-in module and I am trying understand how to use the BLE library in Energia.  I installed the BLE library. 

The reference page, http://energia.nu/reference/ble/ says that two demo programs are included in Engergia: SerialOverBLE and BLEInputOutput but where exactly are these programs?  I would like to download them  into Energia  and learn about BLE serial communication. 

-Bob

Share this post


Link to post
Share on other sites

Below is a guide to get up and running with Energia BLE / Evothings

Evothings for controlling your LaunchPad over BLE with a custom app on your mobile device:
 
I have put together an app that allows to control of the RGB LED and Buttons exposed in the BLEInputOutput Sketch running on the MSP432 LaunchPad. At this moment it only runs on an MSP432 LaunchPad. Other LaunchPad's have bot been tested.
 
To run the APP and control the LaunchPad follow the instructions below. You might have to upgrade the BoosterPack’s firmware. The firmware on my BoosterPack was not the right one so yours might not be as well. If you have issues running the app, then refer to updating the BoosterPack section below.
 
Below is a screenshot of the app that I put together using Evothings to control the BLEInputOutput Sketch running on iOS.
 
image001.png.bf95b7dcbd26f9973c5fe78106e21270.png
 
 
Running the APP on your mobile device:
 
1: Seat the CC2650 BoosterPack on the MSP432 LaunchPad
2: You will need the latest BLE library for crucial updates and new example Sketches. Get it from: https://github.com/ti-simplelink/ble_energia
3: Put the BLE folder in your person Energia/libraries directory just as you would install any other library.
4: Run Energia and open the example BLE->BLEInputOutput Sketch.
5: Verify and upload the Sketch
4: On your phone, download the Evothings Viewer from the app store. There is one for iOS and Android.
5: Open the app and then in the “Enter connect key” enter http://energia.nu/ble/bleinputoutput/
6: Click connect.
7: The Energia BLE app should now open in the viewer. 
8: Click he start button and the status should change to “Status: Connected”
9: You can now change the RGB sliders and you should see the LED’s on the LP match
10: Pressing the buttons will change the text for each button from “released” to “pressed”.
 
 
Upgrading the CC2650 BoosterPack:
 
The firmware on your BoosterPack might not be the right one. If you are experiencing issues with running the app, you might have to upgrade the firmware on your CC2650 BoosterPack. We are working on making this cross platform and to accomplish for Energia users. For now Smart RF Flash Programmer 2 has to be used on a windows PC.
 
1: Download Smart RF Flash Programmer 2
2: Remove JTAG headers from MSP432 LP (TDI, TDO, TCK, TMS)
3: Remove the BoosterPack from the LaunchPad (you will need a RED MSP432 LaunchPad)
4: Attach 10 pin ARM ribbon cable (included in the BoosterPack box) to XDS110 header on the emulation side of the MSP432 LaunchPad. Attach other end to CC2650 BP. It is keyed so there is only one way to attach it.
5: Get the SNP images from this link: http://software-dl.ti.com/dsps/forms/self_cert_export.html?prod_no=ble_2_02_simple_np_setup.exe&ref_url=http://software-dl.ti.com/lprf/BLE-Simple-Network-Processor-Hex-Files
6: Once installed, find the image simple_np_cc2650bp_uart_pm_xsbl.hex
7: Plug the LP into your computer. 
8: Launch Smart RF Flash Programmer 2.
9: The CC2650 should show up in the left pane titled “Connected Devices”
10: Right click the CC2650 and select connect. The status bar should say “Success!” when finished connecting.
11: On the “Main” tab, in the “Flash Image” field select single and then browse to the simple_np_cc2650bp_uart_pm_xsbl.hex image.
12: Still on the main tab, under the header “Actions” check “Erase”, “Program” and “Verify”. 
13: Then click the Green Arrow image on the right bottom to program the image.
14: Remove the ribbon cable, replace the JTAG headers and reseat the BoosterPack. You are now good to go to run the Sketch/App.

Fmilburn, Rei Vilo and zeke like this

Share this post


Link to post
Share on other sites

OK, I'm back on track now.  Thanks for the help.  Now I need to study it a bit.  

-Bob

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now