XBee-PRO 900HP/XBee-PRO XSC RF Modules

2y ago
29 Views
2 Downloads
3.63 MB
150 Pages
Last View : 24d ago
Last Download : 3m ago
Upload by : Adalynn Cowell
Transcription

XBee-PRO 900HP/XBee-PRO XSC RF ModulesXBee-PRO RF Modules by Digi InternationalModels: XBEE-PRO S3, XBEE-PRO S3BHardware: S3, S3BDigi International Inc.11001 Bren Road EastMinnetonka, MN 55343877 912-3444 or 952 912-3444www.digi.com90002173 N5/28/2014

XBee‐PRO 900HP/XBee‐PRO XSC RF Modules 2014 Digi International Inc. All rights reserved.Digi, Digi International, the Digi logo, and XBee are trademarks or registered trademarks of Digi International Inc. in theUnited States and other countries worldwide. All other trademarks mentioned in this document are the property of theirrespective owners.Information in this document is subject to change without notice and does not represent a commitment on the part of DigiInternational.Digi provides this document “as is,” without warranty of any kind, expressed or implied, including, but not limited to, theimplied warranties of fitness or merchantability for a particular purpose. Digi may make improvements and/or changes in thismanual or in the product(s) and/or the program(s) described in this manual at any time.This product could include technical inaccuracies or typographical errors. Changes are periodically made to the informationherein; these changes may be incorporated in new editions of the publication.Technical Support:Phone:(866) 765-9885 toll-free U.S.A. & Canada (801) 765-9885 Worldwide8:00 am - 5:00 pm [U.S. Mountain Time] 2014 Digi International Inc.Online i.com2

XBee‐PRO 900HP/XBee‐PRO XSC RF ModulesContents1. Preface: How to Use this Manual 62. XBee-PRO 900HP RF Module Hardware 7XBee-PRO S3B Hardware Description 7Worldwide Acceptance 7Sleep Mode 324. XBee-PRO 900HP Networking Methods 33MAC/PHY Basics 33Related parameters: CM, HP, ID, PL, RR, MT 33XBee-PRO 900HP Specifications 8XBee-PRO 900HP Addressing Basics 33XBee-PRO 900HP Serial CommunicationsSpecifications 9Point to Point/Multipoint (P2MP) 34UART 9SPI 9GPIO Specifications 9Related parameters: SH, SL, DH, DL, TO 33Throughput 34Repeater/Directed Broadcast 34Related parameters: CE, NH, NN, BH 34Hardware Specifications for ProgrammableVariant 10DigiMesh Networking 35XBee-PRO 900HP Mechanical Drawings 11DigiMesh Feature Set 35XBee-PRO 900HP Pin Signals 12Data Transmission and Routing 35XBee-PRO 900HP Design Notes 12Transmission Timeouts 36XBee-PRO 900HP Power Supply Design 12XBee-PRO 900HP Recommended Pin Connections12XBee-PRO 900HP Board Layout 13Related Command: MR 355. XBee-PRO 900HP Sleep Mode 38Sleep Modes 38Normal Mode (SM 0) 38XBee-PRO 900HP Module Operation forProgrammable Variant 13Asynchronous Pin Sleep Mode (SM 1) 38XBee-PRO 900HP Programmable Bootloader 15Overview 15Asynchronous Cyclic Sleep with Pin Wake Up Mode(SM 5) 39Bootloader Software Specifics 15Synchronous Sleep Support Mode (SM 7) 39XBee-PRO 900HP Bootloader Menu Commands 19XBee-PRO 900HP Firmware Updates 20Output File Configuration 203. XBee-PRO 900HP RF Module Operation 22XBee-PRO 900HP Basic Operational Design 22XBee-PRO 900HP Serial Communications 22XBee-PRO 900HP UART Data Flow 22XBee-PRO 900HP SPI Communications 23Asynchronous Cyclic Sleep Mode (SM 4) 38Synchronous Cyclic Sleep Mode (SM 8) 39Asynchronous Sleep Operation 39Wake Timer 39XBee-PRO 900HP Indirect Messaging and Polling(P2MP Packets Only) 40Indirect Messaging 40Polling 40Synchronous Sleep Operation (DigiMeshnetworks only) 40XBee-PRO 900HP SPI Operation 24Operation 40XBee-PRO 900HP Configuration 25Becoming a Sleep Coordinator 43XBee-PRO 900HP Data Format 26DigiMesh Configuration 44XBee-PRO 900HP SPI Parameters 26DigiMesh Diagnostics 46XBee-PRO 900HP Serial Buffers 27XBee-PRO 900HP UART Flow Control 27XBee-PRO 900HP Serial Interface Protocols 28XBee-PRO 900HP Modes of Operation 29XBee-PRO 900HP Description of Modes 296. XBee-PRO 900HP Command Reference Tables 477. XBee-PRO 900HP API Operation 58API Frame Format 58XBee-PRO 900HP API Serial Exchanges 60Transmit Mode 29AT Commands 60Receive Mode 31Transmitting and Receiving RF Data 60Command Mode 31Remote AT Commands 60 2014 Digi International Inc.3

