IQRF DPA Quick Start Guide

Similar documents
IQRF DPA Quick Start Guide

CK-USB-04. User's Manual. IQRF Development Kit. Firmware v MICRORISC s.r.o. MNCKUSB04_ Page 1

KON-RASP-01. User s guide. IQRF Shield for Raspberry Pi MICRORISC s.r.o. User_guide_KON-RASP-01_ Page 1

DK-PGM-01. User's Guide. IQRF Universal Development kit MICRORISC s.r.o. MNDKPGM01_ Page 1

GW-USB-05. User's Guide. FW v1.07. IQRF USB Gateway MICRORISC s.r.o. User_Guide_GW-USB-05_ Page 1

GW-USB-06. User s Guide. IQRF USB Gateway. FW v MICRORISC s.r.o. User_Guide_GW-USB-06_ Page 1

IQRF. Basic informations. Piotr Antończyk IQRF Tech s.r.o.

GW-GSM-02. User's Guide. IQRF GSM Gateway. Preliminary. Firmware v MICRORISC s.r.o. UG_GW-GSM-02_ Page 1

GW-ETH-0x Datalogger

IQRF DPA Framework. Technical guide. Version v2.01. For IQRF OS v3.05d

Technical guide IQRF Technical Guide

WIRELESS COMMUNICATION PLATFORM IQRF A CASE STUDY

IQRF - Mesh Networking

IQRF SPI. Technical guide. For TR-7xD For IQRF OS v4.02 or higher IQRF Tech s.r.o. Tech_Guide_SPI_TR-7xD_ Page 1

IQRF Alliance. Simon Chudoba CEO, IQRF Alliance. Šimon Chudoba, IQRF Alliance, CEO

GW-ETH-02. User's Guide. IQRF Ethernet Gateway. Firmware v MICRORISC s.r.o. UG_GW-ETH-02_ Page 1

IQRF DPA Framework. Technical guide. Version v1.00. For IQRF OS v3.04d

Wireless M-Bus. Implementation in TR-7xD-WMB and GW-USB-06-WMB. Firmware v2.21. User's Guide


A MESH FAIRY TALE. The Eighths International Conference on Networking. and Services ICNS 2012

IQRF Mature technology and fast growing Alliance for IoT

Radiocrafts Embedded Wireless Solutions

Quick Start Guide TRK-KEA. Kinetis EA Series MCUs for Automotive Electronics Applications. StarterTRAK

AN4321 Application note

Z8 Encore! XP Family of Microcontrollers Development Kits

STSW-BLUENRG1-DK. BlueNRG-1, BlueNRG-2 DK SW package

Raspberry Pi shield board

CMT2110A/2210A One-Way RF Link Development Kits User s Guide

Dual H-Bridge shield. Dual H-Bridge shield - board user manual. Shield for DC motor control with IFX9202. About this document.

AN4782 Application note

Getting Started with MCUXpresso SDK CMSIS Packs

UM QN908x Quick Start. Document information. QN908x, Quick Start, Development Kit, QN9080 DK, QN9080 Development Kit

UM2255 User manual. SPC58NG-DISP user manual. Introduction

Emulating Dual SPI Using FlexIO

ZMOTION Detection Module Development Kit

Getting Started with Freescale MQX RTOS for Kinetis SDK and MDK-ARM Keil

LPC2148 DEV BOARD. User Manual.

Deploying Devices. Cisco Prime Infrastructure 3.1. Job Aid

ICP05 IBOARD LITE ICP05. - iboard lite

32L476GDISCOVERY. Discovery kit with STM32L476VG MCU. Features. Description

RC232 Deployment Tool (DT) User Manual

BASIC INSTRUCTIONS (installation from USB DISC)

The BlueNRG-1, BlueNRG-2 BLE OTA (over-the-air) firmware upgrade

AC/DC. Adapter. Ribbon. Cable Serial. Serial. Adapter. Figure 1. Hardware Setup using an EC2 Serial Adapter

GPS Evaluation Kit A1080

StarWind iscsi SAN Software: Using an existing SAN for configuring High Availability with VMWare vsphere and ESX server

8051 General Purpose Board

CoiNel Technology Solutions LLP. LPC2148 ARTIST Instruction Manual LPC2148 ARTIST. Instruction manual. Revision 1

No: SW1.12_4.0.2 V F

AN4869 Application note

Primex Device Configuration Software Advanced User Guide

PePWave Mesh Connector User Manual

USER GUIDE. Workshop 4 User Guide. Document Date: 17 th December 2012 Document Revision: 1.1

