Bidirectional wireless communication using EmbedRF



Similar documents
Quick Start Guide. MRB-KW01 Development Platform Radio Utility Application Demo MODULAR REFERENCE BOARD

USING WIRELESS DIAGNOSTICS Application Note 31

1 Synchronising Xsens Systems with Noraxon TeleMyo

Setting Up the ZigBee Ethernet Gateway

SMS Alarm Messenger. Setup Software Guide. SMSPro_Setup. Revision [Version 2.2]

SDN INSTRUCTIONS 07/10, Ver 1.2. Somfy Digital Network (SDN) Installation and Programming

Internet Access: Wireless WVU.Encrypted Network Connecting a Windows 7 Device

Software User Guide UG-461

Long-Range 500mW IEEE g Wireless USB Adapter. User's Guide

1. Installing The Monitoring Software

Bluetooth + USB 16 Servo Controller [RKI-1005 & RKI-1205]

TE100-P21/TEW-P21G Windows 7 Installation Instruction

Tube-U(G) Long-Range Outdoor IEEE g USB Adapter User s Guide

mysensors mysensors Wireless Sensors and Ethernet Gateway Quick Start Guide Information to Users Inside the Box mysensors Ethernet Gateway Quick Start

Global Monitoring + Support

Step-by-Step Setup Guide Wireless File Transmitter

SolarTrak Users Guide GPS Satellites

3. USB DRIVER Installation of USB driver Driver for Infinity SD Data Logger. INFINITY Series Acquisition Tools Manual

WAMLocal. Wireless Asset Monitoring - Local Food Safety Software. Software Installation and User Guide BA/WAM-L-F

WA Manager Alarming System Management Software Windows 98, NT, XP, 2000 User Guide

PMAfob Home Automation Demo

Orbitel. Residential Digital Phone Service User s Guide

AN588 ENERGY HARVESTING REFERENCE DESIGN USER S GUIDE. 1. Kit Contents. 2. Introduction. Figure 1. Energy Harvesting Sensor Node

How To Use An Eyefi Card With A Wireless Network On A Iphone Or Ipad Or Ipa (For A Computer) With A Camera On A Blackberry Or Ipo (For An Ipo) With An Eyefi Card

SA-9600 Surface Area Software Manual

Keep it Simple Timing

GUARD SENIOR. manual

Shearwater Research Dive Computer Software Manual

Ethernet Radio Configuration Guide

PM1122 INT DIGITAL INTERFACE REMOTE

Single channel data transceiver module WIZ2-434

PART 1 CONFIGURATION 1.1 Installing Dashboard Software Dashboardxxx.exe Administration Rights Prerequisite Wizard

Event counters in NOVA

Setting Up a Wireless Connection

4310/4320 Wireless Position Monitor Burst Configuration and Diagnostics

AUDITVIEW USER INSTRUCTIONS

Using a Laptop Computer with a USB or Serial Port Adapter to Communicate With the Eagle System

Programming and Using the Courier V.Everything Modem for Remote Operation of DDF6000

Real Time Clock USB Evaluation Board V3.0

Step-by-Step Setup Guide Wireless File Transmitter

Firmware version: 1.10 Issue: 7 AUTODIALER GD30.2. Instruction Manual

DAKTON µ BOX MANUAL µbox User Manual 1

Determining Your MAC Address in Windows XP

Ericsson W25. Mobile Networks. Quick Installation Guide

Quick Start Guide. SoundCTRL version 1.0. SoundCTRL System. For Ultrasonic Inspection and Equipment Condition Analysis QUICK START GUIDE

Raptor-CAN User Manual

AUDITVIEW USER INSTRUCTIONS

LP 2844 Thermal Printer

In-System Programmer USER MANUAL RN-ISP-UM RN-WIFLYCR-UM

Using IDENT M System T with Modbus/TCP

LT1 Tune Kit Quick Start Guide

STIM202 Evaluation Kit

All Rights Reserved. Copyright 2009

WAM Remote Wireless Asset Monitoring. Website User Guide

Lab Experiment 1: The LPC 2148 Education Board

HomeSeer Technologies. HomeSeer Technologies LLC 35 Constitution Dr, Suite C Bedford NH,

EVAL-UFDC-1/UFDC-1M-16

CS 326e F2002 Lab 1. Basic Network Setup & Ethereal Time: 2 hrs