XBee‐PRO 900HP/XBee‐PRO XSC RF ModulesContentsSupporting the API 61XBee-PORO 900HP Frame Descriptions 61AT Command 61AT Command - Queue Parameter Value 62TX Request 62Explicit TX Request 63Remote AT Command Request 65AT Command Response 66Modem Status 66Transmit Status 67Route Information Packet 67Aggregate Addressing Update 69RX Indicator 70Explicit Rx Indicator 71Data Sample RX Indicator 72Node Identification Indicator 72Remote Command Response 74758. XBee-PRO 900HP Advanced Application FeaturesXBee-PRO 900HP Remote ConfigurationCommands 75Appendix A: XSC Firmware 93XBee-PRO XSC Key Features 94Worldwide Acceptance 94Xbee-PRO XSC Specifications 94XBee-PRO XSC Pin Signals 96Xbee-PRO XSC Electrical Characteristics 97XBee-PRO XSC Timing Specifications 97XBee-PRO XSC Mechanical Drawings 98Serial Communications 100UART-Interfaced Data Flow 100Serial Data 100Flow Control 101XBee-PRO XSC Modes of Operation 102Idle Mode 102Transmit Mode 102Sleep Mode 104Command Mode 106XBee Programming Examples 109AT Commands 109Binary Commands 109Sending a Remote Command 75XBee-PRO XSC Command Reference Table 110Applying Changes on Remote Devices 75XBee-PRO XSC Command DescriptionsRemote Command Responses 75XBee-PRO XSC Addressing 129XBee-PRO 900HP Network Commissioning andDiagnostics 75XBee-PRO 900HP Device Configuration 75XBee-PRO 900HP Network Link Establishment andMaintenance 76XBee-PRO 900HP Device Placement 76XBee-PRO 900HP Device Discovery 77XBee-PRO 900HP Link Reliability 78Commissioning Pushbutton and Associate LED 81XBee-PRO 900HP I/O Line Monitoring 82Address Recognition 129XBee-PRO XSC Basic Communications 130Streaming Mode (Default) 130Repeater Mode 131XBee-PRO XSC Acknowledged Communications135Acknowledged Mode 135Agency Certifications for S3B Hardware 138FCC (United States) Certification 138Labeling Requirements 138I/O Samples 82FCC Notices 138Queried Sampling 82Limited Modular Approval 139Periodic I/O Sampling 84Digital I/O Change Detection 85General Purpose Flash Memory 85Accessing General Purpose Flash Memory 85Over-the-Air Firmware Upgrades 91Distributing the New Application 91Verifying the New Application 92Installing the Application 92Things to Remember 92 2014 Digi International Inc.111FCC-approved Antennas 139IC (Industry Canada) Certification 139IDA (Singapore) Certification 143Brazil ANATEL 143Agency Certifications for Legacy S3/S3B Hardware144FCC (United States) Certification 144Labeling Requirements 144FCC Notices 144Limited Modular Approval 1454

XBee‐PRO 900HP/XBee‐PRO XSC RF ModulesContentsFCC-approved Antennas 145IC (Industry Canada) Certification 145ANATEL (Brazil) Certification 149Additional Information 150 2014 Digi International Inc.5

