ZNP Host Framework

Introduction

This git repository contains the source code for the ZNP POSIX Host Framework and Examples. The project is intended to help developer to develop ZigBee application on a host MCU/MPU connected to the Texas Instruments ZigBee Network Processor (CC253x). The framework offers a C callable / callback API to access the ZigBee Network Processor functionality available as a Binary Remote Procedure Call format over the UART/SPI interface.

The Framework and Examples utilize a subset of POSIX functions to access OS functionality (Semaphores etc) making it easily portable between OS’s (High Level or Real Time) and HW platforms.

The Examples currently implemented are:

The Platforms currently supported are:

The framework and examples are described in more detail in the UserGuide in the /docs directory of this git.

Quick Start Guide

Required HW

For the Linux platform only the CC2538DK is required.

For the TIRTOS Tiva platform you will need in addition to the CC2538DK ; a TIVA-C Launchpad and an EM Booster pack (modified as indicated in the Users Guide).

Programming the CC2538EM's with ZNP FW

Use the SmartRF Programmer 2 to program the FW contain in the bin dir of the git repository.

For the Linux Platform use /bin/cc2538-znp-120-usb-tclk.hex FW. For the TIRTOS/TIVA Platform use the cc2538-znp-120-uart-tclk.hex

Remember to set the P5 header correctly on the CC2538EM:

Connect the CC2538EM to the Host:

Building and running the examples

The following describe how the build environment is setup and how one of the examples can be run. For a complete description consult the Users Guide.

Clone the git

git clone git://git.ti.com/znp-host-framework/znp-host-framework.git

Linux

Change dir to the build directory for one of the examples and build it

cd znp-posix-framework/examples/cmdLine/build/gnu/
make

Then run the example:

./cmdLine.bin /dev/ttyACM0

TI RTOS

Download CCS v6 from here: CCS v6

Download TIRTOS for TIVA-C version 2.00.02.36 from here: TIRTOS for TIVA-C version 2.00.02.36 (for Windows)

Other versions of TIRTOS are available here however these are not yet tested so we recommend that you use the version suggested above.

Open CCSv6, Import the project through Project->Import->Code Composer Studio->CCS Project. Browse to /znp-posix-framework\examples\cmdLine\build\tirtos\ccs

To build and download the example Right click on the example in the Project Explorer and select Debug As->Code Composer Debug Session

Known Issues and Limitations