Preparing Log-ic 360 USB Loggers for Use

Wireless USB Adapter

Getting Started. Getting Started with Time Warner Cable Business Class. Voice Manager. A Guide for Administrators and Users

Detective. Family. HPGe-Based Portable Nuclide Identifiers. Wireless Remote Operation With SOTI s Pocket Controller Software

EDK 350 (868 MHz) EDK 350U (902 MHz) EnOcean Developer Kit

POWERLINK High Power Wireless LAN b/g/n USB Adapter User Manual

Hot Spot (Unsecured) Wireless Access Initial Setup and Login for MCC_HOTSPOT

Networking. General networking. Networking overview. Common home network configurations. Wired network example. Wireless network examples

WIRELESS INSTRUMENTATION TECHNOLOGY

Welcome to life on. Get started with this easy Self-Installation Guide.

Weather Direct Displays show Lost Forecast (blank boxes in the picture icons)

Verizon Wireless VZAccessSM Manager User's Guide

1. Make sure that no client accounts are open. 2. Click on Setup, then click Modem. The Modem Setup window will appear.

TFA. KlimaLogg Pro. User Manual. Revision: 0.1

Warnings: This manual is intended to guide a technicians or customers who would like to repair DBL's

By: John W. Raffensperger, Jr. Revision: 0.1 Date: March 14, 2008

LOCAL INTERCONNECT NETWORK (LIN)

User Guide CentrePoint Study Admin

A Teacher s Guide to Updating Multiple TI-Nspire. Handhelds

how to upgrade your IsatPhone

Kurz MODBUS Client User s Guide

CCNA Discovery Networking for Homes and Small Businesses Student Packet Tracer Lab Manual

RC Camera Control. User Guide v /20/2012

T-BOXN12R. First steps with T-BOXN12R. You can make it wireless. Date: Version 1.0

LSR4300 Control Center Software

About This Guide SolarEdge Configuration Tool Software Guide. About This Guide

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

How to setup a serial Bluetooth adapter Master Guide

TECHNICAL BULLETIN. Configuring Wireless Settings in an i-stat 1 Wireless Analyzer

Hot Spot (Unsecured) Wireless Access Initial Setup and Login for MCC_HOTSPOT

How To Use An Ams 5812 Pressure Sensor With A Usb Starter Kit

IP Talk Hosted VoIP Solutions Small Office/Home Office (SOHO) Setup Guide

FUTURELIGHT RDM PC DIRECTOR

Connecting instruments serially to your computer

Vehicle Monitoring Quick Reference Guide

1. Hardware Installation

SwannSecure Monitoring System

DS2438EVKIT+ Smart Battery Monitor Evaluation Kit

E.dentifier2. Use of the e.dentifier2 connected to your PC requires the installation of software

DIRECT INTERNET 3. Install Guide for the Windows 7 Operating System

IEEE b WLAN PC Card

DeviceNet Bus Software Help for Programming an Allen Bradley Control System

Transcription:

Bidirectional wireless communication using EmbedRF 1. Tools you will need for this application note... 2 2. Introduction... 3 3. Connect EmbedRF Board to USB Interface Board... 3 4. Install and Run EmbedRF Desktop Pro Software... 5 5. Configuring EmbedRF Boards to do Bidirectional Communication... 5 5.1. Configure EmbedRF Master... 5 5.1.1. Set the Transmit ID of the Master... 5 5.1.2. Set the Receive ID of the Master... 5 5.1.3. Set the Transmit Interval of the Master... 5 5.1.4. Set the Network ID of the Master... 6 5.1.5. Set the Network Configuration to Point-to-point... 6 5.1.6. Configure the Master to be a Transmitter-then-Receiver... 6 5.1.7. Set the Master to Record Analog Data... 6 5.1.8. Connect Master to Battery... 6 5.2. Configure EmbedRF Slave... 7 5.2.1. Set the Transmit ID of the Slave... 7 5.2.2. Set the Receive ID of the Slave... 7 5.2.3. Set the Transmission Interval of the EmbedRF Board... 7 5.2.4. Set the Network ID of the Slave... 7 5.2.5. Set the Network Configuration to Point-to-point... 8 5.2.6. Configure the Slave to Receive-then-Transmit... 8 5.2.7. Set the Slave to Record Analog Data... 8 5.2.8. Set to Automatically Notify you when Data Arrives... 8 5.3. Verify Data from Master Received by Slave... 8 5.4. Change Analog Data on Master and Watch Change... 11 5.5. Verify Data from Slave Received by Master... 12 5.6. Change Analog Data on Slave and Watch Change... 14 EmbedRF LLC 2008 All Rights Reserved Page 1