XBee‐PRO 900HP/XBee‐PRO XSC RF ModulesPreface: How to Use This ManualThis combined manual contains documentation for two hardware platforms: the S3 and S3B. Existing S3customers are strongly encouraged to migrate their systems and designs to the newer and superior S3Bplatform.This manual also contains documentation for two RF protocols: XStream Compatible (XSC) and 900HP. TheXSC firmware is provided for customers who need compatibility with existing networks that need to be9XStream compatible. Customers who do not require this compatibility should not use the XSC firmware, butrather the newer 900HP firmware.Documentation for the XSC firmware is contained in Appendix A. All other firmware documentation in themanual is not applicable to XSC firmware. Likewise documentation in Appendix A is not applicable to the900HP firmware.Note: The XBee-PRO 900HP RF Module is not backward compatible with the legacy XBee-PRO 900 (PartNumber: XBP09-DP ) or XBee-PRO DigiMesh 900 (Part Number: XBP09-DM ) RF Modules.The following table describes how to use this manual based on the Digi part number for the module:Digi PartNumbersFCC ilableXBP09-XC MCQ-XBEEXSCS3XSCXSCAppendix CXBP9B-XC*T-001(revision G andearlier)XBP9B-XC*T-002(revision G andearlier)XBP9B-XC*T-021(revision F andearlier)XBP9B-XC*T-022(revision F andearlier)MCQ-XBPS3BS3BXSCXSCAppendix CXBP9B-XC*T-001(revision H and later)XBP9B-XC*T-002(revision H and later)XBP9B-XC*T-021(revision G and later)XBP9B-XC*T-022(revision G and later)all other part numbersbeginning XBP9BXC.MCQ-XB900HPS3BXSCXSC / 900HPAppendix BXBP9B-D MCQ-XB900HPS3B900HPXSC / 900HPAppendix B 2014 Digi International Inc.RegulatoryInformation6

XBee‐PRO 900HP/XBee‐PRO XSC RF Modules1. XBee‐PRO 900HP RF Module HardwareThis manual describes the operation of the XBee-PRO 900HP RF module, which consists of firmware loaded onto XBeePRO S3B hardware.XBee-PRO 900HP embedded RF modules provide wireless connectivity to end-point devices in mesh networks. Utilizingthe XBee-PRO Feature Set, these modules are interoperable with other devices. With the XBee, users can have their network up-and-running in a matter of minutes without configuration or additional development.Note: The XBee-PRO 900HP RF Module is not backward compatible with the legacy XBee-PRO 900 (PartNumber: XBP09-DP ) or XBee-PRO DigiMesh 900 (Part Number: XBP09-DM ) RF Modules.XBee-PRO S3B Hardware DescriptionThe XBee-PRO S3B radio module hardware consists of an Energy Micro EFM32G230F128 microcontroller, anAnalog Devices ADF7023 radio transceiver, an RF power amplifier, and in the programmable version, aFreescale MC9S08QE32 microcontroller.Worldwide AcceptanceFCC Certified (USA) - Refer to Appendix B for FCC Requirements.Systems that include XBee-PRO Modules inherit Digi’s FCC CertificationISM (Industrial, Scientific & Medical) frequency bandManufactured under ISO 9001:2000 registered standardsXBee-PRO (900 MHz) RF Modules are approved for use in U.S. and Canada.RoHS compliant 2014 Digi International Inc.7

