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 3 Current »

These examples run on the MSP430FR4133 LaunchPad development kit.

To run these examples, you need the following hardware:

  • an MSP430FR4133 LaunchPad development kit.
  • the appropriate SmartMesh device for the sample application you want to run.
  • 6 jumper cables to connect the serial port of the SmartMesh device to that of the LaunchPad.
  • A micro-USB cable.

You need to download the following software:

  • the 

    SmartMesh C Library

     source code.
  • the latest IAR for MSP430. 

At the time of writing the latest version is IAR EW430 6.30.2.

This is a commercial product with a 30-day free evaluation license.

The LaunchPad comes with Code Composer Studio 6.x - it should be straightforward to port these examples to that toolchain.

Setup

You first need to connect the serial port of your SmartMesh device to the serial port of the 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 LaunchPad.

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

LaunchPad pinDC9003 pin
GNDGND
3V3VBAT
TXDRX
RXDTX
GNDTX_CTSn
3V3RX_RTSn

Connect a micro-USB cable between your computer and the LaunchPad.

Using IAR EW430, open the workspace examples/msp430fr4133/all_projects.eww.

To change the project you're about to compile, right-click on the project in the left navigation pane, and select "Set as Active".

Click on the "Download and Debug" button to build the firmware and load it onto the LaunchPad.

Press the "Go" button to start the execution of your program,

MoteBlink Sample Application

The MoteBlink sample application interacts with a SmartMesh IP manager. It retrieves the list of SmartMesh IP motes in the network, and sends them commands to turn their blue LED on and off. When loaded onto the LauncPad, you will see the LEDs on the motes in the network blink in a round-robin fashion.

  • To run the MoteBlink application, make sure your LaunchPad is connected to a SmartMesh IP manager.
  • To see the LEDs blink, you need to configure the SmartMesh motes in "master" mode.
  • To see the LEDs blink, you need to close the LED EN jumper on the DC9003 board.

Triangle2manager Sample Application

The Triangle2manager sample application interacts with a SmartMesh IP mote. It drives the mote through the process of joining the network, and then periodically sends a 2-byte value (a triangle wave) to the SmartMesh IP manager.

The SmartMesh IP mote you connect to the LaunchPad needs to be in "slave" mode. See the SmartMesh IP User's Guide for instructions on switching the mode.

To see the data received by the SmartMesh IP manager, use the SmartMesh SDK SensorDataReceiver sample application:

  1. Connect your SmartMesh IP manager to your computer.
  2. On the computer, start the SensorDataReceiver sample application from the SmartMesh SDK, and connect that to the SmartMesh IP manager.
  3. Load the Triangle2manager project onto your LaunchPad.
  4. After the mote has joined, the slider on the SensorDataReceiver application is set to the value the mote periodically sends.
  5. The state machine implemented in the Triangle2manager project gracefully handles the LaunchPad or SmartMesh IP mote being reset.

  • No labels