...
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 pin | DC9003 pin |
---|---|
GND | GND |
3.3V | VBAT |
TX1 | RX |
RX1 | TX |
GND | TX CTSn |
3.3V | RX RTSn |
Connect a micro-USB cable between your computer and the Arduino Due's USB port labeled PROGRAMMING
.
...
These four libraries (sm_clib
, IpMgWrapper
, IpMtWrapper
, TriangleGenerator
) now appear in the Sketch > Import Library... list.
Gliffy | ||||
---|---|---|---|---|
|
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:
...
Anchortriangle2manager triangle2manager
Triangle2manager
Sample Application
Anchor | ||||
---|---|---|---|---|
|
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:
- Connect your SmartMesh IP manager to your computer.
- On the computer, start the
SensorDataReceiver
sample application from theSmartMesh SDK
, and connect that to the SmartMesh IP manager. - Load the
Triangle2manager.ino
sketch onto your Arduino Due board. - Reset the SmartMesh IP mote and open the Arduino Serial Monitor.
- On the monitor, you can follow how your SmartMesh IP mote joins the network.
- After the mote has joined, the slider on the
SensorDataReceiver
application is set to the value the mote periodically sends. - The state machine implemented in the
Triangle2manager.ino
sketch gracefully handles the Arduino Due or SmartMesh IP mote being reset.
...