XBee‐PRO 900HP/XBee‐PRO XSC RF ModulesXBee-PRO 900HP SpecificationsSpecifications of the XBee-PRO 900HP/XBee-PRO XSC RF ModuleSpecificationXBeePerformance* Indoor/Urban Range10kbps: up to 2000 ft (610m)200kbps: up to 1000 ft (305m)* Outdoor RF line-of-sightRange10kbps: up to 9 miles (15.5km)200kbps: up to 4 miles (6.5km)(with 2.1dB dipole antennas)Transmit Power Output24 dBm (250 mW) (software selectable)RF Data Rate (High)200 kbpsRF Data Rate (Low)10 kbpsSerial UART interfaceSerial Interface Data Rate(software selectable)Receiver Sensitivity(typical)CMOS Serial UART, baud rate stability of 1%9600-230400 baud-101 dBm, high data rate, -110 dBm, low data ratePower RequirementsSupply VoltageTransmit CurrentIdle / Receive CurrentSleep Current2.1 to 3.6 VDC****Supply voltages of less than 3.0V mayresult in reduced performance. Outputpower and receiver sensitivity may bedegraded.PL 4 : 215mA typical, (290mA max)PL 3 : 160mA typicalPL 2 : 120mA typicalPL 1 : 95mA typicalPL 0 : 60mA typical29mA typical at 3.3V, (35mA max)2.5 µA (typical)General**Operating FrequencyBandDimensionsWeightOperating TemperatureAntenna OptionsDigital I/OADC902 to 928 MHz (software selectable channels)1.297" x 0.962" x 0.215 (3.29cm x 2.44cm x 0.546cm) Note:Dimensions do not include connector/antenna or pin lengths5 to 8 grams, depending on the antenna option-40º to 85º C (industrial)Integrated wire, U. FL RF connector, Reverse-polarity SMAconnector15 I/O lines,4 10-bit analog inputsNetworking & SecuritySupported NetworkTopologiesNumber of Channels, userselectable channelsAddressing OptionsEncryptionMesh, point-to-point, point-to-multipoint, peer-to-peer64 channels availablePAN ID, Preamble ID, and 64-bit addresses128 bit AESAgency Approvals 2014 Digi International Inc.8

XBee‐PRO 900HP/XBee‐PRO XSC RF ModulesSpecifications of the XBee-PRO 900HP/XBee-PRO XSC RF ModuleSpecificationXBeeUnited States (FCC Part15.247)MCQ-XB900HPIndustry Canada (IC)1846A-XB900HPAustraliaC-TickBrazilANATEL 3727-12-1209 (S3B only)SingaporeLicense No. DA105737 (XB900HP only)* To determine your range, perform a range test under your operating conditions.XBee-PRO 900HP Serial Communications SpecificationsXBee RF modules support both UART (Universal Asynchronous Receiver / Transmitter) and SPI (SerialPeripheral Interface) serial connections.UARTUART Pin AssignmentsUART PinsModule Pin NumberDOUT2DIN / CONFIG3CTS / DIO712RTS / DIO616More information on UART operation is found in the UART section in Chapter 2.SPISPI Pin AssignmentsSPI PinsModule Pin NumberSPI SCLK / DIO1818SPI SSEL / DIO1717SPI MOSI / DIO1611SPI MISO / DIO154SPI ATTN / DIO119For more information on SPI operation, see the SPI section in Chapter 2.GPIO SpecificationsXBee RF modules have 15 GPIO (General Purpose Input/Output) ports available. The exact list will depend onthe module configuration, as some GPIO pins are used for purposes such as serial communication.See GPIO section for more information on configuring and using GPIO ports.Electrical Specifications for GPIO PinsGPIO Electrical SpecificationValueVoltage - Supply2.1 - 3.6 V, (3.0V or higher required for optimal performance)Low Schmitt switching threshold0.3 x VddHigh Schmitt switching threshold0.7 x VddInput pull-up resistor value40 k Input pull-down resistor value40 k Output voltage for logic 00.05 x VddOutput voltage for logic 10.95 x Vdd 2014 Digi International Inc.9

XBee‐PRO 900HP/XBee‐PRO XSC RF ModulesElectrical Specifications for GPIO PinsGPIO Electrical SpecificationValueOutput source current2 mAOutput sink current2 mATotal output current (for GPIO pins)48 mAHardware Specifications for Programmable VariantIf the module has the programmable secondary processor, add the following table values to the specificationslisted on page 7. For example, if the secondary processor is running at 20 MHz and the primary processor is inreceive mode then the new current value will be Itotal Ir2 Irx 14 mA 9 mA 23 mA, where Ir2 is theruntime current of the secondary processor and Irx is the receive current of the primary.Specifications of the programmable secondary processor 2014 Digi International Inc.Optional Secondary Processor SpecificationThese numbers add to specifications(Add to RX, TX, and sleep currents depending onmode of operation)Runtime current for 32k running at 20MHz 14mARuntime current for 32k running at 1MHz 1mASleep current 0.5 A typicalFor additional specifications see Freescale Datasheet andManualMC9SO8QE32Voltage requirement for secondary processor to operate atmaximum clock frequency2.4 to 3.6VDCMinimum Reset Pulse for Programmable100nSMinimum Reset Pulse to Radio50nSVREF Range1.8VDC to VCC10