1. Tools you will need for this application note You will need the following items which are included in the EmbedRF Development Kit at www.embedrf.com. Two EmbedRF Standard boards printed circuit boards One USB Interface Boards One USB cable One CR2032 3V lithium coin cell battery with battery attachment board A CD with the EmbedRF Desktop Pro Software on it EmbedRF Desktop Pro Software EmbedRF Boards USB Cable USB Interface Board Battery with Adapter Figure 1: EmbedRF Development Kit EmbedRF LLC 2008 All Rights Reserved Page 2

2. Introduction This application note will show you how to configure an EmbedRF device to wirelessly transmit and receive data as a bidirectional transceiver. When you have finished executing the steps described in this document, you will have learned how to do the following: Configure an EmbedRF Board as a master which will periodically transmit and then immediately receive data from another EmbedRF Board configured as a slave Configure second EmbedRF Board as a slave which will periodically receive data from a master and then transmit data back to the master. View the data being transmitted and received by the master and slave 3. Connect EmbedRF Board to USB Interface Board To get started, you will first need to connect an EmbedRF Board to the USB Interface Board. Figure 2: Connect the USB Interface board (left) with the EmbedRF Board (right). Make sure that as you are connecting the boards that the labels for each of the pins on the EmbedRF Board match those on the USB Interface Board (i.e. Vdd should match Vdd and Gnd should match Gnd). Connect the mini-usb end of the USB Interface Cable to the USB Interface Board. EmbedRF LLC 2008 All Rights Reserved Page 3

Figure 3: Connect USB Interface Board to USB cable. Connect the other end of the USB cable to one of the USB connectors on your PC computer. USB Cable USB Interface Board EmbedRF Board Figure 4: Desktop computer connected to USB Interface board which is connected to EmbedRF Board. EmbedRF LLC 2008 All Rights Reserved Page 4

4. Install and Run EmbedRF Desktop Pro Software If you have already installed the EmbedRF Desktop Pro Software, you may skip this section and jump immediately to section 5.0. If you have not installed EmbedRF Desktop Pro Software, please follow the instructions in the Getting Started with the EmbedRF Development Kit application note. 5. Configuring EmbedRF Boards to do Bidirectional Communication The EmbedRF boards may be configured as bidirectional transceivers. When using the EmbedRF boards as bidirectional transceivers, one of the boards must be configured as the master and the second board must be configured as the slave. The master must be configured to Transmit then receive mode. In Transmit then receive mode, the EmbedRF board first transmits and then waits for a reply data packet immediately arriving from a slave. The slave must be configured to Receive then transmit mode. In Receive then transmit mode, the slave first awaits a data packet from a master, and then transmits a data packet back to the master after it has received its data. The slave and master must have the same transmission interval (0.25 12.75 seconds), and they must have the same network ID. The master always transmits data at the set transmission interval. If the slave does not receive a data packet from the master, the slave does not reply. In this section, we will describe how to configure one of your EmbedRF boards to be a master and a second EmbedRF board to be a slave. 5.1. Configure EmbedRF Master Make sure that there is an EmbedRF board connected to your computer as described in section 3 and that the EmbedRF DesktopPro software is installed. In this section, you will configure one of your EmbedRF Boards to be a master that will periodically transmit data to and then receive data from a slave. 5.1.1. Set the Transmit ID of the Master Enter the number 1 into the Transmit ID text box. Then press the Set Transmit ID button. Make sure that no error messages have appeared after pressing the button. The transmit ID of the master should always be the same number as the receive ID of the slave. In section 5.2, we show how to set the receive ID of the slave. 5.1.2. Set the Receive ID of the Master Enter the number 2 into the Receive ID text box. Then press the Set Receive ID button. Make sure that no error messages have appeared after pressing the button. The receive ID of the master should always be the same number as the transmit ID of the slave. In section 5.2, we show how to set the transmit ID of the slave. 5.1.3. Set the Transmit Interval of the Master Select the Transmission Interval pull-down combo-box labeled 250 ms. Then press the Set Interval button. Make sure that no error messages have appeared after pressing the button. The transmit interval should be the same for both the master and the slave. EmbedRF LLC 2008 All Rights Reserved Page 5