LC1628-L High-Speed USB Flash Disk Controller Preliminary Data Sheet

PremierWave 2050 Enterprise Wi-Fi IoT Module Evaluation Kit User Guide

Managing Device Software Images

UM2119 User manual. Graphical user interface (GUI) for EVAL-L9907-H. Introduction

Opendiem Training Addendum IIS

SAMSUNG ELECTRONICS RESERVES THE RIGHT TO CHANGE PRODUCTS, INFORMATION AND SPECIFICATIONS WITHOUT NOTICE. Products and specifications discussed

DG0849 Demo Guide PolarFire Dual Camera Video Kit

EZ430-C9. Getting Started with Kionix EZ430-C9 Evaluation Board for the Texas Instruments MSP430 USB Stick Development Tool

How to configure the BlueNRG-1 and BlueNRG-2 devices in network coprocessor mode. Main components Bluetooth Low Energy wireless system-on-chip

CMSIS DAP Setup. Document Version History Document Version ngxtechnologies.com 2

32F746GDISCOVERY. Discovery kit with STM32F746NG MCU. Features. Description

nrf Connect Bluetooth low energy

Description. January 2019 DB2381 Rev 3 1/5

Datapath North America 2550 Blvd of the Generals Suite 30 Norristown, PA U.S.A Tel:

Kinetis Flash Tool User's Guide

Getting Started with Freescale MQX RTOS for Kinetis SDK and Kinetis Design Studio IDE

BASIC INSTRUCTIONS (installation from USB DISC) SW version 16.0 and other

QUICK START GUIDE. Multi Display Controller

TWR-LS1021A Getting Started

Getting Started with the MCU Flashloader

MultiOne. Getting started

STSW-STWBCFWDT. STWBC firmware downloader tool. Description. Features

CHAPTER 17 COMPILING/SIMULATING/DOWNLOADING A PANEL APPLICATION

ToolStick-EK TOOLSTICK USER S GUIDE. 1. Kit Contents. 2. ToolStick Overview. Green and Red LEDs. C8051F321 provides USB debug interface.

Offline Flash Programmer for Kinetis K- and L-series MCUs

Kinetis Flash Tool User's Guide

LP5526 Evaluation Kit

Kinetis Updater User's Guide

Description. July 2016 DocID Rev 2 1/6

This user guide describes how to run the Atmel ATWINC3400 Bluetooth Low Energy (BLE) Provisioning demo from out-of-box conditions.

UM0401 User manual. User manual for eight bit port expander STMPE801 demonstration board. Introduction

Getting started with STEVAL-IDB007V1 and STEVAL-IDB008V1 evaluation boards

Bluetooth Laptop Mouse Installation Guide

Load Position-Independent Code (PIC) on a Kinetis Platform Using the IAR EWARM Compiler

TWR-KV10Z32 Sample Code Guide for IAR Board configuration, software, and development tools

AVR Development Board

UM2051 User manual. Getting started with the STM32 Nucleo pack for USB Type-C and Power Delivery. Introduction

StarWind iscsi SAN Software: Using StarWind to provide Cluster Shared Disk resources for Hyper-V Failover Clusters

RDX QuikStation System Components

DRAGON CENTER User Guide

UM1084 User manual. CR95HF development software user guide. Introduction. Reference documents

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. USB to Serial UART Bridge Converter. Document Date: 5 th September 2012 Document Revision: 1.

MultiOne. Getting started. Copyright 2016 Philips Lighting Holding B.V.. All Rights Reserved

32F412GDISCOVERY. Discovery kit with STM32F412ZG MCU. Features. Description

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. microusb Programming Adaptor. USB to UART Serial Bridge

STSW-BNRGUI. BlueNRG GUI SW package. Data brief. Features. Description

PIC32 SK I/O Breakout Board. User Manual

Transcription:

Quick Start Guide For DPA framework v2.00 For IQRF OS v3.05d and higher For IQRF IDE v4.15 and higher 2014 MICRORISC s.r.o. www.iqrf.org Quick_Start_Guide_DPA-200_140821 Page 1