XBee‐PRO 900HP/XBee‐PRO XSC RF ModulesXBee-PRO 900HP Mechanical DrawingsMechanical drawings of the XBee‐PRO 900HP RF Modules (antenna options not shown). All dimensions are in inches. . 2014 Digi International Inc.11

XBee‐PRO 900HP/XBee‐PRO XSC RF ModulesXBee-PRO 900HP Pin SignalsPin Assignments for XBee Modules (Low‐asserted signals are distinguished with a horizontal line above signal name.)Pin #Name1VCCDirectionDefault StateDescription2DOUT/DIO13BothOutputGPIO / UART Data out3DIN/nConfig/DIO14BothInputGPIO / UART Data In4DIO12/SPI MISOBothOutputPower SupplyGPIO / SPI slave out5nRESETInputModule Reset. Drive low to reset the module. Thisis also an output with an open drain configurationwith an internal 20 K ohm pull-up (never drive tologic high, as the module may be driving it low).The minimum pulse width is 1 mS.6DIO10/PWM0BothGPIO / RX Signal Strength Indicator7DIO11/PWM1Both8reserved9nDTR/SLEEP RQ/DIO810GND11DIO4/SPI MOSIBothGPIO / Pulse Width ModulatorDisabledDo Not ConnectInputGPIO / Pin Sleep Control Line (DTR on the devboard)GroundBothGPIO/SPI slave In12nCTS/DIO7BothOutputGPIO / Clear-to-Send Flow Control13On nSLEEP/DIO9OutputOutputGPIO / Module Status IndicatorInternally used for programmable secondaryprocessor. For compatibility with other XBeemodules, we recommend connecting this pin to thevoltage reference if Analog Sampling is desired.Otherwise, connect to GND.14VREFInput15Associate/DIO5BothOutputGPIO / Associate Indicator16nRTS/DIO6BothInputGPIO / Request-to-Send Flow Control17AD3/DIO3/SPI nSSELBoth18AD2/DIO2/SPI CLKBothGPIO / Analog Input / SPI Clock19AD1/DIO1/SPI nATTNBothGPIO / Analog Input / SPI Attention20AD0/DIO0BothGPIO / Analog InputGPIO / Analog Input / SPI Slave Select Signal Direction is specified with respect to the module See Design Notes section below for details on pin connections.XBee-PRO 900HP Design NotesThe XBee modules do not specifically require any external circuitry or specific connections for properoperation. However, there are some general design guidelines that are recommended for help introubleshooting and building a robust design.XBee-PRO 900HP Power Supply DesignPoor power supply can lead to poor radio performance, especially if the supply voltage is not kept withintolerance or is excessively noisy. To help reduce noise, we recommend placing both a 1 F and 47pF capacitoras near to pin 1 on the PCB as possible. If using a switching regulator for your power supply, switchingfrequencies above 500kHz are preferred. Power supply ripple should be limited to a maximum 50mV peak topeak.Note – For designs using the programmable modules, an additional 10 F decoupling cap is recommended nearpin 1 of the module. The nearest proximity to pin 1 of the three caps should be in the following order: 47pf,1 F followed by 10 F.XBee-PRO 900HP Recommended Pin ConnectionsThe only required pin connections are VCC, GND, DOUT and DIN. To support serial firmware updates, VCC,GND, DOUT, DIN, RTS, and DTR should be connected. 2014 Digi International Inc.12