5.1.4. Set the Network ID of the Master Enter the number 0 into the Network ID text box. Then press the Set Network ID button. Make sure that no error messages have appeared after pressing the button. The master and slave must have the same network ID number. 5.1.5. Set the Network Configuration to Point-to-point Select the Point-to-point option from the Network Configuration pull-down menu. Then press the Set Network Config button. 5.1.6. Configure the Master to be a Transmitter-then-Receiver Select the Transmit then receive option from the Transmit / Receive Status pull-down combo-box. Then press the Set Transmit/Receive button. 5.1.7. Set the Master to Record Analog Data Any EmbedRF board can be configured to record analog data, making it ideal for transmitting and receiving analog sensor data wirelessly over short distances. In this section, you will configure the master to record analog data and transmit this data to the slave. Select the Record A/D 1 checkbox. Then press the Set Analog button. You have now successfully configured the master with the following settings: Transmit ID: 1 Receive ID: 2 Transmit Interval: 0.25 seconds Transmit / Receive Status: Transmit-then-receive Network ID: 0 Network Configuration: Point-to-Point Analog Data: Record and transmit analog data on channel 1. 5.1.8. Connect Master to Battery Disconnect the master from the USB Interface Board and connect to the Battery Adapter Board as shown in the figure below. EmbedRF LLC 2008 All Rights Reserved Page 6

Battery Adapter Board Master EmbedRF Board Figure 5: Connecting the EmbedRF Board configured as a master to the battery adapter board. 5.2. Configure EmbedRF Slave Make sure the second EmbedRF board (i.e. the one that we did not configure as the master) is connected to your computer as described in section 3 and that the EmbedRF DesktopPro software is installed. In this section, you will configure one of your EmbedRF Board to be a slave that will periodically receive data from and then immediately transmit data to an EmbedRF master. 5.2.1. Set the Transmit ID of the Slave Enter the number 2 into the Transmit ID text box. Then press the Set Transmit ID button. The transmit ID of the slave should always be the same number as the receive ID of the master. 5.2.2. Set the Receive ID of the Slave Enter the number 1 into the Receive ID text box. Then press the Set Receive ID button. The receive ID of the slave should always be the same number as the transmit ID of the master. 5.2.3. Set the Transmission Interval of the EmbedRF Board Select the Transmission Interval pull-down combo-box labeled 0.25 seconds. Then press the Set Interval button. The slave transmission interval should always be the same as the transmission interval of the master. 5.2.4. Set the Network ID of the Slave Enter the number 0 into the Network ID text box. Then press the Set Network ID button. The master and slave must always have the same network ID. EmbedRF LLC 2008 All Rights Reserved Page 7

5.2.5. Set the Network Configuration to Point-to-point Select the Point-to-point option from the Network Configuration pull-down menu. Then press the Set Network Config button. 5.2.6. Configure the Slave to Receive-then-Transmit Select the option to Receive-then-Transmit from the Receive/Transmit Status pulldown menu. Then press the Set Transmit/Receive button. 5.2.7. Set the Slave to Record Analog Data In this section, you will configure the slave to record analog data and transmit this data to the master. Select the Record A/D 1 checkbox. Then press the Set Analog button. You have now successfully configured the slave with the following settings: Transmit ID: 2 Receive ID: 1 Transmit Interval: 0.25 seconds Transmit / Receive Status: Receive then transmit Network ID: 0 Analog Data: Record analog data on channel 1 Network Configuration: Point-to-Point 5.2.8. Set to Automatically Notify you when Data Arrives Check the Notification On checkbox at the bottom of the main window. Then press the Set Notification button. This option causes the screen in the Receive tab window to automatically update whenever new data arrives at the slave. 5.3. Verify Data from Master Received by Slave At this point, you should have configured one of your EmbedRF boards to be a master. It should be attached to a battery adapter board. Your second EmbedRF board should be configured to be a slave. The slave should be connected to the USB Adapter Board and the USB Adapter Board should be connected to your computer. Having the slave connected to your computer provides power to the slave and also enables you to observe data as it arrives from the master. The hardware configuration that you should have set up is shown in the figure below. EmbedRF LLC 2008 All Rights Reserved Page 8