This document is intended as a step-by-step guide to get familiar with HWP. The approach is the same for all hardware profiles, either Demo HWP with common transceivers (TR) or General HWP with Data controlled transceivers (DCTR). Demo HWP vs. General HWP versions Limitations Demo HWP is limited to max. 5 Nodes (addresses 1 to 5). A node device having an unsupported address flashes periodically red LED after reset. Some Custom handler events are not supported. See IQRF DPA Technical guide for specification. Only one user peripheral PNum = 0x20 with one command PCmd = 0x00 is supported. Extensions Demo HWP supports the PWM peripheral (simple pulse-width modulated digital output). Discovery and FRC processes are indicated by LEDs flashing by default. DS-DPA-01 development set To learn DPA usage, development set DS-DPA-01 can be used. DCTR-52DAT IQRF smart transceiver 6 pcs CK-USB-04(A) IQRF programmer and debugger 2 pcs DK-EVAL-04(A) Universal portable development kit for (DC)TR modules 4 pcs CAB-USBABMICRO Micro USB cable 18.5 cm 2 pcs USB flash drive Software and documentation 1 pc 1. Preparation All SW, plug-ins, etc. are available on the flash disk and on www.iqrf.org. Prepare 5 pieces of DCTR-52DAT with OS 3.05D or higher as Nodes and one DCTR-52DAT module with OS 3.05D or higher as the Coordinator. Prepare 4 (5) pieces of DK-EVAL-04(A) and 1 (2) piece(s) of CK-USB-04(A). Unpack the Demo HWP (from the IQRF Startup package) into your computer. Install IQRF IDE 4.15 or higher. In case of troubles with installation (e.g. with USB drivers) refer to IQRF Quick Start guide. Launch IQRF IDE and open project HWP-demo_xxxxxx.iqrfprj. All necessary files and macros are included in the project. 2014 MICRORISC s.r.o. www.iqrf.org Quick_Start_Guide_DPA-200_140821 Page 2

2. HWP upload Creating Nodes A. Plug a DCTR module in CK-USB-04(A), select the DemoHWP-Node-SPI_*.iqrf file in Project window and click the Upload Plug-ins button on the Toolbar (or use the F5 key). B. Double-click on the configuration file DPA-config_xxxxxx.xml in IDE Project window to open the TR Configurations window. Make the following settings: Select desired RF channel (RF Channel A) in the OS tab. Select desired RX Filter in the HWP tab. For short range testing (within the room) you can leave the default value (35). For operating in real conditions select 5. This settings must be the same in the entire network! Do not change other parameters for now. Save the configuration into the DCTR module by button Upload. C. Plug this DCTR module in the DK-EVAL-04(A) kit Repeat steps A to C for all Nodes. Creating the Coordinator Use the same procedure but with the DemoHWP-Coordinator-SPI_*.iqrf and DPA-config_xxxxxx.xml files. Then leave the DCTR module plugged in CK-USB-04(A). Warning: The Demo is optimized for operation on a table to demonstrate routing within a room by strong RX filter (35) in TR configuration. For real application all devices should have minor RX filter in TR configuration. Recommended value is from 35 to 5. 2014 MICRORISC s.r.o. www.iqrf.org Quick_Start_Guide_DPA-200_140821 Page 3

3. Bonding IQRF DPA To use DPA, all Nodes in the network must be bonded to the Coordinator.To get all nodes bonded, follow next procedure: A. All Nodes must be unbonded and located in direct RF range to the Coordinator before bonding (local bonding). In case the Node is already bonded the red LED once shortly flashes. Go to step Unbonding below in this case. If the node is not bonded the red LED is flashing for 10 s and then the module falls into sleep. B. The Coordinator may possibly have stored some bonded Nodes from previous DCTR module usage. Thus, such bonding information should be cleared from the Coordinator memory first. Click the Clear All Bonds (in IQMESH Network Manager window, tab Control IQMESH). Number of bonded Nodes should be 0, see the screenshot below. C. Activate the Auto address checkbox. Thus, addresses will be assigned automatically in ascending order starting from 1. Click the Bond Node button. The Coordinator stays cca 10 s in bond mode. During this period press the SW1 pushbutton (the one close to USB connector) on the DK-EVAL-04(A) kit containing the Node you are just going to bond. It is convenient to mark the assigned address on the DCTR module (e.g. by a label). D. Repeat step C for all Nodes. It should result in 5 bonded Nodes according to the screenshot below. 2014 MICRORISC s.r.o. www.iqrf.org Quick_Start_Guide_DPA-200_140821 Page 4

