Using Xbee 802.15.4 in Serial Communication



Similar documents
Building a Basic Communication Network using XBee DigiMesh. Keywords: XBee, Networking, Zigbee, Digimesh, Mesh, Python, Smart Home

Serial Communications

Web Site: Forums: forums.parallax.com Sales: Technical:

Wireless Security Camera

Bluetooth UART/RS232 Module

RC2200DK Demonstration Kit User Manual

Bluetooth to Serial Adapter

CP2110-EK CP2110 EVALUATION KIT USER S GUIDE. 1. Kit Contents. 2. Relevant Documentation. 3. Software Setup

AutoWAVE. Programming Instructions P/N Part of Thermo Fisher Scientific. Revision D

DESIGN AND IMPLEMENTATION OF A WIRELESS ZIGBEE MESH NETWORK

Advanced Data Capture and Control Systems

RS232 Board datasheet

RN-131-PICTAIL & RN-171-PICTAIL Evaluation Boards

RJ45 Shielded (standard) port pinout. CS9000, Jetstream , Lanstream 2000, RTA8/RJX, RRC16, MTA8/RJX & SXDC8/RJX

GSM Interfacing Board

Technical description MX-1 VB Edge

PCS0100en Persy Control Services B.V. Netherlands

What is Easy-Radio? Devices Covered. Frequency Hopping Transceiver. Where x00 denotes frequency of operation. E.g. 400 = 433MHz

Wireless Temperature

How To Use An Adh8012 Gsm Gprs Module With A Gsm (Gsm) Gpros (Gsp) Gpls (Geo) Gsp (Gpl) Gs

DSO138 oscilloscope program upgrade method

VMR6512 Hi-Fi Audio FM Transmitter Module

XBee-PRO 868 RF Modules

16-Port RS232 to USB2.0 High Speed Multi Serial Adapter (w/ Metal Case) Installation Guide

USART and Asynchronous Communication

Quectel Cellular Engine

RS-232 COMMUNICATIONS

International Journal of Research in Advent Technology Available Online at:

INFORMATICA INDUSTRIALE

ZIGBEE BASED MINE SAFETY MONITORING SYSTEM WITH GSM

PCMCIA 1 Port RS EDITION OCTOBER 1999

INFORMATICA INDUSTRIALE

Guangzhou HC Information Technology Co., Ltd. Product Data Sheet

Guangzhou HC Information Technology Co., Ltd. Product Data Sheet

XBee/XBee PRO Code Development

USER GUIDE EDBG. Description

Manual Serial PCI Cards

RN-131-PICTAIL & RN-171-PICTAIL Web-Server Demo Application

LDG Electronics External Meter Serial Communications Protocol Specification

BIT COMMANDER. Serial RS232 / RS485 to Ethernet Converter