EmbedRF Board Configured as slave EmbedRF Board Configured as master USB Interface Board Figure 6: Hardware set-up for transmitting/receiving data between an EmbedRF board configured as a master and a slave. To observe this data, click on the Receive tab in the upper left-hand corner of the window. The window below should be displayed. EmbedRF LLC 2008 All Rights Reserved Page 9

Figure 7: Receive tab window for the slave. This screen should be updating regularly as data is received on the EmbedRF board configured as the slave. The field that should update every time a data packet is received is the Counter field (Byte 11). The transmit ID of the transmitter is included within each notify UART packet and is located at bytes 1, 2, and 3 with the most-significant byte sent first. Following the transmit ID, the next ten bytes of data (bytes 4-13) are either raw payload data or analog sensor data, depending on whether the transmitter was configured to transmit analog data. In this example, we configured the transmitter to send analog data on A/D channel 1. A/D channel 1 analog data comes through on bytes 6 and 7. Byte 14 contains the received signal strength indicator or (RSSI). This byte is a number between 0 and 255 representing the strength of the received signal. A larger RSSI means that the master is closer to the slave while a smaller RSSI indicates that the master is further away from the slave. Byte 15 in the UART notify data packet is a packet counter. Every time an EmbedRF board sends a packet, it increments its counter by 1. This byte can be used to indicate EmbedRF LLC 2008 All Rights Reserved Page 10

whether a receiver has missed a packet sent by a transmitter. It should increment at each interval. In this example, the counter should increment by 1 every 0.25 seconds. The data packet is further described in the separate document titled EmbedRF Desktop Pro Software Manual. 5.4. Change Analog Data on Master and Watch Change There is a button on the Battery Adapter Boards as shown in the figure below. Button Figure 8: Battery adapter board. The button is shown which, when pressed, shorts the analog channel 1 to its maximum value of 1023, which represents 3V. This button shorts the analog sensor reading to the voltage level, thereby making the value of the reading a maximum value of 1023 counts or 3V. After you press this button, the Receive tab window on the EmbedRF DesktopPro should look as follows: EmbedRF LLC 2008 All Rights Reserved Page 11

Figure 9: Receive tab window for slave showing how the analog data changes when the button on the master battery adapter board is pressed. Notice that A/D channel reads 1023 counts and 3 V as expected when the button is pressed. 5.5. Verify Data from Slave Received by Master We have now verified that a slave can receive data from a master. Now we will switch the slave over to the battery power and connect the master to the PC via the USB Adapter Board so that we can watch the data arriving at the master from the slave. Once you connect the master to the PC, you must re-send the command to notify when data has arrived. Check the Notification On checkbox at the bottom of the main configuration window. Then press the Set Notification button. This option causes the slave to send a UART notification packet to the PC whenever new data arrives at the slave. The hardware configuration that you should have set up is shown in the figure below. EmbedRF LLC 2008 All Rights Reserved Page 12

EmbedRF Board Configured as master EmbedRF Board Configured as slave USB Interface Board Figure 10: Hardware set-up for viewing data sent by a slave to a master. To observe this data, click on the Receive tab in the upper left-hand corner of the window. The window below should be displayed. EmbedRF LLC 2008 All Rights Reserved Page 13

Figure 11: Receive tab window for the master. This screen should be updating regularly as data from the slave is received by the master. The field that should update every time a data packet is received is the Counter field (Byte 11). 5.6. Change Analog Data on Slave and Watch Change There is a button on the Battery Adapter Boards as shown in the figure below. EmbedRF LLC 2008 All Rights Reserved Page 14

Button Figure 12: Battery adapter board. The button is shown which, when pressed, shorts the analog channel 1 to its maximum value of 1023, which represents 3V. This button shorts the analog sensor reading to the voltage level, thereby making the value of the reading a maximum value of 1023 counts or 3V. After you press this button, the Receive tab window on the EmbedRF DesktopPro should look as follows: EmbedRF LLC 2008 All Rights Reserved Page 15

Figure 13: Receive tab window for master showing how the analog data changes when the button on the slave battery adapter board is pressed. Notice that A/D channel reads 1023 counts and 3 V as expected when the button is pressed. EmbedRF LLC 2008 All Rights Reserved Page 16