Low-power sub-1-ghz fractional-n uhf device family for automotive (97 pages)
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...
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.
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.
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.
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.
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.
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.
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.
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.
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.
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,...
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.
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.
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.
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"...
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.
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...
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.
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.
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.
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.
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...
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.
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.
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.
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.
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/...
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.
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.
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.
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.
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.
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 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.
Need help?
Do you have a question about the CC-6LOWPAN-DK-868 and is the answer not in the manual?
Questions and answers