How To Set Up A Modem (Marc) Model (Marc) Model 2 (Marr) Model 1 (Marm) Model 4 (Mariar) Model 8 (Marp) Model 6 (Mar

Wireless Home Security System

TOSR0X-D. USB/Wireless Timer Relay Module. User Manual. Tinysine 2013 Version 1.0

Design and Implementation of Home Monitoring System Using RF Technology

DKWF121 WF121-A B/G/N MODULE EVALUATION BOARD

Objectives. Basics of Serial Communication. Simplex vs Duplex. CMPE328 Microprocessors (Spring ) Serial Interfacing. By Dr.

HAC-LM Series Low Power Data Radio Module

Application Note 83 Fundamentals of RS 232 Serial Communications

RN-XV-RD2 Evaluation Board

Part Number Description Packages available

DSX Master Communications

LOW COST GSM MODEM. Description. Part Number

Fingerprint Based Biometric Attendance System

Real-Time Vehicle Data Logging System Using GPS And GSM

TCP/IP MODULE CA-ETHR-A INSTALLATION MANUAL

XBee USB Adapter Board (#32400)

Modification of an AOR AR-8600 receiver to tune it with a ACECO FC-3002 frequency finder

Cable Guide. Click on the subject to view the information. Digi Cables Building Cables General Cable Information

Microcomputer Protocol Implementation at Local Interconnect Network Georgi Krastev

DECT Module UM-9802 Datasheet

GETTING STARTED GUIDE

Single channel data transceiver module WIZ2-434

HAC-UM Series SHENZHEN HAC TECHNOLOGY CO., LTD. HAC-UM Series. Version 2.3C SHENZHEN HAC TELECOM TECHNOLOGY CO., LTD

Design of Wireless Home automation and security system using PIC Microcontroller

KTA-223 Arduino Compatible Relay Controller

Application Note AN_243. FT312D USB Host to UART Cable Application

Cable Specifications and Information

Wifi Web Server Module w TF Socket User s Guide

Guangzhou HC Information Technology Co., Ltd. Product Data Sheet

Serial Communications

Location-Aware and Safer Cards: Enhancing RFID Security and Privacy

RS-232 Communications Using BobCAD-CAM. RS-232 Introduction

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

XBee Series 2 OEM RF Modules

SEC 4100 SYSTEM MONITOR Programmable Serial Interface Card Series 2

RS232 Programming and Troubleshooting Guide for Turbo Controls

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

Switch board datasheet EB

Display Message on Notice Board using GSM

Accurate Measurement of the Mains Electricity Frequency

a8251 Features General Description Programmable Communications Interface

MCB3101 (Class I) WiRobot Serial Bluetooth Wireless Module User Manual

Implementation of Wireless Gateway for Smart Home

Design Considerations for RF Energy Harvesting Devices

How To Connect A Directsofl To A Powerpoint With An Acd With An Ctel With An Dm-Tel Modem On A Pc Or Ipad Or Ipa (Powerpoint) With A Powerline 2 (Powerline

RockBLOCK+ Developer guide

RN-WIFLY-EVAL-UM. WiFly Evaluation Kit Roving Networks. All rights reserved. RN-WIFLY-EVAL-UM Version 1.32r 10/9/2012 USER MANUAL

Objectives. Lecture 4. How do computers communicate? How do computers communicate? Local asynchronous communication. How do computers communicate?

FLYPORT Wi-Fi G

ELAN DIGITAL SYSTEMS LTD. SL232 PC- CARD USER S GUIDE

Bluetooth HC-06 with serial port module Easy guide

Design And Implementation Of Bank Locker Security System Based On Fingerprint Sensing Circuit And RFID Reader

Bluetooth Serial Adapter

TTL-232R-3V3 USB to TTL Serial Converter Cable

XPort Universal Demo Board User Guide

A Wireless Sensor Network for Weather and Disaster Alarm Systems

Patient Health Monitoring Using Wireless Body Area Network

Development of GSM and GPS based Cost Effective Telematics Module

ENET-710. ENET Ethernet Module ENET-710 JAN / 06 FOUNDATION

PC Base Adapter Daughter Card UART GPIO. Figure 1. ToolStick Development Platform Block Diagram

Transcription:

Using Xbee 802.15.4 in Serial Communication Jason Grimes April 2, 2010 Abstract Instances where wireless serial communication is required to connect devices, Xbee RF modules are effective in linking Universal Asynchronous Receiver/Transmitter (UART) interfaces. The ease and flexibility of transmitting or receiving serial data in using Xbee RF modules is why it is preferred over other alternatives. This application note will introduce Xbee and how to connect to host devices such as a personal computer or PIC microcontroller. Keywords Xbee, 802.15.4, RS-232, PIC 18F4520 1

Table of Contents 1. Objective...3 2. Introduction...3 3. Implementation...3 3.1 Hardware...4 3.2 Software...6 4. Recommendations...7 5. Conclusion...7 6. References...8 2

1. Objective The purpose of application note is to use an Xbee 802.15.4 OEM RF module to create a serial link between two host devices and briefly describe two common methods of interfacing. The Xbee can operate in two modes; transparent and API (application programming interface). This paper will focus on its default transparent mode using an asynchronous serial host. 2. Introduction Xbee RF modules are useful in transferring low data rates and where low-power consumption is necessary. The Xbee 802.15.4 RF modules operate in the unlicensed 2.4 GHz industrial, scientific, and medical (ISM) band. Meaning the 10-bit RF data packet structure follows the IEEE 802.15.4 specifications. For this explanation, a microcontroller (PIC 18F4520) and a personal computer will serve as the host device for the RF radio. 3. Implementation The two most common methods of interfacing serial data to the RF module are through the serial port of a PC and by microcontroller. Both methods must agree that the serial data entering the RF module is logic-level UART compatible. 3.1 Hardware Using a PC to host the UART signal requires that it must first have the RS-232 voltage converted to TTL/CMOS logic voltages. Pins 2 (RXD) and 3 (TXD) from the RS-232 interface will connect to pins 14 and pins 13 respectively on the MAX232 for conversion. Take care in the voltage outputs from the MAX232 for the Xbee operates between 2.8 and 3.4 VDC, otherwise a voltage divider may need to be implemented before connecting 3

pins 11 and 12 on the MAX232 to DIN and DOUT on the Xbee. The pin assignment is described below in figure 1 for DB9/RS-232. Figure 1: Pin assignment for DB9/RS-232 The four of capacitors used in the circuit schematic of figure 2 are all 1 µf electrolytic capacitors and can be seen in Figure 3 between pins 1/3, 4/5, 2/16 and 6/ground. 5 Volt supply voltage is at pin 16. Xbee operates at 3.3 VDC at pin 1. 4

CMOS Logic 2.8-3.4 V (Pins 2 and 3) Figure 2: Circuit Schematic, RS-232 to Xbee through a TTL/CMOS voltage logic converter. Figure 3: Pin assignment for Xbee 802.15.4 OEM RF module The second method is to interface a microcontroller to the Xbee. Figure 4 is the setup for connecting the Xbee to a PIC 18F4520 through a UART interface. In order to use the TX 5

and RX pins on the 18F4520, Port C must be open in order to use these pins for USART (Universal Synchronous Asynchronous Receiving and Transmitting). The PIC 18F4520 is capable of both synchronous and asynchronous operation but must be configured for asynchronous signal for the Xbee. For successful serial communication, the UART s must configured with the same baud rate, parity, start bits, stop bits, and data bits. Pins 25 and 26 on the PIC are the transmitting and receiving pins respectively. Again, care must be taken in some form of a voltage divider to support the input voltage range of the UART serial signal to pins 2 and 3 on the Xbee. CMOS Logic 2.8-3.4 V (Pins 2 and 3) Figure 4: Circuit Schematic PIC to Xbee 3.2 Software One of the main reasons interfacing the Xbee to a PC is to upgrade the firmware through a windows application called X-CTU. For PC to Xbee interface, X-CTU can be downloaded from Digi International at http://www.digi.com. Along with updating 6

firmware, the X-CTU terminal is capable of configuring modems such as baud rates and modem addresses. The serial data for the PIC to Xbee interface will need to be constructed in the MPLAB C18 C compiler with the USART library. Programming the PIC to be compatible with the Xbee requires that the USART function is included in the body of the program along with configuring the UART data such as timings or the number of data bits for the UART interface. This is to say for PIC to PIC or PIC to PC communication, UART information must be identical for successful transmission. 4. Recommendations CTS and RTS connections on the Xbee may need to be implemented when devices are transferring continuous amount of data or when flow control is desirable in conjunction with the sleep mode. Without these connections, the buffers on the Xbee may become full or not ready for activity resulting in data loss. 5. Conclusion Wireless Serial communication using an Xbee 802.15.4 RF module is an effective method in connecting host devices such as a personal computer or a microcontroller. By simply connecting a UART interface to the Xbee, serial data can be transmitted or received between devices without the use of wires. 7

6. References Product Manual: Xbee / Xbee-Pro 802.15.4 OEM RF modules http://ftp1.digi.com/support/documentation/90000982_b.pdf MAX232 Data Sheet http://datasheets.maxim-ic.com/en/ds/max220-max249.pdf PIC 18F4520 Data Sheet http://ww1.microchip.com/downloads/en/devicedoc/39631a.pdf USART; Using the USART in Asynchronous Mode, Microchip http://ww1.microchip.com/downloads/en/devicedoc/usart.pdf 8