Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning

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

Furthermore, remove the battery from the SmartMesh device. It will be powered by the Arduino Due board.

Arduino Due pinDC9003 pin
GNDGND
3.3VVBAT
TX1RX
RX1TX
GNDTX CTSn
3.3VRX RTSn

Connect a micro-USB cable between your computer and the Arduino Due's USB port labeled PROGRAMMING.

...

These four libraries (sm_clibIpMgWrapperIpMtWrapperTriangleGenerator) now appear in the Sketch > Import Library... list.

Gliffy
namearduino_libs

 


You can now close the Arduino IDE, and double-click on one of the following sample applications to reopen the Arduino IDE with the right sample application:

...

Anchor
triangle2manager
triangle2manager
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.

Note

The SmartMesh IP mote you connect to Arduino Due to need to operate in "slave" 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.ino sketch onto your Arduino Due board.
  4. Reset the SmartMesh IP mote and open the Arduino Serial Monitor.
  5. On the monitor, you can follow how your SmartMesh IP mote joins the network.
  6. After the mote has joined, the slider on the SensorDataReceiver application is set to the value the mote periodically sends.
  7. The state machine implemented in the Triangle2manager.ino sketch gracefully handles the Arduino Due or SmartMesh IP mote being reset.

...