- No category
advertisement
JenNet-IP EK040 Evaluation Kit
User Guide
JN-UG-3089
Revision 1.2
9 November 2012
JenNet-IP EK040 Evaluation Kit
User Guide
2 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
Contents
About this Manual
7
Organisation 7
Conventions 7
Acronyms and Abbreviations 8
Related Documents 8
Trademarks 8
Certification 9
1. Introduction to the Evaluation Kit
1.1 JenNet-IP System
1.2 Kit Contents
1.3 Kit Hardware
1.3.2.1 Power Source Selection
1.3.3 Lighting/Sensor Expansion Boards
1.3.4.1 Antenna Mounting and Connection
1.4 Smart Home Demonstration
2. JenNet-IP System Concepts
2.1 Wireless Network Concepts
2.2 IP Concepts
2.3 JenNet-IP Software Stacks
2.4 Data Message Handling
2.4.1 Sending and Receiving Messages
2.4.2 Passing Messages Through the Border-Router
27
32
34
36
27
11
11
13
14
26
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 3
Contents
3. Smart Home Demonstration
3.1 Demo System Overview
3.1.1 Lighting Control from a PC
3.1.2 Lighting Control from the Remote Control Unit
3.2 Setting Up the Demo System
3.2.2 Setting Up the WPAN Part
3.3 Operating the Demo System
3.3.1 Lighting Control from PC
3.3.2 Lighting Control from the Remote Control Unit
3.4 Configuring Groups of Lights
3.4.1 Configuring Groups on the PC
3.4.2 Configuring Groups on the Remote Control Unit
4. Smart Home Demonstration (Standalone)
4.1 Standalone Demo System Overview
4.1.1 Lighting Control from the Remote Control Unit
4.2 Setting Up the Standalone Demo System
4.3 Operating the Standalone Demo System
5. Where Next?
5.1 User Documentation
5.2 Software Developer’s Kit (SDK)
57
57
60
63
65
65
66
37
37
42
50
53
4 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
Appendices 67
A. Remote Control Operations in the Demonstration
B.1 Re-programming Remote Control Unit
B.2 Re-programming JN514x Modules
B.3 Re-programming USB Dongles
B.3.1 Preparing the Binary File
C. Compliance Statements and Documentation
C.1 FCC Statements and Documentation
C.1.1 DR1128 FCC Documentation
C.1.2 DR1159 FCC Documentation
C.1.3 DR1174 FCC Documentation
C.1.4 DR1175 FCC Documentation
C.2 Industry Canada Statements
C.3 CE Statements and Documentation
68
69
70
73
79
79
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 5
Contents
6 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
About this Manual
This manual provides a guide to setting up a wireless network with IP access, based on the NXP JenNet-IP EK040 Evaluation Kit. The manual also describes how to run the pre-loaded Smart Home demonstration, developed using the NXP JenNet-IP protocol and associated libraries. You should work through this manual before attempting to develop your own JenNet-IP control applications.
Organisation
This manual consists of five chapters and two appendices, as follows:
introduces the JenNet-IP EK040 Evaluation Kit.
outlines the key concepts that you will need in order to understand and use the supplied JenNet-IP lighting control demonstration.
describes how to use the evaluation kit to set up and run the
JenNet-IP Smart Home demonstration.
describes how to use the evaluation kit to set up and run the
‘standalone’ version of the JenNet-IP Smart Home demonstration.
provides guidance on where to go next within the JenNet-IP development resources.
The
provide:
A reference of the operations and associated key sequences that can be performed from the wireless Remote Control Unit
Guidance on re-programming the firmware of various kit components
Compliance statements and documentation for certain kit components
Conventions
Files, folders, functions and parameter types are represented in bold type.
Function parameters are represented in italics type.
Code fragments are represented in the Courier New typeface.
This is a Tip. It indicates useful or practical information.
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 7
8
About this Manual
This is a Note. It highlights important additional information.
This is a Caution. It warns of situations that may result in equipment malfunction or damage.
Acronyms and Abbreviations
API
IP
Application Programming Interface
Internet Protocol
JenNet Jennic Network
LAN Local Area Network
PWM Pulse Width Modulaton
SDK Software Developer’s Kit
WAN Wide Area Network
WPAN Wireless Personal Area Network
Related Documents
JN-UG-3080 JenNet-IP WPAN Stack User Guide
JN-UG-3086 JenNet-IP LAN/WAN Stack User Guide
JN-UG-3064 SDK Installation and User Guide
JN-UG-3007 JN51xx Flash Programmer User Guide
JN-AN-1162 JenNet-IP Smart Home Application Note
Trademarks
“JenNet”, “JenNet-IP” and the tree icon are trademarks of NXP B.V..
All trademarks are the property of their respective owners.
© NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
Certification
In order to use the JenNet-IP trademark and logo on a JenNet-IP product, the product must to be certified. This is to ensure that the product correctly supports the JenNet-
IP protocol and that JenNet-IP products will interoperate with each other. It is possible to use the JenNet-IP software stack on non-certified products but, in this case, the
JenNet-IP trademark and logo cannot be displayed on the product. For further information, see www.JenNet-IP.com.
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 9
About this Manual
10 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
1. Introduction to the Evaluation Kit
Welcome to the JenNet-IP EK040 Evaluation Kit. This kit allows a small wireless network of devices to be monitored and controlled in either of the following ways:
Wirelessly from a remote control unit within the network
From an external device (such as a PC, tablet or mobile phone) via an IP connection (e.g. via the Internet)
The kit components are pre-loaded with a Smart Home demonstration application, developed using the NXP JenNet-IP network protocol and associated libraries. The evaluation kit can also be used in conjunction with the JenNet-IP software to develop custom wireless control and monitoring applications for lighting or other suitable targets.
This chapter introduces you to JenNet-IP and the evaluation kit by describing the:
concept of a JenNet-IP system - see
contents of the kit - see
hardware features of the kit - see
1.1 JenNet-IP System
JenNet-IP is a proprietary NXP protocol which is based on the 6LoWPAN industry standard. A 6LoWPAN system employs a blend of wired and wireless technologies to achieve flexible communication within a wide range of applications/markets.
6LoWPAN allows communication between a wireless network and remote devices via wired IP connections. A particular feature of 6LoWPAN is that communications are packaged in IPv6 (Internet Protocol version 6) messages.
JenNet-IP is an implementation of 6LoWPAN in which NXP’s JenNet protocol is used as the wireless network protocol in the system. Thus, JenNet is used as the wireless network layer of the 6LoWPAN stack, giving rise to the JenNet-IP stack (see
).
A typical JenNet-IP system includes a number of Wireless Personal Area Networks
(WPANs) connected together using a wired Local Area Network (LAN), such as an
Ethernet bus, which is itself connected to a Wide Area Network (WAN), such as the
Internet. This is illustrated in Figure 1 below.
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 11
Chapter 1
Introduction to the Evaluation Kit
IP Host
WPAN
WAN
(e.g. Internet)
IP Host
Border-Router
Border-Router
LAN
Border-Router
WPAN
WPAN
Figure 1: Typical JenNet-IP System
Such an arrangement allows:
Nodes in separate WPANs to communicate via the LAN
A remote device (IP Host) to access a WPAN node via the WAN and/or LAN
Each WPAN is interfaced to the LAN by means of a Border-Router device.
An example application is the provision of remote access, via the Internet, to a wireless lighting system - for example, the lighting system in a warehouse could be remotely controlled from a PC in an office (which need not be on the same site) or from a mobile phone while travelling.
In practice, a JenNet-IP system can incorporate multiple LANs (and their associated
WPANs) connected together via a WAN (such as the Internet).
12 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
1.2 Kit Contents
In the JenNet-IP EK040 Evaluation Kit, you will find the following components
(numbers refer to Figure 2 ):
1.
Linksys Wireless-N Broadband Router (WRT160NL), with the following accessories:
12V DC power supply unit (universal type)
2 antennae with SMA connectors
RJ45 Ethernet cable
USB extension cable
2.
Remote Control Unit, based on the JN5148-J01 wireless microcontroller
3.
4 carrier boards, each pre-fitted with a Lighting/Sensor expansion board
(Arduino-compatible shield) and a JN514x-based plug-on module:
2 fitted with a JN5148-J01 module with uFl connector for antenna
1 fitted with a JN5142-J01 module with uFl connector for antenna
1 fitted with a JN5142-J01 module with integrated PCB antenna
4.
2 JN5148-J01 high-power modules with uFl connector for antenna
5.
2 JN5148-J01 high-power USB dongles with integrated PCB antenna
6.
Programming dongle for Remote Control Unit
7.
4 push-through antennae (for use with modules with uFl connectors)
8.
3 ‘USB A to Mini B’ cables
9.
2 packs of 10 AAA batteries
8
7
1
6
5
3
JN-UG-3089 v1.2
9
4
2
Figure 2: JenNet-IP EK040 Evaluation Kit Components
© NXP Laboratories UK 2012 13
Chapter 1
Introduction to the Evaluation Kit
The JN514x modules, USB dongles and Remote Control Unit of this evaluation kit are pre-programmed with the relevant binaries for the JenNet-IP Smart Home
demonstration (see Section 1.4
The Linksys router is also pre-programmed with an NXP firmware update.
1.3 Kit Hardware
This section details the hardware devices supplied in the JenNet-IP EK040 Evaluation
Kit (see
for full kit contents):
Remote Control Unit (and programming dongle) - see
Lighting/Sensor expansion boards - see
JN514x modules - see
1.3.1 Remote Control Unit
The Remote Control Unit (part number: DR1159) is designed around the JN5148-J01 device and features a 16-button capacitive-touch keypad. The unit acts as a wireless node in a WPAN of a JenNet-IP system, allowing other member nodes to be controlled from within the WPAN.
The unit has the following features:
16 capacitive-touch buttons in a 4x4 keypad with configurable functions
Separate ‘Wake’ button (below keypad) to bring unit out of sleep mode
2 green ultra low-power LEDs
Powered by 2 AAA batteries
Firmware programming through header accessed via the battery compartment
(programmed via supplied dongle - see below)
The front of the unit is shown in Figure 3
, along with the programming dongle (part number: DR1128). Firmware re-programming of the Remote Control Unit is described in
The battery compartment is accessed via a slide-cover on the rear of the unit. The required battery polarities are indicated on the inside of the compartment.
14 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
Figure 3: DR1159 Remote Control Unit (and DR1128 Programming Dongle)
1.3.2 Carrier Boards
The four carrier boards (part number: DR1174) are physically identical. However, while all them are pre-fitted with the same type of Lighting/Sensor expansion board
), they are also pre-fitted with a range of JN514x-based plug-on
(removable) modules:
2 boards are fitted with a JN5148-J01 module with uFl connector for antenna
1 board is fitted with a JN5142-J01 module with uFl connector for antenna
1 board is fitted with a JN5142-J01 module with integrated PCB antenna
Up to two of the modules with uFl connector can be replaced with the supplied JN5148 high-power modules (but they are not pre-programmed or needed for the JenNet-IP
Smart Home demonstration). The supplied modules are described in Section 1.3.4
.
Each carrier board has the following features (also refer to Figure 4 and
JN51xx module site
Arduino-compatible header
10-way JTAG header
PCB pads for 40-way expansion header
Analogue interface header for access to JN51xx DACs and comparators
USB Mini-B port for JN51xx module programming or UART connection
2 apertures for push-through antennae
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 15
Chapter 1
Introduction to the Evaluation Kit
On-board 32-kHz crystal oscillator (connected across DIO9 and DIO10 of module but not routed to Arduino-compatible header)
Reset button
User-input button (SW1 connected to DIO8 of module)
3 green ultra low-power LEDs for Power, UART Tx and UART Rx
2 green LEDs for debug purposes (connected to DIO2 and DIO3 of module)
Powered from one of the following (see
):
4 AAA batteries on the board
2 AAA batteries (low-power mode) on the board
External 7-12V DC supply
External device via USB port
SW2 / RST
C9
USB Port
Port
J4
TX RX
D1 D2
CN2
13 12 11 10 9
DIGITAL
CN1
5 4 3 2
DR1174
D3 D6
Antenna
Site
CN3
C1M
C1P
D1
D2
C2P
C2M
SW1 / DIO8
J5 J9
DC Power
J8
JTAG
J6
CN5 CN4
0 1 2 3
ANALOG IN
Module Connector
1
Figure 4: DR1174 Carrier Board Layout
Antenna
Site
16 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
Figure 5: Carrier Board (with JN514x Module)
Note the following:
The Lighting/Sensor expansion board (see
) is an Arduinocompatible shield attached to the Arduino-compatible header.
The JN514x-based module which is pre-fitted to the module site has been preloaded with the JenNet-IP Smart Home demonstration.
An antenna aperture can accommodate one of the supplied push-through antennae and is for use with a module that uses a uFl antenna connection (see
).
In low-power mode, which uses just 2 AAA batteries, only the JN514x module is powered (this mode can be used to make low-current measurements).
1.3.2.1
Power Source Selection
The board can be used in normal-power mode or low-power mode, as follows.
Normal-Power Mode
In normal-power mode, the board can be powered from one of the following:
4 AAA batteries, connected on the underside of the board
External 7-12V DC supply via 2.1-mm connector
External device via USB Mini B connector
The voltage regulator must be selected for the external DC and USB power supplies
by putting the jumper J4 into the REG position, as illustrated in Figure 6 - the regulator
is not needed for battery power. However, for all sources in normal-power mode, the
Low PWR jumper must be put in the REG position (see
below).
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 17
Chapter 1
Introduction to the Evaluation Kit
J4
DC or USB (regulator used)
J4
Batteries (regulator not used)
Figure 6: Regulator Selection (using Jumper J4)
Caution: When using an external DC Power Supply
Unit (PSU) with a carrier board, only a 7-12V PSU with a
2.1-mm connector must be used. The PSU provided for the Linksys router can be used for a carrier board, if the router is not needed.
Low-Power Mode
In low-power mode, the board is powered from 2 AAA batteries connected in the lower two battery holders (nearest to the 40-way header) on the underside of the board. In this mode, only the JN514x module is powered (this mode can be used to make lowcurrent measurements). To select low-power mode, the Low PWR jumper must be put in the BAT position, as illustrated in
- this jumper is hidden under the Lighting/
Sensor expansion board (see Figure 4 for its location), which must be removed to change the jumper setting. The jumper J4 (used in normal-power mode) has no effect in low-power mode and can be left in any position.
18
Normal-power mode
Low-power mode
Figure 7: Lower-Power Mode Selection (using Jumper Low PWR)
© NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
1.3.2.2
Pre-assembled Boards
As indicated above, each carrier board is supplied pre-fitted with a JN514x module
and a Lighting/Sensor expansion board. Figure 8 below shows a pre-assembled
board carrying a module with a separate antenna (also shown).
Figure 8: Carrier Board Pre-fitted with Modules and Expansion Boards
The expansion board is described in Section 1.3.3
and the modules are described in
, which also describes how to fit an antenna and re-program the firmware in the modules.
1.3.3 Lighting/Sensor Expansion Boards
The four Lighting/Sensor expansion boards (part number: DR1175) are physically identical. They are Arduino-compatible shields that are supplied pre-fitted to the
Arduino-compatible headers of the four carrier boards (see
Each expansion board has the following features (also refer to
3 white dimmable LEDs:
Controlled in unison by Pulse Width Modulation (PWM)
Driven by the PWM output of JN514x Timer 1 on the module on the carrier board, via DIO13 on the module (for details of the JN514x timers and
DIOs, refer to the datasheet for the appropriate chip).
Colour LED module containing 3 LEDs:
LEDs are independently controlled by PWM
Connected to the 2-wire Serial Interface (I
2
C) of the module on the carrier board, via DIO14 (clock) and DIO15 (data) on the module
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 19
Chapter 1
Introduction to the Evaluation Kit
Humidity/temperature sensor (of the type SHT1x) connected to the module on the carrier board, via DIO12 (data) and DIO17 (clock) on the module
Light sensor (of the type TSL2550), connected to the 2-wire Serial Interface
(I
2
C) of the module on the carrier board, via DIO14 (clock) and DIO15 (data) on the module
Reset button (to reset the carrier board)
CN2
Prototype
Area
DR1175
Sensors
CN1
Light
Sensor
U4
Temp/
Humidity
Sensor
U5
LED Lighting
Multi-Colour
LED Module
D7
White LED’s
CN6
RESET
CN3
D1, D2, D3
CN4
Figure 9: DR1175 Lighting/Sensor Expansion Board Layout
20
Figure 10: Lighting/Sensor Expansion Board
Caution: The LEDs on the Lighting/Sensor expansion board are very bright at maximum intensity. To avoid damage to your eyes, do not look into them directly for an extended period of time.
© NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
1.3.4 JN514x Modules
Four types of JN514x-based module are supplied in the kit:
JN5148-J01-T03 (JN5148-J01-M03 on mezzanine board)
Two of these modules are supplied, pre-fitted onto carrier boards. The module features the JN5148-J01 wireless microcontroller and 4 Mbytes of Flash memory. A uFL connector is used to connect the module to an antenna on the carrier board via a fly lead (see below).
JN5142-J01-T03 (JN5142-J01-M03 on mezzanine board)
One of these modules is supplied, pre-fitted onto a carrier board. The module features the JN5142-J01 wireless microcontroller and 1 Mbyte of Flash memory. A uFL connector is used to connect the module to an antenna on the carrier board via a fly lead (see below).
JN5142-J01-T00 (JN5142-J01-M00 on mezzanine board)
One of these modules is supplied, pre-fitted onto a carrier board. The module features the JN5142-J01 wireless microcontroller and 1 Mbyte of Flash memory. The module has an integrated antenna.
JN5148-J01-T06 (JN5148-J01-M06 on mezzanine board)
Two of these modules are supplied. The module features the JN5148-J01 wireless microcontroller and 4 Mbytes of Flash memory. As a high-power module, it can be used to replace a pre-fitted standard power module in order to achieve a larger radio transmission range. A uFL connector is used to connect the module to an antenna on the carrier board via a fly lead (see below).
Note: The JN514x modules are pre-programmed with the JenNet-IP Smart Home demonstration, except the
JN5148-J01 high-power modules which are not needed for the demonstration. Firmware re-programming of the
JN514x modules is described in
1.3.4.1
Antenna Mounting and Connection
The JN514x modules with uFL connectors must be used with the four supplied antennae. An antenna is provided with a 7-cm fly lead attached, which allows the antenna to be connected to the module. To mount and connect an antenna, proceed
as follows (also refer to Figure 11
and
):
1.
Take an antenna and detach the base piece from the antenna.
2.
Push the antenna base piece into a hexagonal hole on the carrier board from the front of the board until the collar is flush with the board.
3.
Thread the fly lead (which is attached to the antenna) through the base piece, from front to back.
4.
Continue feeding the attached antenna into the base piece from the front, moving it slightly until it clicks into the slot (push the antenna firmly into place).
5.
Connect the free end of the fly lead to the uFL connector on the module.
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 21
Chapter 1
Introduction to the Evaluation Kit
Figure 11: Stages of Antenna Mounting
22
Figure 12: Antenna Mounting and Connection
Caution: Once you have mounted an antenna on a board, do not remove it as the antenna assembly is fragile and may be damaged on removal.
© NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
1.3.5 USB Dongles
Two JN5148-J01 high-power USB dongles (part number: DR1131) are supplied in the kit. Each dongle features the JN5148-J01 wireless microcontroller and 4 Mbytes of
Flash memory.
The two dongles are pre-programmed with identical software. This software allows the the dongle to be plugged into the USB port of the Linksys router (see
), together forming a ‘Border-Router’:
The dongle provides the interface with the WPAN part of the JenNet-IP system, also acting as the WPAN Co-ordinator
The Linksys router provides the interface with the LAN/WAN part of the
JenNet-IP system
Firmware re-programming of the USB dongles is described in
Note 1: The USB dongle should not be plugged directly into a USB port of the Linksys router but connected to a
USB port via the USB extension cable supplied with the router. This facilitates improved radio performance of the dongle.
Note 2: Since both dongles are identical, it does not matter which one you choose to use with the Linksys router. You may wish to re-programme the other dongle
- for example, as a wireless network packet sniffer using the software provided in the Application Note Protocol
Analysis with Wireshark (JN-AN-1115).
The dongle has the following features (also refer to
JN5148-J01 device (mounted directly on the board)
Integrated PCB antenna
High-power capability (see below)
NXP LPC1343 USB interface and connector (interface chip is connected to
UART0 of the JN5148-J01 device)
This dongle is a high-power device with a radio transmission capability similar to the high-power modules provided in the kit (see
JN-UG-3089 v1.2
Figure 13: DR1131 JN5148-J01 USB Dongle
© NXP Laboratories UK 2012 23
Chapter 1
Introduction to the Evaluation Kit
1.3.6 Linksys Router
The Linksys Wireless-N Broadband Router (WRT160NL) is supplied in the kit along accessories consisting of :
12V DC power supply unit (universal type)
2 antennae with SMA connectors
RJ45 Ethernet cable
USB extension cable
The router and its accessories are shown in Figure 14 below (the USB dongle shown
is also supplied in the kit - see below).
24
Figure 14: Linksys Router and Accessories
Caution: The external PSU acts as a disconnect device to isolate the equipment from the mains supply. It should also be noted that it depends on over-current protection of the building installation.
The supplied Linksys router has been pre-programmed with an NXP firmware upgrade which allows the router to operate in a JenNet-IP system. The router is used in conjunction with a JN5148-J01 high-power USB dongle (see
an interface between a WPAN of the JenNet-IP system (containing the devices to be controlled) and the LAN/WAN part of the system (containing a controlling device), where the latter part of the system is one of:
Wired IP or Ethernet bus (possibly connected to the Internet)
Wi-Fi network (possibly connected to the Internet)
These two implementations are illustrated in
below.
© NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
Note 1: The USB dongle (see
) should not be plugged directly into a USB port of the Linksys router but connected to a USB port via the supplied USB extension cable. This facilitates improved radio performance of the dongle.
Note 2: Wi-Fi is disabled by default on the supplied
Linksys router. If required, it must be enabled.
LAN (e.g. Ethernet)
+
JenNet-IP WPAN
Wi-Fi network
+
JenNet-IP WPAN
Figure 15: Linksys Router Implementation
Together the Linksys router and USB dongle form a ‘Border-Router’ for the WPAN:
The Linksys router provides the interface with the LAN/WAN part of the JenNet-
IP system
The dongle provides the interface with the WPAN part of the JenNet-IP system, also acting as the WPAN Co-ordinator
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 25
Chapter 1
Introduction to the Evaluation Kit
1.4 Smart Home Demonstration
The components of the kit are pre-loaded with the software for the JenNet-IP Smart
Home Demonstration, which can be set up and run in either of two configurations:
Full mode, described in
, in which the nodes of a WPAN can be controlled:
from outside the WPAN, via an IP connection from a PC
from within the WPAN, from a wireless Remote Control Unit
Standalone mode, described in
, in which the nodes of a WPAN can be controlled only from a wireless Remote Control Unit within the WPAN (there is no IP connection)
The demonstration application code is described in the JenNet-IP Smart Home
Application Note (JN-AN-1162), which also contains the relevant source and binary files.
26 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
2. JenNet-IP System Concepts
This chapter outlines the essential concepts that you will need in order to set up and run the supplied JenNet-IP Smart Home demonstration. As indicated in
page
, a JenNet-IP system is built using a combination of Internet and wireless network technologies. Therefore, information is provided here on:
Wireless networks (WPANs)
Internet Protocol
JenNet-IP software architecture
You should read this chapter before attempting to assemble, configure and run the
demonstration (as described in Chapter 3 and
Note: These concepts are more fully described in the
JenNet-IP WPAN Stack User Guide (JN-UG-3080) and
JenNet-IP LAN/WAN Stack User Guide (JN-UG-3086).
2.1 Wireless Network Concepts
This section briefly describes the aspects of wireless networks (WPANs) that you will need to understand in order to operate the JenNet-IP Smart Home demonstration.
2.1.1 Radio Frequency
The NXP boards used as the wireless network nodes of the demonstration system communicate in the 2400-MHz radio frequency (RF) band. This is one of the standard
RF bands used by the IEEE 802.15.4 protocol on which the wireless network is built.
The band is available for unlicensed use in most geographical areas (check your local radio communication regulations).
The 2400-MHz band spans radio frequencies 2405 to 2480 MHz and is divided into 16 channels, numbered 11 to 26 (the numbers up to 10 are used for other RF bands). In the demonstration system, the channel of operation can be:
specified by the user, or
automatically selected by the system as the result of a channel energy scan
(the best operating channel is selected as the one with least detected activity)
Note: In the JenNet-IP Smart Home demonstration, the channel number is set to 0 so that the system will automatically select the best operating channel.
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 27
Chapter 2
JenNet-IP System Concepts
2.1.2 Node Types
In addition to running an application, each node of a WPAN has a networking role. A
WPAN can contain three types of node, differentiated by their networking roles, as described below:
Node Type
Co-ordinator
Router
End Device
Description
Every WPAN must have a Co-ordinator. This node has a role in starting and forming the network, and can also have a routing role
(passes messages from one node to another). The Co-ordinator is always the first node to be started and the network then forms around it.
This node passes messages from one node to another, although this routing functionality need not be used (in which case the node acts as an End Device). Messages can also originate and/or terminate at a Router.
This node is simply a place where messages can originate and/or terminate (the node does not have a routing role). In order to conserve power, an End Device can sleep when it is not required to be active.
Table 1: Node Types in a WPAN
In the JenNet-IP Smart Home demonstration system, a USB dongle from the evaluation kit acts as the WPAN Co-ordinator. The boards from the evaluation kit act as the Routers of the network. There are no End Devices in the demonstration.
Note: The Remote Control Unit of the evaluation kit acts as a ‘sleepy broadcaster’ during normal operation of the demonstration. This is not one of the standard WPAN node types listed above. It is a device that sleeps and only wakes when it is needed to broadcast commands.
28 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
2.1.3 Network Topology
A WPAN in a JenNet-IP system normally has a Tree topology, which determines how the nodes are linked and how messages propagate through the network.
A Tree network consists of a Co-ordinator, Routers and End Devices. The Coordinator is linked to a set of Routers and End Devices - its children. A Router may then be linked to more Routers and End Devices - its children. This can continue to a number of levels and can be visualised as a tree structure with the Co-ordinator at the top, as illustrated in
Co-ordinator
Router Router
End Device End Device End Device
Figure 16: Tree Network
Thus, the Co-ordinator and Routers can have children and therefore can be parents, but End Devices cannot have children and therefore cannot be parents.
In sending a message from one node to another, the message travels from the source node up the tree to the nearest common ancestor and then down the tree to the destination node.
Note: In JenNet-IP ‘standalone mode’, described in
Chapter 4 , the WPAN is initially formed as a Tree
network with the Remote Control Unit as the network
Co-ordinator. However, this topology is not subsequently used in the operation of the network. In this mode, the Remote Control Unit broadcasts a control message and any receiving Routers will re-broadcast it
(there is no selective routing down the tree). Thus, the message is received by all nodes, with the target node able to identify itself and take the appropriate action.
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 29
Chapter 2
JenNet-IP System Concepts
Different tree topologies can be formed, even from the same set of nodes. When a network is started, the resultant topology depends on a number of factors, including the order in which the nodes were started and their relative positions. The figure below shows three different but valid tree networks, all formed using a Co-ordinator, two
Routers and three End Devices.
Figure 17: Different Tree Networks
Note that a Router can be used as a ‘leaf’ node in a Tree network, in which case its routing capability is not utilised. This is the case in the JenNet-IP Smart Home demonstration (in which there are no nodes programmed as End Devices).
30 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
2.1.4 Network Identity
An individual WPAN in a JenNet-IP system can be identified in two ways:
PAN (Personal Area Network) ID: The PAN ID is a 16-bit value which is used at a low level (it is a feature of the IEEE 802.15.4 protocol) - for example, it is used in the delivery of messages sent between nodes. A value for the PAN ID is pre-set in the Co-ordinator. Routers and End Device will subsequently learn the PAN ID when they join the network.
Note: In the JenNet-IP Smart Home demonstration, the
PAN ID is pre-set to the special value 0xFFFF, which forces the WPAN Co-ordinator to select a suitable PAN
ID (which does not clash with that of other networks).
Network Application ID (or JenNet ID): This is a 32-bit value which can be used at the application level to identify the WPAN. If used, it is defined by the application developer in order to ensure that nodes joining the WPAN are running the correct application (all node applications in the WPAN should have the same Network Application ID).
Note: In the JenNet-IP Smart Home demonstration, the
Network Application ID (JenNet ID) is pre-set to the value 0x11111111. However, its value can be changed
via the Border-Router (see Section 3.2.1
) - this is useful if multiple WPANs based on this demonstration are to operate within radio range of each other.
2.1.5 Node Addresses
The basic way of referring to a node in a network is by means of a numeric address.
In a WPAN, the IEEE or MAC address of the device is commonly used. This is a 64bit address, allocated by the IEEE, which uniquely identifies the device in the world – this address is fixed for the lifetime of the device. It is also sometimes called the
‘extended’ address.
In a JenNet-IP system, a WPAN node is identified by means of its IPv6 address. This is a 128-bit address which is formed from a 64-bit address prefix (specified by the system developer) and the 64-bit MAC address of the node. For more information on
IPv6 addresses, refer to Section 2.2
below.
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 31
Chapter 2
JenNet-IP System Concepts
2.2 IP Concepts
This section briefly describes the aspects of the Internet Protocol (IP) that you will need to understand in order to operate the JenNet-IP Smart Home demonstration. For a more complete introduction to IP, refer to the JenNet-IP LAN/WAN Stack User Guide
(JN-UG-3086).
2.2.1 IP Data Packets
The Internet Protocol is used by computers/servers on the worldwide web, and other communications networks, to transfer data between each other. The data is transported across an IP network in a packet or datagram, which is a group of data bits comprising header information and payload data. The destination device for an IP packet is represented by an IP address in the packet header.
An IP data packet may need to pass through many devices or networks to reach the final destination device. IP is a connectionless protocol, which means that no circuit set-up is required before a packet is sent out - that is, there is no pre-determined path to reach the destination device. Packets between particular source and destination devices may take different routes through the network(s) at different times, according to local conditions such as traffic loads and link failures.
IP is an unreliable service based on ‘best effort’ delivery. The network makes no guarantee about the proper arrival of packets, data corruption, out-of-order delivery, duplicate arrival, and lost or dropped/discarded packets.
2.2.2 IPv6 Addresses
The Internet has so far predominantly used the Internet Protocol version 4 (IPv4). IPv4 uses 32-bit (4-byte) addresses, giving rise to an address space containing 2
32
(or nearly 4300 million) unique IP addresses. Part of this address space is reserved for special purposes, such as private networks and multi-cast addresses, reducing the number of addresses available for public Internet use by approximately 34 million.
However, the IPv4 address space is now effectively exhausted and therefore cannot support the future expansion of the Internet.
Internet Protocol version 6 (IPv6) has, so far, been introduced to a limited extent, but is destined to supersede IPv4 as a means of avoiding IP address exhaustion. IPv6 uses 128-bit (16-byte) addresses, giving rise to an address space containing 2
128
(or approximately 3.4 x 10
38
) unique IP addresses. It is unimaginable that this address space will ever be exhausted.
IPv6 128-bit addresses are normally represented as eight groups of four hexadecimal digits, where each group is separated by a colon (:). For example:
2001:DB8F:756A:0000:0000:9B67:084C:6112
Any leading zeros in a group of four hex digits may be omitted. Continuing from the previous example:
2001:DB8F:756A:0:0:9B67:84C:6112
32 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
One or more consecutive groups of 0s can be replaced with a double-colon (::). For example:
2001:DB8F:756A::9B67:84C:6112
Substitution with a double-colon may be performed only once within an address, since multiple occurrences of the double-colon can be ambiguous. For example, writing address 2001:DB84:385A:0:0:0:3A6D as 2001:DB84::385A::3A6D could be interpreted as any one of the following:
2001:DB84:0:0:0:385A:0:3A6D
2001:DB84:0:0:385A:0:0:3A6D
2001:DB84:0:385A:0:0:0:3A6D
2.2.3 IPv6 Address Components
A 128-bit IPv6 address consists of two 64-bit parts:
Address Prefix: This comprises the 64 most significant bits of the address and identifies the network. This prefix will therefore be the same for all devices in a network. The Address Prefix is itself subdivided into two parts:
Site Prefix: This comprises the 48 most significant bits of the Address
Prefix and is allocated by an Internet Service Provider (ISP) or the
Regional Internet Registry (RIR).
Subnet ID: This comprises the 16 least significant bits of the Address
Prefix and, as the name suggests, identifies a particular subnet on the organisation’s site. It is assigned by the local IT administrator.
Host Interface ID: This comprises the 64 least significant bits of the address and identifies a particular device in the network. It is normally taken to be the
IEEE (MAC) address of the device (which is itself a universally unique identifier), with bit 57 inverted.
Address
Prefix
Host
Interface ID
X:X:X:X:X:X:X:X
Site Subnet
Prefix ID
Figure 18: IPv6 Address Components
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 33
Chapter 2
JenNet-IP System Concepts
2.3 JenNet-IP Software Stacks
A JenNet-IP system consists of a WPAN part and a LAN/WAN part. The WPAN and
LAN/WAN domains are connected via a Border-Router device, one for each WPAN - see
on page
. The Border-Router is normally the same device as the
WPAN Co-ordinator node.
Therefore, the software in a JenNet-IP system runs in three distinct parts of the system:
Nodes of the WPAN
Border-Router between the WPAN and LAN/WAN domains
Devices in the LAN/WAN domain (IP Hosts)
These divisions are illustrated in the figure below.
LAN/WAN Device
Application
JenNet-IP
LAN/WAN Stack
(OS-based)
Border-Router
LAN/WAN Interface
WPAN Interface
Application
Serial Connection
Application
JenNet-IP
LAN/WAN Stack
(Linux OS-based)
JenNet-IP
WPAN Stack
WPAN Node
Application
JenNet-IP
WPAN Stack
34
Figure 19: Software Divisions in JenNet-IP System
Working from right to left in the above diagram:
WPAN Node: The user application operates over the JenNet-IP WPAN stack, which communicates with the Border-Router via an IEEE 802.15.4 radio link.
Border-Router: This device has both LAN/WAN and WPAN interfaces:
WPAN Interface: This side of the Border-Router runs a JenNet-IP WPAN stack, which communicates with the equivalent stack on the WPAN nodes
- this side of the Border-Router usually acts as the WPAN Co-ordinator node
LAN/WAN Interface: This side of the Border-Router runs a JenNet-IP
LAN/WAN stack, which communicates with the equivalent stack on the
LAN/WAN device (IP Host) - this side of the Border-Router must be a
Linux-based device
The two sides of the Border-Router communicate via a serial link.
LAN/WAN Device: The user application operates over a JenNet-IP LAN/WAN stack, which is connected to the Border-Router via an IP (IPv6 or IPv4) link.
© NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
More details on the above software are provided in the JenNet-IP WPAN Stack User
Guide (JN-UG-3080) and JenNet-IP LAN/WAN Stack User Guide (JN-UG-3086).
The two JenNet-IP stack types are outlined in the sub-sections below. The roles of
these stacks in handling data messages are also indicated in Section 2.4
2.3.1 JenNet-IP WPAN Stack
The layers of the JenNet-IP WPAN stack are indicated in the figure below. This stack is described in more detail in the JenNet-IP WPAN Stack User Guide (JN-UG-3080).
User Application
JIP
UDP
IP
6LoWPAN
JenNet
Application level
Network level
IEEE 802.15.4 MAC layer
IEEE 802.15.4 PHY layer
Figure 20: JenNet-IP WPAN Stack
Physical/Data Link level
2.3.2 JenNet-IP LAN/WAN Stack
The layers of the JenNet-IP LAN/WAN stack are indicated in the figure below. This stack is described in more detail in the JenNet-IP LAN/WAN Stack User Guide
(JN-UG-3086).
JN-UG-3089 v1.2
Provided by
Operating
System
User Application
JIP
UDP
IP
Ethernet or WiFi
Figure 21: JenNet-IP LAN/WAN Stack
© NXP Laboratories UK 2012
Application level
Network level
Physical/Data Link level
35
Chapter 2
JenNet-IP System Concepts
2.4 Data Message Handling
A data message may be sent from any part of the system to any other. Since a JenNet-
IP system is IPv6-based, a message is sent in an IPv6 packet.
A WPAN operates using the IEEE 802.15.4 standard protocol at its lowest level and messages are exchanged within the network as IEEE 802.15.4 frames. Thus, within a
WPAN, IPv6 packets are embedded inside IEEE 802.15.4 frames.
The sub-sections below outline the roles of the stack in sending, receiving and passing on messages in a JenNet-IP system.
2.4.1 Sending and Receiving Messages
In sending and receiving messages, the JenNet-IP WPAN stack on a wireless node operates as follows:
Sending Data: Moving down the stack, when sending a message from the application, the message is first inserted into a UDP packet which is then embedded into an IPv6 packet by the IP layer. Since an IPv6 packet is normally too large to fit into the payload of an IEEE 802.15.4 frame, the 6LoWPAN layer compresses the IPv6 packet before it is inserted into the frame at the IEEE
802.15.4 layer. If the compressed packet is still too large, 6LoWPAN fragments the compressed packet for transportation in two or more frames.
Receiving Data: Moving up the stack, when receiving a message, the payload of the incoming IEEE 802.15.4 frame is extracted. This data is then decompressed by the 6LoWPAN layer (which also combines fragmented packets, if necessary). The resulting IPv6 packet is disassembled by the IP layer to obtain the embedded UDP packet, from which the message is extracted and passed to the application.
2.4.2 Passing Messages Through the Border-Router
Passing a message through the Border-Router from LAN/WAN to WPAN domains, or vice-versa, requires the transformation of the message, as follows:
LAN/WAN to WPAN: In the LAN/WAN domain, the message is transported as an IPv6 packet (possibly inside an Ethernet packet on the LAN). In passing the message into the WPAN domain, the Border-Router must compress the IPv6 packet and insert it into one or more IEEE 802.15.4 frames, in which the message will be transported in the WPAN domain.
WPAN to LAN/WAN: In the WPAN domain, the message is transported as a compressed IPv6 packet embedded in one or more IEEE 802.15.4 frames. In passing the message into the LAN/WAN domain, the Border-Router must extract the payload data from the frame(s), decompress it and pass on the resulting IPv6 packet.
36 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
3. Smart Home Demonstration
The chapter describes how to use the contents of the JenNet-IP EK040 Evaluation Kit to set up and run the pre-loaded JenNet-IP Smart Home demonstration. This demonstration is based on a WPAN with nodes containing lights, which may be monitored and controlled as follows:
via an IP connection from a remote device on a LAN or WAN (e.g from a PC)
wirelessly from a Remote Control Unit within the WPAN
Note: A ‘standalone’ version of the JenNet-IP Smart
Home demonstration is also available which does not provide IP connectivity, allowing only wireless control of the nodes from a Remote Control Unit within the WPAN.
If you prefer to set up and run the standalone version, go to
This chapter guides you through the set-up and operation of the demo system, as follows:
provides an overview of the demo system, describing the roles of the evaluation kit components in the demonstration
details how to set up the demonstration network from the contents of the evaluation kit and run the pre-loaded software.
describes how to operate the demonstration.
3.1 Demo System Overview
In the JenNet-IP Smart Home demonstration, a set of lights/sensors form a WPAN which can be accessed either from a Remote Control Unit within the WPAN or from a
PC located on an Ethernet bus. The components of the JenNet-IP EK040 Evaluation
Kit are used in the demonstration as follows:
Carrier Boards with Lighting/Sensor Expansion Boards: The four carrier boards supplied in the kit are pre-fitted with Lighting/Sensor expansion boards
(Arduino-compatible shields) and JN514x modules. Each of these four board assemblies acts as a node of the WPAN, where the JN514x module on each node is pre-programmed as a WPAN Router. In the demonstration, the white
LEDs (on the expansion boards) are the lights to be controlled. The carrier boards, expansion boards and JN514x modules are separately described in
, respectively.
Remote Control Unit: The Remote Control Unit acts as a node of the WPAN.
In the demo described in this chapter, the unit initially behaves as a WPAN
Router until it has joined the network and then acts as a ‘sleepy broadcaster’. In the latter mode, the device sleeps and only wakes when it is needed to broadcast control commands (it does not have the role of a conventional WPAN node). If sleeping, the unit must be activated using the Wake (circle) button
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 37
Chapter 3
Smart Home Demonstration
below the keypad before any other keys are pressed (also refer to Section
). The Remote Control Unit is described in Section 1.3.1
.
USB Dongle: This demonstration uses one of the supplied USB dongles programmed as a Border-Router and WPAN Co-ordinator. The dongle connects to the Linksys router (via the USB extension cable). Together they provide the Border-Router which is the interface between the WPAN and LAN/
WAN domains - the dongle handles the WPAN side of this interface. The dongle is also the Co-ordinator node of the WPAN. The USB dongle is
Linksys Router: The Linksys router has been pre-programmed with an NXP firmware upgrade which allows the router to operate in a JenNet-IP system. It is connected to the above USB dongle (via the USB extension cable). Together they provide the Border-Router which is the interface between the WPAN and
LAN/WAN domains - the router handles the LAN/WAN side of the interface and connects to the Ethernet bus on which the controlling PC is located. The
Linksys router is described in Section 1.3.6
.
The Smart Home demo system is illustrated in Figure 22 below.
PC
Issues control commands via http interface
Light
Light
Carrier
Board
Remote
Control Unit
Ethernet
LAN
(IP)
Carrier
Board
NXP
JenNet-IP WPAN
(IEEE 802.15.4)
Light
Light
Border Router
Carrier
Board
Carrier
Board
USB
USB Dongle
Co-ordinator
Linksys Router
Figure 22: Smart Home Demo System
The WPAN will have a tree topology but its precise topology cannot be pre-determined since the network is formed dynamically. One or more of the Routers may be leafnodes of the tree, in which case their routing capability will not be used.
38 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
3.1.1 Lighting Control from a PC
In this demonstration, control and monitoring commands can be issued from a PC on an Ethernet LAN connected to the Border-Router, from where the commands will be delivered to the target nodes in a WPAN. A command can be directed to an individual node in the form of a unicast or to groups of nodes in the form of a broadcast.
Two web applications are provided on the Linksys router that allow a PC user to monitor and control the lights in the WPAN. These applications run on the router and serve web pages to a normal web browser on the PC, allowing the user to interact with the WPAN nodes through the Border-Router. The applications are:
Smart Devices interface: This application provides a high-level interface for monitoring and controlling the lights in the WPAN, through easy-to-use graphical controls (on-screen buttons and a slider control). The application can be accessed by entering the following (case-sensitive) IP address into the web browser:
http://192.168.11.1/cgi-bin/SmartDevices.cgi
JenNet-IP Browser: This application provides a low-level interface for monitoring and controlling the lights in the WPAN, allowing the user to access the MIBs on the WPAN nodes (see
for an introduction to MIBs).
The application can be accessed by entering the following (case-sensitive) IP address into the web browser:
http://192.168.11.1/cgi-bin/Browser.cgi
Note: The JenNet-IP Border-Router Configuration interface is also provided on the Linksys router. This application can be accessed by simply entering the IP address of the router into a web browser on the PC:
http://192.168.11.1/
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 39
Chapter 3
Smart Home Demonstration
3.1.2 Lighting Control from the Remote Control Unit
In this demonstration, control commands can be entered into the Remote Control Unit and wirelessly broadcast (in IEEE 802.15.4 packets) to the WPAN nodes. A command can be addressed to all nodes or to a pre-defined group of nodes.
A complete list of the operations that can be performed from the keypad is provided in
Table 2 below provides a summary of the use of individual keys by the demonstration and Figure 23
shows the keypad of the Remote Control Unit.
Note: In this manual, operations are generally described as function sequences followed by the key sequences in square brackets - for example:
PRG OFF DOWN OFF [# O - O]
Key Function
I
O
ON
OFF
Description
Switch on light(s)
Switch off light(s)
Increase brightness of light(s)
+
UP
-
DOWN
# PRG
*
ALL
A GRP
Decrease brightness of light(s)
Programming mode
All groups
B
C
Group A
Group B
Group C
D
Wake
Group D
Wake Remote Control Unit from sleep
Table 2: Key Functions on Remote Control Unit
40
Figure 23: Keypad of Remote Control Unit
© NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
The Remote Control Unit normally operates as a ‘sleepy broadcaster’. Thus, the unit sleeps until it is needed. If sleeping, the unit can be activated using the Wake (circle) button below the keypad. Once woken, the unit remains active for 10 minutes following the last key press before going back to sleep. When the unit is active, pressing any key will cause the left LED to momentarily illuminate (if this does not happen, you must first activate the unit using the Wake button).
3.1.3 Node States and MIBs
In JenNet-IP, the state of a node is held in a Management Information Base (MIB) as a table of variables on the node - each MIB is a logical grouping of variables.
A control operation is implemented by writing to the relevant MIB variable
A monitoring operation is implemented by reading the relevant MIB variable
To use the Smart Home demonstration, it is not strictly necessary to know about the
MIBs, although it is possible to access them from the PC by directing a web browser
to the JenNet-IP Browser application which runs on the Linksys router (see Section
).
The MIBs used by the demonstration are detailed in the JenNet-IP Smart Home
Application Note (JN-AN-1162), which describes the application code for the demonstration.
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 41
Chapter 3
Smart Home Demonstration
3.2 Setting Up the Demo System
This section describes how to set up the demo system using the evaluation kit components in the roles indicated in
:
Setting up the LAN part of the system is described in
Setting up the WPAN part of the system is described in
3.2.1 Setting Up the LAN Part
In setting up the LAN part of the demo system, you will need the following components:
A PC running Windows XP or Windows 7
Linksys router and USB extension cable (from the evaluation kit)
USB dongle (from the evaluation kit)
Ethernet cable (from the evaluation kit)
To set up the LAN part of the system, follow the instructions below.
Step 1 Connect the PC to the Linksys router
a) Boot up the PC.
b) Use the supplied Ethernet cable to connect the PC to the Linksys router (but do not power on the Linksys router yet). Use a blue Ethernet socket on the router (do
not use the yellow socket labelled ‘Internet’).
Step 2 Connect the USB dongle to the Linksys router
Connect the USB dongle (which is programmed as a Border-Router and as a WPAN
Co-ordinator) to the USB socket of the Linksys router via the supplied USB extension cable (use of this cable improves the radio performance of the dongle).
42 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
Step 3 Power on the Linksys router
Connect the power supply to the Linksys router. The unit will automatically power on
(this will also start the USB dongle). The power LED will first flash and then the central
LED will flash. The unit is ready when the central LED stops flashing and remains illuminated.
Since the USB dongle will also be the Co-ordinator of the WPAN, this device will create a network, for the moment consisting of just the Co-ordinator - the rest of the
network will be formed in Section 3.2.2
Step 4 Check the Linksys router configuration from the PC (optional)
If you wish, you can now check the system configuration on the Linksys router as described below - you should not need to change the default settings. Otherwise, continue to
to set up the WPAN part of the system.
a) Launch a web browser on the PC.
b) Access the JenNet-IP Border-Router Configuration interface on the Linksys router by entering the following IP address into the browser:
http://192.168.11.1/
c) On the resulting web page, log in with username root and password snap.
d) On the next web page, select the JenNet-IP tab and then select the 6LoWPANd sub-tab.
The 6LoWPANd sub-tab is illustrated in the screenshot below.
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 43
Chapter 3
Smart Home Demonstration
The fields in the above screenshot are described in the table below.
Field
Enable
JenNet Security
Serial Device
Description
Checkbox used to enable/disable the 6LoWPANd interface
Indicates whether security is enabled in the WPAN
- should be enabled in this demo
Indicates serial port to which Border-Router node
(dongle) is connected on the Linksys router
IEEE 802.15.4 Channel Number of the radio channel used in the WPAN - selected by the Co-ordinator in this demo and should not be changed (see
)
IEEE 802.15.4 PAN ID 16-bit PAN ID of wireless network - selected by the
Co-ordinator in this demo and should not be changed (see
JenNet ID 32-bit Network Application ID of WPAN
)
Wireless Network IPv6 Prefix 64-bit IPv6 address prefix for WPAN
)
Table 3: 6LoWPANd Interface Parameters
e) In the 6LoWPANd sub-tab, click the Edit button on the right-hand side.
f) In the 6LoWPANd Configuration screen (which now appears), click on the
General Setup tab. This displays similar fields to those listed above in Table 3 , as shown in the screenshot below (except Security is on a separate tab).
44 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
g) In the General Setup tab:
Ensure that the Enable Interface checkbox is ticked.
Ensure that the Enable 15.4 Bandwidth Throttling checkbox is unticked.
Ensure that the JenNet Network Id to start field is set to 0x11111111
(this is an application-specific identifier).
If required, enter a new setting for the IEEE 802.15.4 PAN ID.
If required, enter a new setting for the 6LoWPAN Network Prefix (see
).
h) Now select the Security tab (see screenshot below) and ensure that the JenNet
Security Enabled checkbox is ticked.
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 45
Chapter 3
Smart Home Demonstration i)
If you have made any changes, click the Save & Apply button to implement them.
46 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
3.2.2 Setting Up the WPAN Part
In setting up the WPAN part of the demo system, you will need the following components:
LAN part of the system (set up as described in
Remote Control Unit
Carrier boards fitted with JN514x modules and Lighting/Sensor expansion boards
Antennae and batteries for the above boards
You can use as many of the boards as you like in this demonstration - for example, you may wish to initially use only one board.
Caution: The LEDs on the Lighting/Sensor expansion board are very bright at maximum intensity. To avoid damage to your eyes, do not look into them directly for an extended period of time.
To set up the WPAN part of the system (and therefore complete the demo system), follow the instructions below:
Step 1 Start the Remote Control Unit
Remove the battery compartment slide-cover on the rear of the Remote Control Unit and insert two of the supplied AAA batteries (the required polarities are indicated inside the battery compartment). Then replace the cover.
On installing the batteries, the Remote Control Unit will automatically power up. The unit will then attempt to join the WPAN that has been created by the USB dongle (Coordinator) attached to the Linksys router. The left LED on the Remote Control Unit will flash twice per second while the unit is trying to join the network, but the unit will not
be able to join until it has been whitelisted (next two steps).
Note 1: If the Remote Control Unit has been previously used, it will remember the last network to which it belonged. To clear this information and return to the factory settings, enter the following key sequence into the unit: PRG OFF DOWN OFF [# O - O].
Note 2: While the Remote Control Unit will initially join the WPAN as a Router node, it will then discard its
Router functionality and become a ‘sleepy broadcaster’
). In order to wake the unit from sleep at any time, press the Wake (circle) button located below the keypad.
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 47
Chapter 3
Smart Home Demonstration
Step 2 Access the JenNet-IP Border-Router Configuration interface from the PC
If not already done (from the LAN part set-up in
Border-Router Configuration interface from the PC as follows:
a) Launch a web browser on the PC.
b) Access the JenNet-IP Border-Router Configuration interface on the Linksys router by entering the following IP address into the browser:
http://192.168.11.1/
c) On the resulting web page, log in with username root and password snap.
Step 3 Display the ‘whitelist’ of WPAN nodes in the interface on the PC
a) In the interface, select the JenNet-IP tab and then select the Whitelist sub-tab.
Normally, this sub-tab shows a list of the detected WPAN nodes, identified by their
IPv6 addresses, as illustrated in the screenshot below. Those nodes that are ticked (in the checkbox on the left-hand side) are in the whitelist and so are allowed into the network. Currently, only the Remote Control Unit should be listed and should be unticked (greylisted) - if it does not appear, refresh the list by clicking Whitelist again.
48
b) Put the Remote Control Unit into the whitelist by ticking its checkbox on the lefthand side and click the Save & Apply button. The unit should now be able to join the network.
Once the unit has joined the network, the left LED will illuminate solidly for 5 seconds before being extinguished (note that the unit does not sleep and wake while trying to join a network, and should therefore not be left in this state for a long period of time in order to conserve battery power).
After joining the network, the Remote Control Unit enters a configuration mode for about 30 seconds, during which the left LED will flash slowly. This mode provides an opportunity for configuration to be performed via the Border-Router, but is not used in this demonstration. Once out of this mode, the left LED is extinguished and the unit enters ‘sleepy broadcaster’ mode (when required, the unit can be brought out of the sleep state by pressing the Wake (circle) button).
© NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
Step 4 Install antenna onto a board and start the node
Perform the following for just one node:
a) On a carrier board fitted with a JN514x module with uFl connector, install one of the supplied push-through antennae onto the board and connect the attached fly lead to the uFL connector on the module (this installation is fully described in
).
b) Insert four of the supplied AAA batteries onto the rear of the carrier board (the required polarities are indicated on the board). Also ensure that the batteries have been selected as the power source for the board, with the jumper J4 in the BAT
position (as described in Section 1.3.2
). When battery power is supplied, the colour LED module on the expansion board illuminates in red.
On power-up, the node will attempt to join the WPAN (for which the USB dongle is the
Co-ordinator). While the node is trying to join the network, the three white LEDs on the expansion board will be fully illuminated (they are very bright and, to avoid eye
damage, you must not look directly into them for an extended period of time).
There is no timeout on the node’s attempt to find and join the WPAN, but the node will
not be able to join until it has been whitelisted (next step).
Note: If the board has previously been used, it will retain settings (e.g. PAN ID) from the previous network to which it belonged. To clear this information and return to the factory settings, perform a factory reset as follows:
Wait at least 2 seconds following power-up and then press the Reset button on the carrier board 4 times with
less than 2 seconds between two consecutive presses.
After the reset, the board will try to join a new network.
Step 5 Add node to whitelist in the JenNet-IP Border-Router Configuration interface
a) Ensure that the Whitelist tab is shown in the JenNet-IP Border-Router
Configuration interface in the web browser on the PC (see Step 3).
b) Refresh the page in the browser. The new node should now appear in the list but will be unticked (greylisted). If the node fails to show in the list, you are advised to power off the board (e.g. remove the batteries) and re-start it (from Step 4b).
c) Make a note of the node’s IPv6 address and relate it to the physical node, for identification purposes later on (you may wish to label the node with the address).
d) Put the node into the whitelist by ticking its checkbox on the left-hand side. If you have prior knowledge of the node’s IEEE/MAC address and commissioning key, you can enter these details in the box revealed by clicking the Add button.
e) Click the Save & Apply button. The node should now be able to join the network.
Once the node has joined the network, the white LEDs will flash twice to indicate this and then remain fully illuminated.
Step 6 Start the next node (if any)
If there are still nodes to be started, start the next node as described from Step 4.
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 49
Chapter 3
Smart Home Demonstration
3.3 Operating the Demo System
This section describes how to control the lights (white LEDs) on the nodes in the
WPAN. Two situations are described:
Controlling the lights from a PC outside of the WPAN (via IP)
(see
Controlling the lights from the Remote Control Unit within the WPAN
(see
Note 1: Groups of nodes can optionally be set up in this demonstration, allowing sets of lights to be controlled collectively. You can run the demonstration without first forming groups but will only be able to control individual lights or all the lights together. If you wish to set up
Note 2: Switching off the Border-Router (Linksys router and USB dongle) will cause the WPAN to automatically enter ‘standalone’ mode, described in
Subsequently switching the Border-Router back on will cause the WPAN to return to full demonstration mode.
3.3.1 Lighting Control from PC
The lights in the WPAN can be controlled from the PC via IP. This method of control allows the lights to be switched on, switched off or dimmed individually, as a group or globally (all lights). The JenNet-IP Smart Home system must first be set up as described in
.
You can control the lights in the WPAN from the Smart Devices interface which is accessed by directing the web browser on the PC to the following (case-sensitive) IP address:
http://192.168.11.1/cgi-bin/SmartDevices.cgi
On the resulting Smart Devices page, the lights can be controlled individually from the
Individual Control tab, in a group from the Group Control tab or collectively from the
Global Control tab, as described below.
Individual Control
The Individual Control tab contains sections for all the nodes in the WPAN which have lights that can be controlled (a node is identified by its IPv6 address next to its name). For each node, there is a set of controls as depicted in the figure below.
50 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
Using the controls for an individual node, you can:
Switch the light on by clicking on the On box
Switch the light off by clicking on the Off box
Vary the brightness of the light (dimmer operation) using the vertical slider in the green bar (to the right to brighten, to the left to dim) - this is achieved by clicking the desired location in the bar (rather than moving the vertical slider)
Group Control
The Group Control tab contains a section for each group of lights in the WPAN
(groups “Hall” and “Lounge”). For each group, there is a similar set of controls as described above for the Individual Control tab. The use of groups is optional - if used, they must have been set up as described in
.
Global Control
In the Global Control tab, there is a similar set of controls as described above for the
Individual Control tab, but just one set of controls which control all the network nodes simultaneously.
3.3.2 Lighting Control from the Remote Control Unit
The lights on the nodes of the WPAN can be controlled from within the network using the Remote Control Unit. This method of control allows the lights to be switched on, switched off or dimmed. The JenNet-IP Smart Home demonstration system must first
be set up as described in Section 3.2
The Remote Control Unit allows the control of a group of nodes or all the nodes in the network. Nodes can only be controlled individually if they have been assigned to separate groups, one node per group. Therefore, if groups of nodes have not been configured, the Remote Control Unit can only be used to control all lights
(synchronously). Assigning nodes to groups using the Remote Control Unit is described in
.
The main operations that can be performed on the lights from the Remote Control Unit are described below.
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 51
Chapter 3
Smart Home Demonstration
52
Note 1: All possible operations and their associated key sequences are summarised in
Note 2: If the Remote Control Unit is sleeping (the left
LED does not illuminate when a key is pressed), the unit must be activated using the Wake (circle) button below the keypad before entering any command sequences.
For further information, refer to Section 3.1.1
Note 3: Before performing any of the operations below, you should press the key corresponding to the relevant group of nodes (A, B, C, D or *). Once a group has been selected, all subsequent operations will be applied to that group until another group is selected.
Switching on lights
The lights (in the selected group) can be switched on by pressing the key:
ON [I]
If a light is off when this key is pressed, it will be illuminated to the brightness that it had before it was last switched off.
If a light is on when this key is pressed, the command will have no effect.
Switching off lights
The lights (in the selected group) can be switched off by pressing the key:
OFF [O]
Increasing brightness of lights
The lights (in the selected group) can be increased in brightness by pressing the key:
UP [+]
The brightness will only increase while the key is being pressed, until the maximum brightness is reached (to avoid eye damage, do not look directly into
the LEDs when they are at or near maximum brightness).
If a light is off when this key is pressed, the command will switch on the light.
Decreasing brightness of lights
The lights (in the selected group) can be decreased in brightness by pressing the key:
DOWN [-]
The brightness will only decrease while the key is being pressed, until the minimum brightness is reached (the lights cannot be completely switched off with this key).
If a light is off when this key is pressed, the command will have no effect.
© NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
3.4 Configuring Groups of Lights
The lights on the nodes in the WPAN can be enrolled into groups. The lights within a group can be controlled synchronously by issuing a single command for the group. For example, in a real situation, the tablelamps in a lounge could belong to a group, allowing all the tablelamps to be switched on/off or dimmed at the same time. Note that a light can be enrolled into more than one group (or into no groups).
A group has an associated multicast address which is stored inside each member node. A command for a group includes the relevant multicast address but is broadcast to all nodes in the WPAN. A receiving node is able to use the multicast address to identify itself as a member of the group and therefore execute the command.
Groups can be configured on both the remote PC and on the Remote Control Unit.
Group configuration is described separately for the two cases in the sub-sections below.
Caution: Groups set up on the PC are not the same as groups set up on the Remote Control Unit.
3.4.1 Configuring Groups on the PC
This section describes how to set up groups of lights (WPAN nodes) for control from a PC via an IP connection. Groups of lights can be set up from the JenNet-IP Browser, which runs on the Linksys router and is accessed via a normal web browser on the PC.
The JenNet-IP Smart Home demonstration provides the following groups via the
JenNet-IP Browser:
“Hall” with multicast address FF15::A00A - this group is initially empty
“Lounge” with multicast address FF15::B00B - this group is initially empty
“All” with multicast address FF15::F00F - running nodes are automatically added to this group
The demonstration does not allow any other groups to be created.
The interface uses a group identifier which is derived from the group’s multicast address - for an IPv6 multicast address of the format FF15::x00x, the group identifer is of the fomat 0xFFx00x (for example, FF15::A00A is abbreviated to 0x15A00A).
The JenNet-IP browser is accessed by directing the web browser on the PC to the following (case-sensitive) IP address:
http://192.168.11.1/cgi-bin/Browser.cgi
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 53
Chapter 3
Smart Home Demonstration
The resulting Network Contents page lists the nodes in the WPAN, as illustrated in the screenshot below.
Figure 24: JenNet-IP Browser ‘Network Contents’ Page
In the above example:
‘Border-Router’ refers to the USB dongle attached to the Linksys router
The other entries refer to the WPAN nodes that carry lights - for example,
‘DR1175 2395B8’ where ‘2395B8’ is part of the IEEE/MAC address of the node
Clicking on a network node displays a Node MIBs page for that particular node, containing a list of the Management Information Bases (MIBs) on the node, as illustrated in the screenshot below (which shows a partial view of this page).
54
Figure 25: JenNet-IP Browser ‘Node MIBs’ Page
The IPv6 address of the relevant node is shown on the orange tab at the top of the page. Clicking on the adjacent Network tab will take you back to Network Contents.
To configure the node’s group memberships, click on the Groups MIB on the Node
MIBs page. This takes you to the Groups MIB page that lists the variables contained in the Groups MIB, as illustrated in the screenshot below.
© NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
Figure 26: JenNet-IP Browser ‘Groups MIB’ Page
This page can be used to modify the group memberships of the node (with IPv6 address indicated at the top of the page), by means of the following fields:
AddGroup: To add the node to a group:
a) Enter the identifier of the group in this field (removing the curly bracket, if necessary), e.g. 0x15A00A for the “Hall” group.
b) Click on the Update button for AddGroup.
c) Click on the orange MIB Groups tab to refresh the page. The new group should now appear in the Groups section of the page.
RemoveGroup: To remove the node from a group:
a) Enter the identifier of the group in this field (removing the curly bracket, if necessary), e.g. 0x15B00B for the “Lounge” group.
b) Click on the Update button for RemoveGroup.
c) Click on the orange MIB Groups tab to refresh the page. The group should now disappear from the Groups section of the page.
ClearGroups: To remove the node from all groups:
a) Enter any value in this field.
b) Click on the Update button for ClearGroups.
c) Click on the orange MIB Groups tab to refresh the page. All groups should now disappear from the Groups section of the page.
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 55
Chapter 3
Smart Home Demonstration
3.4.2 Configuring Groups on the Remote Control Unit
This section describes how to set up groups of lights (WPAN nodes) for control from the Remote Control Unit in the WPAN.
On the Remote Control Unit, there are keys for four default groups: A, B, C and D.
These groups are initially empty. In addition, there is a key for the All group (the * key).
The running nodes in the WPAN will be automatically put into the All group. To assign one or more nodes to another group (other than All), follow the instructions below:
Note 1: When assigning a node to a group, the radio transmitter of the Remote Control Unit operates in a low-power mode. This requires the unit to be brought near to the node to be added to a group.
Note 2: Group memberships set up using the Remote
Control Unit are particular to that unit and do not automatically apply to other Remote Control Units or to control from a PC via the Smart Devices interface.
Note 3: Grouping also provides a method of controlling individual nodes from the Remote Control Unit, by assigning one node per group.
Step 1 Remove the nodes that are not required in the group
The nodes that are not required in the group should be powered off (e.g. by removing their batteries).
Step 2 Locate the Remote Control Unit near to the node to be added
Place the Remote Control Unit close to the node to be added to the group.
Step 3 Add the node to the group
Add the nearby node to the group by entering the following key sequence into the
Remote Control Unit: PRG UP ON GRP [# + I A/B/C/D]
For group A, enter: # + I A
For group B, enter: # + I B
For group C, enter: # + I C
For group D, enter: # + I D
Step 4 Repeat for another node
If another node is to be added to the group, repeat the procedure from Step 2.
56
Note: A node can be removed from a group using the command PRG DOWN OFF GRP - for example, for group A the required key sequence is # - O A.
© NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
4. Smart Home Demonstration (Standalone)
The chapter describes how to use the contents of the JenNet-IP EK040 Evaluation Kit to set up and run the pre-loaded JenNet-IP Smart Home demonstration in ‘standalone’ mode. This demonstration is based on an isolated WPAN with nodes containing lights and sensors, which can be controlled wirelessly from a Remote Control Unit.
The standalone version of the JenNet-IP Smart Home demonstration does not provide
IP connectivity. Therefore, unlike in the version of the demo described in
, the standalone WPAN cannot be monitored and controlled from a remote PC via an
IP connection. In practice, a JenNet-IP system may be developed as a standalone system that can be extended to a full system with IP connectivity by simply adding a
Border-Router - for example, an entry-level lighting system may be sold as a standalone system consisting of lamps and a remote control until, with the potential to add IP connectivity by purchasing an optional Border-Router.
This chapter guides you through the set-up and operation of the standalone demo system, as follows:
provides an overview of the demo system, describing the roles of the evaluation kit components in the demonstration
details how to set up the demonstration network from the contents of the evaluation kit and run the pre-loaded software.
describes how to operate the demonstration.
4.1 Standalone Demo System Overview
In the standalone version of the JenNet-IP Smart Home demonstration, lights on the nodes of a WPAN can be controlled from a Remote Control Unit within the WPAN. The components of the JenNet-IP EK040 Evaluation Kit used in the demonstration are as follows:
Carrier Boards with Lighting/Sensor Expansion Boards: The four carrier boards supplied in the kit are pre-fitted with Lighting/Sensor expansion boards
(Arduino-compatible shields) and JN514x modules. Each of these four board assemblies acts as a node of the WPAN, where the JN514x module on each node is pre-programmed as a WPAN Router. In the demonstration, the white
LEDs (on the expansion boards) are the lights to be controlled. The carrier boards, expansion boards and JN514x modules are separately described in
, respectively.
Remote Control Unit: The Remote Control Unit acts as a node of the WPAN.
In the standalone version of the demo, described in this chapter, the unit can act as the Co-ordinator which creates the WPAN, but normally acts as a ‘sleepy broadcaster’. In the latter mode, the device sleeps and only wakes when it is needed to broadcast control commands (and does not have the role of a conventional WPAN node). If sleeping, the unit must be activated using the
Wake button below the keypad before any other keys are pressed (also refer to
). The Remote Control Unit is described in
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 57
Chapter 4
Smart Home Demonstration (Standalone)
The standalone version of the Smart Home demo system is illustrated in
below.
Light
Carrier
Board
Remote
Control Unit
Light
Carrier
Board
JenNet-IP WPAN
(IEEE 802.15.4)
Light
NXP
Light
Carrier
Board
Carrier
Board
Figure 27: Standalone Smart Home Demo System
During WPAN formation, the Remote Control Unit is enabled as a Co-ordinator through which other nodes join the WPAN. However, once the network has been formed, the Remote Control Unit is used in its default mode as a ‘sleepy broadcaster’.
Commands from the Remote Control Unit will then be broadcast to nodes, so routing down the WPAN tree will not be adhered to.
Note: The Remote Control Unit can be put into Coordinator mode for node commissioning (through the key sequence PRG ON OFF ON GRP). It will remain in this mode for 5 minutes, but the mode can be exited at any time by pressing the Wake button (below the keypad).
58
4.1.1 Lighting Control from the Remote Control Unit
In this demonstration, control commands will be entered into the Remote Control Unit and wirelessly broadcast (in IEEE 802.15.4 packets) to the WPAN nodes. A command can be addressed to all nodes or to a pre-defined group of nodes.
A complete list of the operations that can be performed from the keypad is provided in
Table 4 below provides a summary of the use of individual keys by the demonstration and Figure 28
shows the keypad of the Remote Control Unit.
© NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
Note: In this manual, operations are generally described as function sequences followed by the key sequences in square brackets - for example:
PRG DOWN UP DOWN [# - + -]
Key Function
I
O
ON
OFF
Description
Switch on light(s)
Switch off light(s)
Increase brightness of light(s)
+
UP
-
DOWN
# PRG
*
ALL
A GRP
Decrease brightness of light(s)
Programming mode
All groups
B
C
Group A
Group B
Group C
D
Wake
Group D
Wake Remote Control Unit from sleep
Table 4: Key Functions on Remote Control Unit
Figure 28: Keypad of Remote Control Unit
The Remote Control Unit normally operates as a ‘sleepy broadcaster’. Thus, the unit sleeps until it is needed. If sleeping, the unit can be activated using the Wake (circle) button below the keypad. Once woken, the unit remains active for 10 minutes following the last key press before going back to sleep. When the unit is active, pressing any key will cause the left LED to momentarily illuminate (if this does not happen, you must first activate the unit using the Wake button).
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 59
Chapter 4
Smart Home Demonstration (Standalone)
4.1.2 Node States and MIBs
In JenNet-IP, the state of a node is held in a Management Information Base (MIB) as a table of variables on the node - each MIB is a logical grouping of variables. A control operation is implemented by writing to the relevant MIB variable.
To use the standalone Smart Home demonstration, it is not strictly necessary to know about the MIBs, but they are detailed in the JenNet-IP Smart Home Application Note
(JN-AN-1162), which describes the application code for the demonstration.
4.2 Setting Up the Standalone Demo System
This section describes how to set up the standalone demo system using the evaluation kit components in the roles indicated in
.
In setting up the standalone system, you will need the following components:
Remote Control Unit
Carrier boards fitted with JN514x modules and Lighting/Sensor expansion boards
Antennae and batteries for the above boards
You can use as many of the boards as you like in this demonstration - for example, you may wish to initially use only one board.
Caution: The LEDs on the lighting/sensor expansion board are very bright at maximum intensity. To avoid damage to your eyes, do not look into them directly for an extended period of time.
To set up the system, follow the instructions below:
Step 1 Start the Remote Control Unit
Remove the battery compartment slide-cover on the rear of the Remote Control Unit and insert two of the supplied AAA batteries (the required polarities are indicated inside the battery compartment). Then replace the cover.
On installing the batteries, the Remote Control Unit will automatically power up.
Step 2 Put the Remote Control Unit into Standalone Mode
By default, the Remote Control Unit is configured to join an existing WPAN in the full
JenNet-IP Smart Home demonstration described in
Chapter 3 . To exit this mode and
put the unit into standalone mode, enter the following key sequence into the unit (you may first need to activate the unit using the Wake button - see
PRG DOWN UP DOWN [# - + -]
The unit will then act as a WPAN Co-ordinator and create a WPAN. The left LED on the Remote Control Unit will flash while the unit is creating the network and will stay
60 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
illuminated for a few seconds once the network is created (with no other nodes yet).
The Remote Control Unit will then revert to ‘sleepy broadcaster’ mode.
Step 3 Install antenna onto a board (if not already done) and start the node
Perform the following for just one node:
a) If not already done, on a carrier board fitted with a JN514x module with uFl connector, install one of the supplied push-through antennae onto the board and connect the attached fly lead to the uFL connector on the module (this installation is fully described in
b) Insert four of the supplied AAA batteries onto the rear of the carrier board (the required polarities are indicated on the board). Also ensure that the batteries have been selected as the power source for the board, with the jumper J4 in the BAT
position (as described in Section 1.3.2
). When battery power is supplied, the colour LED module on the expansion board illuminates in red.
On power-up, the node will search for a WPAN to join. During this time, the three white
LEDs on the expansion board will illuminate at full intensity (they are very bright and,
to avoid eye damage, you must not look directly into them for an extended period of
time).
Note that there is no timeout on the node’s attempt to find and join a WPAN.
Note: If the board has previously been used, it will retain settings (e.g. PAN ID) from the previous network to which it belonged. To clear this information and return to the factory settings, perform a factory reset as follows:
Wait at least 2 seconds following power-up and then press the Reset button on the carrier board 4 times with
less than 2 seconds between two consecutive presses.
After the reset, the board will try to join a new network.
Step 4 Allow the node to join the WPAN (of the Remote Control Unit)
To allow the node to join the WPAN of the Remote Control Unit (note that at this stage, the node will be assigned to a group):
a) Bring the Remote Control Unit to within direct radio range of the node.
b) Put the Remote Control Unit into Co-ordinator mode and enable the node to join the WPAN by entering the following key sequence into the unit:
PRG ON OFF ON GRP [# I O I A/B/C/D/*]
Note: In this key sequence, you must specify the group
GRP to which the node will be assigned: A, B, C, D or *.
The star (*) option refers to the All group. A node is automatically added to the All group (as well as to the specified group). However, you can specify the All group in the key seqeunce if you do not wish the node to be assigned to any other group.
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 61
Chapter 4
Smart Home Demonstration (Standalone)
Following the above key sequence, the Remote Control Unit will allow 5 minutes for nodes to join the network, during which the left LED on the unit will be illuminated. At the end of this period, the unit will revert from Co-ordinator mode to
‘sleepy broadcaster’ mode. You can escape from Co-ordinator mode at any time by pressing the Wake button (below the keypad).
c) Wait for the node to successfully join the network, which is indicated by the white
LEDs on the node flashing twice and then remaining illuminated at full brightness.
In the case of a successful join, the left LED on the Remote Control Unit will also blink. If the node fails to join, power off the node (e.g. remove the batteries) and restart from Step 3 (possibly bringing the Remote Control Unit closer to the node).
d) Once the node has joined the network, if the 5-minute timeout has not elapsed then press the Wake button (below the keypad) on the Remote Control Unit to escape from Co-ordinator mode.
Step 5 Check that the node has joined the WPAN
Use the Remote Control Unit to check that the node has joined the WPAN. For example, use the unit to switch off the lights on the node by entering the following key sequence into the unit:
GRP OFF [A/B/C/D/* O] where GRP identifies the group to which the node was assigned.
Then switch all lights in the WPAN back on by entering the command GRP ON [* I].
If the node fails to respond to commands from the Remote Control Unit, you should return to Step 4 (and failing that, to Step 3).
Step 6 Start and install the next node (if any)
If there are still nodes to be started, start and install the next node as described from
Step 3.
62 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
4.3 Operating the Standalone Demo System
This section describes how to control the lights (white LEDs) on the nodes in the standalone WPAN from the Remote Control Unit. The lights can be switched on, switched off or dimmed. The standalone JenNet-IP Smart Home demonstration
system must first be set up as described in Section 4.2
The Remote Control Unit allows the control of a group of nodes or all the nodes in the network. Nodes can only be controlled individually if they have been assigned to separate groups, one node per group. Therefore, if groups of nodes have not been configured, the Remote Control Unit can only be used to control all lights
(synchronously).
The main operations that can be performed on the lights from the Remote Control Unit are described below.
Note 1: All possible operations and their associated key sequences are summarised in
Note 2: If the Remote Control Unit is sleeping (the left
LED does not illuminate when a key is pressed), the unit must be activated using the Wake button below the keypad before entering any command sequences. For
further information, refer to Section 4.1.1
.
Note 3: Before performing any of the operations below, you should press the key corresponding to the relevant group of nodes (A, B, C, D or *). Once a group has been selected, all subsequent operations will be applied to that group until another group is selected.
Switching on lights
The lights (in the selected group) can be switched on by pressing the key:
ON [I]
If a light is off when this key is pressed, it will be illuminated to the brightness that it had before it was last switched off.
If a light is on when this key is pressed, the command will have no effect.
Switching off lights
The lights (in the selected group) can be switched off by pressing the key:
OFF [O]
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 63
Chapter 4
Smart Home Demonstration (Standalone)
Increasing brightness of lights
The lights (in the selected group) can be increased in brightness by pressing the key:
UP [+]
The brightness will only increase while the key is being pressed, until the maximum brightness is reached (to avoid eye damage, do not look directly into
the LEDs when they are at or near maximum brightness).
If a light is off when this key is pressed, the command will switch on the light.
Decreasing brightness of lights
The lights (in the selected group) can be decreased in brightness by pressing the key:
DOWN [-]
The brightness will only decrease while the key is being pressed, until the minimum brightness is reached (the lights cannot be completely switched off with this key).
If a light is off when this key is pressed, the command will have no effect.
64 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
5. Where Next?
Once you have set up and run the pre-loaded JenNet-IP Smart Home demonstration, you may wish to start developing your own JenNet-IP applications. This chapter helps you to get started in this application development, as follows:
directs you to the user documentation for JenNet-IP.
outlines the software from the Software Developer’s Kit (SDK) that you must install in order to develop your application.
5.1 User Documentation
A complete list of the user documentation relevant to JenNet-IP is provided in the tables below. This documentation is available from www.nxp.com/jennic/support.
Note: Before starting your application development, you are advised to study Part I: Concept Information of the
JenNet-IP WPAN Stack User Guide (JN-UG-3080).
below lists and describes the documentation related to application coding.
Part Number Document Title
JN-UG-3080 JenNet-IP WPAN Stack User Guide
JN-UG-3086 JenNet-IP LAN/WAN Stack User
Guide
JN-AN-1162
JN-AN-1110
JenNet-IP Smart Home Application
Note
JenNet-IP Border-Router Application
Note
JN-UG-3066 JN51xx Integrated Peripherals API
Reference Manual
JN-RM-2003 LPRF Board API Reference Manual
Description
Provides a general introduction to Jen-
Net-IP and details the software resources for developing applications that run on devices on the WPAN (IEEE 802.15.4) side of a JenNet-IP system
Details the software resources for developing applications that run on IP Hosts on the LAN/WAN side of a JenNet-IP system
Describes the application code of the
JenNet-IP Smart Home demonstration
Details how to design a custom JenNet-IP
Border-Router device (for users who do not wish to use the NXP-supplied Border-
Router)
Details the Integrated Peripherals API, used in application code to interact with
JN514x on-chip peripherals
Details the Board API, used in application code to interact with components on the boards supplied in the evaluation kit
Table 5: JenNet-IP User Documentation (Application Coding)
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 65
Chapter 5
Where Next?
lists and describes the documentation related to the development tools.
Part Number Document Title Description
JN-UG-3064 SDK Installation and User Guide
JN-UG-3007 JN51xx Flash Programmer Application User Guide
Describes how to install the JenNet-IP
Software Developer’s Kit (SDK) and how to use the Eclipse development platform
Describes how to use the JN51xx Flash
Programmer
Table 6: JenNet-IP User Documentation (Development Tools)
5.2 Software Developer’s Kit (SDK)
A Software Developer’s Kit (SDK) is provided to facilitate the development of JenNet-
IP applications on a PC. This SDK includes Application Programming Interfaces
(APIs) and development tools, and is supplied as two installers:
JenNet-IP SDK (JN-SW-4051): The SDK components that can be installed from this file include the JenNet-IP stack software and the following Application
Programming Interfaces (APIs):
JIP Embedded API for developing JN514x applications for WPAN nodes
C JIP API for developing applications for Linux-based IP Hosts
Java JIP API for developing applications for IP Hosts
JN51xx Integrated Peripherals API for interacting with on-chip peripherals
LPRF Board API for interacting with evaluation kit board resources
SDK Toolchain (JN-SW-4041): The SDK components installed from this file include the following:
Eclipse IDE (Integrated Development Environment)
JN51xx compiler for use by the Eclipse platform to build applications
JN51xx Flash programmer to load built applications into nodes
Cygwin CLI (Command Line Interface)
The JN-SW-4041 and JN-SW-4051 installers are available to download from
www.nxp.com/jennic/support/software. Installation instructions are provided in the
SDK Installation and User Guide (JN-UG-3064).
Note: The JN51xx Flash Programmer in the SDK
Toolchain cannot be used to program the JN514x-J01 devices in this evaluation kit. You must use the standalone version of the utility (JN-SW-4007).
66 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
Appendices
A. Remote Control Operations in the Demonstration
The table below summarises the key sequences and associated operations that can be performed from the Remote Control Unit in the JenNet-IP Smart Home demo.
Operation
Switch on lights in selected group
Switch off lights in selected group
Increase brightness of lights in selected group (increase occurs while key UP [+] key is pressed). If a light is off, it is switched on.
Decrease brightness of lights in selected group (decrease occurs while key DOWN [-] key is pressed). If a light is off, command has no effect.
Add nodes (within radio range) to the specified group (the radio is put in a low-power mode for this operation)
Commission and then add nodes (within radio range) to the specified group as well as to the ‘All’ group.
Commission and then add nodes (within radio range) to the
‘All’ group only.
Remove nodes (within radio range) from the specified group
(the radio is put in a low-power mode for this operation)
Remove nodes (within radio range) from the specified group.
Remove nodes (within radio range) from the ‘All’ group only.
Commission a Border-Router (within radio range) to learn network settings in extending standalone WPAN to full JIP system
Commission an additional Remote Control Unit (within radio range) to act as independent Remote Control Unit for WPAN.
Commission an additional Remote Control Unit (within radio range) to act as cloned Remote Control Unit for WPAN.
Try to join an existing WPAN.
Create a standalone WPAN.
Perform a factory reset.
GRP ON
ALL ON
GRP OFF
ALL OFF
GRP UP
ALL UP
GRP DOWN
ALL DOWN
Key Sequence
A/B/C/D I
* I
A/B/C/D O
* O
A/B/C/D +
* +
PRG UP ON GRP/ALL
PRG ON OFF ON GRP
PRG ON OFF ON ALL
# + I A/B/C/D/*
# I O I A/B/C/D
# I O I *
PRG DOWN OFF GRP/ALL # - O A/B/C/D/*
PRG OFF ON OFF GRP
PRG OFF ON OFF ALL
PRG ON OFF ON OFF
PRG ON OFF ON DOWN
PRG ON OFF ON UP
PRG UP DOWN UP
PRG DOWN UP DOWN
PRG OFF DOWN OFF
A/B/C/D -
* -
# O I O A/B/C/D
# O I O *
# I O I O
# I O I -
# I O I +
# + - +
# - + -
# O - O
Perform a software reset.
PRG ON UP ON # I + I
Table 7: Remote Control Key Sequences and Associated Operations
I = ON O = OFF + = UP - = DOWN # = PRG * = ALL GRP = A, B, C or D
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 67
Appendices
B. Firmware Re-programming
The following components of the JenNet-IP EK040 Evaluation Kit are supplied preprogrammed with the JenNet-IP Smart Home demonstration but can be reprogrammed with other applications:
Remote Control Unit - see
JN514x modules - see
USB dongles - see
B.1 Re-programming Remote Control Unit
The firmware of the Remote Control Unit can be re-programmed using the supplied programming dongle (part number: DR1128) . This re-programming is conducted as follows:
1.
Remove the battery compartment cover on the rear of the unit to reveal the J3 header for the programming dongle (if there are batteries in the compartment, you can leave them or remove them).
2.
Insert the programming dongle onto the header in the battery compartment, as illustrated below.
68 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
3.
Use one of the supplied ‘USB A to Mini B’ cables to connect the programming dongle to a USB port of your PC.
4.
Use the JN51xx Flash Programmer application on your PC to load the new firmware image into the Remote Control Unit. You must use the standalone
JN51xx Flash Programmer tool (JN-SW-4007), which is available from
www.nxp.com/jennic/support/software. The programming procedure is described in the JN51xx Flash Programmer User Guide (JN-UG-3007), but ignore references to resetting the device and putting it into programming mode - for the dongle, this is done automatically.
5.
Once programming has completed, remove the programming dongle and replace the battery compartment cover.
Note: The programming dongle can also be used as a
UART port on the Remote Control Unit for debug purposes.
B.2 Re-programming JN514x Modules
The Flash memory devices on the supplied JN514x modules are pre-programmed with the software for the JenNet-IP Smart Home demonstration. At some point, you may wish to re-program the modules with another application. To do this, you must use the standalone version of the JN51xx Flash Programmer utility (JN-SW-4007), which is available from www.nxp.com/jennic/support/software. The programming procedure is described in the JN51xx Flash Programmer User Guide (JN-UG-3007).
Note that when re-programming the JN514x modules on the carrier boards in this kit, you must use one of the supplied ‘USB A to Mini B’ cables to connect a USB port of your PC to the carrier board.
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 69
Appendices
B.3 Re-programming USB Dongles
The necessary binary application for the JenNet-IP Smart Home demonstration has been pre-loaded in the Flash memory of both dongles. However, you can easily reprogramme a dongle with another binary file through a USB port of your PC and the
NXP LPC1343 device on the dongle. The replacement binary file must be a specially prepared file called FIRMWARE.BIN.
B.3.1 Preparing the Binary File
Before a custom application binary file can be programmed into the USB dongle, a utility called jn514x_firmware.exe must be run on the file to strip out a 4-byte header.
This utility is provided in the JenNet-IP SDK (JN-SW-4051) and is located as follows:
C:/Jennic/Tools/NXP_USBDongle/jn514x_firmware.exe
The utility can be run from a bash shell using the following command:
/cygdrive/c/Jennic/Tools/NXP_USBDongle/jn514x_firmware.exe
with the following options:
-f used to specify the name of the input file
-m used to specify the IEEE/MAC address of the target device (: separated)
-c used to specify the target chip type (in this case, should be JN5148J01)
Therefore, the required usage is:
.../jn514x_firmware.exe -f <app path/name> -m <MacAddress> -c JN5148J01
The utility will output the modified file as firmware.bin in the directory of the utility. This file must be renamed as FIRMWARE.BIN (all capitals).
B.3.2 Programming the Dongle
This re-programming of the dongle uses a simple ‘drag and drop’ method within
Windows Explorer, as follows:
1.
Plug the USB dongle into a free USB port of your PC (if an ‘Installing driver’ message is displayed, refer to
Installing Device Driver for USB Dongle below).
2.
Open Windows Explorer - the dongle should appear as ‘Jennic_USB’.
3.
If the dongle currently contains any files, delete them.
4.
Within Windows Explorer:
d) Navigate to the new FIRMWARE.BIN file on your PC.
e) ‘Drag and drop’ or ‘copy and paste’ the new binary file onto the USB dongle.
70 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
Installing Device Driver for USB Dongle
1.
The first time you plug the dongle into a USB port of your PC, an ‘Installing driver’ message appears in the bottom-right corner of the screen. The system will install most of the software required, but will leave the following box:
2.
Close the box and go to Start > Control Panel > System > Device Manager.
In the Device Manager, you will notice that the VCOM port is accompanied by an exclamation mark:
3.
Right-click on the VCOM port and from the context menu select 'Update driver software..' and then select the manual installation method (bottom option).
4.
Use the Update Driver Software browser to navigate down to the folder
C:\Jennic\Tools\NXP_USBDongle\Drivers and then click Next.
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 71
Appendices
The system will now install the software driver.
5.
You can check that the device has installed correctly since the device NXP
LPC1343 will appear in the Ports (COM & LPT) section and will appear as a
USB mass storage device in the USB Controllers section.
Your dongle is now ready to use.
72 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
C. Compliance Statements and Documentation
This appendix contains the FCC, Industry Canada and CE compliance statements and documentation for the components of the JenNet-IP EK040 Evaluation Kit:
contains the FCC statements and documentation
contains the Industry Canada statements
contains the CE statements and documentation
C.1 FCC Statements and Documentation
This section contains the Federal Communication Commission (FCC) statements and documents.
TX FCC IDs of Kit Contents
The JenNet-IP EK040 Evaluation Kit contains the following TX FCC IDs:
TYOJN5142M0, TYOJN5142M3, TYOJN5148M0, TYOJN5148U0, TYOJN5148M6 and Q87-WRT160NL.
High-Power Module Usage Limitation
The high-power module variants are classified as 'mobile' devices pursuant with FCC
§2.1091 and must not be used at a distance of less than 20 cm (8") from any person.
Federal Communication Commission Interference Statement
This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation.
This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one of the following measures:
Reorient or relocate the receiving antenna.
Increase the separation between the equipment and receiver.
Connect the equipment into an outlet on a circuit different from that to which the receiver is connected.
Consult the dealer or an experienced radio/TV technician for help.
This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation.
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 73
Appendices
FCC Caution: Any changes or modifications not expressly approved by the party responsible for compliance could void the user's authority to operate this equipment.
WARNING!
FCC Radiation Exposure Statement:
This portable equipment with its antenna complies with FCC's RF radiation exposure limits set forth for an uncontrolled environment. To maintain compliance follow the instructions below:
1.
This transmitter must not be co-located or operating in conjunction with any other antenna or transmitter.
2.
Avoid direct contact to the antenna, or keep it to a minimum while using this equipment.
For a list of approved antennae for use with the modules used in this kit, please refer to the appropriate module datasheet.
74 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
C.1.1 DR1128 FCC Documentation
JenNet-IP EK040 Evaluation Kit
User Guide
FCC COMPLIANCE INFORMATION
STATEMENT
DECLARATION OF CONFORMITY
Manufacturer:
Responsible Party in the USA:
Product:
Authorisation Procedure:
NXP LABORATORIES (UK) LTD
FURNIVAL STREET
SHEFFIELD
S1 4QT
UNITED KINGDOM
TELEPHONE: +44 (0) 114 281 2655
FACSIMILE:
+44 (0) 114 281 2951
WEB:
www.nxp.com
NXP Semiconductors Netherlands B.V
Niel P Smith
NXP Semiconductors
411 E. Plumeria Drive
San Jose
CA 95134
USA
Tel 001 408-518 5302
DR1128 Programming Dongle
Declaration of Conformity
This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) this device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation.
We, NXP Laboratories (UK) Ltd, have determined that the above named equipment has been shown to comply with the applicable technical standards. Furthermore, we warrant that each unit of equipment marketed is identical to the unit tested and found acceptable with the standards. The records maintained continue to reflect the equipment being produced within the variation that can be expected due to quantity production and testing on a statistical basis.
NXP Semiconductors BV
DR1128 Programming Dongle
Sheffield, September 7 th
2012
Conrad Farlow, Senior RF Hardware Engineer, NXP Laboratories Ltd
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 75
Appendices
C.1.2 DR1159 FCC Documentation
FCC COMPLIANCE INFORMATION
STATEMENT
DECLARATION OF CONFORMITY
Manufacturer:
Responsible Party in the USA:
Product:
Authorisation Procedure:
NXP LABORATORIES (UK) LTD
FURNIVAL STREET
SHEFFIELD
S1 4QT
UNITED KINGDOM
TELEPHONE: +44 (0) 114 281 2655
FACSIMILE:
+44 (0) 114 281 2951
WEB:
www.nxp.com
NXP Semiconductors Netherlands B.V
Niel P Smith
NXP Semiconductors
411 E. Plumeria Drive
San Jose
CA 95134
USA
Tel 001 408-518 5302
DR1159 Remote Control Unit
Declaration of Conformity
This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) this device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation.
We, NXP Laboratories (UK) Ltd, have determined that the above named equipment has been shown to comply with the applicable technical standards. Furthermore, we warrant that each unit of equipment marketed is identical to the unit tested and found acceptable with the standards. The records maintained continue to reflect the equipment being produced within the variation that can be expected due to quantity production and testing on a statistical basis.
NXP Semiconductors BV
DR1159 Remote control unit
Sheffield, September 7 th
,
Conrad Farlow, Senior RF Hardware Engineer, NXP Laboratories Ltd
76 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
C.1.3 DR1174 FCC Documentation
JenNet-IP EK040 Evaluation Kit
User Guide
FCC COMPLIANCE INFORMATION
STATEMENT
DECLARATION OF CONFORMITY
Manufacturer:
Responsible Party in the USA:
Product:
Authorisation Procedure:
NXP LABORATORIES (UK) LTD
FURNIVAL STREET
SHEFFIELD
S1 4QT
UNITED KINGDOM
TELEPHONE: +44 (0) 114 281 2655
FACSIMILE:
+44 (0) 114 281 2951
WEB:
www.nxp.com
NXP Semiconductors Netherlands B.V
Niel P Smith
NXP Semiconductors
411 E. Plumeria Drive
San Jose
CA 95134
USA
Tel 001 408-518 5302
DR1174 Carrier Board
Declaration of Conformity
This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) this device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation.
We, NXP Laboratories (UK) Ltd, have determined that the above named equipment has been shown to comply with the applicable technical standards. Furthermore, we warrant that each unit of equipment marketed is identical to the unit tested and found acceptable with the standards. The records maintained continue to reflect the equipment being produced within the variation that can be expected due to quantity production and testing on a statistical basis.
NXP Semiconductors BV
DR1174 Carrier Board
Sheffield, September 7 th
,
Conrad Farlow, Senior RF Hardware Engineer, NXP Laboratories Ltd
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 77
Appendices
C.1.4 DR1175 FCC Documentation
FCC COMPLIANCE INFORMATION
STATEMENT
DECLARATION OF CONFORMITY
Manufacturer:
Responsible Party in the USA:
Product:
Authorisation Procedure:
NXP LABORATORIES (UK) LTD
FURNIVAL STREET
SHEFFIELD
S1 4QT
UNITED KINGDOM
TELEPHONE: +44 (0) 114 281 2655
FACSIMILE:
WEB:
+44 (0) 114 281 2951 www.nxp.com
NXP Semiconductors Netherlands B.V
Niel P Smith
NXP Semiconductors
411 E. Plumeria Drive
San Jose
CA 95134
USA
Tel 001 408-518 5302
DR1175 Lighting/Sensor Expansion Board
Declaration of Conformity
This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) this device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation.
We, NXP Laboratories (UK) Ltd, have determined that the above named equipment has been shown to comply with the applicable technical standards. Furthermore, we warrant that each unit of equipment marketed is identical to the unit tested and found acceptable with the standards. The records maintained continue to reflect the equipment being produced within the variation that can be expected due to quantity production and testing on a statistical basis.
NXP Semiconductors BV
DR1175 Lighting/Sensor
Expansion Board
Sheffield, September 7 th
,
Conrad Farlow, Senior RF Hardware Engineer, NXP Laboratories Ltd
78 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
C.2 Industry Canada Statements
This section contains the Industry Canada statements.
JenNet-IP EK040 Evaluation Kit
User Guide
Industry Canada IDs of Kit Contents
The JenNet-IP EK040 Evaluation Kit contains the following Industry Canada IDs:
IC: 7438A CYOJN5142M0, IC: 7438A CYOJN5142M3, IC: 7438A CYOJN5148M0,
IC: 7438A CYOJN5148U0, IC: 7438A CYOJN5148M6 and IC: 3839A-WRT160NL.
Industry Canada Statements
To reduce potential radio interference to other users, the antenna type and its gain should be so chosen that the equivalent isotropically radiated power (e.i.r.p.) is not more than that permitted for successful communication.
These modules have been designed to operate with antennae having a maximum gain of 2.2 dBi. Antennae having a gain greater than 2.2 dBi are strictly prohibited for use with this device. The required antenna impedance is 50 ohms.
Class B Devices
The following Class B digital apparatus complies with Canadian ICES-003.
Ces appareils numériques de la classe B sont conformes à la norme NMB-003 du
Canada.
DR1128 Programming Dongle
DR1159 Remote Control Unit
DR1174 Carrier Board
DR1175 Lighting/Sensor Expansion Board
C.3 CE Statements and Documentation
This section contains the CE (Conformité Européenne) statements and documents.
European R & TTE Directive 1999/5/EC Statement
All modules listed in this datasheet are compliant with ETSI EN 300 328 V1.7.1 (2006-
10), EMC, EN 301 489-17 v2.1.1 (2009-02) and the Basic Safety Assessment (BSA)
EN 60950-1:2006 (2006-06) and are subject to a Notified Body Opinion.
CE Documentation for All Kit Components
The CE documentation for all components of the JenNet-IP EK040 Evaluation Kit is shown below (2 pages).
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 79
Appendices
EC DECLARATION OF CONFORMITY TO R&TTE
DIRECTIVE 1995/5/EC
Manufacturer: NXP Laboratories (UK) Ltd
Furnival Street
Product:
Conformity Assessment:
Notified Bodies used:
Certificate:
NXP LABORATORIES (UK) LTD
FURNIVAL STREET
SHEFFIELD
S1 4QT
UNITED KINGDOM
TELEPHONE: +44 (0) 114 281 2655
FACSIMILE:
+44 (0) 114 281 2951
WEB:
www.nxp.com
Sheffield
S1 4QT
JENNET-IP-EK040 Evaluation kit
Containing the following components
JN5148-J01-M00 Module
JN5148-J01-M03 Module
JN5148-J01-M06 High power module
JN5148-J01-U00 USB Dongle
JN5142-J01-M00 Module
JN5142-J01-M03 Module
DR1128 Programming Dongle
DR1159 Remote control unit
DR1174 Carrier board
DR1175 Lighting/Sensor Expansion Board
Linksys WRT160NL Router
Annex III
0891 - TRaC Global
TBA
Reference standards used for presumption of conformity:
EMC EN 301 489-1(04-2008); EN 301 489-17(04-2008)
Health & Safety EN 60590-1: 2006, A1, A11, A12
80 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
Declaration
We, NXP Laboratories (UK) Ltd declare under our sole responsibility that the essential safety, EMC and radio test suites have been carried out and that the above products to which this declaration relates are in conformity with all the applicable essential requirements of EU Directive 1995/5/EC.
The product carries the CE Mark:
Sheffield, September 11 th
, 2012
Conrad Farlow,
Senior Hardware Engineer, NXP Laboratories Ltd
2 of 2
JN-UG-3089 v1.2
© NXP Laboratories UK 2012
Public
81
Appendices
82 © NXP Laboratories UK 2012 JN-UG-3089 v1.2
JenNet-IP EK040 Evaluation Kit
User Guide
Revision History
Version Date
1.0
1.1
6-July-2012
17-Sept-2012
1.2
9-Nov-2012
Comments
First release
Compliance statements and documentation added, module names clarified and other minor modifications made
Method of exiting Co-ordinator mode on Remote Control Unit changed. Operations reference table re-organised.
JN-UG-3089 v1.2
© NXP Laboratories UK 2012 83
JenNet-IP EK040 Evaluation Kit
User Guide
Important Notice
Limited warranty and liability - Information in this document is believed to be accurate and reliable. However, NXP
Semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. NXP
Semiconductors takes no responsibility for the content in this document if provided by an information source outside of NXP Semiconductors.
In no event shall NXP Semiconductors be liable for any indirect, incidental, punitive, special or consequential damages
(including - without limitation - lost profits, lost savings, business interruption, costs related to the removal or replacement of any products or rework charges) whether or not such damages are based on tort (including negligence), warranty, breach of contract or any other legal theory.
Notwithstanding any damages that customer might incur for any reason whatsoever, NXP Semiconductors' aggregate and cumulative liability towards customer for the products described herein shall be limited in accordance with the
Terms and conditions of commercial sale of NXP Semiconductors.
Right to make changes - NXP Semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. This document supersedes and replaces all information supplied prior to the publication hereof.
Suitability for use - NXP Semiconductors products are not designed, authorized or warranted to be suitable for use in life support, life-critical or safety-critical systems or equipment, nor in applications where failure or malfunction of an
NXP Semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. NXP Semiconductors and its suppliers accept no liability for inclusion and/or use of NXP
Semiconductors products in such equipment or applications and therefore such inclusion and/or use is at the customer's own risk.
Applications - Applications that are described herein for any of these products are for illustrative purposes only. NXP
Semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification.
Customers are responsible for the design and operation of their applications and products using NXP Semiconductors products, and NXP Semiconductors accepts no liability for any assistance with applications or customer product design. It is customer's sole responsibility to determine whether the NXP Semiconductors product is suitable and fit for the customer's applications and products planned, as well as for the planned application and use of customer's third party customer(s). Customers should provide appropriate design and operating safeguards to minimize the risks associated with their applications and products.
NXP Semiconductors does not accept any liability related to any default, damage, costs or problem which is based on any weakness or default in the customer's applications or products, or the application or use by customer's third party customer(s). Customer is responsible for doing all necessary testing for the customer's applications and products using NXP Semiconductors products in order to avoid a default of the applications and the products or of the application or use by customer's third party customer(s). NXP does not accept any liability in this respect.
Export control - This document as well as the item(s) described herein may be subject to export control regulations.
Export might require a prior authorization from competent authorities.
84
NXP Laboratories UK Ltd
(Formerly Jennic Ltd)
Furnival Street
Sheffield
S1 4QT
United Kingdom
Tel: +44 (0)114 281 2655
Fax: +44 (0)114 281 2951
For the contact details of your local NXP office or distributor, refer to:
www.nxp.com/jennic
© NXP Laboratories UK 2012 JN-UG-3089 v1.2
Mouser Electronics
Authorized Distributor
Click to View Pricing, Inventory, Delivery & Lifecycle Information:
NXP
:
JENNET-IP-EK040,59
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 3 Contents
- 7 About this Manual
- 7 Organisation
- 7 Conventions
- 8 Acronyms and Abbreviations
- 8 Related Documents
- 8 Trademarks
- 9 Certification
- 11 1. Introduction to the Evaluation Kit
- 11 1.1 JenNet-IP System
- 13 1.2 Kit Contents
- 14 1.3 Kit Hardware
- 14 1.3.1 Remote Control Unit
- 15 1.3.2 Carrier Boards
- 19 1.3.3 Lighting/Sensor Expansion Boards
- 21 1.3.4 JN514x Modules
- 23 1.3.5 USB Dongles
- 24 1.3.6 Linksys Router
- 26 1.4 Smart Home Demonstration
- 27 2. JenNet-IP System Concepts
- 27 2.1 Wireless Network Concepts
- 27 2.1.1 Radio Frequency
- 28 2.1.2 Node Types
- 29 2.1.3 Network Topology
- 31 2.1.4 Network Identity
- 31 2.1.5 Node Addresses
- 32 2.2 IP Concepts
- 32 2.2.1 IP Data Packets
- 32 2.2.2 IPv6 Addresses
- 33 2.2.3 IPv6 Address Components
- 34 2.3 JenNet-IP Software Stacks
- 35 2.3.1 JenNet-IP WPAN Stack
- 35 2.3.2 JenNet-IP LAN/WAN Stack
- 36 2.4 Data Message Handling
- 36 2.4.1 Sending and Receiving Messages
- 36 2.4.2 Passing Messages Through the Border-Router
- 37 3. Smart Home Demonstration
- 37 3.1 Demo System Overview
- 39 3.1.1 Lighting Control from a PC
- 40 3.1.2 Lighting Control from the Remote Control Unit
- 41 3.1.3 Node States and MIBs
- 42 3.2 Setting Up the Demo System
- 42 3.2.1 Setting Up the LAN Part
- 47 3.2.2 Setting Up the WPAN Part
- 50 3.3 Operating the Demo System
- 50 3.3.1 Lighting Control from PC
- 51 3.3.2 Lighting Control from the Remote Control Unit
- 53 3.4 Configuring Groups of Lights
- 53 3.4.1 Configuring Groups on the PC
- 56 3.4.2 Configuring Groups on the Remote Control Unit
- 57 4. Smart Home Demonstration (Standalone)
- 57 4.1 Standalone Demo System Overview
- 58 4.1.1 Lighting Control from the Remote Control Unit
- 60 4.1.2 Node States and MIBs
- 60 4.2 Setting Up the Standalone Demo System
- 63 4.3 Operating the Standalone Demo System
- 65 5. Where Next?
- 65 5.1 User Documentation
- 66 5.2 Software Developer’s Kit (SDK)
- 67 Appendices
- 67 A. Remote Control Operations in the Demonstration
- 68 B. Firmware Re-programming
- 73 C. Compliance Statements and Documentation