XBee‐PRO 900HP/XBee‐PRO XSC RF ModulesAll unused pins should be left disconnected. All inputs on the radio can be pulled high or low with 40k internalpull-up or pull-down resistors using the PR and PD software commands. No specific treatment is needed forunused outputs.For applications that need to ensure the lowest sleep current, unconnected inputs should never be leftfloating. Use internal or external pull-up or pull-down resistors, or set the unused I/O lines to outputs.Other pins may be connected to external circuitry for convenience of operation, including the Associate LEDpin (pin 15) and the Commissioning pin (pin 20). An LED attached to the the associate LED pin will flashdifferently depending on the state of the module to the network, and a pushbutton attached to pin 20 canenable various join functions without having to send serial port commands. Please see the commissioningpushbutton and associate LED section in chapter 7 for more details. The source and sink capabilities arelimited to 6mA on all I/O pins.The VRef pin (pin 14) is only used on the programmable versions of these modules. For compatibility withother XBee modules, we recommend connecting this pin to a voltage reference if analog sampling is desired.Otherwise, connect to GND.XBee-PRO 900HP Board LayoutXBee modules are designed to be self sufficient and have minimal sensitivity to nearby processors, crystals orother PCB components. As with all PCB designs, Power and Ground traces should be thicker than signal tracesand able to comfortably support the maximum current specifications. No other special PCB designconsiderations are required for integrating XBee radios except in the antenna section.The choice of antenna and antenna location is very important for correct performance. XBees do not requireadditional ground planes on the host PCB. In general, antenna elements radiate perpendicular to the directionthey point. Thus a vertical antenna emits across the horizon. Metal objects near the antenna cause reflectionsand may reduce the ability for an antenna to radiate efficiently. Metal objects between the transmitter andreceiver can also block the radiation path or reduce the transmission distance, so external antennas should bepositioned away from them as much as possible. Some objects that are often overlooked are metal poles,metal studs or beams in structures, concrete (it is usually reinforced with metal rods), metal enclosures,vehicles, elevators, ventilation ducts, refrigerators, microwave ovens, batteries, and tall electrolyticcapacitors.XBee-PRO 900HP Module Operation for Programmable VariantThe modules with the programmable option have a secondary processor with 32k of flash and 2k of RAM. Thisallows module integrators to put custom code on the XBee module to fit their own unique needs. The DIN,DOUT, RTS, CTS, and RESET lines are intercepted by the secondary processor to allow it to be in control of thedata transmitted and received. All other lines are in parallel and can be controlled by either the internalmicrocontroller or the MC9SO8QE micro (see Block Diagram for details). The internal microcontroller bydefault has control of certain lines. These lines can be released by the internal microcontroller by sending theproper command(s) to disable the desired DIO line(s) (see XBee Command Reference Tables).In order for the secondary processor to sample with ADCs, the XBee pin 14 (VREF) must be connected to areference voltage.Digi provides a bootloader that can take care of programming the processor over the air or through the serialinterface. This means that over the air updates can be supported through an XMODEM protocol. The processorcan also be programmed and debugged through a one wire interface BKGD (Pin 8). 2014 Digi International Inc.13

2014 Digi International Inc.LKJHGFEDCBAVCC2GNDSLEEP 2/SPSCKDIO4/PTB3/MOSI1DIO12/PTB4/MISO1DOUT RADIODIN H489SLEEP RQ/DTR/PTD5RESET RADIODIN RADIODOUT RADIOVCC10987654321GNDDTR/SLEEP VCCCTS RADIORTS n10Pin1TP4TP6TP2TP1TP6TP5TP4TP2TP116DATE:PART NO.TITLECKD APPRTP5JHGFEDCBAAREVPin11Pin20DATERESET RADIORTS RADIOCTS RADIODIN RADIOXBEE-PRO S3BPROGRAMMABLEBLOCK DIAGRAMBY17DOUT RADIOVREF must be connected toexternal reference for MC9S08to sample ADC linesDigi International IncENGINEER:CHECKED:DRAWN:DESIGNED:15Special Test PointsDESCRIPTION OF 14DIO0/ADC0/PTA0Commissioning LinePins PTE4, 5 and 6 are used sosoftware can determinefundamental Hardware differencesby turning on internal pull-upresistors and reading the lines.011 Programmable SLEEP RQ/DTR/PTD5CTS RADIORTS/DIO6/PTD7Commissioning TC5/TPM3CH5/ACPM2OPTC6/RxD2/ACPM2 SCL/EXTELPTA0/KBI1P0/TPM1CH0/ADP0/ACMP1 TPM2CH2/ADP9MC9S08 controlsDOUT, DIN, RESET, RTS, CTSfor Internal Radio.These lines are notconnected to the20 external pins.CTS/DIO7/PTC0RTS RADIORSSI/DIO10/PWM0/PTC5RESET/PTA5RESET OUT/PTB15PROGRAMMABLE XBEE-PRO S3BRESET/PTA54DIO3/ADC3/PTB5,A7/SSVCC3XBee‐PRO 900HP/XBee‐PRO XSC RF Modules

