Texas Instruments CC-6LOWPAN-DK-868 User Manual
Texas Instruments CC-6LOWPAN-DK-868 User Manual

Texas Instruments CC-6LOWPAN-DK-868 User Manual

Sub-1ghz 6lowpan development kit
Hide thumbs Also See for CC-6LOWPAN-DK-868:
Table of Contents

Advertisement

Quick Links

Sub-1GHz 6LoWPAN Development kit
User's Guide
Literature Number: SWRU298
September 2011

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CC-6LOWPAN-DK-868 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Texas Instruments CC-6LOWPAN-DK-868

  • Page 1 Sub-1GHz 6LoWPAN Development kit User’s Guide Literature Number: SWRU298 September 2011...
  • Page 2 CC-6LOWPAN-DK-868 Abbreviations Abbreviations used in this data sheet are described below. IPv6 over Low Power Wireless Personal Area 6LoWPAN IPv6 Internet Protocol version 6 Networks ICMP Internet Control Message Protocol User Datagram Protocol Router Solicitation Router Advertisement Neighbor Solicitation Neighbor Advertisement...
  • Page 3: Table Of Contents

    Neighbour Discovery and Router Solicitation ....................... 17 3.2.4 RPL: IPv6 Routing Protocol for Low power and Lossy Networks ................. 17 3.2.5 Periodic processes ..............................19 3.2.6 Error situations ................................19 CC-6LOWPAN-DK-868 S ................20 OFTWARE ROJECTS 3.3.1 IDE installation ................................20 3.3.2 NanoHost Example (Network Analyzer) ........................
  • Page 4: List Of Figures

    CC-6LOWPAN-DK-868 ......................... 60 ....................60 INUX KERNEL AND YSTEM REFERENCES ........................... 61 DEVELOPMENT KIT ORDERING INFORMATION ..............61 GENERAL INFORMATION ....................... 61 ........................61 OCUMENT ISTORY List of Figures Figure 1. Sensinode NodeView Network Analyzer tool ............6 Figure 2. CC-6LOPWAN-DK-868 kit ..................8 Figure 3.
  • Page 5: List Of Tables

    CC-6LOWPAN-DK-868 List of Tables Table 1. CC1180 controlled LED (D1 and D2) behavior............14 Table 2. MSP4305438A controlled LED (D3 and D4) behavior........... 14 Table 3. Sensinode 6LoWPAN Stack Layer Definitions............16 Table 4. Beacon payload....................16 Table 5.
  • Page 6: 6Lowpan Kit Overview

    TI and 6LoWPAN software (NanoStack) from TI third party Sensinode Ltd. The CC-6LOWPAN-DK-868 kit provides easy way for users to start developing their own wireless sensor network applications based on 6LoWPAN technology. There are two different APIs for communicating with the NanoStack, based on if you use CC1180 Network Processor or the CC430 SoC.
  • Page 7: Features

    CC-6LOWPAN-DK-868 Features IP-based networking, enabling the “Internet of Things” CC1180 Over-Network Download (OTA), future proofs: Device applications and network upgrades Low memory footprint; CC1180 6LoWPAN stack is less than 32kB CC430 6LoWPAN stack is about 17kB Sensinode 6LoWPAN software can run on all frequencies that CC1180 and CC430 support, providing a sub-GHz mesh solution.
  • Page 8: What's Included In The Kit

    CC-6LOWPAN-DK-868 Figure 2. CC-6LOPWAN-DK-868 kit What’s included in the kit?  2 CC1180DB nodes (CC1180 NWP plus MSP4305438A host MCU)  2 EM430F5137900 (CC430 SoC) nodes  1 OMAP-L138 based Edge Router Board (Gateway, running Linux)  1 Adapter board, for connection of CC1180EM to OMAP-L138 board ...
  • Page 9: Getting Started

    CC-6LOWPAN-DK-868 Getting Started This chapter gives the user a quick start to using the kit. The 6LoWPAN network is completely self healing and self organizing. The only thing the user needs to do in order to get the network up and running is to set up the Edge Router, verify that the Edge Router has Ethernet connection with IPv6 support and start it.
  • Page 10: And 6L Owpan Basics

    Note that some antivirus software blocks all incoming IPv6 traffic. IPv6 and 6LoWPAN Basics To fully benefit from the CC-6LOWPAN-DK-868 kit a basic understanding of both IPv6 and 6LoWPAN is needed. This section makes the user familiar with basic IPv6 and 6LoWPAN technologies.
  • Page 11: Ipv6 Introduction

    CC-6LOWPAN-DK-868 or translating the RF protocol to a network protocol, i.e. using a proxy. CC-6LOWPAN-DK-868 is therefore based on IPv6 and 6LoWPAN, eliminating such need for application layer gateways. 2.2.1 IPv6 Introduction Internet Protocol (IP) is used in the world‟s largest networks. Nearly every desktop computer supports IP, which makes IP ideal to use when one wants to hook up a wireless sensor network to a larger backbone network.
  • Page 12: Figure 5. Adding An Edge Router

    The address must be given in a basic IPv6 format seen in the figure above. To connect to the standard Edge Router delivered with the CC-6LOWPAN-DK-868 kit simply enter 2001::11. After the Edge Router is added, the details can be seen from the NodeView „router View‟ tab if the connection was successfully established.
  • Page 13: Network Analyzer Application

    CC-6LOWPAN-DK-868 Figure 7. NodeView Network Analyzer tab. In Figure 7, the green node indicates a normal node, while the blue color indicates a routing node. The black/grey color indicates a node that has no longer connectivity to the NodeView. The red color indicates a configured Edge Router.
  • Page 14: Software

    CC-6LOWPAN-DK-868 blinks with 1 second interval the network is disabled. The red LED also blink very rapidly during any RF event but mainly remains inactive. Please note that the connection will not be established if the MSP4305438A host MCU doesn‟t send a networking enable message or there is no active NanoRouter available within the range with correct RF settings.
  • Page 15: Sensinode Nanostack 2.0 Lite

    CC-6LOWPAN-DK-868 Figure 8. Stack overview CC1180 based system, using NAPSocket API Figure 9. Stack Overview CC430 based system, using NanoSocket API Sensinode NanoStack 2.0 lite Sensinode NanoStack 2.0 lite is an embedded operating system and a 6LoWPAN protocol stack designed especially for low power and cheap wireless sensor devices.
  • Page 16: Bootstrap Process

    CC-6LOWPAN-DK-868 Layer Standard Description 802.15.4g [4] Link layer communication -GFSK modulation -FHSS support -Single band in EU 802.15.4e [5] Link layer communication -Addressing modes (16 bit addressing mode) -AES-128 bit CCM* support draft-ietf-6lowpan-hc-13 [1] Network layer communication, routing -Addressing modes (128 bit,...
  • Page 17: Neighbour Discovery And Router Solicitation

    CC-6LOWPAN-DK-868 3.2.3 Neighbour Discovery and Router Solicitation When a node is synchronized, the ICMP (Internet Control Message Protocol) layer is activated. The ICMP layer scans for suitable routing nodes or Edge Routers by broadcasting a Router Solicitation (RS) message. On reception of a RS, a routing node responds by sending a link local (unicast) Router Advertisement (RA) to the scanning node.
  • Page 18: Table 6. Rpl Control Messages

    Any other formats of RPL control messages are discarded silently. 3.2.4.2 DODAG configuration option This CC-6LOWPAN-DK-868 kit uses a custom RPL objective function, please see [3] for more information. Here, an Objective Code Point (defined in a DODAG configuration in [3]) is defined to be: MSB byte LSB Byte Table 8.
  • Page 19: Periodic Processes

    CC-6LOWPAN-DK-868 The Objective Code Point indicates a used objective function. The Objective Function requires a metric container. The metric container has the following format: Byte 1 Byte 2 Byte 3 Byte 3 Type = 2 Length = 2 Hop count Table 9.
  • Page 20: Cc-6Lowpan-Dk-868 Software Projects

    CC-6LOWPAN-DK-868 CC-6LOWPAN-DK-868 Software Projects Included in the kit are example projects to be used with IAR Embedded Workbench. This section describes the setup, use of, and installation of those projects. 3.3.1 IDE installation The projects included in the kit are for the IAR Embedded Workbench IDE 5.20 for MSP. It is possible to use the "Kick-start"...
  • Page 21: Nanohost Example (Network Analyzer)

    CC-6LOWPAN-DK-868  Linker: Extra Output - Check Generate Extra Output. Output file: Check override default and name the file *.hex MSP430 project:  General Options: Target - change Device to MSP430F5438A. Library Configuration - CLIB. Stack/Heap - Override default and set Stack size: 512, Data16 heap size: 512.
  • Page 22: Napsocket Library

    CC-6LOWPAN-DK-868 Figure 10. NanoHost Example project 3.3.3 NAPSocket Library The NAPSocket library is provided in source code in order to be able to port the library to other platforms. The NanoHost example application is using the NAPSocket library to send and receive data from the CC1180 Network Processor.
  • Page 23: Figure 12. Nanosocket Example Project

    CC-6LOWPAN-DK-868 Figure 12. NanoSocket Example project 3.3.4.1 MCU Resources in use by NanoStack 2.0 lite on CC430 The following hardware resources are occupied by the library CC430F5137_NanoStack20lite and therefore not available for user application. All timer modules Watchdog DMA interrupt...
  • Page 24: Programming The Boards

    1. Open IAR Embedded Workbench for MSP 2. Open the workspace file NanoHOEX.eww with IAR. This file is found in the subfolder \Sources in the folder where you unpacked the CC-6LOWPAN-DK-868 Applications Examples zip file. 3. There are two different configurations for the IAR project; Release and Debug. Use Debug for debugging your source code and release to build smaller hex files without debug information in it.
  • Page 25: Sensinode Napsocket Api

    CC-6LOWPAN-DK-868 6. Connect the MSP-FET430UIF Debugger to the PC with a USB cable. 7. Select Project->Debug to program the MSP430 (application (host) processor on the CC1180DB). 8. Stop the debugger by selecting Debug -> Stop Debugging. 9. Repeat steps 7 to 8 to program additional boards.
  • Page 26: Sensinode Nap Protocol Api

    CC-6LOWPAN-DK-868 All details on the NAPSocket API are found in the Sensinode documentation [12]. Figure 14. Sensinode NAPSocket library 3.4.1 Sensinode NAP Protocol API The Sensinode NAP interface protocol is used to access the functionality provided by the CC1180 Network Processor with Sensinode NanoStack 2.0 lite. The NAP protocol has been specifically designed to be used over UART.
  • Page 27: Sensinode Rf Dynamic Configuration Api

    CC-6LOWPAN-DK-868 Figure 15. Sensinode NanoSocket API The NanoSocket API is described in the Sensinode document [8]. Sensinode RF Dynamic Configuration API To change RF configuration settings the Dynamic RF Configuration API is used. The API is basically the same both for CC1180 NWP and for CC430 SOC, with minor differences.
  • Page 28: Napsocket

    CC-6LOWPAN-DK-868 static rf_conf_settings_t rf_configurations {DATA_RATE_50, CHANNEL_SPACING_200, MODULATION_INDEX_10, 0x21,0x65,0x6a, 0xc3, RX_ATTENUATION_0dbm}; rf_conf_set_params(&rf_configurations); //Set RF Config for CC430 The data rate parameter can have the following values: DATA_RATE_50, DATA_RATE_100, DATA_RATE_150 and DATA_RATE_200 The channel spacing parameter can be either CHANNEL_SPACING_200 CHANNEL_SPACING_400 Modulation index parameter can be set to...
  • Page 29: Sensinode Nanoboot Api

    CC-6LOWPAN-DK-868 An example of this file is shown below. root@da850-omapl138-evm:~/last/configFiles# cat rf_configuration_ttyS1.conf Interface Id=0 Crystal=26 Data rate=50 Channel spacing=200 Modulation index=10 Base frequency=2180332 TX power=194 RX attenuation=0 Freq. hopping=0 Sensinode NanoBoot API Loading the Sensinode NanoStack 2.0 lite 6LoWPAN stack to CC1180 is performed using Sensinode NanoBoot API.
  • Page 30: Developing Applications To Run In Custom Tabs In Nodeview 2.0

    CC-6LOWPAN-DK-868 integrate those in the NodeView 2.0 application. The NodeView 2.0 folder contains by default an example of a custom tab called “ExampleTab”, the source code can be found at ..\NodeView 2.0\TabProject\src\tabs\exampleTab 3.8.1 Developing applications to run in custom tabs in NodeView 2.0 This simple guide describes setting up an eclipse project using Eclipse IDE for Java Developers version: Helios Service Release.
  • Page 31: Exporting Custom Tabs To Run As Stand Alone

    CC-6LOWPAN-DK-868 the folder ..\NodeView 2.0\TabProject\APIDoc\index.html in the release that can be used to get familiar with NodeView 2.0 tab interface. 6. Add your tab to the file tabConfig.txt as in Figure below; please note that tabConfig.txt must contain a single empty line after the last class definition.
  • Page 32: Edge Router (Omap-L138) Software

    CC-6LOWPAN-DK-868 6. Double-click NodeViewProDyn.jar to launch NodeView 2.0, it will now launch your tabs inside NodeView. Edge Router (OMAP-L138) software This chapter gives a brief introduction to how the software environment on the OMAP-L138 is setup. The Edge router is running Linux operating system and the Sensinode NanoRouter 2.0 application is running on top of that.
  • Page 33: Linux Folder Structure

    CC-6LOWPAN-DK-868 When the boot process of the Edge Router is finished the nanorouter application is executed from the script nanorouter-up.sh. #!/bin/sh #echo "if_full.txt:" cd /home/root/last/configFiles/ cp default.txt if_full.txt echo "Starting NanoRouter:" cd /home/root/last/ ./nanorouter>/dev/null& The two scripts (snif.sh and nanorouter-up.sh) that controls the boot process is located in /etc/init.d/...
  • Page 34: Programming/Reprogramming The Em430F5137Rf900

    CC-6LOWPAN-DK-868 Figure 20. EM430F5137RF900, Logical Description 4.1.1 Programming/Reprogramming the EM430F5137RF900 Connect the MSP-FET430UIF Debugger to the JTAG connector (CON11) using the 14 pin JTAG cable. Connect the MSP-FET430UIF to your PC with the supplied USB cable. Use IAR Embedded Workbench or TI Smart RF Flash programmer to download your software to the CC430 SoC, as described in 3.3.4.1.
  • Page 35 CC-6LOWPAN-DK-868 Page 35 of 61...
  • Page 36: Figure 21. Em430F5137Rf900, Pcb Components Top Layer

    CC-6LOWPAN-DK-868 Figure 21. EM430F5137RF900, PCB Components Top Layer Figure 22. EM430F5137RF900, PCB Components Bottom Layer Page 36 of 61...
  • Page 37: Figure 23. Em430F5137Rf900, Layout Top Layer

    CC-6LOWPAN-DK-868 Figure 23. EM430F5137RF900, Layout Top Layer Figure 24. EM430F5137RF900, Layout Layer 2 Page 37 of 61...
  • Page 38: Figure 25. Em430F5137Rf900, Layout Layer 3

    CC-6LOWPAN-DK-868 Figure 25. EM430F5137RF900, Layout Layer 3 Figure 26. EM430F5137RF900, Layout Bottom Layer Page 38 of 61...
  • Page 39 CC-6LOWPAN-DK-868 Item Reference Description Value Part Number Manuf. ( CUSTOMER SUPPLY ) CRYSTAL, SMT, 4P, ASX-531(CS) AKER ELECTRONIC 26MHz C1-C5, C082, C222, CAPACITOR, SMT, 0402, CER, 16V, 10%, 0.1uF 0402YC104KAT2A C271, C281, C311, 0.1uF C321, C341, C412, C452 C071 CAPACITOR, SMT, 0603, CERAMIC, 0.47uF, 0.47uF...
  • Page 40: Cc1180Db

    CC-6LOWPAN-DK-868 CRYSTAL, SMT, 4P, 32.768 kHz 32.768k SSP-T7-F SEIKO DUT, SMT, PQFP, RGZ-48, 0.5mmLS, CC430F52x1 7.15x7.15x1mm, THRM.PAD Pin Connector 2x4pin 61300821121 WUERTH CON1-CON9 Pin Connector 2x4pin 61300821121 WUERTH Pin Connector 1x3pin 61300311121 WUERTH JP3, JP5, JP10 Pin Connector 1x2pin 61300211121...
  • Page 41: Programming/Reprogramming The Cc1180Db

    CC-6LOWPAN-DK-868 4.2.1 Programming/Reprogramming the CC1180DB Note: CC1180 has a locked debug interface. The Flash area where the bootloader is placed is protected to prohibit erasure of the NanoStack 6LoWPAN software. Updated of the stack is done via the NanoBoot API.
  • Page 42 CC-6LOWPAN-DK-868 Page 42 of 61...
  • Page 43 CC-6LOWPAN-DK-868 Page 43 of 61...
  • Page 44 CC-6LOWPAN-DK-868 Page 44 of 61...
  • Page 45: Figure 28. Cc1180Db, Pcb Components Top Layer

    CC-6LOWPAN-DK-868 Figure 28. CC1180DB, PCB Components Top Layer Page 45 of 61...
  • Page 46: Figure 29. Cc1180Db, Pcb Components Bottom Layer

    CC-6LOWPAN-DK-868 Figure 29. CC1180DB, PCB Components Bottom Layer Page 46 of 61...
  • Page 47: Figure 30. Cc1180Db, Layout Top Layer

    CC-6LOWPAN-DK-868 Figure 30. CC1180DB, Layout Top Layer Page 47 of 61...
  • Page 48: Figure 31. Cc1180Db, Layout Bottom Layer

    CC-6LOWPAN-DK-868 Figure 31. CC1180DB, Layout Bottom Layer Page 48 of 61...
  • Page 49 CC-6LOWPAN-DK-868 Ref. Part Name Pcs/u Description Manuf. Part Number 2XAAA 2xAAA battery holder, Keystone 2468 2CELL AAA PC MNT CC1180 6LoWPAN Network CC1180 Processor C5;C13;C15;C21;C30 C_100N_0402_X Capacitor, 100n, 0402, Murata GRM155R71A104KA01D ;C34;C191;C221;C25 5R_K_10 X5R, 10%, 10V 1;C261;C291 C234-235 C_100P_0402_N Capacitor, 100p, 0402,...
  • Page 50: Edge Router, Omap-L138 Experimenters Board

    OMAP-L138 Experimenter‟s board can be found here: http://focus.ti.com/docs/toolsw/folders/print/tmdsexpl138.html. Please note that the OMAP board in the CC-6LOWPAN-DK-868 does not include the LCD display. It is very important that the switch S7-2 is in position ON, all other switches on S2 and S7 shall be in position OFF.
  • Page 51: Adapter Board

    CC-6LOWPAN-DK-868 4.3.1 Adapter Board The adapter board is used to enable connection of CC1180EM to the OMAP-L138 Experimenter‟s Board, providing the RF interface for the Edge Router. The adapter board contains two LEDs with function as described in the table below.
  • Page 52 CC-6LOWPAN-DK-868 Page 52 of 61...
  • Page 53: Figure 33. Adapter Board, Pcb Components Top Layer

    CC-6LOWPAN-DK-868 Figure 33. Adapter Board, PCB Components Top Layer Figure 34. Adapter Board, PCB Components Bottom Layer Page 53 of 61...
  • Page 54: Figure 35. Adapter Board, Layout Top Layer

    CC-6LOWPAN-DK-868 Figure 35. Adapter Board, Layout Top layer Figure 36. Adapter Board, Layout Bottom Layer Page 54 of 61...
  • Page 55: Cc1180Em

    CC-6LOWPAN-DK-868 Part Type Designator Footprint Description Part Number Manuf. 0.1uF CAP_0603 CAPACITOR ECJ1VB1C104K Panasonic 0.1uF CAP_0603 CAPACITOR ECJ1VB1C104K Panasonic 2.2uF CAP_0603 CAPACITOR GRM188R61C225KE Murata EM HEADER HEADER CONNECTOR TFM-110-02-SM-D-A- Samtec 10X2(SAM- K-TR TFM)(SMT) EM HEADER HEADER CONNECTOR TFM-110-02-SM-D-A- Samtec 10X2(SAM-...
  • Page 56 CC-6LOWPAN-DK-868 Page 56 of 61...
  • Page 57: Figure 37. Cc1180Em, Pcb Components Top Layer

    CC-6LOWPAN-DK-868 Figure 37. CC1180EM, PCB Components Top Layer Figure 38. CC1180EM, PCB Components Bottom Layer Page 57 of 61...
  • Page 58: Figure 39. Cc1180Em, Layout Top Layer

    CC-6LOWPAN-DK-868 Figure 39. CC1180EM, Layout Top Layer Figure 40. CC1180EM, Layout Bottom Layer Page 58 of 61...
  • Page 59: Table 15. Cc1180Em, Bill Of Material

    CC-6LOWPAN-DK-868 Ref. Part Name Pcs/unit Description Manuf. Part Number CC1180 6LoWPAN Network CC1180 Processor C236 C_0402 Capacitor, general, 0402; Do not mount C21;C291 C_100N_0402_X5R_K_1 Capacitor, 100n, Murata GRM155R71A104KA01D 0402, X5R, 10%, C234-235 C_100P_0402_NP0_J_50 Capacitor, 100p, Murata GRM1555C1H101JZ01D 0402, NP0, 5% 50V C191;C251...
  • Page 60: Faq

    CC-6LOWPAN-DK-868 Send UDP packets from PC One easy way to communicate with the nodes in the 6LoWPAN network using UDP from a PC is via the Netcat program. Netcat is a tool that are included in almost every Linux distribution, to check if you have netcat installed run the nc command in Linux.
  • Page 61: References

    Sensinode NodeView2.0.pdf [11] Sensinode NanoHost Example 1.0-01.pdf [12] Sensinode NAPSocketLibrary1.0-01.pdf [13] Sensinode RFConfigurationAppNote1.0.pdf [14] CC-6LOWPAN-DK-868 Quick Start Guide (SWRU276.pdf) [15] CC1180 Datasheet (SWRS113.pdf) Development Kit Ordering Information Orderable Evaluation Module Description Minimum Order Quantity CC-6LOWPAN-DK-868 6LoWPAN Development Kit, 868/915 MHz Table 16.
  • Page 62 Any exceptions to this are strictly prohibited and unauthorized by Texas Instruments unless user has obtained appropriate experimental/development licenses from local regulatory authorities, which is responsibility of user including its acceptable authorization.
  • Page 63 FCC Interference Statement for Class B EVM devices 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.
  • Page 64 Also, please do not transfer this product, unless you give the same notice above to the transferee. Please note that if you could not follow the instructions above, you will be subject to penalties of Radio Law of Japan. Texas Instruments Japan Limited (address) 24-1, Nishi-Shinjuku 6 chome, Shinjuku-ku, Tokyo, Japan http://www.tij.co.jp...
  • Page 65 FDA Class III or similar classification, then you must specifically notify TI of such intent and enter into a separate Assurance and Indemnity Agreement. Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265 Copyright © 2012, Texas Instruments Incorporated...
  • Page 66 IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, enhancements, improvements and other changes to its semiconductor products and services per JESD46, latest issue, and to discontinue any product or service per JESD48, latest issue.

Table of Contents