Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

Interface a CC3200 to a mote using the SmarMesh C library!

The CC3200 is a Wi-Fi single-chip wireless MCU. Besides its Wi-Fi capabilities, it is a regular ARM Cortex-M4 microcontroller. This means you can interface it to a SmartMesh device: wire the boards up, run the C-library on the CC3200 and get it to talk to a SmartMesh IP mote or manager in minutes. And if you're using the CC3200 LaunchPad, you do all of that from the trivially simple to use Energia tool!

This recipe follows the exact same flow as the ArduinoDue example of the C Library.

Wiring the boards together

You first need to connect the serial port of your SmartMesh device to the serial port of the CC3200 LaunchPad. Although we are assuming you are using a DC9003 board, the process is equivalent for any SmartMesh device.

To avoid erroneous connections, we recommend you power off the SmartMesh device and the LaunchPad boards.

Furthermore, remove the battery from the SmartMesh device. It will be powered by the LaunchPad.

http://energia.nu/pin-maps/guide_cc3200launchpad/ shows you the pinout of the CC3200 LaunchPad.

CC3200 LaunchPad pinDC9003 pin
namepin
GNDany pin marked "GND"GND
VCCany pin marked "VCC"VSUPPLY
TX (1)header P1, pin 9RX
RX (1)header P1, pin 10TX
GNDany pin marked "GND"TX CTSn
VCCany pin marked "VCC"RX RTSn

Geeky detail

The connections above allow the following:

  • the CC3200 board powers the DC9003 mote (through its VCC pin)
  • the two boards can talk over serial (through the TX/RX pins)
  • the connections to the DC9003's TX CTSn and RX RTSn pins are there to effectively disable flow control. That is, it tells the DC9003 that the CC3200 is always ready to receive bytes over its serial port.

Install CC3200 LaunchPad drivers

Follow the instructions at http://energia.nu/guide/guide_windows/ to install the drivers for the CC3200 launchpad.

http://energia.nu/ contains similar pages for Linux and Mac OS.

Install Energia

  • Download the latest Energia from http://energia.nu/
  • No need to install it, just launch the program. On my Windows machine, I created the C:\energia\ folder and unzipped the program there.
  • To start the program, I just double-click on C:\energia\energia-1.6.10E18\energia.exe
  • Add support for the CC3200 by opening the board manager...
  • look for "CC3200" and click "Install"




  • No labels