4. Discovery IQRF DPA Discovery is a process that sets up network topology to deliver data or commands to nodes out of the Coordinator direct range. Thanks to HWP just couple of clicks and all is done. Discovered topology can directly be reviewed in window IQMESH Network Manager, the Map View tab. Follow next steps to run Discovery and create different types of topologies. A. Place all Nodes close to the Coordinator and click the Discovery button (in window IQMESH Network Manager, the tab Control IQMESH). If all Nodes are in direct range to the Coordinator the Discovery should take a few seconds only. Switch to the Map View tab after finishing Discovery. The topology like in the screenshot below should appear. B. Place Nodes in longer distance between each other (with respect to current RX Filter selected in TR Configuration). For test purpose it is recommended to reduce the range using a shielding, e.g. by inserting the kits with DCTR modules into plastic bags with anti-static proofing. D. Click the Discovery button. If not all Nodes are in direct range now, the Discovery process will take a bit longer. The result can look like on the screenshot below: Note Displayed topology is only a tree visualization of parent Nodes (illustrating just the path which has been used to discover individual Nodes). This does not mean that packets can be delivered through displayed links only. Packets are delivered based on Directed flooding routing algorithm described in IQRF OS User 's guide. 2014 MICRORISC s.r.o. www.iqrf.org Quick_Start_Guide_DPA-200_140821 Page 5

5. Examples IQRF DPA A quick test of the network functionality can be performed by the pop-up menu (example A below). For detailed testing of DPA commands the Terminal DPA Test tool provides two ways how to set up a specific DPA command: using macros (example B) or manual arrangement of DPA packet (example C). A. Pop-up menu For the simpliest checking, a command to switch the red LED On/Off on selected Node can be immediately sent by clicking the left mouse button on the symbol of given Node in the map. The command currently selected in the DPA Test Data to Send window can be executed by the right mouse button click on the symbol of given Node in the map and by selecting the Send Packet from DPA Test item. NAdr is set automatically according to selected Node. B. Macros Click on the particular macro and PNum, PCmd, HWProfile and Data are automatically filled in. Then select Node Address in NAdr box (for Broadcast use address 0xFF) and click the Send button. Go to LED macros and click on macro Set LEDR on. To switch all LEDs on, fill in 0xFF in NAdr and Click Send button. Use various macros and Node addresses to test the functionality. C. DPA packet arranged manually To get better understanding of DPA packet structure, you can also fill in the DPA packet manually. By clicking the right mouse button to the area for selecting NAdr, PNum, PCmd or HWProfile, menu Predefined Addresses, Predefined Peripherals, Predefined Commands or Predefined HWP is displayed. These lists allow to select items defined by the DPA specification and directly arrange the packet. From menu Predefined Addresses select Broadcast or directly specify the address of given Node. From menu Predefined Peripherals select the LEDR peripheral. From menu Predefined Commands select the Set on command. From menu Predefined HWP select the To All HWP item. Click the Send button. Test other peripherals and commands in the same way. 2014 MICRORISC s.r.o. www.iqrf.org Quick_Start_Guide_DPA-200_140821 Page 6

6. Unbonding Unbonding a Node on the Coordinator side Select the desired address of the Node in the Address field (IQMESH Network Manager the Control IQMESH tab) If the network is not created yet or given Node is not reachable, activate the Only in Coordinator checkbox. Click the Unbond Node button. Unbonding a Node on the Node side Press and hold button SW1 (close to USB connector). Shortly press button SW2. Green LED shines for about 2 s. Release the SW1 button immediately once the green LED stops shinning. If the node is successfully unbonded, red LED is flashing and module falls asleep after 10 s. Note Besides of IQMESH Network Manager and DPA Test, IQRF IDE provides also further tools (Terminal Log and Packet Inspector) for working with DPA especially for developers implementing or testing the DPA protocol. They are described in IQRF IDE Help. Document history 140821 Recommended RX filter added in Chapter 2. 140618 DCTR modules in DS-DPA-01 set are delivered without hardware profiles uploaded from 18 Jun 2014. 140513 First release for DPA framework v2.00. 2014 MICRORISC s.r.o. www.iqrf.org Quick_Start_Guide_DPA-200_140821 Page 7

Corporate office Sales and Service MICRORISC s.r.o., Prumyslova 1275, 506 01 Jicin, Czech Republic, EU Tel: +420 493 538 125, Fax: +420 493 538 126, www.iqrf.org. Partners and distribution Please visit www.iqrf.org/partners. Trademarks The IQRF name and logo and MICRORISC name are registered trademarks of MICRORISC s.r.o. PIC, SPI, Microchip and all other trademarks mentioned herein are property of their respective owners. Legal All information contained in this publication is intended through suggestion only and may be superseded by updates without prior notice. No representation or warranty is given and no liability is assumed by MICRORISC s.r.o. with respect to the accuracy or use of such information. Without written permission it is not allowed to copy or reproduce this information, even partially. No licenses are conveyed, implicitly or otherwise, under any intellectual property rights. The IQRF products utilize several patents (CZ, EU, US) 2014 MICRORISC s.r.o. www.iqrf.org Quick_Start_Guide_DPA-200_140821 Page 8