Documente Academic
Documente Profesional
Documente Cultură
Document GP_P202_UM_00597
27 August 2008
Lindestraat 19
9240 Zele,Belgium
Tel +32 (0) 52 45 87 20
GreenPeak Technologies 2008
Catharijnesingel 30
3511 GB Utrecht ,The Netherlands
Tel +31 30 262 1157
info@greenpeak.com
www.greenpeak.com
GP_P202_UM_00597_Starter_Kit_User_Manual
Page 1
TABLE OF CONTENTS
1
2
Overview ................................................................................................................... 4
Preparing the PeakNodes ............................................................................................ 5
2.1
Powering up the PeakNodes ................................................................................ 5
2.2
PeakNet Association ........................................................................................... 6
2.3
IO connections ................................................................................................... 6
2.3.1 Technical spec IO ........................................................................................... 6
2.3.2 Important remark ........................................................................................... 6
3 GreenPeak Starter Kit Application ................................................................................ 7
3.1
Installation ......................................................................................................... 7
3.2
First Usage......................................................................................................... 7
3.2.1 Connection Settings ........................................................................................ 7
3.2.2 Starter Kit Application ..................................................................................... 9
3.3
Starting a network ............................................................................................ 10
3.4
JadeMonitor ..................................................................................................... 11
3.5
IO Section........................................................................................................ 12
3.6
Using the Mesh Network ................................................................................... 14
3.7
PeakNet LPR vs. PeakNetZ ................................................................................ 15
4 The JadeConfigurator tool ......................................................................................... 16
5 Next steps ............................................................................................................... 16
DOCUMENT HISTORY
date
Jul 07 2005
Oct 25 2005
Aug 11 2006
Dec 11 2006
Mar 08 2007
Sep 05 2007
Oct 30 2007
May 9 2008
June 9 2008
August 26 2008
version
4.1
4.2
4.2b
4.3
4.4
4.5
4.6
4.7
4.8
4.9
author
Niek Van Dierdonck
Wim De Kimpe
Kristoff Avermaete
Kristoff Avermaete
Kristoff Avermaete
Bart Jonkers
Wim Van Houcke
Tim Allemeersch
Tim Allemeersch
Tim Allemeersch
note
First release
Update for Ubiwave Starter Kit Release 2
Adaptation to GPSK2 without UTI
Update for Ubiwave Starter Kit Release 3
Standard source code distribution
Update new Starter kit PC application
Introduced DB03 hardware
Minor changes
Updated to new document numbering
Update to CM09 stack v1.5.0.1
REFERENCED DOCUMENTS
[1] PeakNet Serial Protocol Starter Kit, GreenPeak Technologies, June 2008,
doc# GP_P202_IS_00627
[2] GP-DB-03 Hardware Description, GreenPeak Technologies, June 2008,
doc# GP_P202_HD_00641
GP_P202_UM_00597_Starter_Kit_User_Manual
Page 2
GP_P202_UM_00597_Starter_Kit_User_Manual
Page 3
1 Overview
This manual describes the GreenPeak Starter Kit (GPSK) and how to use the Starter Kit PC
application. All modules in a Starter Kit or Development Kit Enterprise come pre-flashed with
this application.
The GPSK PC application included in the Starter Kit and Development Kit Enterprise enables
the customer to experience the power of wireless sensor networks and explore an example
application in a matter of minutes. It displays the self-healing and self-organizing aspect of
the GreenPeak communication stack, gives you the ability to evaluate PeakNet Z and PeakNet
LPR (low-power routing), and helps you understand wireless mesh networking. However, the
GreenPeak Starter Kit does not enable you to build a custom application on top of the
GreenPeak communication stack. This feature is only included in the development kits.
The GreenPeak Starter Kit comprises of 5 wireless modules, a PC demo application
(GreenPeak Starter Kit application) which demonstrates both the network aspects and some
of the IO functionality of the wireless mesh network (cf. figure below), a serial cable,
batteries, a DC power adapter, and documentation.
PeakNode
PeakCoordinator /
Serial Getaway
PeakNode
Serial Cable
PeakNode
PeakNode
JadeMonitor
The Serial Gateway (coordinator) connects to a PC running the GPSK pc application, through a
serial RS232 connection. For users who want to by-pass the complete API, the serial protocol
running over this connection is described in a separate document [1]. This document is only
included in the development kit, and not in the starter kit!
The remainder of this document will describe how to install the PC application, and how to
use it to evaluate GreenPeaks communication stacks and hardware.
GP_P202_UM_00597_Starter_Kit_User_Manual
Page 4
***Important Notice: When using a DC power adapter when batteries are installed in the
battery compartment, always use a 2.1mm jack. Otherwise, batteries might explode or
leak.***
After connecting a power source, the module is powered on by moving the power switch
towards the DC jack as shown in the figure below.
On
GP_P202_UM_00597_Starter_Kit_User_Manual
Page 5
Status
The node is powered up (but not necessarily associated to a Gateway).
The node is associated to a Gateway.
When the node has successfully joined a network, and you are using PeakNet Z, the red and
green leds will be on. If you are using PeakNet LPR as communication stack, the red and
green led blink periodically after the PeakNode has successfully joined a network. Each time
the red and green led blink, the module wakes up.
If only the green led is on, this means the booloader is running. If the green led is blinking,
an error occurred and the module stopped working correctly.
2.3 IO connections
Each PeakNode is factory configured with the following inputs and outputs:
2 digital inputs with internal pull-up resistor connected to the two user switches.
1 serial port
All inputs are sampled at 1 Hz sample rate. We refer to the hardware description [2] for
additional information on the available IOs.
Status
4mA
3,3V
20kOhm
9600 baud, 8 databits, 1 stopbit, no parity, no flow control
GP_P202_UM_00597_Starter_Kit_User_Manual
Page 6
3.1 Installation
System requirements:
Supported Operating Systems: Windows 2000, Windows 98, Windows ME,
Windows NT, and Windows XP (Microsoft Windows NT 4.0 requires Service Pack
6a). Currently, Windows Vista compatibility is being tested.
Start the installation process by running the installer: execute GPSK_Vx.x.x.x.msi found in the
Tools directory of the software package. An installation wizard will start and guide you
through the installation procedure. If the .NET Framework was not installed on your PC, error
messages indicating you must install it will pop-up. If needed1, the Microsoft .NET Framework
Version 2 Redistributable Package can be downloaded from http://www.microsoft.com/.
The framework is needed by the application; if the .Net framework is already installed, or if the .Net
development environment is installed , then this step can be skipped
GreenPeak Technologies 2008
GP_P202_UM_00597_Starter_Kit_User_Manual
Page 7
TcpClient: To connect to the TCP/IP gateway when the gateway acts like a TCP
server.
portNumber: the TCP port number on which the gateway server listens
TcpServer: To start a TCP/IP server where the TCP/IP gateway can connect on
when it acts like a client.
portNumber: the TCP port number where the server should listen on.
Serial: To connect to the Serial Gateway through a serial port on your computer.
serialPort: The serial port on your computer that you use to connect to
the Serial Gateway.
baudrate: The baudrate that is used in the communication with the Serial
Gateway. Currently the Serial Gateway uses 9600 baud.
DigiClient: This setting is used to connect the Serial Gateway through a Digi
PortServer [4] to your computer.
Select the settings that apply for you. For the starter kit in most cases this is Serial, COM1
and 9600.
GP_P202_UM_00597_Starter_Kit_User_Manual
Page 8
***Important remark: when you use a firewall on your computer, it might generate a
warning when you launch the PC application. You have to prevent your firewall from blocking
the GPSK application by choosing Unblock in the pop-up screen.***
GP_P202_UM_00597_Starter_Kit_User_Manual
Page 9
Attach the delivered serial RS232 cable to the PC and to the gateway/coordinator
module.
Start the GPSK application as described in 3.2. If the gateway is already up and
running, the JadeMonitor will attach to it and show the presence of the
PeakCoordinator. Otherwise the JadeMonitor will attach to the PeakNet as soon
as it is powered on.
Power the other PeakNodes and they will automatically attach to the network and
show up in the JadeMonitor.
The next sections will further describe the different fields in the PC demo application.
GP_P202_UM_00597_Starter_Kit_User_Manual
Page 10
3.4 JadeMonitor
The JadeMonitor shows the network connection of each PeakNode.
GP_P202_UM_00597_Starter_Kit_User_Manual
Page 11
3.5 IO Section
A screenshot of the IO section is shown below.
ID: displays the application ID of the node. When you hover your mouse over
this field, you will see the 64-bit MAC address of the node. The coordinator has
application ID 0x0000.
Temp: When using the communications module combined with the GP-DB-03
development board [2] (default in the starter kit), this field displays the ambient
temperature picked up by the NTC temperature sensor. When no sensor is
applied, the readout value is undefined;
Digital In: the state of this button represents the state of the user switches on
the modules. When a switch on a remote module is pressed, the state of this
button will change. We refer to [2] for additional information on the position of
the user switches on the GP-DB-03 development board.
GP_P202_UM_00597_Starter_Kit_User_Manual
Page 12
Digital Out: by clicking on the check boxes, digital out 0 resp. 1 is toggled on the
PeakNode with the corresponding MAC address. By default the corresponding
digital outputs are connected to the user LEDs of the starter kit modules. In this
way the status of these LEDs can be controller in the PC application.
Serial data can be transferred between the PC Demo application and the
connected PeakNodes. This can be controlled by selecting a node in the serial
box of the IO section and typing a text or a hex array followed by enter. The
serial data will be transferred towards the selected PeakNode and reproduced on
the nodes serial port. In the opposite direction a similar mechanism is
implemented. When a serial stream is sent to a PeakNodes serial port, this
stream is transferred towards the PC demo application. The data and its
destination are shown in the serial box of the IO section.
***Important remark: The microcontroller on the module has two UARTS available for serial
communication. Only one of these UARTS is connected to the serial port connector on the DB03
development board. The serial stream sent from the starter kit application data is by default sent to the
UART connected to the DB03s serial port. The logging is sent on the other available UART, and can
thus not be seen by default when connecting a router to for instance the JadeLogger tool.To be able to
see the logging, you can click on the Disable button in the Enable Serial IO column in the IO section
of the PC application to wire the UART used for logging to the serial port on the DB03 development
board. When pressing the Enable button, the UART will again be used for forwarding the serial data
that was sent from the PC application.
When the SerialIO is enabled, you can connect a node to a PC using the serial port, and open a
HyperTerminal session. The settings for the session are shown in the figure below. Using the Starterkit
PC application you can now send serial data to that router node. The data is then shown in
HyperTerminal. Typing in HyperTerminal will send the characters to the coordinator.***
GP_P202_UM_00597_Starter_Kit_User_Manual
Page 13
The temperature chart displays the temperature course of the different nodes. When you
right-click on the chart, you get a context menu which you can use to zoom on the chart,
print or copy the chart. The temperature values received by the sensors are by default
displayed in degrees Celsius. To switch to degrees Fahrenheit, go to the Options menu and
then choose Temperature Settings. Next, choose Fahrenheit. The temperature is now
displayed in Fahrenheit.
The IO section displays also the status of the node. When the node is connected to the
network it is displayed normally as shown in Figure 3-5. When a possible failure of a node is
detected, the line of the node is blinking. If the connection to the node could not be restored
the line of the node is grayed out.
GP_P202_UM_00597_Starter_Kit_User_Manual
Page 14
PEAKNET Z
R
R
PEAKNET LPR
R
R
R
L
L
L
L
L
L
GP_P202_UM_00597_Starter_Kit_User_Manual
Page 15
***Important note: The JadeConfigurator tool has the option to define which stack to use
in the Change stack type field. This field is only valid for the starter kit! If you have
bought a development kit enterprise, you cannot switch to PeakNet LPR using this field. You
will have to recompile the embedded application, and reprogram the nodes with the newly
generated .hex file using the update firmware field in the JadeConfigurator, using the
JadeCreator tool, or using AVRstudio and the JTAG ICE mkII programmer. The modules
shipped in the development kit professional can only boot the PeakNet Z stack. PeakNet LPR
is not included in the development kit professional.***
We refer to the JadeConfigurator user manual [3] on additional information on how to use
this tool.
5 Next steps
The main purpose of the evaluation kit is to test GreenPeaks hardware and software on
various aspects like:
Range;
Throughput;
Energy consumption;
Mobility;
Robustness;
Ease-of-use;
Self-healing, self-organizing aspect;
Etc
We advise the user to experiment with the supplied nodes to fully understand the possibilities
of a wireless sensor network. This can be done using the pre-flashed starter kit application.
By using the JadeConfigurator tool one can choose a unique Pan ID and channel for his
network, and change the communication stack from PeakNet Z (pre-flashed) to PeakNet LPR
(Low power routing). The starter kit does not support the possibility to build a custom
application on top of the GreenPeak communication stack. This feature is only included in the
development kit professional and enterprise.
Additional information on how to use the Starter Kit and the development tools can be found
in the documentation included with this kit. If some things might not be clear, or you have
general comments regarding the Starter Kit and its documentation, please contact
support@greenpeak.com.
GP_P202_UM_00597_Starter_Kit_User_Manual
Page 16