XBee‐PRO 900HP/XBee‐PRO XSC RF ModulesXBee-PRO 900HP Programmable BootloaderOverviewThe XBee Programmable module is equipped with a Freescale MC9S08QE32 application processor. Thisapplication processor comes with a supplied bootloader. This section describes how to interface the customer'sapplication code running on this processor to the XBee Programmable module's supplied bootloader.The first section discusses how to initiate firmware updates using the supplied bootloader for wired and overthe-air updates.Bootloader Software SpecificsMemory LayoutFigure 1 shows the memory map for the MC9S08QE32 application processor.The supplied bootloader occupies the bottom pages of the flash from 0xF200 to 0xFFFF. Applicationcode cannot write to this space.The application code can exist in Flash from address 0x8400 to 0xF1BC. 1k of Flash from 0x8000 to0x83FF is reserved for Non Volatile Application Data that will not be erased by the bootloader during aflash update.A portion of RAM is accessible by both the application and the bootloader. Specifically, there is a shareddata region used by both the application and the bootloader that is located at RAM address 0x200 to0x215. Application code should not write anything to BLResetCause or AppResetCause unlessinforming the bootloader of the impending reset reason. The Application code should not clearBLResetCause unless it is handling the unexpected reset reason.To prevent a malfunctioning application from running forever, the Bootloader increments BLResetCauseafter each watchdog or illegal instruction reset. If this register reaches above 0x10 the bootloader willstop running the application for a few minutes to allow an OTA or Local update to occur. If no update isinitiated within the time period, BLResetCause is cleared and the application is started again. Toprevent unexpected halting of the application, the application shall clear or decrement BLResetCausejust before a pending reset. To disable this feature, the application shall clear BLResetCause at thestart of the application. 2014 Digi International Inc.15

XBee‐PRO 900HP/XBee‐PRO XSC RF Modules 2014 Digi International Inc.16

XBee‐PRO 900HP/XBee‐PRO XSC RF ModulesOperationUpon reset of any kind, the execution control begins with the bootloader.If the reset cause is Power-On reset (POR), Pin reset (PIN), or Low Voltage Detect (LVD) reset (LVD)the bootloader will not jump to the application code if the override bits are set to RTS(D7) 1,DTR(D5) 0, and DIN(B0) 0. Otherwise, the bootloader writes the reset cause "NOTHING" to theshared data region, and jumps to the Application.Reset causes are defined in the file common. h in an enumeration with the following definitions:typedef enum {BL CAUSE NOTHING 0x0000, //PIN, LVD, PORBL CAUSE NOTHING COUNT 0x0001,//BL Reset Cause counter// Bootloader increments cause every resetBL CAUSE BAD APP 0x0010,//Bootloader considers APP invalid} BL RESET CAUSES;typedef enum {APP CAUSE NOTHINGAPP CAUSE USE001 0x0000, 0x0001,// 0x0000 to 0x00FF are considered valid for APP use.APP CAUSE USE255 0x00FF,APP CAUSE FIRMWARE UPDATE 0x5981,APP CAUSE BYPASS MODE 0x4682,APP CAUSE BOOTLOADER MENU 0x6A18,} APP RESET CAUSES;Otherwise, if the reset cause is a "watchdog" or other reset, the bootloader checks the shared memoryregion for the APP RESET CAUSE. If the reset cause is:1."APP CAUSE NOTHING" or 0x0000 to 0x00FF, the bootloader increments the BL RESET CAUSES, verifies that it is still less than BL CAUSE BAD APP, and jumps back to the application. If the Application does not clear the BL RESET CAUSE, it can prevent an infinite loop of running a bad application that continues to perform illegal instructions or watchdog resets.2."APP CAUSE FIRMWARE UPDATE", the bootloader has been instructed to update the application "over-the-air" from a specific 64-bit address. In this case, the bootloader will attempt to initiate an Xmodem transfer from the 64-bit address located in shared RAM.3."APP CAUSE BYPASS MODE", the bootloader executes bypass mode. This mode passes the local UART data directly to the internal microcontroller allowing for direct communication withthe internal microcontroller. The only way to exit bypass mode is to reset or power cycle the module.If none of the above is true, the bootloader will enter "Command mode". In this mode, users caninitiate firmware downloads both wired and over-the-air, check application/bootloader version strings,and enter Bypass mode.Application version stringFigure 1 shows an "Application version string pointer" area in application flash which holds the pointerto where the application version string resides. The application's linker command file ultimatelydetermines where this string is placed in application flash.It is preferable that the application version string be located at address 0x8400 for MC9S08QE32 parts.The application string can be any characters terminated by the NULL character (0x00). There is not astrict limit on the number of characters in the string, but for practical purposes should be kept under100 bytes including the terminating NULL character. During an update the bootloader erases the entireapplication from 0x8400 on. The last page has the vector table specifically the redirected reset vector.The version string pointer and reset vector are used to determine if the application is valid. 2014 Digi International Inc.17

XBee‐PRO 900HP/XBee‐PRO XSC RF ModulesApplication Interrupt Vector table and Linker Command FileSince the bootloader flash region is read-only, the interrupt vector table is redirected to the region0xF1C0 to 0xF1FD so that application developers can use hardware interrupts. Note that in order forApplication interrupts to function properly, the Application's linker command file (*.prm extension)must be modified appropriately to allow the linker to place the developers code in the correct place inmem

May 28, 2014 · This manual describes the operation of the XBee-PRO 900HP RF module, which consists of firmware loaded onto XBee-PRO S3B hardware. XBee-PRO 900HP embedded RF modules provide wireless connectivity to end-point devices in mesh networks. Utilizing the XBee-PRO Feature Set, these modules are interoperable with other devices.

Related Documents:

This manual describes the operation of the XBee-PRO 900HP RF module, which consists of firmware loaded onto XBee-PRO S3B hardware. XBee-PRO 900HP embedded RF modules provide wireless connectivity to end-point devices in mesh networks. Utilizing the XBee-PRO Feature Set, these modules are interoperable with other devices.

S1 802.15.4 XBee 802.15.4 DigiMesh 2.4 XBee DigiMesh 2.4 S2, S2B, S2C ZigBee XBee ZB ZigBee Smart Energy XBee SE ZigBee XBee ZB SMT (S2C) S3, S3B XStream XBee-PRO XSC XStream XBee-PRO XSC (S3B) DigiMesh / Multipoint Proprietary XBee-PRO 900HP (S3B) S4 (no para nuevos diseños) Multipoint Proprietary XBee

The XBee-PRO 900HP RF Modem is a small, low-power solution that uses the XBee-PRO 900HP 900 MHz RF Module in an enclosure to communicate with systems using RS-232, RS-485, and USB interfaces. It allows you to easily make your existing wired systems wireless simply by connecting to this product.

XBee/XBee-PRO S2CZigBee RFModule 18 21xx)hasdifferentFCCandICIDs. Formoreinformation,seeCertifications. Approval XBee(surface-mount) XBee-PRO (surface-mount) XBee (through-hole) XBee-PRO (through-hole) XBeeS2D (surface-mount) UnitedStates(FCC Part15.247) FCCID:MCQ-XBS2C FCCID:MCQ-XBPS2C .

The term “XBee” in the remainder of the tutorial will refer to any of the Series 1 XBee or XBee-Pro, unless otherwise noted. XBee Testing In this section we will explore Digi International’s X-CTU software for communications, signal strength monitoring and configuration of the XBee. The XBee connected to the PC using the XBee USB adapter .

XBee/XBee-PROS2C802.15.4RFModuleUserGuide 2. XBee/XBee-PROS2C802.15.4RFModuleUserGuide 3 Contents XBee/XBee-PROS2C802.15.4RFModuleUserGuide Applicablefirmwareandhardware 9 Technicalspecifications Performancespecifications 11 Powerrequirements 12 Generalspecifications 12 Regulatoryapprovals 13

This manual describes the operation of the XBee/XBee-PRO ZB SMT RF module, which consists of ZigBee firmware loaded onto XBee S2C and PRO S2C hardware. XBee and XBee-PRO ZB SMT embedded RF modules provide wireless connec-tivity to end-point devices in ZigBee mesh networks. Utilizing the ZigBee PRO

Methods, Optimization in Operations Research, Advance Discrete Mathematics, Engineering Mathematics I–III, Advanced Mathematics, and the like. He is also on the editorial board and a reviewer of .